LogFormer: A Pre-train and Tuning Pipeline for Log Anomaly Detection
Hongcheng Guo, Jian Yang, Jiaheng Liu, Jiaqi Bai, Boyang Wang, Zhoujun Li, Tieqiao Zheng, Bo Zhang, Junran Peng, Qi Tian
Abstract
Log anomaly detection is a key component in the field of artificial intelligence for IT operations (AIOps). Considering log data of variant domains, retraining the whole network for unknown domains is inefficient in real industrial scenarios. However, previous deep models merely focused on extracting the semantics of log sequences in the same domain, leading to poor generalization on multi-domain logs. To alleviate this issue, we propose a unified Transformer-based framework for Log anomaly detection (LogFormer) to improve the generalization ability across different domains, where we establish a two-stage process including the pre-training and adapter-based tuning stage. Specifically, our model is first pre-trained on the source domain to obtain shared semantic knowledge of log data. Then, we transfer such knowledge to the target domain via shared parameters. Besides, the Log-Attention module is proposed to supplement the information ignored by the log-paring. The proposed method is evaluated on three public datasets and one real-world dataset. Experimental results on multiple benchmarks demonstrate the effectiveness of our LogFormer with fewer trainable parameters and lower training costs.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- OWL: A Large Language Model for IT Operations cites LoRA: Low-Rank Adaptation of Large Language Models
- OWL: A Large Language Model for IT Operations cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- OWL: A Large Language Model for IT Operations cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- OWL: A Large Language Model for IT Operations cites Training language models to follow instructions with human feedback
- EventADL: Open-Box Anomaly Detection and Localization Framework for Events in Cloud-Based Service Systems cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Fine-Tune Once, Reuse Across Models: Bayesian Task-Update Factors and Approximations cites LoRA: Low-Rank Adaptation of Large Language Models
- Fine-Tune Once, Reuse Across Models: Bayesian Task-Update Factors and Approximations cites Training language models to follow instructions with human feedback
- MINES: Explainable Anomaly Detection through Web API Invariant Inference cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Chain-of-Thought Prompting Elicits Reasoning in Large Language Models cites Training language models to follow instructions with human feedback
Cited by top-tier papers3
- EventADL: Open-Box Anomaly Detection and Localization Framework for Events in Cloud-Based Service SystemsLuan Pham, Victor Nicolet, Joey Dodds, Hui Guan et al.FSE 2026
- Fine-Tune Once, Reuse Across Models: Bayesian Task-Update Factors and ApproximationsSiyang Guo, Junbo Wang, Zibin ZhengICML 2026
- MINES: Explainable Anomaly Detection through Web API Invariant InferenceWenjie Zhang, Yun Lin, Chun Fung Amos Kwok, Xiwen Teoh et al.ICSE 2026
Builds on5
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 citations
- OWL: A Large Language Model for IT OperationsHongcheng Guo, Jian Yang, Jiaheng Liu, Liqun Yang et al.ICLR 2024 · 64 citations
Related papers
- Robust and Transferable Log-based Anomaly DetectionPeng Jia, Shaofeng Cai, Beng Chin Ooi, Pinghui Wang et al.SIGMOD 2023 · 26 citations
- Semantic Curriculum for Anomaly Detection: A Unified Language-Driven Meta-Optimization FrameworkKai Tan, Yangliu Du, Dongyang Zhan, Haining Yu et al.INFOCOM 2026
- Log-based Anomaly Detection Without Log ParsingVan-Hoang Le, Hongyu ZhangASE 2021 · 249 citations
- PreLog: A Pre-trained Model for Log AnalyticsVan-Hoang Le, Hongyu ZhangSIGMOD 2024 · 30 citations
- UniAd: Unified Adversarial Alignment for Unsupervised Cross-Domain Industrial Anomaly DetectionYulong Fang, Zhanshan Li, Jingyao LiKDD 2026
