arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.06215cs.SEcs.AIcs.CL
收藏

LessLeak-Bench:首次针对83个软件工程基准中LLM数据泄露的调查

LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks

Singapore Management University(新加坡管理大学);Southeast University(东南大学);Wuhan University(武汉大学)

Xin Zhou, Martin Weyssow, Ratnadira Widyasari, Ting Zhang, Junda He, Yunbo Lyu, Jianming Chang, Beiqi Zhang, Dan Huang, David Lo

AI总结:

针对软件工程基准中LLM数据泄露缺乏全面研究的问题,本文首次分析83个SE基准,发现总体泄露率低但部分基准泄露严重,揭示关键原因并提出移除泄露样本的LessLeak-Bench,提升评估可靠性。

摘要:

大型语言模型(LLMs)被广泛应用于代码生成、自动化程序修复等软件工程(SE)任务。然而,它们依赖大规模且常未公开的预训练数据集,引发了数据泄露的重大担忧——评估基准数据在模型构建阶段被LLMs无意“见过”。数据泄露问题会严重削弱基于LLM的研究和评估的有效性。尽管SE社区对LLMs的使用日益增加,但目前尚无全面研究评估SE基准中LLM数据泄露的程度。为填补这一空白,本文首次对83个SE基准中LLM相关的数据泄露进行大规模分析。结果显示,SE基准的数据泄露总体较少:Python、Java、C/C++基准的平均泄露率分别仅为4.8%、2.8%和0.7%。但部分基准泄露率较高,引发评估偏倚担忧,例如QuixBugs和BigCloneBench的泄露率分别为100.0%和55.7%。此外,我们观察到数据泄露对LLM评估有显著影响,并识别出高泄露的关键原因,如预训练数据集直接包含基准数据、使用LeetCode等编码平台构建基准。为解决数据泄露问题,我们引入LessLeak-Bench——一个从83个SE基准中移除泄露样本的新基准,为未来研究提供更可靠的LLM评估。本研究加深了对SE基准数据泄露的理解,为SE领域涉及LLM的未来研究提供了宝贵见解。

英文摘要:

Large Language Models (LLMs) are widely utilized in software engineering (SE) tasks, such as code generation and automated program repair. However, their reliance on extensive and often undisclosed pre-training datasets raises significant concerns about data leakage, where the evaluation benchmark data is unintentionally ``seen'' by LLMs during the model's construction phase. The data leakage issue could largely undermine the validity of LLM-based research and evaluations. Despite the increasing use of LLMs in the SE community, there is no comprehensive study that assesses the extent of data leakage in SE benchmarks for LLMs yet. To address this gap, this paper presents the first large-scale analysis of data leakage in 83 SE benchmarks concerning LLMs. Our results show that in general, data leakage in SE benchmarks is minimal, with average leakage ratios of only 4.8\%, 2.8\%, and 0.7\% for Python, Java, and C/C++ benchmarks, respectively. However, some benchmarks exhibit relatively higher leakage ratios, which raises concerns about their bias in evaluation. For instance, QuixBugs and BigCloneBench have leakage ratios of 100.0\% and 55.7\%, respectively. Furthermore, we observe that data leakage has a substantial impact on LLM evaluation. We also identify key causes of high data leakage, such as the direct inclusion of benchmark data in pre-training datasets and the use of coding platforms like LeetCode for benchmark construction. To address the data leakage, we introduce \textbf{LessLeak-Bench}, a new benchmark that removes leaked samples from the 83 SE benchmarks, enabling more reliable LLM evaluations in future research. Our study enhances the understanding of data leakage in SE benchmarks and provides valuable insights for future research involving LLMs in SE.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑