arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.21514cs.SEcs.AI
收藏

毒谷:诊断大语言模型代码修复中依赖路径的故障

Poison Valleys: Diagnosing Path-Dependent Failure in LLM Code Repair

Veljko Skarich

AI总结:

该研究提出Poison Valleys方法,通过在两个合成Python案例的1844次模型请求中追踪路径,诊断LLM代码修复中依赖路径的故障,发现误解位置对故障的影响及不同误解的模式。

摘要:

当代码修复智能体失败时,最终测试会显示补丁错误,但无法确定是哪个更早的提交导致了错误,或是哪个软件义务未履行。Poison Valleys(毒谷)在两个合成Python案例的1844次模型请求中追踪了这一过程:PersistQueue为磁盘支持的队列添加了原子批量声明,Dijkstra为最短路径搜索添加了源敏感过滤。我们定义了看似合理但不正确的软件机制,将其置于模型的假设、实现计划或两者中,并通过Oracle(预言机)和针对性诊断坐标评估生成的代码。在匹配实验组合后,将误解从假设转移到计划中,使PersistQueue的故障增加了32.2%,Dijkstra的故障增加了28.9%。不同的误解产生了不同的、依赖模型的违反义务模式,尽管有几种可能收敛到相同行为。这建立了从上游误解到代码机制和故障形式的可测量联系。代码、数据和演示:this https URL。

英文摘要:

When code-repair agents fail, final tests reveal that a patch is wrong but not which earlier commitment caused it or which software obligation failed. Poison Valleys traces this path in 1,844 model requests on two synthetic Python cases: PersistQueue adds atomic batch claiming to a disk-backed queue, while Dijkstra adds source-sensitive filtering to shortest-path search. We define plausible but incorrect software mechanisms, place each in a model's hypothesis, implementation plan, or both, and evaluate the generated code with an Oracle and targeted diagnostic coordinates. Moving the misconception from hypothesis to plan increased failure by 32.2% in PersistQueue and 28.9% in Dijkstra after matching the experimental mix. Different misconceptions produced distinct, model-dependent patterns of violated obligations, although several could converge on the same behavior. This creates a measured connection from upstream misconception to code mechanism and failure form. Code, data, and demo: https://poisonvalleys.org.

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

↑