arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.07790cs.AI
收藏

在系统日志严重性分类上评估小型语言模型和小型推理语言模型

Benchmarking Small Language Models and Small Reasoning Language Models on System Log Severity Classification

George Mason University(乔治·马歇尔大学);Harvard University(哈佛大学)

Yahya Masri, Emily Ma, Zifu Wang, Joseph Rogers, Chaowei Yang

AI总结:

本研究评估了小型语言模型和小型推理语言模型在系统日志严重性分类上的性能,发现架构设计、训练目标和上下文整合能力共同影响模型表现。

摘要:

系统日志对于监控和诊断现代计算基础设施至关重要,但其规模和复杂性要求可靠的、高效的自动解释。由于严重级别是系统日志消息中的预定义元数据,仅让模型进行分类提供有限的独立实用价值,揭示很少关于其底层解读系统日志的能力。我们主张将严重性分类视为探测运行时日志理解的基准,而不是作为终端任务。使用来自Linux生产服务器的现实世界journalctl数据,我们在零样本、少样本和检索增强生成(RAG)提示下评估了九种小型语言模型(SLMs)和小型推理语言模型(SRLMs)。结果揭示了强烈的分层。Qwen3-4B在RAG下实现了95.64%的最高准确率,而Gemma3-1B在少样本提示下从20.25%提升到RAG下的85.28%。值得注意的是,即使在没有检索的情况下表现薄弱的tiny Qwen3-0.6B也达到了88.12%的准确率。相比之下,几种SRLMs,包括Qwen3-1.7B和DeepSeek-R1-Distill-Qwen-1.5B,在与RAG配对时显著下降。效率测量进一步分离了模型:大多数Gemma和Llama变体在每个日志下完成推断的时间不足1.2秒,而Phi-4-Mini-Reasoning则超过228秒每个日志,同时达到低于10%的准确率。这些发现表明,(1)架构设计,(2)训练目标,以及(3)在严格输出约束下整合检索上下文的能力共同决定了性能。通过强调小型、可部署的模型,该基准与数字孪生(DT)系统的实时要求相一致,并表明严重性分类作为评估模型能力和实时可部署性的棱镜,对根本原因分析(RCA)和更广泛的DT整合具有影响。

英文摘要:

System logs are crucial for monitoring and diagnosing modern computing infrastructure, but their scale and complexity require reliable and efficient automated interpretation. Since severity levels are predefined metadata in system log messages, having a model merely classify them offers limited standalone practical value, revealing little about its underlying ability to interpret system logs. We argue that severity classification is more informative when treated as a benchmark for probing runtime log comprehension rather than as an end task. Using real-world journalctl data from Linux production servers, we evaluate nine small language models (SLMs) and small reasoning language models (SRLMs) under zero-shot, few-shot, and retrieval-augmented generation (RAG) prompting. The results reveal strong stratification. Qwen3-4B achieves the highest accuracy at 95.64% with RAG, while Gemma3-1B improves from 20.25% under few-shot prompting to 85.28% with RAG. Notably, the tiny Qwen3-0.6B reaches 88.12% accuracy despite weak performance without retrieval. In contrast, several SRLMs, including Qwen3-1.7B and DeepSeek-R1-Distill-Qwen-1.5B, degrade substantially when paired with RAG. Efficiency measurements further separate models: most Gemma and Llama variants complete inference in under 1.2 seconds per log, whereas Phi-4-Mini-Reasoning exceeds 228 seconds per log while achieving <10% accuracy. These findings suggest that (1) architectural design, (2) training objectives, and (3) the ability to integrate retrieved context under strict output constraints jointly determine performance. By emphasizing small, deployable models, this benchmark aligns with real-time requirements of digital twin (DT) systems and shows that severity classification serves as a lens for evaluating model competence and real-time deployability, with implications for root cause analysis (RCA) and broader DT integration.

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

↑