揭示修补过拟合检测技术的实用性缺陷
Unveiling Practical Shortcomings of Patch Overfitting Detection Techniques
AI总结:
研究发现简单随机选择在多数情况下优于现有修补过拟合检测技术,指出当前技术在实际应用中效果有限,需进一步改进。
摘要:
自动化程序修复(APR)可以减少开发人员调试所花费的时间,使他们能够专注于软件开发的其他方面。自动生成的bug修补通常通过软件测试进行验证。然而,这种方法可能导致修补过拟合,即生成的修补通过给定的测试但仍然是错误的。修补正确性评估(也称为过拟合检测)技术已被提出以识别过拟合的修补。然而,以往的工作通常在孤立的情况下评估这些技术的有效性,并在不反映由APR工具在典型使用中生成的正确到过拟合修补分布的数据集上进行;因此,我们仍然不知道它们在实际中的有效性。本工作提出了对几种修补过拟合检测(POD)方法在实际场景下的首次全面基准研究。为此,我们整理了反映现实假设(即由工具在相同实验条件下运行产生的修补)的数据集。接下来,我们使用这些数据将六种最先进的POD方法——涵盖静态分析、动态测试和基于学习的方法——与基于随机采样的两个基线(一个来自以往工作,一个是本文提出的)进行基准测试。我们的结果令人震惊:简单的随机选择在71%至96%的情况下优于所有POD工具。这表明两个主要结论:(1)当前POD工具提供有限的实用性,突显了需要新方法的必要性;(2)任何POD工具必须在现实数据上进行基准测试,并与随机采样进行比较以证明其实用性。为此,我们鼓励APR社区继续改进POD技术,并采用我们提出的方法进行实际基准测试;我们提供我们的数据和代码以促进这种采用。
英文摘要:
Automated Program Repair (APR) can reduce the time developers spend debugging, allowing them to focus on other aspects of software development. Automatically generated bug patches are typically validated through software testing. However, this method can lead to patch overfitting, i.e., generating patches that pass the given tests but are still incorrect. Patch correctness assessment (also known as overfitting detection) techniques have been proposed to identify patches that overfit. However, prior work often assessed the effectiveness of these techniques in isolation and on datasets that do not reflect the distribution of correct-to-overfitting patches that would be generated by APR tools in typical use; thus, we still do not know their effectiveness in practice. This work presents the first comprehensive benchmarking study of several patch overfitting detection (POD) methods in a practical scenario. To this end, we curate datasets that reflect realistic assumptions (i.e., patches produced by tools run under the same experimental conditions). Next, we use these data to benchmark six state-of-the-art POD approaches -- spanning static analysis, dynamic testing, and learning-based approaches -- against two baselines based on random sampling (one from prior work and one proposed herein). Our results are striking: Simple random selection outperforms all POD tools for 71% to 96% of cases, depending on the POD tool. This suggests two main takeaways: (1) current POD tools offer limited practical benefit, highlighting the need for novel techniques; (2) any POD tool must be benchmarked on realistic data and against random sampling to prove its practical effectiveness. To this end, we encourage the APR community to continue improving POD techniques and to adopt our proposed methodology for practical benchmarking; we make our data and code available to facilitate such adoption.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。