Research map / Large language models / Agents, code and math
Quantifying Contamination in Evaluating Code Generation Capabilities of Language Models
Martin Riddell, Ansong Ni, Arman Cohan
Yale University
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
4improved
3no clear effect
4hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| remove MBPP questions whose solutions are similar (Top-1 score>80) to training data (ablation) | StarCoderBase-15.5B · MBPP | accuracy: 41.6 -> 29.7 (-28.6%) | Hurt |
| remove HumanEval questions with Top-1 score = 100 from evaluation (ablation) | Pythia-12B · HumanEval | accuracy: 9.8 -> 4.2 (-57.1%) | Hurt |
| evaluate on top 10% vs bottom 10% most similar solutions in training data | StarCoderBase-15.5B · MBPP | accuracy: 22.0 -> 72.0 | Improved |
| evaluate on top 10% vs bottom 10% most similar solutions in training data | CodeGen-NL-16B · HumanEval | accuracy: 0.0 -> 62.5 | Improved |
| de-contaminate benchmarks (removal of similar-solution questions) | gap between StarCoderBase-15.5B and Pythia-12B · MBPP | accuracy gap: 23.8% -> 13.9% | Hurt |
| de-contaminate benchmarks (removal of similar-solution questions) | model rankings · MBPP and HumanEval | model ranking | No clear effect |
| increase model size within a family (ablation) | StarCoderBase, Pythia, CodeGen-NL · MBPP/HumanEval subsets by similarity | accuracy | Improved |
| evaluate on questions seen in The Stack (vs unseen) | StarCoderBase-15.5B · MBPP | accuracy: 33.8 -> 71.2 | Improved |
| evaluate on questions seen in The Stack (vs unseen), not-trained-on model | CodeGen-NL-16B · MBPP | accuracy: 21.7 -> 11.5 | Hurt |
| vary gold program length (ablation) | StarCoderBase-15.5B · MBPP | similarity score / accuracy | No clear effect |
| questions seen 10+ times in training data | StarCoderBase · MBPP/HumanEval case study | correctness | No clear effect |
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.91)
- DyCodeEval: Dynamic Benchmarking of Reasoning Capabilities in Code Large Language Models Under Data Contamination (ICML 2025 · similarity 0.91)
- LLM-Assisted Code Cleaning For Training Accurate Code Generators (ICLR 2024 · similarity 0.90)
- Time Travel in LLMs: Tracing Data Contamination in Large Language Models (ICLR 2024 · similarity 0.90)
- Overestimation in LLM Evaluation: A Controlled Large-Scale Study on Data Contamination’s Impact on Machine Translation (ICML 2025 · similarity 0.90)
- ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding (ICLR 2025 · similarity 0.90)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.