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

精确调试基准:你的模型是在调试还是重生成?

Precise Debugging Benchmark: Is Your Model Debugging or Regenerating?

University of Southern California(南加州大学);Microsoft(微软);University of Wisconsin–Madison(威斯康星大学麦迪逊分校);University of Toronto(多伦多大学)

Miaosen Chai, Wang Bill Zhu, Shangshang Wang, Yejia Liu, Song Bian, Honghua Dong, Willie Neiswanger, Robin Jia

AI总结:

本文提出PDB基准,评估LLM调试能力,发现前沿模型调试精度低,即使受指令引导也难以达到高精度。

摘要:

与代码补全不同,调试需定位故障并应用针对性修改。我们发现前沿LLM在调试时常生成正确但过度修改的解决方案。为评估LLM离精确调试的距离,我们引入精确调试基准(PDB)框架,可将任意编码数据集转换为调试基准并进行精度感知评估。PDB通过合成已验证的原子故障并组合成多故障程序生成bug程序。我们定义了两个新指标:编辑级精度和故障级召回率,分别衡量必要修改的数量和解决的故障数量。我们发布了两个评估基准:PDB-Single-Hard(单行bug)和PDB-Multi(多行bug)。实验显示,前沿模型如GPT-5.1-Codex和DeepSeek-V3.2-Thinking在单元测试通过率超过76%的情况下,精度仍低于45%,即使被明确指示进行最小化调试。最后,我们表明迭代和代理调试策略对精度和召回率无显著提升,凸显了重新思考编码模型训练后流程的必要性。

英文摘要:

Unlike code completion, debugging requires localizing faults and applying targeted edits. We observe that frontier LLMs often regenerate correct but over-edited solutions during debugging. To evaluate how far LLMs are from precise debugging, we introduce the Precise Debugging Benchmark (PDB) framework, which automatically converts any coding dataset into a debugging benchmark with precision-aware evaluation. PDB generates buggy programs by synthesizing verified atomic bugs and composing them into multi-bug programs. We define two novel metrics, edit-level precision and bug-level recall, which measure how many necessary edits are made and how many bugs are resolved. We release two evaluation benchmarks: PDB-Single-Hard on single-line bugs, and PDB-Multi on multi-line bugs. Experiments show that frontier models, such as GPT-5.1-Codex and DeepSeek-V3.2-Thinking, achieve unit-test pass rates above 76% but exhibit precision below 45%, even when explicitly instructed to perform minimal debugging. Finally, we show that iterative and agentic debugging strategies do not substantially improve precision or recall, highlighting the need to rethink post-training pipelines for coding models.

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

↑