LogLLM: Log-based Anomaly Detection Using Large Language Models
Not on the map. Why?
Abstract (arXiv)
Software systems often record important runtime information in logs to help with troubleshooting. Log-based anomaly detection has become a key research area that aims to identify system issues through log data, ultimately enhancing the reliability of software systems. Existing methods often fall short in capturing the semantic information, typically expressed in natural language, or the sequential dependencies inherent in log sequences. In this paper, we propose LogLLM, a framework that enables collaboration between heterogeneous LLMs for log-based anomaly detection. LogLLM exploits the complementary capabilities of different LLM architectures: a Transformer encoder-based LLM is employed to extract fine-grained semantic vectors from individual log messages, while a Transformer decoder-based LLM is utilized to model sequential dependencies and generate anomaly detection decisions. To enable effective collaboration between these heterogeneous LLMs, we introduce a learnable projector to align their vector representation spaces. Furthermore, we design a progressive three-stage training strategy to optimize the collaboration between heterogeneous LLMs by gradually aligning their representations and adapting them to log anomaly detection. Unlike conventional methods that require log parsers to extract templates, LogLLM preprocesses log messages with regular expressions, streamlining the entire process. Experimental results on four public real-world datasets demonstrate that LogLLM outperforms state-of-the-art methods, achieving an average F1-score improvement of 6.6% over the strongest existing approach. Further analyses provide insights into the effectiveness of the key components of the model architecture and progressive three-stage training strategy.
Key facts. Cited by 22 papers in the map (data through 14 Oct 2026). Builds on 23 of its 69 references that are in the map. First posted on arXiv 13 Nov 2024.
Builds on
23 of 69 references.
References · 23
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 834
- 2016FastText.zip: Compressing text classification modelscited by 335
- 2021LogBERT: Log Anomaly Detection via BERTcited by 118
- 2020Loghub: A Large Collection of System Log Datasets for AI-driven Log Analyticscited by 70
11 more
- 2021Log-based Anomaly Detection Without Log Parsingcited by 59
- 2022Log-based Anomaly Detection with Deep Learning: How Far Are We?cited by 57
- 2018Tools and Benchmarks for Automated Log Parsingcited by 56
- 2023LogGPT: Exploring ChatGPT for Log-Based Anomaly Detectioncited by 35
- 2021LAnoBERT: System Log Anomaly Detection based on BERT Masked Language Modelcited by 30
- 2023Log Parsing with Prompt-based Few-shot Learningcited by 29
- 2023RAGLog: Log Anomaly Detection using Retrieval Augmented Generationcited by 19
- 2022LogGD:Detecting Anomalies from System Logs by Graph Neural Networkscited by 8
- 2021OneLog: Towards End-to-End Training in Software Log Anomaly Detectioncited by 7
- 2024DABL: Detecting Semantic Anomalies in Business Processes Using Large Language Modelscited by 5
- 2024FastLogAD: Log Anomaly Detection with Mask-Guided Pseudo Anomaly Generation and Discriminationcited by 4
Built on by
Citing papers per year: 2025: 10; 2026: 12.
22 papers.
Sort:
By area:
- 2025Large Language Models for Security Operations Centers: A Comprehensive Surveycited by 9
- 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusioncited by 8
- 2025K4: Online Log Anomaly Detection Via Unsupervised Typicality Learningcited by 6
- 2025FALCON: Transforming Cyber Threat Intelligence into Deployable IDS Rules with Self-Reflectioncited by 4
- 2026Retrieval-Augmented LLMs for Security Incident Analysiscited by 4
- 2025Domain Specific Benchmarks for Evaluating Multimodal Large Language Modelscited by 3
- 2025LogReasoner: Empowering LLMs with Expert-like Coarse-to-Fine Reasoning for Automated Log Analysiscited by 2
- 2026KORAL: Knowledge Graph Guided LLM Reasoning for SSD Operational Analysiscited by 2
- 2025ALPHA: LLM-Enabled Active Learning for Human-Free Network Anomaly Detectioncited by 1
- 2025Towards Generalizable Context-aware Anomaly Detection: A Large-scale Benchmark in Cloud Environmentscited by 0
- 2025Information-Dense Reasoning for Efficient and Auditable Security Alert Triagecited by 0
- 2025Automated Fault Detection in 5G Core Networks Using Large Language Modelscited by 0
10 more
- 2026DP-FlogTinyLLM: Differentially private federated log anomaly detection using Tiny LLMscited by 0
- 2026NLLog: Lightweight, Explainable SOC Anomaly Detection via Log-to-Language Rewritingcited by 0
- 2026Sample-Efficient LLM-Based Detection of Malicious Web Server Logs with Forensically Explainable Reasoningcited by 0
- 2026Can Large Language Models Reason about Event-Time Stream-Processing Semantics?cited by 0
- 2026Too Sure to Be Safe: Model Calibration for Reliable Log Anomaly Detectioncited by 0
- 2026From Noise to Signal: Improving Security Log Anomaly Detection Using LLMs with Endpoint-Specific Logscited by 0
- 2026Large Language Models in the Loop: A Stability- and Network-Aware Survey in Networked Control, Cyber-Physical, and Multi-Agent Systemscited by 0
- 2026TriFleetRCA: On-Premise LLM Root Cause Analysis for Kubernetescited by 0
- 2026Towards Understanding LLM-Based Log Anomaly Detection: An Empirical Study of Performance, Efficiency, and Robustnesscited by 0
- 2026Protocol-Sensitive Evaluation of Log Anomaly Detection: Component Costs and Target-Access Sensitivity on HDFS and BGLcited by 0
- 2026Protocol-Sensitive Evaluation of Log Anomaly Detection: Component Costs and Target-Access Sensitivity on HDFS and BGL5 Oct 2026
- 2026Towards Understanding LLM-Based Log Anomaly Detection: An Empirical Study of Performance, Efficiency, and Robustness25 Sep 2026
- 2026TriFleetRCA: On-Premise LLM Root Cause Analysis for Kubernetes20 Sep 2026
- 2026Large Language Models in the Loop: A Stability- and Network-Aware Survey in Networked Control, Cyber-Physical, and Multi-Agent Systems15 Sep 2026
- 2026From Noise to Signal: Improving Security Log Anomaly Detection Using LLMs with Endpoint-Specific Logs20 Aug 2026
- 2026Too Sure to Be Safe: Model Calibration for Reliable Log Anomaly Detection18 Aug 2026
- 2026Can Large Language Models Reason about Event-Time Stream-Processing Semantics?17 Jun 2026
- 2026Sample-Efficient LLM-Based Detection of Malicious Web Server Logs with Forensically Explainable Reasoning7 Jun 2026
- 2026NLLog: Lightweight, Explainable SOC Anomaly Detection via Log-to-Language Rewriting3 Jun 2026
- 2026DP-FlogTinyLLM: Differentially private federated log anomaly detection using Tiny LLMs21 Apr 2026
- 2026Retrieval-Augmented LLMs for Security Incident Analysis18 Mar 2026
- 2026KORAL: Knowledge Graph Guided LLM Reasoning for SSD Operational Analysis10 Feb 2026
10 more
- 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusion12 Dec 2025
- 2025Information-Dense Reasoning for Efficient and Auditable Security Alert Triage9 Dec 2025
- 2025Automated Fault Detection in 5G Core Networks Using Large Language Models24 Nov 2025
- 2025LogReasoner: Empowering LLMs with Expert-like Coarse-to-Fine Reasoning for Automated Log Analysis25 Sep 2025
- 2025Large Language Models for Security Operations Centers: A Comprehensive Survey13 Sep 2025
- 2025ALPHA: LLM-Enabled Active Learning for Human-Free Network Anomaly Detection7 Sep 2025
- 2025FALCON: Transforming Cyber Threat Intelligence into Deployable IDS Rules with Self-Reflection26 Aug 2025
- 2025Towards Generalizable Context-aware Anomaly Detection: A Large-scale Benchmark in Cloud Environments3 Aug 2025
- 2025K4: Online Log Anomaly Detection Via Unsupervised Typicality Learning26 Jul 2025
- 2025Domain Specific Benchmarks for Evaluating Multimodal Large Language Models15 Jun 2025
- 2025LogReasoner: Empowering LLMs with Expert-like Coarse-to-Fine Reasoning for Automated Log Analysiscited by 2
- 2026KORAL: Knowledge Graph Guided LLM Reasoning for SSD Operational Analysiscited by 2
- 2025Information-Dense Reasoning for Efficient and Auditable Security Alert Triagecited by 0
- 2026Can Large Language Models Reason about Event-Time Stream-Processing Semantics?cited by 0
- 2026Can Large Language Models Reason about Event-Time Stream-Processing Semantics?17 Jun 2026
- 2026KORAL: Knowledge Graph Guided LLM Reasoning for SSD Operational Analysis10 Feb 2026
- 2025Information-Dense Reasoning for Efficient and Auditable Security Alert Triage9 Dec 2025
- 2025LogReasoner: Empowering LLMs with Expert-like Coarse-to-Fine Reasoning for Automated Log Analysis25 Sep 2025
- 2026Retrieval-Augmented LLMs for Security Incident Analysiscited by 4
- 2026Retrieval-Augmented LLMs for Security Incident Analysis18 Mar 2026
- 2025Large Language Models for Security Operations Centers: A Comprehensive Surveycited by 9
- 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusioncited by 8
- 2025K4: Online Log Anomaly Detection Via Unsupervised Typicality Learningcited by 6
- 2025FALCON: Transforming Cyber Threat Intelligence into Deployable IDS Rules with Self-Reflectioncited by 4
- 2025ALPHA: LLM-Enabled Active Learning for Human-Free Network Anomaly Detectioncited by 1
- 2025Towards Generalizable Context-aware Anomaly Detection: A Large-scale Benchmark in Cloud Environmentscited by 0
- 2025Automated Fault Detection in 5G Core Networks Using Large Language Modelscited by 0
- 2026DP-FlogTinyLLM: Differentially private federated log anomaly detection using Tiny LLMscited by 0
- 2026NLLog: Lightweight, Explainable SOC Anomaly Detection via Log-to-Language Rewritingcited by 0
- 2026Sample-Efficient LLM-Based Detection of Malicious Web Server Logs with Forensically Explainable Reasoningcited by 0
- 2026Too Sure to Be Safe: Model Calibration for Reliable Log Anomaly Detectioncited by 0
- 2026From Noise to Signal: Improving Security Log Anomaly Detection Using LLMs with Endpoint-Specific Logscited by 0
12 most cited of 15 All 15 (JSON)
- 2026Protocol-Sensitive Evaluation of Log Anomaly Detection: Component Costs and Target-Access Sensitivity on HDFS and BGL5 Oct 2026
- 2026Towards Understanding LLM-Based Log Anomaly Detection: An Empirical Study of Performance, Efficiency, and Robustness25 Sep 2026
- 2026TriFleetRCA: On-Premise LLM Root Cause Analysis for Kubernetes20 Sep 2026
- 2026From Noise to Signal: Improving Security Log Anomaly Detection Using LLMs with Endpoint-Specific Logs20 Aug 2026
- 2026Too Sure to Be Safe: Model Calibration for Reliable Log Anomaly Detection18 Aug 2026
- 2026Sample-Efficient LLM-Based Detection of Malicious Web Server Logs with Forensically Explainable Reasoning7 Jun 2026
- 2026NLLog: Lightweight, Explainable SOC Anomaly Detection via Log-to-Language Rewriting3 Jun 2026
- 2026DP-FlogTinyLLM: Differentially private federated log anomaly detection using Tiny LLMs21 Apr 2026
- 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusion12 Dec 2025
- 2025Automated Fault Detection in 5G Core Networks Using Large Language Models24 Nov 2025
- 2025Large Language Models for Security Operations Centers: A Comprehensive Survey13 Sep 2025
- 2025ALPHA: LLM-Enabled Active Learning for Human-Free Network Anomaly Detection7 Sep 2025
12 newest of 15 All 15 (JSON)