[Paper Review] A2Log: Attentive Augmented Log Anomaly Detection
A2Log proposes an unsupervised log anomaly detection method using a self-attention neural network for anomaly scoring and data augmentation-based decision boundary learning without requiring anomaly examples. It achieves F1 scores comparable to optimal baselines using only normal training data, outperforming DeepLog and 3-Sigma across three public and one industrial dataset.
Anomaly detection becomes increasingly important for the dependability and serviceability of IT services. As log lines record events during the execution of IT services, they are a primary source for diagnostics. Thereby, unsupervised methods provide a significant benefit since not all anomalies can be known at training time. Existing unsupervised methods need anomaly examples to obtain a suitable decision boundary required for the anomaly detection task. This requirement poses practical limitations. Therefore, we develop A2Log, which is an unsupervised anomaly detection method consisting of two steps: Anomaly scoring and anomaly decision. First, we utilize a self-attention neural network to perform the scoring for each log message. Second, we set the decision boundary based on data augmentation of the available normal training data. The method is evaluated on three publicly available datasets and one industry dataset. We show that our approach outperforms existing methods. Furthermore, we utilize available anomaly examples to set optimal decision boundaries to acquire strong baselines. We show that our approach, which determines decision boundaries without utilizing anomaly examples, can reach scores of the strong baselines.
Motivation & Objective
- To address the limitation of unsupervised log anomaly detection methods that require anomaly examples to set optimal decision boundaries.
- To develop a fully unsupervised approach that uses only normal training data for both anomaly scoring and decision boundary determination.
- To evaluate the method on diverse real-world datasets, including an industrial dataset, to demonstrate robustness and performance.
- To show that unsupervised decision boundary learning via data augmentation can match the performance of baselines that rely on labeled anomalies.
- To enable practical deployment in production environments where labeled anomalies are scarce or unavailable.
Proposed method
- A self-attention transformer encoder is used to generate anomaly scores for each log message based on its sequence context.
- Data augmentation is applied to normal log sequences by replacing a single token with an unknown token (UNK) with probability p=0.95.
- The model's response to these augmented inputs is analyzed to determine the decision boundary for anomaly classification.
- The decision boundary is computed using a parameterized function a(·) with adjustable parameters α, p, and β, where α=1 and p=0.95 are fixed across datasets.
- The method uses a weighted sampler during training to balance class distribution between normal logs and stabilization class samples.
- The final anomaly decision is made by comparing the anomaly score to a threshold ε derived from the model's behavior on augmented data.
Experimental results
Research questions
- RQ1Can an unsupervised anomaly detection method achieve performance comparable to optimal baselines without using any anomaly examples?
- RQ2How effective is data augmentation in simulating normal deviations to learn a robust decision boundary in the absence of anomalies?
- RQ3Does the proposed method maintain high performance across diverse log datasets with varying data characteristics and concept drift?
- RQ4Can the decision boundary be reliably learned using only normal training data through model response analysis on augmented inputs?
- RQ5How sensitive is the method to hyperparameter choices, and can it generalize across different datasets with minimal tuning?
Key findings
- A2Log achieves F1 scores on par with the best possible baseline (Best) across all training splits (10%, 20%, 40%, 60%) on the BGL, Thunderbird, and Spirit datasets.
- On the industrial dataset, A2Log outperforms the 3-Sigma baseline and matches the performance of the optimal decision boundary, even with limited training data.
- The method maintains strong performance despite concept drift in the BGL dataset, though performance degrades slightly with very small training sets.
- The parameters α=1 and p=0.95 are robust across all datasets, indicating low sensitivity to hyperparameter tuning.
- A2Log consistently outperforms DeepLog and 3-Sigma across all evaluated datasets and training data proportions.
- The method demonstrates that unsupervised decision boundary learning via data augmentation can effectively simulate real-world anomalies without requiring labeled anomaly data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.