Adapting Large Language Models to Log Analysis with Interpretable Domain Knowledge
Not on the map. Why?
Abstract (arXiv)
Log analysis represents a critical sub-domain within AI applications that facilitates automatic approaches to fault and error management of large-scaled software systems, saving labors of traditional manual methods. While existing solutions using large language models (LLMs) show promise, they are limited by a significant domain gap between natural and log languages (the latter contains rich domain-specific tokens such as status codes, IP addresses, resource pathes), which restricts their effectiveness in real-world applications. However, directly adapting general-purpose LLMs to log analysis using raw logs may degrade their performance due to inconsistent token distribution. In this paper, we present a domain adaptation approach that addresses these limitations by integrating interpretable domain knowledge into open-source LLMs through continual pre-training (CPT), which bridges this domain gap by adapting LLMs on interpretable natural texts with log knowledge (instead of raw logs) to reduce distribution discrepancy. To achieve this, we developed NLPLog, a comprehensive dataset containing over 250,000 question-answer pairs on log-related knowledge. Our resulting model, SuperLog, achieves the best performance across four log analysis tasks, with an average accuracy improvement of 12.01% over the second-best model. Ablation study also suggests advantages of domain adaption using interpretable log knowledge over using raw logs.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 43 of its 81 references that are in the map. First posted on arXiv 2 Dec 2024.
Builds on
43 of 81 references.
References · 43
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023Qwen Technical Reportcited by 3,273
- 2023Mistral 7Bcited by 3,065
- 2023A Survey of Large Language Modelscited by 2,537
- 2024Qwen2 Technical Reportcited by 2,076
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
- 2019Publicly Available Clinical BERT Embeddingscited by 995
31 more
- 2023Baichuan 2: Open Large-scale Language Modelscited by 664
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
- 2024InternLM2 Technical Reportcited by 391
- 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 262
- 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 228
- 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 198
- 2021LogBERT: Log Anomaly Detection via BERTcited by 114
- 2024MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUscited by 111
- 2023Text Classification via Large Language Modelscited by 104
- 2023Automatic Root Cause Analysis via Large Language Models for Cloud Incidentscited by 82
- 2021Log-based Anomaly Detection Without Log Parsingcited by 59
- 2018Tools and Benchmarks for Automated Log Parsingcited by 56
- 2024Investigating Continual Pretraining in Large Language Models: Insights and Implicationscited by 54
- 2024Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimationcited by 53
- 2023OWL: A Large Language Model for IT Operationscited by 43
- 2023Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Modelscited by 38
- 2023Interpretable Online Log Analysis Using Large Language Models with Prompt Strategiescited by 34
- 2023LogGPT: Exploring ChatGPT for Log-Based Anomaly Detectioncited by 33
- 2024LLMParser: An Exploratory Study on Using Large Language Models for Log Parsingcited by 32
- 2023LILAC: Log Parsing using LLMs with Adaptive Parsing Cachecited by 30
- 2023Log Parsing with Prompt-based Few-shot Learningcited by 28
- 2024LogParser-LLM: Advancing Efficient Log Parsing with Large Language Modelscited by 20
- 2023Did We Miss Something Important? Studying and Exploring Variable-Aware Log Abstractioncited by 19
- 2023RAGLog: Log Anomaly Detection using Retrieval Augmented Generationcited by 19
- 2023Log Parsing: How Far Can ChatGPT Go?cited by 16
- 2021SemParser: A Semantic Parser for Log Analysiscited by 15
- 2024LogLM: From Task-based to Instruction-based Automated Log Analysiscited by 13
- 2024From Handcrafted Features to LLMs: A Brief Survey for Machine Translation Quality Estimationcited by 10
- 2024LogEval: A Comprehensive Benchmark Suite for Large Language Models In Log Analysiscited by 10
- 2022LogStamp: Automatic Online Log Parsing Based on Sequence Labellingcited by 6
Built on by
Citing papers per year: 2025: 4; 2026: 2.
6 papers.
- 2025System Log Parsing with Large Language Models: A Reviewcited by 2
- 2026CAM-LDS: Cyber Attack Manifestations for Automatic Interpretation of System Logs and Security Alertscited by 1
- 2025RationAnomaly: Log Anomaly Detection with Rationality via Chain-of-Thought and Reinforcement Learningcited by 0
- 2025Intent-Driven Storage Systems: From Low-Level Tuning to High-Level Understandingcited by 0
- 2025LogPurge: Log Data Purification for Anomaly Detection via Rule-Enhanced Filteringcited by 0
- 2026Ishigaki-IDS: An Open-Weight Verifier-Aware Model for Information Delivery Specification Drafting in Building Information Modelingcited by 0
- 2026Ishigaki-IDS: An Open-Weight Verifier-Aware Model for Information Delivery Specification Drafting in Building Information Modeling7 Jun 2026
- 2026CAM-LDS: Cyber Attack Manifestations for Automatic Interpretation of System Logs and Security Alerts4 Mar 2026
- 2025LogPurge: Log Data Purification for Anomaly Detection via Rule-Enhanced Filtering18 Nov 2025
- 2025Intent-Driven Storage Systems: From Low-Level Tuning to High-Level Understanding29 Sep 2025
- 2025RationAnomaly: Log Anomaly Detection with Rationality via Chain-of-Thought and Reinforcement Learning18 Sep 2025
- 2025System Log Parsing with Large Language Models: A Review7 Apr 2025