paperbot · PL 论文追踪

全部论文 待读 收藏

P2 CLSLog: Collaborating Large and Small Models for Log-based Anomaly Detection

CLSLog:协同大模型与小模型进行基于日志的异常检测
FSE Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering2025匹配度 2/10 · 该论文聚焦基于日志的异常检测,用大模型与小模型协同提升演化日志检测效果,属于软件工程/运维中的机器学习应用,与用户的 PL→AI、AI→PL、浮点程序分析和贝叶斯程序分析等核心方向基本无关。虽然使用 LLM 作为工具且关注效率与落地,但并未涉及静态分析、形式化验证、Agentic 程序或程序分析理论。引用 1 inbox
Pei Xiao, Tong Jia, Chiming Duan, Minghua He, Weijie Hong, Xixuan Yang, Yihan Wu, Ying Li, Gang Huang
crossref: 2026-09-12

AI 速览

一句话:提出CLSLog,通过语义相似度二分类协同大语言模型与小模型,提升演化日志异常检测准确率并降低检测开销。

随着软件系统日益复杂,基于日志的异常检测在软件演化产生的演化日志上尤为困难。小规模深度学习模型虽高效,但难以处理偏离训练分布的演化日志;大语言模型能利用日志中的丰富语义信息,却存在效率低、缺乏领域知识的问题。为此,论文提出CLSLog协同方案,将日志异常检测建模为语义相似度二分类任务,使大、小模型在语义理解层面协作:小模型为非演化日志提供可靠且快速的检测结果;对于演化日志,则利用小模型的预测与中间结果增强大语言模型,为其注入领域特定知识。作者在两个公开数据集上进行初步实验,结果表明该组合方法优于单独使用任一模型,取得更高准确率,同时减少检测时间与成本。

问题
软件演化产生的日志会偏离训练分布,导致小模型检测性能下降;大语言模型虽有语义优势,但效率低且缺乏领域知识。
方法
将日志异常检测建模为语义相似度二分类;小模型负责非演化日志的快速可靠判断,并用其预测与中间结果增强大语言模型以处理演化日志。
评估
在两个公开数据集上进行初步实验,将协同方案与单独使用小模型或大语言模型对比,评估准确率、检测时间和成本。
原文摘要(Abstract)

As software systems become more complex, ensuring reliability through log-based anomaly detection presents significant challenges, particularly when dealing with evolutionary logs generated during software evolution. While small deep learning models (SM) have been employed for log anomaly detection, they struggle with handling evolutionary logs that deviate from the training distribution. On the other hand, large language models (LLMs) show great potential in leveraging the rich semantic information in logs but suffer from inefficiencies and lack domain-specific knowledge. To address these challenges, we propose CLSLog, a collaborative scheme that leverages the generalization capabilities of LLMs and the efficiency and low-cost advantages of small models. We model log anomaly detection as a semantic similarity binary classification task to enable collaboration between small and large models at the semantic understanding level. The small model accelerates the detection process by providing reliable results for non-evolutionary logs, while for evolutionary logs, the small model's predictions and intermediate results help enhance the LLM with domain-specific knowledge. Preliminary experimental results on two open dataseys demonstrate that this combined approach outperforms using either model individually, achieving higher accuracy and reducing detection time and costs.

链接与引用

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

BibTeX
@inproceedings{paperbot8955,
  title = {CLSLog: Collaborating Large and Small Models for Log-based Anomaly Detection},
  author = {Pei Xiao and Tong Jia and Chiming Duan and Minghua He and Weijie Hong and Xixuan Yang and Yihan Wu and Ying Li and Gang Huang},
  booktitle = {FSE},
  year = {2025},
  doi = {10.1145/3696630.3728524}
}