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

智能体解释:用于软件智能体的管控式证据构建

Agentic Interpretation: Harness-Governed Evidence Construction for Software Agents

University of California, Davis(加州大学戴维斯分校);AWS AI Labs(亚马逊 AWS AI 实验室)

Yifeng He, Yanjun Wang, Siwei Cui, Aritra Sengupta, Murali Krishna Ramanathan

AI总结:

本研究提出Agentic Interpretation(AgInt)框架,通过管控式证据构建提升软件智能体的代码行为问答能力,在补丁接受、故障定位等任务上较现有方法实现了显著性能与效率提升。

摘要:

软件智能体可回答关于代码的行为问题,例如补丁是否通过测试或哪几行代码导致了故障。这些任务需要覆盖整个代码仓库的证据,但大多数框架会将中间结果以自由格式的轨迹存储,导致这些结果难以复用,且与最终答案的关联性易断裂。我们提出Agentic Interpretation(AgInt),一种用于管控式证据构建的框架。该模型生成带类型的记录,而确定性管控器会对这些记录进行接纳、评分与持久化存储,报告未解决的需求,并根据特定任务规则授权答案。生成的证书为模型提供持久的外部状态,并留下可审计的决策记录。形式上,仅追加的证书状态构成一个基于记录包含关系排序的基础格,其中每条被接纳的记录通过并集扩展状态。我们在SWE-bench-Live和DeepSWE上使用四种模型评估AgInt的补丁接受能力,在Defects4J和GitBug-Java上评估其故障定位能力。AgInt在所有报告的补丁接受指标上均优于纯智能体和Agentic Code Reasoning,且在故障定位中能将责任行排得更高,同时检查更少的无关行。对于GLM-5,在SWE-bench-Live上的拒绝类别F1从0.256提升至0.543,在Defects4J上的All@1从0.140提升至0.400,在GitBug-Java上的无效检查行从31.5降至11.7。匹配模板对照实验分离了该机制:持久框架驱动了大部分故障定位的提升,而证书主体和管控器则控制了补丁接受的校准。在获得执行授权的情况下,AgInt在475个空解引用候选中生成了293个可由管控器复现的见证,而匹配的shell智能体仅生成253个;在117个资源泄漏候选中生成了62个,而匹配的shell智能体仅生成58个。在报告的效率测量中,它减少了35%的执行次数,并将每个候选的成本降低了59%。

英文摘要:

Software agents answer behavioral questions about code, such as whether a patch passes tests or which lines caused a failure. These tasks require repository-wide evidence, yet most scaffolds leave intermediate findings in free-form trajectories, making them hard to reuse and easy to disconnect from final answers. We present Agentic Interpretation (AgInt), a framework for harness-governed evidence construction. The model proposes typed records, while a deterministic harness admits, grades, and persists them, reports unresolved requirements, and licenses answers under task-specific rules. The resulting certificate gives the model persistent external state and leaves an auditable decision record. Formally, append-only certificate states form a grounding lattice ordered by record inclusion, where each admitted record extends the state by union. We evaluate AgInt with four models on SWE-bench-Live and DeepSWE for patch acceptance and Defects4J and GitBug-Java for fault localization. AgInt outperforms the plain agent and Agentic Code Reasoning on all reported patch-acceptance metrics and ranks responsible lines higher while inspecting fewer irrelevant lines in fault localization. For GLM-5, reject-class F1 rises from 0.256 to 0.543 on SWE-bench-Live, All@1 rises from 0.140 to 0.400 on Defects4J, and wasted inspected lines fall from 31.5 to 11.7 on GitBug-Java. A matched-template control separates the mechanism: the persistent scaffold drives most fault-localization gains, while the certificate body and gate govern patch-acceptance calibration. With execution licensed, AgInt produces harness-reproduced witnesses for 293 of 475 null-dereference candidates versus 253 for a matched shell agent, and 62 of 117 resource-leak candidates versus 58. Across reported efficiency measurements, it uses 35% fewer executions and reduces cost per candidate by 59%.

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

↑