Coffee:通过反馈修复错误来提升代码大语言模型
Coffee: Boost Your Code LLMs by Fixing Bugs with Feedback
AI总结:
本文提出 Coffee 数据集和 CoffeePots 框架,通过偏好优化调优与选择为开源代码大语言模型生成高质量修复反馈,在 HumanEvalFix 上取得最优性能。
摘要:
代码编辑是实现可靠程序合成的关键步骤,用于自动纠正代码大语言模型生成的关键错误。近期研究表明,闭源大语言模型(即 ChatGPT 和 GPT-4)能够生成纠正性反馈来编辑错误输入。然而,开源代码大语言模型在生成用于代码编辑的反馈方面仍面临挑战,因为这些模型倾向于遵循反馈的表面格式,并提供具有误导性信息的反馈。因此,本工作的重点是利用开源代码大语言模型生成具有正确指导作用的有用反馈以进行代码编辑。为此,我们提出了 Coffee,一个专门为带反馈的代码修复而收集的数据集。利用该数据集,我们构建了 CoffeePots,一个通过偏好优化调优与选择实现带反馈代码修复的框架。所提出的框架旨在自动生成用于代码编辑的有用反馈,同时最大限度地降低表面化反馈的潜在风险。Coffee 与 CoffeePots 的结合标志着一项重大进展,在 HumanEvalFix 基准上取得了最先进的性能。代码和模型检查点已在 https://github.com/Lune-Blue/COFFEE 公开。
英文摘要:
Code editing is an essential step towards reliable program synthesis to automatically correct critical errors generated from code LLMs. Recent studies have demonstrated that closed-source LLMs (i.e., ChatGPT and GPT-4) are capable of generating corrective feedback to edit erroneous inputs. However, it remains challenging for open-source code LLMs to generate feedback for code editing, since these models tend to adhere to the superficial formats of feedback and provide feedback with misleading information. Hence, the focus of our work is to leverage open-source code LLMs to generate helpful feedback with correct guidance for code editing. To this end, we present Coffee, a collected dataset specifically designed for code fixing with feedback. Using this dataset, we construct CoffeePots, a framework for COde Fixing with FEEdback via Preference-Optimized Tuning and Selection. The proposed framework aims to automatically generate helpful feedback for code editing while minimizing the potential risk of superficial feedback. The combination of Coffee and CoffeePots marks a significant advancement, achieving state-of-the-art performance on HumanEvalFix benchmark. Codes and model checkpoints are publicly available at https://github.com/Lune-Blue/COFFEE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。