arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.09564cs.LGcs.CL
收藏

LAnoBERT:基于 BERT 掩码语言模型的系统日志异常检测

LAnoBERT: System Log Anomaly Detection based on BERT Masked Language Model

Korea University(高丽大学)

Yukyung Lee, Jina Kim, Pilsung Kang

AI总结:

本文提出无需解析器的 LAnoBERT,利用 BERT 掩码语言建模和逐日志键损失进行无监督系统日志异常检测,并在 HDFS、BGL、Thunderbird 上达到优于无监督基线、可比监督基线的效果。

摘要:

计算机系统中生成的系统日志是指同时收集的大规模数据,并被用作判断错误、入侵和异常行为的基础数据。系统日志异常检测的目标是在最大限度减少人工干预的同时及时识别异常,这是工业界的一个关键问题。以往研究先利用解析器将各种形式的日志数据转换为标准化模板,然后再通过算法执行异常检测。具体而言,必须针对所有日志数据预先定义与特定事件对应的模板,而这样做可能会丢失日志键内部的信息。在本研究中,我们提出 LAnoBERT,这是一种无需解析器的系统日志异常检测方法,它采用在自然语言处理性能方面表现出色的 BERT 模型。所提出的方法 LAnoBERT 通过掩码语言建模来学习模型,这是一种基于 BERT 的预训练方法;在测试过程中,它使用每个日志键的掩码语言建模损失函数,继续进行基于无监督学习的异常检测。此外,我们还提出了一种高效的推理过程,以便为实际系统建立可实际应用的流水线。在三个著名日志数据集(即 HDFS、BGL 和 Thunderbird)上的实验表明,LAnoBERT 不仅相比基于无监督学习的基准模型取得了更高的异常检测性能,而且获得了与基于监督学习的基准模型相当的性能。

英文摘要:

The system log generated in a computer system refers to large-scale data that are collected simultaneously and used as the basic data for determining errors, intrusion and abnormal behaviors. The aim of system log anomaly detection is to promptly identify anomalies while minimizing human intervention, which is a critical problem in the industry. Previous studies performed anomaly detection through algorithms after converting various forms of log data into a standardized template using a parser. Particularly, a template corresponding to a specific event should be defined in advance for all the log data using which the information within the log key may get lost. In this study, we propose LAnoBERT, a parser free system log anomaly detection method that uses the BERT model, exhibiting excellent natural language processing performance. The proposed method, LAnoBERT, learns the model through masked language modeling, which is a BERT-based pre-training method, and proceeds with unsupervised learning-based anomaly detection using the masked language modeling loss function per log key during the test process. In addition, we also propose an efficient inference process to establish a practically applicable pipeline to the actual system. Experiments on three well-known log datasets, i.e., HDFS, BGL, and Thunderbird, show that not only did LAnoBERT yield a higher anomaly detection performance compared to unsupervised learning-based benchmark models, but also it resulted in a comparable performance with supervised learning-based benchmark models.

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

↑