Please use this identifier to cite or link to this item: https://hdl.handle.net/10216/170535
Author(s): Jorge G. Barbosa
João Reis
Miguel Areias
Title: Large Language Model Framework for Log Sequence Anomaly Detection
Issue Date: 2025-09-15
Abstract: Log analysis is fundamental to modern software observability systems, playing a key role in improving system reliability. Recently, there has been a growing adoption of Large Language Models (LLMs) for log anomaly detection, due to their ability to learn complex patterns. In this work, we propose a model-agnostic framework that allows seamless plug-and-play integration of different LLMs, making it easy to experiment with and select the model that fits specific needs. These models are first fine-tuned on normal log data, learning their patterns. During inference, the model predicts the most probable next tokens based on the preceding context in each sequence. Anomaly detection is performed using Top-K predictions, where sequences are flagged as anomalous if the actual log entry does not appear among the K most probable next tokens, with K determined using the validation dataset. The proposed framework is evaluated on three widely-used benchmark datasetsHDFS, BGL, and Thunderbirdwhere it consistently achieves competitive results, outperforming state-of-the-art methods in multiple scenarios. These results highlight the effectiveness of LLM-based log analysis and the importance of flexibility when selecting models for specific operational contexts. (c) 2025 Elsevier B.V., All rights reserved.
DOI: 10.1007/978-3-032-05176-9_25
URI: https://hdl.handle.net/10216/170535
Source: Progress in Artificial Intelligence
Document Type: Artigo em Livro de Atas de Conferência Internacional
Rights: restrictedAccess
Appears in Collections:FCUP - Artigo em Livro de Atas de Conferência Internacional
FEUP - Artigo em Livro de Atas de Conferência Internacional

Files in This Item:
File Description SizeFormat 
747065.pdf
  Restricted Access
Documento600.44 kBAdobe PDFView/Open


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.