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

LogSD:通过自监督学习和基于频率的掩码从系统日志中检测异常

LogSD: Detecting Anomalies from System Logs through Self-supervised Learning and Frequency-based Masking

Yongzheng Xie, Hongyu Zhang, Muhammad Ali Babar

AI总结:

针对半监督日志异常检测中高频消息导致的模式偏差问题,提出自监督方法LogSD,采用双网络与频率掩码等策略,在三个数据集上超越八种基准方法。

摘要:

日志分析是工程师用于排查大规模软件系统故障的主要技术之一。多年来,研究者提出了许多有监督、半监督和无监督的日志分析方法,通过分析系统日志来检测系统异常。其中,半监督方法因其在放宽标注数据需求与获得最优检测性能之间取得了平衡,而受到越来越多的关注,这与有监督和无监督方法形成对比。然而,现有的半监督方法忽视了高频日志消息对学习到的正常模式可能引入的偏差,导致其性能不尽如人意。在本研究中,我们提出了LogSD,一种新颖的半监督自监督学习方法。LogSD采用双网络架构,并融合了基于频率的掩码方案、全局到局部的重建范式以及三个自监督学习任务。这些特性使LogSD能够更关注相对低频的日志消息,从而有效地从历史正常数据中学习到偏差更小、更具判别性的模式。这种侧重最终带来了异常检测性能的提升。我们在三个常用数据集上进行了大量实验,结果表明LogSD显著优于八种最先进的基准方法。

英文摘要:

Log analysis is one of the main techniques that engineers use for troubleshooting large-scale software systems. Over the years, many supervised, semi-supervised, and unsupervised log analysis methods have been proposed to detect system anomalies by analyzing system logs. Among these, semi-supervised methods have garnered increasing attention as they strike a balance between relaxed labeled data requirements and optimal detection performance, contrasting with their supervised and unsupervised counterparts. However, existing semi-supervised methods overlook the potential bias introduced by highly frequent log messages on the learned normal patterns, which leads to their less than satisfactory performance. In this study, we propose LogSD, a novel semi-supervised self-supervised learning approach. LogSD employs a dual-network architecture and incorporates a frequency-based masking scheme, a global-to-local reconstruction paradigm and three self-supervised learning tasks. These features enable LogSD to focus more on relatively infrequent log messages, thereby effectively learning less biased and more discriminative patterns from historical normal data. This emphasis ultimately leads to improved anomaly detection performance. Extensive experiments have been conducted on three commonly-used datasets and the results show that LogSD significantly outperforms eight state-of-the-art benchmark methods.

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

↑