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

关于自动化日志解析的序列到序列模型

On Sequence-to-Sequence Models for Automated Log Parsing

Toronto University(多伦多大学)

Adam Sorrenti, Andriy Miranskyy

AI总结:

本研究系统评估了四种序列建模架构(Transformer、Mamba、单/双向LSTM)在自动化日志解析中的性能,发现Transformer表现最佳,Mamba在计算成本较低时具有竞争力,并分析了表示选择、序列长度和数据效率的影响。

摘要:

上下文:日志解析是软件系统中的关键标准操作流程,支持监控、异常检测和故障诊断。然而,由于日志格式异构、训练与部署数据之间的分布偏移以及基于规则的方法的脆弱性,自动化日志解析仍然具有挑战性。目标:本研究旨在系统评估序列建模架构、表示选择、序列长度和训练数据可用性如何影响自动化日志解析性能和计算成本。方法:我们进行了一项受控实证研究,比较了四种序列建模架构:Transformer、Mamba状态空间、单向LSTM和双向LSTM模型。总共在多个数据集配置下训练了396个模型,并使用相对Levenshtein编辑距离进行统计显著性检验评估。结果:Transformer实现了最低的平均相对编辑距离(0.111),其次是Mamba(0.145)、单LSTM(0.186)和双LSTM(0.265),数值越低越好。Mamba在计算成本大幅降低的情况下提供了有竞争力的准确性。字符级分词通常能提升性能,序列长度对Transformer准确性的实际影响可忽略不计,Mamba和Transformer均表现出比循环模型更强的样本效率。结论:总体而言,Transformer将解析错误降低了23.4%,而Mamba在数据或计算受限的情况下是一个强有力的替代方案。这些结果还阐明了表示选择、序列长度和样本效率的作用,为研究人员和从业者提供了实用指导。

英文摘要:

Context: Log parsing is a critical standard operating procedure in software systems, enabling monitoring, anomaly detection, and failure diagnosis. However, automated log parsing remains challenging due to heterogeneous log formats, distribution shifts between training and deployment data, and the brittleness of rule-based approaches. Objectives: This study aims to systematically evaluate how sequence modelling architecture, representation choice, sequence length, and training data availability influence automated log parsing performance and computational cost. Methods: We conduct a controlled empirical study comparing four sequence modelling architectures: Transformer, Mamba state-space, monodirectional LSTM, and bidirectional LSTM models. In total, 396 models are trained across multiple dataset configurations and evaluated using relative Levenshtein edit distance with statistical significance testing. Results: Transformer achieves the lowest mean relative edit distance (0.111), followed by Mamba (0.145), mono-LSTM (0.186), and bi-LSTM (0.265), where lower values are better. Mamba provides competitive accuracy with substantially lower computational cost. Character-level tokenization generally improves performance, sequence length has negligible practical impact on Transformer accuracy, and both Mamba and Transformer demonstrate stronger sample efficiency than recurrent models. Conclusion: Overall, Transformers reduce parsing error by 23.4%, while Mamba is a strong alternative under data or compute constraints. These results also clarify the roles of representation choice, sequence length, and sample efficiency, providing practical guidance for researchers and practitioners.

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

↑