arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.20148cs.SEcs.LG
收藏

LogSieve: 任务感知的CI日志缩减以实现基于大语言模型的可持续分析

LogSieve: Task-Aware CI Log Reduction for Sustainable LLM-Based Analysis

Faculty of Information University of Toronto Toronto Ontario Canada(信息学院多伦多大学多伦多安大略加拿大);Department of Computer Science Trent University Peterborough Ontario Canada(计算机科学系特伦特大学彼得伯格安大略加拿大);Faculty of Information University of Toronto Toronto Ontario Ontario(信息学院多伦多大学多伦多安大略安大略);University of Toronto(多伦多大学);Trent University(特伦特大学)

Marcus Emmanuel Barnes, Taher A. Ghaleb, Safwat Hassan

AI总结:

LogSieve通过任务感知的日志缩减技术,有效减少CI日志体积并提升大语言模型推理的可持续性与可解释性。

摘要:

日志对于理解持续集成(CI)行为至关重要,尤其是在诊断构建失败和性能退化方面。然而,其增长的体积和冗长性使得手动检查和自动化分析越来越昂贵、耗时且环境成本高。尽管先前的工作已经探索了日志压缩、异常检测和基于大语言模型的日志分析,但大多数努力针对的是结构化的系统日志,而不是CI工作流中常见的非结构化、嘈杂和冗长的日志。我们提出了LogSieve,这是一种轻量级、因果关系分析(RCA)感知且保留语义的日志缩减技术,它过滤掉信息量低的行,同时保留对后续推理相关的内容。在20个开源Android项目使用GitHub Actions的CI日志上评估,LogSieve实现了平均42%的行数减少和40%的令牌减少,同时最小化语义损失。这种预推理缩减降低了计算成本,并可以按比例减少LLM推理期间处理数据的能耗(以及相关排放)。与结构优先的基线(LogZip和随机行移除)相比,LogSieve在语义和类别保真度方面保留得更高(余弦相似度=0.93,GPTScore=0.93,80%精确匹配准确率)。基于嵌入的分类器以近人机准确率(97%)自动检测相关性,使语义感知过滤的可扩展和可持续集成到CI工作流中成为可能。LogSieve因此连接了日志管理和LLM推理,为更环保和可解释的CI自动化提供了实用路径。

英文摘要:

Logs are essential for understanding Continuous Integration (CI) behavior, particularly for diagnosing build failures and performance regressions. Yet their growing volume and verbosity make both manual inspection and automated analysis increasingly costly, time-consuming, and environmentally costly. While prior work has explored log compression, anomaly detection, and LLM-based log analysis, most efforts target structured system logs rather than the unstructured, noisy, and verbose logs typical of CI workflows. We present LogSieve, a lightweight, RCA-aware and semantics-preserving log reduction technique that filters low-information lines while retaining content relevant to downstream reasoning. Evaluated on CI logs from 20 open-source Android projects using GitHub Actions, LogSieve achieves an average 42% reduction in lines and 40% reduction in tokens with minimal semantic loss. This pre-inference reduction lowers computational cost and can proportionally reduce energy use (and associated emissions) by decreasing the volume of data processed during LLM inference. Compared with structure-first baselines (LogZip and random-line removal), LogSieve preserves much higher semantic and categorical fidelity (Cosine = 0.93, GPTScore = 0.93, 80% exact-match accuracy). Embedding-based classifiers automate relevance detection with near-human accuracy (97%), enabling scalable and sustainable integration of semantics-aware filtering into CI workflows. LogSieve thus bridges log management and LLM reasoning, offering a practical path toward greener and more interpretable CI automation.

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

↑