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

LogGPT:通过 GPT 进行日志异常检测

LogGPT: Log Anomaly Detection via GPT

Utah State University(犹他州立大学);Nokia Bell Labs(诺基亚贝尔实验室)

Xiao Han, Shuhan Yuan, Mohamed Trabelsi

AI总结:

针对语言建模目标与日志异常检测不直接匹配的问题,本文提出 LogGPT 框架,利用 GPT 预测下一条日志,并通过强化学习微调以提升异常检测性能。

摘要:

基于日志数据检测系统异常对于确保计算机系统的安全性和可靠性具有重要意义。近年来,深度学习模型已被广泛用于日志异常检测。其核心思想是将日志序列建模为自然语言,并采用 LSTM 或 Transformer 等深度序列模型,通过语言建模对日志序列中的正常模式进行编码。然而,语言建模与异常检测之间存在差距,因为通过语言建模损失训练序列模型的目标与异常检测并不直接相关。为弥补这一差距,我们提出 LogGPT,这是一种采用 GPT 进行日志异常检测的新颖框架。LogGPT 首先经过训练,根据前面的序列预测下一条日志条目。为进一步提升 LogGPT 的性能,我们提出一种新颖的强化学习策略,专门针对日志异常检测任务对模型进行微调。在三个数据集上的实验结果表明,LogGPT 显著优于现有的最先进方法。

英文摘要:

Detecting system anomalies based on log data is important for ensuring the security and reliability of computer systems. Recently, deep learning models have been widely used for log anomaly detection. The core idea is to model the log sequences as natural language and adopt deep sequential models, such as LSTM or Transformer, to encode the normal patterns in log sequences via language modeling. However, there is a gap between language modeling and anomaly detection as the objective of training a sequential model via a language modeling loss is not directly related to anomaly detection. To fill up the gap, we propose LogGPT, a novel framework that employs GPT for log anomaly detection. LogGPT is first trained to predict the next log entry based on the preceding sequence. To further enhance the performance of LogGPT, we propose a novel reinforcement learning strategy to finetune the model specifically for the log anomaly detection task. The experimental results on three datasets show that LogGPT significantly outperforms existing state-of-the-art approaches.

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

↑