SECLLGMar 6, 2024

Quantifying Contamination in Evaluating Code Generation Capabilities of Language Models

arXiv:2403.04811v165 citationsh-index: 4Has CodeACL
Originality Incremental advance
AI Analysis

This addresses the reliability of code generation benchmarks for researchers and developers, but it is incremental as it extends contamination analysis from natural language to code tasks.

The study tackled the problem of data contamination in evaluating code generation capabilities of language models by quantifying overlap between benchmarks and training data, finding substantial overlap and significantly better model performance on contaminated subsets.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes