Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligence
Not on the map. Why?
Abstract (arXiv)
In recent years, code intelligence has gained increasing importance in the field of automated software engineering. Meanwhile, the widespread adoption of Pretrained Language Models (PLMs) and Large Language Models (LLMs) has raised concerns regarding data contamination and its potential impact on model performance evaluation. Previous studies mainly focused on sample-level contamination, ignoring partial contamination scenarios that are pervasive in code intelligence. This paper fills this gap and presents a systematic empirical study to investigate the fine-grained data contamination on mainstream code tasks. Our study involves diverse representative PLMs: RoBERTa and GPT-2, and LLMs: LLaMA and StarCoder, covering three major tasks: code translation, code generation, and code summarization, across two Programming Languages (PLs): Java and Python. We categorize contamination scenarios into four types according to the code intelligence practice, namely input-only, output-only, unpaired, and paired contamination settings, and construct corresponding experimental and control groups for exploration. Experimental results show that, under the pre-training, fine-tuning, and inference paradigm adopted by PLMs, even deliberately injecting paired contamination does not lead to significant performance overestimation. But direct inference or small-scale fine-tuning uncovers the contamination effects. In contrast, LLMs with pre-training and inference paradigm are significantly affected by the paired contamination. Apart from the above, other contamination scenarios have no impact on both PLMs and LLMs. Our findings challenge the conventional belief that contamination inevitably leads to performance overestimation, providing new insights into the evaluation and deployment of code intelligence models.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 47 of its 77 references that are in the map. First posted on arXiv 3 Jun 2025.
Builds on
47 of 77 references.
References · 47
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
35 more
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2022Data Contamination: From Memorization to Exploitationcited by 236
- 2020IntelliCode Compose: Code Generation Using Transformercited by 227
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2023Investigating Data Contamination in Modern Benchmarks for Large Language Modelscited by 138
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 129
- 2024Generalization or Memorization: Data Contamination and Trustworthy Evaluation for Large Language Modelscited by 122
- 2018Mapping Language to Code in Programmatic Contextcited by 104
- 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
- 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 72
- 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 65
- 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 57
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2025Spurious Forgetting in Continual Learning of Language Modelscited by 51
- 2023Unveiling Memorization in Code Modelscited by 30
- 2023Traces of Memorisation in Large Language Models for Codecited by 29
- 2024Concerned with Data Contamination? Assessing Countermeasures in Code Language Modelcited by 14
- 2024Are Large Language Models Memorizing Bug Benchmarks?cited by 12
- 2024Decoding Secret Memorization in Code LLMs Through Token-Level Characterizationcited by 9
- 2024ClassEval-T: Evaluating Large Language Models in Class-Level Code Translationcited by 8
Built on by
Not cited yet.