paperbot · PL 论文追踪

全部论文 待读 收藏

P2 LibreLog: Accurate and Efficient Unsupervised Log Parsing Using Open-Source Large Language Models

LibreLog:基于开源大语言模型的准确高效无监督日志解析
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 2/10 · 该论文研究基于开源LLM的无监督日志解析,属于日志分析与软件工程数据挖掘,而非用户核心关注的静态分析、形式化验证、浮点程序分析或贝叶斯程序分析;虽涉及LLM与程序语言标签,但与PL→AI/AI→PL的核心问题交叉很弱。引用 11 inbox
Zeyang Ma, Dong Jae Kim, Tse-Hsun Peter Chen
crossref: 2026-09-12

AI 速览

一句话:提出无监督日志解析方法 LibreLog,用开源 LLM 结合分组、RAG、自反思与模板记忆,兼顾隐私、成本与准确率。

日志解析将非结构化日志转为结构化格式,是后续日志分析的关键步骤。传统语法解析器高效,但处理偏离预定义规则的日志时准确率下降;现有基于大语言模型(LLM)的解析器虽准确,却依赖耗时人工标注、成本高,且商业模型有隐私风险。LibreLog 是无监督方法,基于开源 LLM(Llama3-8B),用固定深度分组树聚合静态文本相似而动态变量不同的日志,并通过相似度检索增强生成、自反思优化模板、日志模板记忆三项机制提升效果。在 LogHub-2.0 上,其准确率比先进 LLM 解析器高 25%,速度快 2.7 倍,同时缓解隐私与成本问题。

问题
现有基于 LLM 的日志解析器需人工标注或上下文学习、受日志规模与上下文限制导致成本高,并使用商业模型带来隐私风险。
方法
LibreLog 基于开源 Llama3-8B,采用固定深度分组树,并结合相似度检索增强生成、自反思迭代优化与日志模板记忆进行无监督解析。
评估
在 LogHub-2.0 上评估,相比先进 LLM 解析器准确率提升 25%,处理速度快 2.7 倍。
原文摘要(Abstract)

Log parsing is a critical step that transforms unstructured log data into structured formats, facilitating subsequent log-based analysis. Traditional syntax-based log parsers are efficient and effective, but they often experience decreased accuracy when processing logs that deviate from the predefined rules. Recently, large language models (LLM) based log parsers have shown superior parsing accuracy. However, existing LLM-based parsers face three main challenges: 1) time-consuming and labor-intensive manual labeling for fine-tuning or in-context learning, 2) increased parsing costs due to the vast volume of log data and limited context size of LLMs, and 3) privacy risks from using commercial models like ChatGPT with sensitive log information. To overcome these limitations, this paper introduces LibreLog, an unsupervised log parsing approach that leverages open-source LLMs (i.e., Llama3-8B) to enhance privacy and reduce operational costs while achieving state-of-the-art parsing accuracy. LibreLog first groups logs with similar static text but varying dynamic variables using a fixed-depth grouping tree. It then parses logs within these groups using three components: i) similarity scoring-based retrieval augmented generation: selects diverse logs within each group based on Jaccard similarity, helping the LLM distinguish between static text and dynamic variables; ii) self-reflection: iteratively query LLMs to refine log templates to improve parsing accuracy; and iii) log template memory: stores parsed templates to reduce LLM queries for improved parsing efficiency. Our evaluation on LogHub-2.0 shows that LibreLog achieves 25% higher parsing accuracy and processes logs 2.7 times faster compared to state-of-the-art LLM-based parsers. In short, LibreLog addresses privacy and cost concerns of using commercial LLMs while achieving state-of-the-arts parsing efficiency and accuracy.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8825,
  title = {LibreLog: Accurate and Efficient Unsupervised Log Parsing Using Open-Source Large Language Models},
  author = {Zeyang Ma and Dong Jae Kim and Tse-Hsun Peter Chen},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00103}
}