arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.04811cs.SEcs.CLcs.LG
收藏

量化语言模型代码生成能力评估中的数据污染

Quantifying Contamination in Evaluating Code Generation Capabilities of Language Models

Yale University(耶鲁大学)

Martin Riddell, Ansong Ni, Arman Cohan

AI总结:

本研究针对代码生成基准的数据污染问题,通过表层与语义匹配量化其与预训练语料的重叠,发现存在大量重叠且模型在见过相似方案的子集上表现更优,还分析了影响记忆与泛化的因素并发布结果文件。

摘要:

尽管大语言模型在各类代码生成基准上已取得出色表现,但人们日益担忧这些基准可能存在数据污染——即基准数据可能泄露到预训练与微调数据中。近期研究已探究自然语言生成与理解任务中的数据污染问题,但针对数据污染如何影响代码生成评估的广泛研究仍较匮乏,而这对理解大语言模型在编程场景下的鲁棒性与可靠性至关重要。本研究针对主流代码生成基准的数据污染问题展开全面分析,通过表层匹配与语义匹配两种方式,精准量化其与预训练语料库的重叠程度。实验结果显示,主流代码生成基准与公开训练语料库存在大量重叠;对于基准中训练期间见过相似解决方案的子集,模型的表现显著更优。我们还对影响模型记忆与泛化的因素进行了广泛分析,包括模型规模、问题难度与问题长度。我们已发布匹配流程产生的所有结果文件,供后续研究使用。

英文摘要:

While large language models have achieved remarkable performance on various code generation benchmarks, there have been growing concerns regarding potential contamination of these benchmarks as they may be leaked into pretraining and finetuning data. While recent work has investigated contamination in natural language generation and understanding tasks, there has been less extensive research into how data contamination impacts the evaluation of code generation, which is critical for understanding the robustness and reliability of LLMs in programming contexts. In this work, we perform a comprehensive study of data contamination of popular code generation benchmarks, and precisely quantify their overlap with pretraining corpus through both surface-level and semantic-level matching. In our experiments, we show that there are substantial overlap between popular code generation benchmarks and open training corpus, and models perform significantly better on the subset of the benchmarks where similar solutions are seen during training. We also conduct extensive analysis on the factors that affects model memorization and generalization, such as model size, problem difficulty, and question length. We release all resulting files from our matching pipeline for future research.

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

↑