Wavelet-Aware Anomaly Detection in Multi-Channel User Logs via Deviation Modulation and Resolution-Adaptive Attention
Kaichuan Kong, Dongjie Liu, Xiaobo Jin, Shijie Xu, Guanggang Geng · 2026
Read Wavelet-Aware Anomaly Detection in Multi-Channel User Logs via Deviation Modulation and Resolution-Adaptive Attention by Kaichuan Kong, Dongjie Liu, Xiaobo Jin, Shijie Xu, Guanggang Geng (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-12231.txt.
Introduction
Kaichuan Kong, Dongjie Liu, Xiaobo Jin, Shijie Xu, and Guanggang Geng spot insider threats in user logs with wavelet tools. Logs hold rich behaviour data in many channels. They shift over time, and true threats are rare, which makes spotting hard.
Their frame joins wavelet-aware modulation, wavelet splits at many scales, and attention that adapts to scale. Wavelets track both fast bursts and slow drifts in acts. A robust spotter helps firms catch misuse early. The work tests it on multi-channel logs. Rare threats need tools that miss few true cases.
Catalog record
| CREATOR | Kaichuan Kong, Dongjie Liu, Xiaobo Jin, Shijie Xu, Guanggang Geng |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 18 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2601-12231
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Wavelet-Aware Anomaly Detection in Multi-Channel User Logs via Deviation Modulation and Resolution-Adaptive Attention Kaichuan Kong, Dongjie Liu, Xiaobo Jin, Shijie Xu, Guanggang Geng Abstract Insider threat detection is a key challenge in enterprise security, relying on user activity logs that capture rich and complex behavioral patterns. These logs are often multi-channel, non-stationary, and anomalies are rare, making anomaly detection challenging. To address these issues, we propose a novel framework that integrates wavelet-aware modulation, multi-resolution wavelet decomposition, and resolution-adaptive attention for robust anomaly detection. Our approach first applies a deviation-aware modulation scheme to suppress routine behaviors while amplifying anomalous deviations. Next, discrete wavelet transform (DWT) decomposes the log signals into multi-resolution representations, capturing both long-term trends and short-term anomalies. Finally, a learnable attention mechanism dynamically reweights the most discriminative frequency bands for detection. On the CERT r4.2 benchmark, our approach consistently outperforms existing baselines in precision, recall, and F1 score across various time granularities and scenarios. † † address: 1 College of Cyber Security, Jinan University, Guangzhou, China 2 School of Advanced Technology, Xi’an Jiaotong-Liverpool University, Suzhou, China 1 Introduction Insider threat detection is a critical security task in enterprise environments, where authenticated users may intentionally or unintentionally engage in malicious activities. To support such detection, user activity logs capturing access patterns, resource interactions, and system operations—offer rich behavioral signals [ 1 ] . These logs are inherently multi-channel and time-evolving, reflecting both normal routines and potential threats [ 6 , 28 , 29 ] .However, detecting anomalies in these logs remains highly challenging due to three key factors: (i) the multi-source and high-dimensional structure of the data; (ii) the rarity and subtlety of abnormal behaviors, often obscured by dominant routine patterns; and (iii) the non-stationary temporal dynamics that blend long-term trends with short-term bursts. Previous studies have utilized statistical features, CNNs, and sequence models such as RNNs and Transformers for log modeling [ 10 , 25 ] . However, several limitations remain: Many models are sensitive to redundant operations; Imbalanced distributions lead to overfitting; and the cost of modeling long distances is generally high. In addition, frequency domain methods (e.g., FFT) can capture global changes [ 26 , 12 ] , but their coarse granularity hinders the detection of local anomalies. To address these challenges, we propose a wavelet-aware, multi-resolution framework for detecting anomalies in multi-channel user activity logs. First, the raw logs are aggregated into a structured behavior matrix and modulated by a deviation-aware scheme that suppresses stable regular behaviors while emphasizing irregular deviations. Second, a multi-resolution representation is obtained via the discrete wavelet transform (DWT) [ 18 ] , distinguishing stable long-term trends from transient bursts. Finally, a resolution-adaptive attention module adaptively reweights frequency components, enhancing the most informative scales for anomaly detection. Overall, our approach balances robustness and computational efficiency. The principal contributions of this work are as follows: • We propose a deviation-aware modulation mechanism that adaptively weights the behavior matrix to highlight anomalous deviations. • We integrate multi-resolution wavelet decomposition to extract frequency-aware temporal features from the behavior matrix. • We design a resolution-adaptive attention mechanism to adaptively calibrate multi-scale representations. • Experiments on the CERT benchmark show that our approach outperforms state-of-the-art baselines across a variety of scenarios and granularity levels. Figure 1: Overview of our framework. Raw user logs are converted into an action matrix \mathbf{X}\!\in\!\mathbb{R}^{H\times W} , which is then modulated by bias-aware weights \mathbf{M}\!\in\!\mathbb{R}^{H\times W} , resulting in a modulation matrix \hat{\mathbf{X}}=\mathbf{X}\odot\mathbf{M} (right). The modulation matrix is decomposed into J{+}1 resolution subbands \tilde{\mathbf{X}}\!\in\!\mathbb{R}^{(J{+}1)\times H\times W} using a DWT, where the weights are determined by a resolution-adaptive attention mechanism. This matrix, comprised of multiple resolution subbands, is then fed into the detection model to produce anomaly results. 2 Related Work Early log-based insider threat detection methods relied on classic machine learning models with artificial features. Techniques such as Log2Vec [ 16 ] and information gain (IG) and correlation-based feature selection (CFS) [ 3 ] were used to model underlying user behavior. Models such as random forest (RF), support vector machine (SVM), and extreme gradient boosting (XGBoost) demonstrated promising performance [ 13 ] . In unsupervised settings, isolation forest (iForest), local outlier factor (LOF), and autoencoders [ 2 , 14 , 27 ] were used to detect behavioral deviations from audit logs. To address temporal and semantic constraints, deep learning approaches such as attention-based long short-term memory (Att-LSTM) [ 10 ] , BERT (Bidirectional Encoder Representations from Transformers)-LSTM [ 11 ] , and Transformer-based architectures [ 25 ] have been explored. Representation learning has also advanced through generative adversarial networks (GANs) [ 9 ] , time-frequency analysis [ 4 ] , and graph neural networks (GNNs) [ 21 , 5 ] for user relationship modeling. Recently, large language models (LLMs) have achieved zero-shot/few-shot detection of log sequences through hinting [ 19 , 17 ] or fine-tuning [ 23 ] . In recent years, signal processing methods for audit log anomaly detection have emerged, leveraging wavelet transforms for time-frequency decomposition. For example, the discrete wavelet transform (DWT) has been used for anomaly scoring ( [ 8 ] ); capsule networks (CapsNet) with multi-level wavelet features have achieved high accuracy ( [ 20 ] ); and denoising techniques have improved clustering-based models ( [ 12 ] ). These methods show promise, but typically use fixed basis functions and univariate signals, limiting their adaptability to dynamic multi-channel behavior. 3 Methodology Fig. 1 illustrates the overall framework. Our approach consists of two main stages: (i) transforming raw logs into structured and deviation-aware behavioral matrix, and (ii) learning multi-resolution representations that capture both stable routines and irregular anomalies. The following subsections detail each stage. 3.1 Behavioral Construction and Modulation User activity logs are inherently sparse, irregular, and dominated by routine behaviors, making direct modeling ineffective. We first construct behavioral matrices to convert raw logs into temporal sequences, then apply deviation-aware modulation to suppress redundant patterns while amplifying informative anomalies. Behavioral Matrix Construction. Event logs contain heterogeneous records (e.g., logon, file access, email), each with a timestamp. Let \mathcal{E} be the set of recorded events, where each event e\in\mathcal{E} is described by a type e.\text{type}\in\mathcal{H} and timestamp e.\text{time} . Here \mathcal{H} is the set of behavior categories with cardinality H{=}\,|\mathcal{H}| . We divide the timeline into W equal-width, non-overlapping intervals \{w_{1},\dots,w_{W}\} (e.g., hourly slots). The behavior matrix \mathbf{X}\!\in\!\mathbb{R}^{H\times W} is: \vskip-1.99997ptX_{h,w}=\sum_{e\in\mathcal{E}}\mathbb{I}\{e.\text{type}=h,~e.\text{time}\in w\},\vskip-3.00003pt (1) where \mathbb{I}\{\cdot\} is the indicator function. This yields a structured representation with rows for behavior types and columns for temporal intervals. Deviation-aware Modulation. Routine activities (e.g., office-hour logins) often dominate \mathbf{X} and overshadow rare but informative anomalies. To provide a population baseline for each coordinate, we compute \mu_{h,w} and \sigma_{h,w} as the mean and standard deviation of X^{(n)}_{h,w} across normal training samples only , fixed after training and used at inference. The standardized deviation score is defined as: \vskip-1.99997pt\Delta_{h,w}=\frac{|X_{h,w}-\mu_{h,w}|}{\sigma_{h,w}+\epsilon},\vskip-3.00003pt (2) where \epsilon>0 is a small constant for numerical stability. We then compute the weight matrix \mathbf{M} : \vskip-3.00003ptM_{h,w}=\begin{cases}\beta,&\Delta_{h,w}<\tau,\\ 1+\lambda\Delta_{h,w},&\Delta_{h,w}\geq\tau,\end{cases}\vskip-3.00003pt (3) where \beta\in(0,1) suppresses stable behaviors, \lambda>0 amplifies deviations, and \tau\geq 0 is tuned on validation data. The modulated matrix is: \vskip-1.99997pt\hat{\mathbf{X}}=\mathbf{X}\odot\mathbf{M},\vskip-3.00003pt (4) where \odot is the Hadamard product. This reweighting suppresses frequent yet uninformative events and sharpens rare deviations, yielding a clearer representation for downstream anomaly