DOCE:寻找基于执行的代码生成的最佳平衡点
DOCE: Finding the Sweet Spot for Execution-Based Code Generation
AI总结:
提出DOCE综合框架,整合候选生成、重排序、MBR解码和自我调试等组件,通过基于执行的评估揭示各方法贡献,并在多候选自我调试中取得最先进重排序性能。
摘要:
近期,一系列多样化的解码和重排序方法已被证明对基于LLM的代码生成有效。然而,目前仍缺乏一个能够将这些方法联系起来并进行实验比较的综合框架。为此,我们提出了Decoding Objectives for Code Execution,这是一个综合框架,包含候选生成、$n$-best重排序、最小贝叶斯风险(MBR)解码和自我调试作为核心组件。随后,我们通过基于执行的评估指标研究了这些组件的贡献。我们的发现突出了基于执行的方法的重要性,以及基于执行与免执行方法之间的差异。此外,我们评估了基于试验单元测试进行过滤的影响,这是一种在以往工作中常被忽视的简单有效策略。我们还提出了在多个候选上进行自我调试,在代码生成的重排序上取得了最先进的性能。我们期望我们的框架能为未来的代码生成研究提供可靠的指导方针。
英文摘要:
Recently, a diverse set of decoding and reranking procedures have been shown effective for LLM-based code generation. However, a comprehensive framework that links and experimentally compares these methods is missing. We address this by proposing Decoding Objectives for Code Execution, a comprehensive framework that includes candidate generation, $n$-best reranking, minimum Bayes risk (MBR) decoding, and self-debugging as the core components. We then study the contributions of these components through execution-based evaluation metrics. Our findings highlight the importance of execution-based methods and the difference gap between execution-based and execution-free methods. Furthermore, we assess the impact of filtering based on trial unit tests, a simple and effective strategy that has been often overlooked in prior works. We also propose self-debugging on multiple candidates, obtaining state-of-the-art performance on reranking for code generation. We expect our framework to provide a solid guideline for future research on code generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。