arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.05882cs.SE
收藏

仅有通用性是不够的:通过知识级协作实现零标签跨系统日志异常检测

Generality Is Not Enough: Zero-Label Cross-System Log-Based Anomaly Detection via Knowledge-Level Collaboration

Peking University(北京大学)

Xinlong Zhao, Tong Jia, Minghua He, Ying Li

AI总结:

针对零标签跨系统日志异常检测,本文提出GeneralLog方法,通过动态路由让LLM处理专有日志、小模型处理通用日志,实现知识级协作,在三个公开数据集上取得超过90%的F1分数。

摘要:

基于日志的异常检测对于确保软件系统稳定性至关重要。然而,带标签日志的稀缺限制了其在新系统上的快速部署。跨系统迁移已成为一个重要的研究方向。当前最先进的方法在拥有少量带标签目标日志时表现良好,但仍存在局限性:小模型方法迁移通用知识,却忽视了与目标系统专有知识之间的不匹配;基于大语言模型(LLM)的方法能够捕捉专有模式,但依赖少量正样本且推理成本较高。现有的LLM与小模型协作方法根据输出不确定性将“简单日志”路由给小模型、将“复杂日志”路由给LLM。在零标签跨系统场景下,监督样本复杂度不可用,且这种路由方式未考虑知识分离。为解决这一问题,我们提出GeneralLog,一种用于零标签跨系统日志异常检测的新型LLM与小模型协作方法。GeneralLog对无标签日志进行动态路由,让LLM处理“专有日志”、小模型处理“通用日志”,从而在无需带标签目标日志的情况下实现跨系统泛化。在三个公开日志数据集上的实验表明,GeneralLog在完全零标签设置下取得了超过90%的F1分数,显著优于现有方法。

英文摘要:

Log-based anomaly detection is crucial for ensuring software system stability. However, the scarcity of labeled logs limits rapid deployment to new systems. Cross-system transfer has become an important research direction. State-of-the-art approaches perform well with a few labeled target logs, but limitations remain: small-model methods transfer general knowledge but overlook mismatches with the target system's proprietary knowledge; LLM-based methods can capture proprietary patterns but rely on a few positive examples and incur high inference cost. Existing LLM-small model collaborations route 'simple logs' to the small model and 'complex logs' to the LLM based on output uncertainty. In zero-label cross-system settings, supervised sample complexity is unavailable, and such routing does not consider knowledge separation. To address this, we propose GeneralLog, a novel LLM-small model collaborative method for zero-label cross-system log anomaly detection. GeneralLog dynamically routes unlabeled logs, letting the LLM handle 'proprietary logs' and the small model 'general logs,' enabling cross-system generalization without labeled target logs. Experiments on three public log datasets show that GeneralLog achieves over 90% F1-score under a fully zero-label setting, significantly outperforming existing methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑