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

编码智能体是否理解系统崩溃的原因——以及为何不会崩溃?

Do Coding Agents Understand Why Systems Crash---and Why They Don't?

Columbia University(哥伦比亚大学);Google Inc.(谷歌公司);Google DeepMind(谷歌DeepMind)

Chenxi Huang, Haonan Wang, Jinghe Zhang, Aleksandr Nogikh, Franjo Ivančić, Petros Maniatis, Eugene Wu, Kostis Kaffes, Junfeng Yang, Baishakhi Ray

AI总结:

本文通过提出源代码干预方法,在934对Linux和OSS-Fuzz项目的源代码树数据集SysRB上测试四个编码智能体,发现其存在预测无崩溃偏差、误判代码影响等问题,表明当前编码智能体尚无法可靠推理复杂系统代码库的执行过程,配对评估是必要的。

摘要:

编码智能体越来越具备修复现实世界漏洞的能力,但在Linux内核等大型系统代码库上仍存在困难。为探究原因,我们通过崩溃推理测试智能体对这些代码库执行过程的推理能力:从源代码预测给定输入是否会导致系统崩溃。仅正确预测本身不足以证明该能力,因为可能仅源于发现可疑代码。本文提出源代码干预方法:将仅存在一次提交差异的源代码树配对,使同一输入仅在其中一个树中引发崩溃,测试智能体是否更常对崩溃树做出崩溃预测。在包含来自Linux和OSS-Fuzz项目的934对此类数据的数据集SysRB上,对四个编码智能体进行实验,得出三个主要发现:第一,智能体倾向于预测无崩溃:它们很少发出误报,但会遗漏许多真实崩溃,即使是表现最佳的智能体也会遗漏超过四分之一的崩溃;第二,定位决定崩溃结果的代码并不足够:智能体常误判其影响,尤其是当崩溃发生在远离该代码的位置时;第三,仅在崩溃代码上测试具有误导性:仅注意到可疑代码的智能体可能在两个源代码树上都预测崩溃,若仅在崩溃树上评估,会被视为正确推理。综合这些发现表明,当前编码智能体尚无法可靠地对复杂系统代码库的执行过程进行推理,且配对评估对于衡量该能力是必要的。

英文摘要:

Coding agents are increasingly capable of fixing real-world bugs, yet they still struggle with large systems codebases such as the Linux kernel. To understand why, we test how agents reason about execution in these codebases through crash reasoning: predicting from source code whether a given input crashes the system. A correct prediction alone, however, does not establish this ability, since it may come from merely spotting suspicious code. In this paper, we propose source interventions: we pair source trees that differ by a single commit, so that the same input crashes only one of them, and test whether agents predict crashes more often on the crashing tree. Experiments with four coding agents on SysRB, our dataset of 934 such pairs from Linux and OSS-Fuzz projects, yield three main findings. First, agents are biased toward predicting no crash: they rarely raise false alarms but miss many real crashes, and even the best agent misses over a quarter of them. Second, locating the code that determines the crash outcome is not enough: agents often misjudge its effect, especially when the crash occurs far from that code. Third, testing only on crashing code is misleading: agents that merely notice suspicious code predict crashes on both source trees, which would look like correct reasoning on the crashing tree alone. Together, these findings indicate that current coding agents cannot yet reliably reason about execution in complex systems codebases, and that paired evaluation is necessary to measure this ability.

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

↑