paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Knowledge-Augmented Log Anomaly Detection with Large Language Models

基于大语言模型的知识增强日志异常检测
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 2/10 · 该论文研究的是运行时日志的异常检测,属于 AIOps/软件工程范畴,既不涉及源代码静态分析与形式化验证,也与浮点程序分析、贝叶斯程序分析及其与 LLM 的交叉无关;其核心是用知识库增强 LLM 提示来提升检测效果,属于用 LLM 做具体任务的应用型工作,与画像中“PL↔AI 双向结合”的核心问题交集很弱。引用 1 inbox
Yongliang Tao, Hongyu Zhang, Van-Hoang Le, Yi Xiao
crossref: 2026-09-12

AI 速览

一句话:提出 LogPipe,通过动态知识库增强 LLM 日志异常检测,提升准确率并降低成本与增强可解释性。

现有基于大语言模型(LLM)的日志异常检测方法存在准确率有限、计算成本高、可解释性差的问题。论文提出 LogPipe 框架,利用离散与语义日志模式构建动态知识库,并通过情感词典和频繁模式挖掘生成动态模式;推理时将日志序列与知识库匹配,为 LLM 提供具体指导,从而提升检测准确率并生成详细解释。持续更新机制保持知识库时效性,同时减少冗余 LLM 查询,显著降低推理成本。在八个公开数据集上,LogPipe 平均 F1 达到 0.975,优于当前最优模型,并降低 token 消耗;在故障定位方面也表现优异,增强了异常检测的可解释性。

问题
现有基于 LLM 的日志异常检测方法准确率有限、计算成本高且可解释性差。
方法
构建包含离散、语义和动态日志模式的知识库,推理时匹配知识库以引导 LLM,并持续更新知识库以减少冗余查询。
评估
在八个公开数据集上评估,平均 F1 为 0.975,优于 SOTA,降低 token 消耗,并验证了故障定位与可解释性。
原文摘要(Abstract)

Log anomaly detection is critical for maintaining system reliability, yet existing large language model (LLM)-based methods suffer from limited accuracy, high computational costs, and poor explainability. In this paper, we introduce LogPipe, a novel framework that enhances LLM-based log anomaly detection by integrating a dynamic knowledge base. LogPipe constructs a knowledge base using discrete and semantic log patterns, augmented by dynamic patterns that are generated by a sentiment dictionary and frequent pattern mining. During inference, log sequences are matched against the knowledge base to provide specific guidance to the LLM, improving detection accuracy and generating detailed explanations. A continuous update mechanism ensures that the knowledge base remains relevant while minimizing redundant LLM queries, significantly reducing inference costs. Evaluated on eight public datasets, LogPipe achieves an average F1 score of 0.975, outperforming state-of-the-art models, with reduced token consumption. Additionally, LogPipe excels in fault localization, which enhances the explainability of detected anomalies.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11690,
  title = {Knowledge-Augmented Log Anomaly Detection with Large Language Models},
  author = {Yongliang Tao and Hongyu Zhang and Van-Hoang Le and Yi Xiao},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3744916.3773248}
}