ConDefects:一个用于解决基于LLM的错误定位和程序修复中数据泄露问题的新数据集
ConDefects: A New Dataset to Address the Data Leakage Concern for LLM-based Fault Localization and Program Repair
AI总结:
针对LLM错误定位与程序修复中数据泄露问题,提出新数据集ConDefects,含2021-2023年AtCoder的Java/Python真实错误程序,并配对错误位置与修复版本,以支持更可靠的基准测试。
摘要:
随着对用于错误定位和程序修复的大型语言模型(LLMs)的兴趣日益增长,确保基于LLM的方法的完整性和泛化能力变得至关重要。这些任务现有的广泛采用的基准中的代码是在LLMs蓬勃发展之前编写的,可能包含在现有流行LLMs的训练数据中,从而面临数据泄露的威胁,导致产生误导性的乐观性能指标。为了解决这个问题,我们引入了“ConDefects”,这是一个精心策划的真实错误的新数据集,旨在消除这种重叠。ConDefects包含1,254个Java错误程序和1,625个Python错误程序。所有这些程序均来自在线竞赛平台AtCoder,产生于2021年10月至2023年9月之间。我们将每个错误与错误位置及相应的修复代码版本配对,使其专为错误定位和程序修复相关研究量身定制。我们还提供了基于不同时间窗口和编码任务难度选择子集的接口。虽然受基于LLM的任务启发,但ConDefects可用于对所有类型的错误定位和程序修复方法进行基准测试。该数据集是公开可用的,演示视频可在https://www.youtube.com/watch?v=22j15Hj5ONk找到。
英文摘要:
With the growing interest on Large Language Models (LLMs) for fault localization and program repair, ensuring the integrity and generalizability of the LLM-based methods becomes paramount. The code in existing widely-adopted benchmarks for these tasks was written before the the bloom of LLMs and may be included in the training data of existing popular LLMs, thereby suffering from the threat of data leakage, leading to misleadingly optimistic performance metrics. To address this issue, we introduce "ConDefects", a novel dataset of real faults meticulously curated to eliminate such overlap. ConDefects contains 1,254 Java faulty programs and 1,625 Python faulty programs. All these programs are sourced from the online competition platform AtCoder and were produced between October 2021 and September 2023. We pair each fault with fault locations and the corresponding repaired code versions, making it tailored for in fault localization and program repair related research. We also provide interfaces for selecting subsets based on different time windows and coding task difficulties. While inspired by LLM-based tasks, ConDefects can be adopted for benchmarking ALL types of fault localization and program repair methods. The dataset is publicly available, and a demo video can be found at https://www.youtube.com/watch?v=22j15Hj5ONk.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。