ADALog: Adaptive Unsupervised Anomaly detection in Logs with Self-attention Masked Language Model
Not on the map. Why?
Abstract (arXiv)
Modern software systems generate extensive heterogeneous log data with dynamic formats, fragmented event sequences, and varying temporal patterns, making anomaly detection both crucial and challenging. To address these complexities, we propose ADALog, an adaptive, unsupervised anomaly detection framework designed for practical applicability across diverse real-world environments. Unlike traditional methods reliant on log parsing, strict sequence dependencies, or labeled data, ADALog operates on individual unstructured logs, extracts intra-log contextual relationships, and performs adaptive thresholding on normal data. The proposed approach utilizes a transformer-based, pretrained bidirectional encoder with a masked language modeling task, fine-tuned on normal logs to capture domain-specific syntactic and semantic patterns essential for accurate anomaly detection. Anomalies are identified via token-level reconstruction probabilities, aggregated into log-level scores, with adaptive percentile-based thresholding calibrated only on normal data. This allows the model to dynamically adapt to evolving system behaviors while avoiding rigid, heuristic-based thresholds common in traditional systems. We evaluate ADALog on benchmark datasets BGL, Thunderbird, and Spirit, showing strong generalization and competitive performance compared to state-of-the-art supervised and unsupervised methods. Additional ablation studies examine the effects of masking, fine-tuning, and token positioning on model behavior and interpretability.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 18 of its 32 references that are in the map. First posted on arXiv 15 May 2025.
Builds on
18 of 32 references.
References · 18
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2021Masked Language Modeling and the Distributional Hypothesis: Order Word Matters Pre-training for Littlecited by 177
- 2021LogBERT: Log Anomaly Detection via BERTcited by 118
- 2022Log-based Anomaly Detection with Deep Learning: How Far Are We?cited by 57
- 2020Self-Attentive Classification-Based Anomaly Detection in Unstructured Logscited by 36
- 2021LAnoBERT: System Log Anomaly Detection based on BERT Masked Language Modelcited by 30
- 2022Deep Learning for Anomaly Detection in Log Data: A Surveycited by 28
- 2023RAGLog: Log Anomaly Detection using Retrieval Augmented Generationcited by 19
- 2024LogFormer: A Pre-train and Tuning Pipeline for Log Anomaly Detectioncited by 15
- 2021TransLog: A Unified Transformer-based Framework for Log Anomaly Detectioncited by 7
6 more
- 2023On the Effectiveness of Log Representation for Log-based Anomaly Detectioncited by 6
- 2023Impact of Log Parsing on Deep Learning-Based Anomaly Detectioncited by 4
- 2023A Comprehensive Study of Machine Learning Techniques for Log-Based Anomaly Detectioncited by 4
- 2024LogELECTRA: Self-supervised Anomaly Detection for Unstructured Logscited by 4
- 2024Log2graphs: An Unsupervised Framework for Log Anomaly Detection with Efficient Feature Extractioncited by 2
- 2023Log-based Anomaly Detection of Enterprise Software: An Empirical Studycited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026LogbQuant: Quantizing Language Models in Logarithmic Spacecited by 0
- 2026X-WAD: eXplainable Web Anomaly Detectioncited by 0
- 2026X-WAD: eXplainable Web Anomaly Detection27 Aug 2026
- 2026LogbQuant: Quantizing Language Models in Logarithmic Space1 Jul 2026