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

LogLLaMA: 基于Transformer的、借助LLaMA的日志异常检测

LogLLaMA: Transformer-based log anomaly detection with LLaMA

University of California, Irvine(加州大学欧文分校)

Zhuoyi Yang, Ian G. Harris

AI总结:

本研究提出基于LLaMA2的日志异常检测框架LogLLaMA,先在三个大规模正常日志数据集微调实现日志生成,再经强化学习训练识别异常,在多个基准数据集上性能超越现有最优方法。

摘要:

日志异常检测指的是从正常日志消息中区分出异常日志消息的任务。基于Transformer的大语言模型(LLM)凭借其理解复杂长语言模式的出色能力,正被越来越多地用于日志异常检测。本文提出了一种新颖框架LogLLaMA,该框架利用LLaMA2构建。LogLLaMA首先在来自三个大规模数据集的正常日志消息上进行微调,以学习这些日志的模式。微调后,该模型能够根据先前的日志消息生成后续的日志消息。我们的生成式模型还通过强化学习(RL)进一步训练,以识别异常日志消息。实验结果表明,在BGL、Thunderbird和HDFS数据集上,LogLLaMA的性能优于现有最先进的异常检测方法。

英文摘要:

Log anomaly detection refers to the task that distinguishes the anomalous log messages from normal log messages. Transformer-based large language models (LLMs) are becoming popular for log anomaly detection because of their superb ability to understand complex and long language patterns. In this paper, we propose LogLLaMA, a novel framework that leverages LLaMA2. LogLLaMA is first finetuned on normal log messages from three large-scale datasets to learn their patterns. After finetuning, the model is capable of generating successive log messages given previous log messages. Our generative model is further trained to identify anomalous log messages using reinforcement learning (RL). The experimental results show that LogLLaMA outperforms the state-of-the-art approaches for anomaly detection on BGL, Thunderbird, and HDFS datasets.

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

↑