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

一种用于系统日志异常检测的新型基于GPT的框架

A Novel GPT-Based Framework for Anomaly Detection in System Logs

Zeng Zhang, Wenjie Yin, Xiaoqi Li

AI总结:

本文提出基于GPT的系统日志异常检测框架,通过Drain解析生成事件ID序列并采用Focal Loss缓解类别不平衡,优化后的GPT-2在多项指标上表现更优。

摘要:

在系统日志中识别异常事件是网络安全防御策略框架中的一个关键要素。然而,这一过程面临诸多挑战,包括海量数据量的管理、异常的分布以及传统方法的精度。为解决这一问题,本文提出了一种基于Generative Pre-trained Transformers(GPT,生成式预训练Transformer)的系统日志智能检测方法。该方法的有效性得益于结构化输入设计与Focal Loss优化策略的结合,二者共同显著提升了日志异常检测的性能。初始方法是使用Drain解析器将原始日志转换为事件ID序列。随后,采用Focal Loss损失函数来解决类别不平衡问题。实验结果表明,经过优化的GPT-2模型在精确率、召回率和F1分数等一系列关键指标上显著优于未优化模型。在特定任务中,其表现出与GPT-3.5 API相当甚至更优的性能。

英文摘要:

Identification of anomalous events within system logs constitutes a pivotal element within the frame- work of cybersecurity defense strategies. However, this process faces numerous challenges, including the management of substantial data volumes, the distribution of anomalies, and the precision of con- ventional methods. To address this issue, the present paper puts forward a proposal for an intelligent detection method for system logs based on Genera- tive Pre-trained Transformers (GPT). The efficacy of this approach is attributable to a combination of structured input design and a Focal Loss op- timization strategy, which collectively result in a substantial enhancement of the performance of log anomaly detection. The initial approach involves the conversion of raw logs into event ID sequences through the use of the Drain parser. Subsequently, the Focal Loss loss function is employed to address the issue of class imbalance. The experimental re- sults demonstrate that the optimized GPT-2 model significantly outperforms the unoptimized model in a range of key metrics, including precision, recall, and F1 score. In specific tasks, comparable or superior performance has been demonstrated to that of the GPT-3.5 API.

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

↑