FixEval:基于执行的程序问题修复评估
FixEval: Execution-based Evaluation of Program Fixes for Programming Problems
摘要:
现代软件的复杂性导致了与检测和纠正软件错误相关的时间和成本的急剧增加。作为回应,研究人员探索了各种方法来自动生成错误代码的修复程序。然而,由于任何给定错误的可能修复的组合空间很大,很少有工具和数据集可用于有效评估模型生成的修复。为了解决这个问题,我们引入了FixEval,这是一个基准测试,它包含针对竞争性编程问题提交的错误代码及其相应的修复。FixEval提供了一个广泛的单元测试集合,用于评估模型生成的程序修复的正确性,并评估有关时间、内存限制和基于判决的接受度的进一步信息。我们将两个在程序设计语言上预训练的Transformer语言模型作为我们的基线,并使用基于匹配和基于执行的评估指标对它们进行比较。我们的实验表明,基于匹配的指标不反映模型生成的程序修复准确。同时,基于执行的方法通过为该解决方案明确设计的所有案例和场景来评估程序。因此,我们相信FixEval提供了迈向真实世界的自动错误修复和模型生成的代码评估的一步。数据集和模型在https://github.com/mahimanzum/FixEval上开源。
英文摘要:
The complexity of modern software has led to a drastic increase in the time and cost associated with detecting and rectifying software bugs. In response, researchers have explored various methods to automatically generate fixes for buggy code. However, due to the large combinatorial space of possible fixes for any given bug, few tools and datasets are available to evaluate model-generated fixes effectively. To address this issue, we introduce FixEval, a benchmark comprising of buggy code submissions to competitive programming problems and their corresponding fixes. FixEval offers an extensive collection of unit tests to evaluate the correctness of model-generated program fixes and assess further information regarding time, memory constraints, and acceptance based on a verdict. We consider two Transformer language models pretrained on programming languages as our baseline and compare them using match-based and execution-based evaluation metrics. Our experiments show that match-based metrics do not reflect model-generated program fixes accurately. At the same time, execution-based methods evaluate programs through all cases and scenarios designed explicitly for that solution. Therefore, we believe FixEval provides a step towards real-world automatic bug fixing and model-generated code evaluation. The dataset and models are open-sourced at https://github.com/mahimanzum/FixEval.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。