paperbot · PL 论文追踪

全部论文 待读 收藏

P2 KnowLog: Knowledge Enhanced Pre-trained Language Model for Log Understanding

KnowLog:面向日志理解的知识增强预训练语言模型
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 2/10 · 该论文聚焦于日志理解的预训练语言模型与知识增强,属于软件工程/AIOps 方向,与用户核心关注的静态分析、形式化验证、浮点程序分析、贝叶斯程序分析及 Agentic 程序分析均无明显交集。它也不是用 LLM/Agent 改进程序分析,而是直接提升日志理解模型的预训练效果。引用 31 inbox
Lipeng Ma, Weidong Yang, Bo Xu, Sihang Jiang, Ben Fei, Jiaqing Liang, Mingjie Zhou, Yanghua Xiao
crossref: 2026-09-12

AI 速览

一句话:提出知识增强预训练语言模型 KnowLog,利用缩略语、文档描述与对比学习提升日志理解。

现有预训练语言模型在日志理解上存在三个不足:难以理解领域术语尤其缩写、难以充分捕获完整日志上下文、难以获得同一日志不同风格的通用表示。为此,本文提出 KnowLog,从公开文档中提取日志缩略语与自然语言描述,分别作为局部知识和全局知识,并设计新的预训练任务将知识注入模型;同时设计基于对比学习的预训练任务以获得通用表示。作者在六个日志理解任务上微调评估,实验表明 KnowLog 显著提升日志理解效果,优于无知识增强的预训练语言模型并取得最优结果;迁移学习和低资源场景下的额外实验也展示了其明显优势。

问题
现有预训练语言模型难以理解日志中的领域缩写,难以捕获完整日志上下文,也难以统一表示同一日志的不同风格。
方法
从公开文档抽取日志缩略语和自然语言描述作为局部与全局知识,设计知识增强预训练任务,并用对比学习任务学习通用日志表示。
评估
在六个日志理解任务上微调评估,并与现有预训练语言模型比较,同时补充迁移学习和低资源场景实验。
原文摘要(Abstract)

Logs as semi-structured text are rich in semantic information, making their comprehensive understanding crucial for automated log analysis. With the recent success of pre-trained language models in natural language processing, many studies have leveraged these models to understand logs. Despite their successes, existing pre-trained language models still suffer from three weaknesses. Firstly, these models fail to understand domain-specific terminology, especially abbreviations. Secondly, these models struggle to adequately capture the complete log context information. Thirdly, these models have difficulty in obtaining universal representations of different styles of the same logs. To address these challenges, we introduce KnowLog, a knowledge-enhanced pre-trained language model for log understanding. Specifically, to solve the previous two challenges, we exploit abbreviations and natural language descriptions of logs from public documentation as local and global knowledge, respectively, and leverage this knowledge by designing novel pre-training tasks for enhancing the model. To solve the last challenge, we design a contrastive learning-based pre-training task to obtain universal representations. We evaluate KnowLog by fine-tuning it on six different log understanding tasks. Extensive experiments demonstrate that KnowLog significantly enhances log understanding and achieves state-of-the-art results compared to existing pre-trained language models without knowledge enhancement. Moreover, we conduct additional experiments in transfer learning and low-resource scenarios, showcasing the substantial advantages of KnowLog. Our source code and detailed experimental data are available at https://github.com/LeaperOvO/KnowLog.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot11474,
  title = {KnowLog: Knowledge Enhanced Pre-trained Language Model for Log Understanding},
  author = {Lipeng Ma and Weidong Yang and Bo Xu and Sihang Jiang and Ben Fei and Jiaqing Liang and Mingjie Zhou and Yanghua Xiao},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3623304}
}