arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.19399cs.SE
收藏

DePro:理解LLMs在调试竞赛编程代码中的作用

DePro: Understanding the Role of LLMs in Debugging Competitive Programming Code

Military Institute of Science And Technology(军事科学与技术学院);Missouri University of Science and Technology(密苏里科技大学);University of Maryland Baltimore County(马里兰大学巴尔的摩县分校)

Nabiha Parvez, Tanvin Sarkar Pallab, Mia Mohammad Imran, Tarannum Shaila Zaman

AI总结:

本文通过实证研究,提出DePro方法,利用测试用例驱动的方式帮助程序员修正现有代码,有效提升调试效率,实验表明其在减少调试次数和时间方面优于人类和零样本LLM。

摘要:

调试消耗了软件开发生命周期的大量时间,但大型语言模型(LLMs)在这一任务中的有效性尚不明确。竞赛编程提供了丰富的评估基准,因其多样的问题领域和严格的效率要求。我们对基于LLM的调试在竞赛编程问题上的实证研究,并引入DePro,一种以测试用例驱动的方法,通过修正现有代码而非生成新解决方案来协助程序员。DePro结合了暴力参考生成、压力测试和迭代LLM引导的细化,以高效地识别和解决错误。实验表明,DePro在13个故障用户提交上始终产生正确的解决方案,将调试次数减少高达64%,与人类程序员和零样本LLM调试相比,每个问题的平均调试时间减少7.6分钟。

英文摘要:

Debugging consumes a substantial portion of the software development lifecycle, yet the effectiveness of Large Language Models(LLMs) in this task is not well understood. Competitive programming offers a rich benchmark for such evaluation, given its diverse problem domains and strict efficiency requirements. We present an empirical study of LLM-based debugging on competitive programming problems and introduce DePro, a test-case driven approach that assists programmers by correcting existing code rather than generating new solutions. DePro combines brute-force reference generation, stress testing, and iterative LLM-guided refinement to identify and resolve errors efficiently.Experiments on 13 faulty user submissions from Codeforces demonstrate that DePro consistently produces correct solutions, reducing debugging attempts by up to 64% and debugging time by an average of 7.6 minutes per problem compared to human programmers and zero-shot LLM debugging.

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

↑