LogGPT: Log Anomaly Detection via GPT

Xiao Han, Shuhan Yuan, Mohamed Trabelsi
9/25/2023
cs.LG

Official code: nokia/LogGPT (61 stars, last commit 2023-12-12).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

nokia/LogGPTOfficial
6120PythonDec 7, 20232 years agoNOASSERTION

Similar Papers

Cite this paper

@article{han2023loggpt,
  title  = {LogGPT: Log Anomaly Detection via GPT},
  author = {Xiao Han and Shuhan Yuan and Mohamed Trabelsi},
  year   = {2023},
  eprint = {2309.14482},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.14482v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.14482.svg)](https://codeofpaper.com/paper/2309.14482)

Discussion