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

解决率背后隐藏的内容:编码代理的轨迹结构诊断

What Resolve Rate Hides: Trajectory Structure Diagnostics for Coding Agents

Rui Shu, Chun Yong Chong, Xin Zhou, Yun Peng, Zihan Wu, Xu Han, Zeyang Zhuang, Guowen Yuan, Yuan Wang

AI总结:

研究编码代理解决率背后隐藏的轨迹结构问题,提出TraceProbe框架,将原始运行归一化并应用两个基于规则的模块,通过对2500个轨迹的实验,发现文件选择、函数选择等行为与结果的关系,以及反模式作用等,为结果添加诊断上下文。

摘要:

编码代理几乎完全根据解决率进行排名,即其最终补丁是否通过目标测试。但两个代理可能通过非常不同的过程达到相同结果,而单一的通过/失败标签无法说明运行失败的原因或已接受的运行为何花费额外步骤、时间或令牌。这个过程证据存在于轨迹中,原始轨迹是异构的且难以跨运行比较。我们提出了TraceProbe,一个轨迹诊断框架。它将每个原始运行归一化为具有确定性效果标签的标准九类动作分类法,然后应用两个基于规则的模块:Insight识别单轨迹反模式,Converge对齐成对运行并在受控参考下分类它们行为的差异之处。将TraceProbe应用于SWE-Bench Verified上五个生产设置的2500个轨迹,我们发现:文件选择过于粗略,无法区分成功与失败,而函数选择和完成行为可以定位;Insight反模式主要作为语料库级别的难度线索,搜索循环最稳定;即使是已解决的运行,在到达相关代码的速度以及产生的失败工作量方面也存在差异。轨迹结构通过定位检查目标、提出失败假设和对运行进行审查优先级,为结果添加了可审计的诊断上下文。

英文摘要:

Coding agents are ranked almost entirely by resolve rate: whether their final patch passes the target tests. Yet two agents can reach the same outcome through very different processes, and a single pass/fail label says nothing about why a run failed or why an accepted run spent extra steps, time, or tokens. This process evidence lives in the trajectory, which records a run's searches, reads, edits, tool calls, validation, and reversions. However, raw traces are heterogeneous and hard to compare across runs. We present TraceProbe, a trajectory-diagnostic framework that recovers what resolve rate hides. TraceProbe normalizes each raw run into a canonical nine-type action taxonomy with deterministic effect labels, then applies two rule-based modules: Insight names single-trajectory anti-patterns adapted from established debugging practice (e.g., search loops, verification skips), while Converge aligns pairs of runs and classifies where their behavior diverges under controlled references. Applying TraceProbe to 2,500 trajectories from five production settings on SWE-Bench Verified, we find that (i) file choice is too coarse to separate success from failure, whereas function selection and completion behavior localize it; (ii) Insight anti-patterns act mainly as corpus-level difficulty clues, with search loops the most stable; and (iii) even resolved runs differ in how quickly they reach relevant code and how much failed work they incur. Trajectory structure thus adds auditable diagnostic context to outcomes by localizing inspection targets, suggesting failure hypotheses, and prioritizing runs for review.

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

↑