Abstract: Boyang Wang, Runqiang Zang, Hongcheng Guo, Shun Zhang, Shaosheng Cao, Donglin Di, Zhoujun Li. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 6: Industry Track).
2025.
Introduction: Breaking the Log Analysis Silo
In modern AIOps, system logs are essential for troubleshooting. However, traditional anomaly detection models are often "siloed"—trained specifically for one environment (e.g., a Hadoop cluster) and failing to generalize to others (e.g., a web server). This approach is computationally expensive and ignores universal semantic patterns in log data.
Furthermore, many reconstruction-based models suffer from the "identical shortcut" problem. If a model is too flexible, it may learn to reconstruct rare anomalies perfectly, resulting in low reconstruction error and incorrect classification as "normal" data. MLAD (Multi-system Log Anomaly Detection) addresses these issues by creating a generalized model that captures cross-system semantics while resisting reconstruction shortcuts.
Methodology: The Transformer-GMM Hybrid
MLAD introduces a hybrid architecture designed to leverage both contextual semantic relationships and probabilistic density estimation.
- Semantic Feature Extraction: Instead of relying on simple syntax or word counts, MLAD utilizes Sentence-BERT with MEAN pooling. This allows the model to capture deep semantic meanings, recognizing that terms like "error" and "exception" are related across different systems.
- Log Sparse Attention: Standard Transformers use softmax attention, which can dilute focus across many tokens. MLAD employs $\alpha$-entmax (based on Tsallis entropy). This sparse attention mechanism allows the model to "zero out" irrelevant words and concentrate on high-uncertainty keywords that typically signal anomalies.
- Probabilistic Classification: The architecture combines a Transformer for sequence modeling with a Gaussian Mixture Model (GMM) for density estimation. By calculating "sample energy," the GMM identifies log entries that deviate from the learned normal distribution.
- Deflationary Transformation: To combat the "identical shortcut," the authors implemented a specialized objective function. This includes a penalty term based on keyword uncertainty, effectively increasing the distance between normal and abnormal samples in the latent space.
Experimental Setup and Results
The researchers evaluated MLAD using three major public datasets: HDFS (Hadoop), BGL (BlueGene/L), and Thunderbird (supercomputer). A key focus was transfer learning, where the model was trained on one system and tested on another to evaluate generalization.
Performance Benchmarks
MLAD consistently outperformed state-of-the-art baselines, including LogBERT, DeepLog, and LogAnomaly.
- F1-Scores: MLAD achieved high performance across datasets: 0.918 on BGL, 0.894 on HDFS, and 0.896 on Thunderbird.
- Cross-System Generalization: In transfer tasks (e.g., BGL $\rightarrow$ Thunderbird), MLAD maintained significantly higher F1-scores than baselines, demonstrating a genuine understanding of anomaly patterns rather than simple dataset memorization.
- Comparison with LLMs: Interestingly, MLAD outperformed ChatGPT (using Chain-of-Thought prompting), which struggled with domain-specific log nuances and the scale of the data.
Key Insights
- Sparsity is Crucial: The use of $\alpha$-entmax (with $\alpha$ between 1.2 and 1.5) was found to be the "sweet spot," providing enough sparsity to ignore noise while maintaining smooth gradient flow.
- Unified Boundaries: MLAD proves that a single, unified decision boundary can effectively separate normal and abnormal logs across diverse software environments.
- GMM Importance: Ablation studies showed that removing the GMM component significantly degraded performance, highlighting the value of probabilistic energy for handling multi-system variety.
Limitations and Future Work
While MLAD sets a new standard for multi-system detection, challenges remain. The model's performance is sensitive to hyperparameters like $\alpha$ and loss function weights. Additionally, real-world deployment requires addressing data privacy and minimizing false alarms. Future research will focus on enhancing the model's reasoning capabilities to handle entirely unseen log templates in dynamic cloud environments.
Summary updated