mlsanityData to 7 Oct 2026

Log Parsing using LLMs with Self-Generated In-Context Learning and Self-Correction

arXiv 2406.03376 ↗First posted 5 Jun 2024cs.SEcited by 3

On the map: Synthetic data and self-improvement for LLMs → LLM synthetic data generation

Abstract (arXiv)

Log parsing transforms log messages into structured formats, serving as a crucial step for log analysis. Despite a variety of log parsers that have been proposed, their performance on evolving log data remains unsatisfactory due to reliance on human-crafted rules or learning-based models with limited training data. The recent emergence of large language models (LLMs) has demonstrated strong abilities in understanding natural language and code, making it promising to apply LLMs for log parsing. Consequently, several studies have proposed LLM-based log parsers. However, LLMs may produce inaccurate templates, and existing LLM-based log parsers directly use the template generated by the LLM as the parsing result, hindering the accuracy of log parsing. Furthermore, these log parsers depend heavily on historical log data as demonstrations, which poses challenges in maintaining accuracy when dealing with scarce historical log data or evolving log data. To address these challenges, we propose AdaParser, an effective and adaptive log parsing framework using LLMs with self-generated in-context learning (SG-ICL) and self-correction. To facilitate accurate log parsing, AdaParser incorporates a novel component, a template corrector, which utilizes the LLM to correct potential parsing errors in the templates it generates. In addition, AdaParser maintains a dynamic candidate set composed of previously generated templates as demonstrations to adapt evolving log data. Extensive experiments on public large-scale datasets indicate that AdaParser outperforms state-of-the-art methods across all metrics, even in zero-shot scenarios. Moreover, when integrated with different LLMs, AdaParser consistently enhances the performance of the utilized LLMs by a large margin.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in LLM synthetic data generation, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 26 of its 67 references that are in the map. First posted on arXiv 5 Jun 2024.

Builds on

26 of 67 references.

References · 26

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  2. 2023Qwen Technical Reportcited by 3,273
  3. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  4. 2023A Survey of Large Language Modelscited by 2,537
  5. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  6. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  7. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  8. 2022A Survey on In-context Learningcited by 717
  9. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
  10. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
  11. 2020Loghub: A Large Collection of System Log Datasets for AI-driven Log Analyticscited by 68
  12. 2018Tools and Benchmarks for Automated Log Parsingcited by 56
14 more
  1. 2020A Survey on Automated Log Analysis for Reliability Engineeringcited by 50
  2. 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
  3. 2023Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Studycited by 44
  4. 2024LLMParser: An Exploratory Study on Using Large Language Models for Log Parsingcited by 32
  5. 2023LILAC: Log Parsing using LLMs with Adaptive Parsing Cachecited by 30
  6. 2023Log Parsing with Prompt-based Few-shot Learningcited by 28
  7. 2022UniParser: A Unified Log Parser for Heterogeneous Log Datacited by 25
  8. 2023Did We Miss Something Important? Studying and Exploring Variable-Aware Log Abstractioncited by 19
  9. 2023Log Parsing: How Far Can ChatGPT Go?cited by 16
  10. 2021SemParser: A Semantic Parser for Log Analysiscited by 15
  11. 2022System Log Parsing: A Surveycited by 10
  12. 2023Log Parsing Evaluation in the Era of Modern Software Systemscited by 6
  13. 2023EvLog: Identifying Anomalous Logs over Software Evolutioncited by 2
  14. 2024LogPTR: Variable-Aware Log Parsing with Pointer Networkcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024LibreLog: Accurate and Efficient Unsupervised Log Parsing Using Open-Source Large Language Models
  2. 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Model
  3. 2026CelerLog: Fast Log Parsing via Dynamic Routing ↗
  4. 2024Lemur: Log Parsing with Entropy Sampling and Chain-of-Thought Merging
  5. 2024LogEval: A Comprehensive Benchmark Suite for Large Language Models In Log Analysis
  6. 2026Instruction-Tuned LLMs for Parsing and Mining Unstructured Logs on Leadership HPC Systems
  7. 2026On Sequence-to-Sequence Models for Automated Log Parsing
  8. 2025LogReasoner: Empowering LLMs with Expert-like Coarse-to-Fine Reasoning for Automated Log Analysis