BenchChecker:评估大语言模型漏洞修复基准的可信度
BenchChecker: Assessing the Credibility of Bug-Fixing Benchmarks for LLMs
AI总结:
提出BenchChecker框架检测大语言模型漏洞修复基准的数据污染,经实验验证可实现稳健检测,过滤污染样本能显著降低LLMs的报告解决率。
摘要:
尽管大语言模型(LLMs)在自动程序修复(APR)方面展现出潜力,但现有基准存在数据污染问题,即测试样本出现在训练集中,人为提升了性能。为解决这一问题,我们提出BenchChecker,一个兼容开源和闭源模型的框架,通过检测此类污染支持更可信的评估。基于“持久补丁可能保留在训练所用的近期仓库快照中”的观察,BenchChecker采用基于取证的两阶段检测过程,仅使用文本模型输出和公共仓库历史。第一阶段进行仓库存在测试,通过用代码前缀探测模型以推断训练包含情况;第二阶段进行补丁存在测试,通过相似度对齐和测试套件验证以验证补丁持久性。使用在The Stack v2上训练的StarCoder-15B、StarCoder2-15B和CodeGen2-16B进行的评估表明,BenchChecker在六个基准上实现了约0.9的AUC分数的稳健检测。此外,将BenchChecker应用于SWE-bench Verified和Multi-SWE-bench发现,过滤污染样本使大多数LLMs在中等难度任务上的报告解决率较原始率降低了20%以上。
英文摘要:
While Large Language Models (LLMs) show promise for Automatic Program Repair (APR), existing benchmarks suffer from data contamination, in which test samples appear in training sets, artificially inflating performance. To address this, we propose BenchChecker, a framework compatible with both open-source and closed-source models that supports more credible evaluation by detecting such contamination. Grounded in the observation that persistent patches likely remain in recent repository snapshots used for training, BenchChecker employs a forensics-based two-stage detection process using only textual model outputs together with public repository history. The first stage conducts a repository presence test by probing the model with code prefixes to infer training inclusion; the second stage performs a patch presence test to verify patch persistence via similarity alignment and test-suite verification. Evaluations using StarCoder-15B, StarCoder2-15B, and CodeGen2-16B trained on The Stack v2 demonstrate that BenchChecker achieves robust detection with AUC scores around 0.9 across six benchmarks. Furthermore, applying BenchChecker to SWE-bench Verified and Multi-SWE-bench reveals that filtering contaminated samples reduces the reported resolution rates of most LLMs by more than 20% relative to the original rates on medium-difficulty tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。