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

LogDx-CI:为LLM根因诊断基准测试日志缩减工具

LogDx-CI: Benchmarking Log Reduction Tools for LLM Root-Cause Diagnosis

National University of Singapore(新加坡国立大学)

Bowen Qin

AI总结:

提出LogDx-CI基准,比较11种日志缩减工具在35个真实CI故障案例上的效果,发现混合grep+tail路由器在成本质量上占优,且智能体循环可缩小质量差距但成本差异持续存在,同时跨家族LLM摘要器优于同家族。

摘要:

CI失败日志规模大(本语料中位数5000行,最大20万行)且噪声多。尝试调试的编码智能体依赖上游工具将日志缩减为可管理的上下文,但该领域缺乏公开的经验比较来评估哪些缩减能为下游LLM诊断保留足够证据。我们引入LogDx-CI基准,比较11种上下文缩减工具(原始、尾部、grep、三种RTK模式、两种真实LLM map-reduce摘要器、三种混合路由器)在35个真实GitHub Actions失败案例上的表现,由3个LLM调试器家族(Claude Haiku 4.5、Claude Sonnet 4.6、OpenAI gpt-5-mini)以及一个Sonnet 4.6工具使用智能体评分。我们报告三个重要发现。(1)混合grep+tail路由器主导成本-质量帕累托前沿;前两种方法得分0.670/0.666,每案例约0.03美元,质量与独立grep相当但令牌数减少4.5倍。(2)在智能体循环场景中,不同缩减工具的质量范围缩小7倍(单次得分跨度0.42 → 智能体循环跨度0.059);智能体通过后续工具调用挽救弱上下文。然而,成本差异持续存在:弱上下文迫使智能体发出2-4倍的工具调用来恢复。(3)跨家族LLM摘要-调试器对(gpt-5-mini摘要器供给Claude Haiku调试器)在四个诊断变体上的平均得分比同家族对高0.071,否定了该任务上的自我调用偏差假设。gpt-5-mini摘要器也是智能体循环中的第一名方法(得分0.749),每案例0.37次工具调用,且缩减器成本比Haiku摘要器低10倍(每案例0.18美元 vs 1.75美元)。所有数据、代码、每个案例的捆绑包和可复现性基础设施均已公开。

英文摘要:

CI failure logs are large (median 5k lines, max 200k in this corpus) and noisy. Coding agents that try to debug them depend on an upstream tool to reduce the log to a manageable context, but the field has had no public empirical comparison of which reductions preserve enough evidence for downstream LLM diagnosis. We introduce LogDx-CI, a benchmark that compares 11 context-reduction tools (raw, tail, grep, three RTK modes, two real LLM map-reduce summarizers, three hybrid routers) on 35 real GitHub Actions failure cases, scored by 3 LLM debugger families (Claude Haiku 4.5, Claude Sonnet 4.6, OpenAI gpt-5-mini) plus a Sonnet 4.6 tool-using agent. We report three load-bearing findings. (1)~Hybrid grep+tail routers dominate the cost-quality Pareto frontier; the top two methods score 0.670 / 0.666 at $\sim$ \$0.03 per case, same-ballpark quality as standalone grep at $4.5\times$ fewer tokens. (2)~In the agent-loop regime, the quality range across reduction tools collapses $7\times$ (single-shot spread 0.42 $\to$ agent-loop spread 0.059); the agent rescues weak contexts via follow-up tool calls. However, cost differences persist: weak contexts force the agent to issue 2--4$\times$ more tool calls to recover. (3)~A cross-family LLM-summary pair (gpt-5-mini summarizer feeding a Claude Haiku debugger) beats the same-family pair by $+0.071$ averaged across four diagnoser variants, falsifying the self-call-bias hypothesis on this task. The gpt-5-mini summarizer is also the agent-loop \#1 method (score 0.749) at $0.37$ tool-calls per case and $10\times$ lower reducer cost than the Haiku summarizer (\$0.18 vs \$1.75 per case). All data, code, per-case bundles, and reproducibility infrastructure are public.

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

↑