mlsanityData to 14 Oct 2026

Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligence

arXiv 2506.02791 ↗First posted 3 Jun 2025cs.SE cs.AIcited by 0

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  7. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  8. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  9. 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
  10. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  11. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  12. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
35 more
  1. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  2. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  3. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  4. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  5. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  6. 2024A Survey on Large Language Models for Code Generationcited by 658
  7. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  8. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  9. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
  10. 2021Unified Pre-training for Program Understanding and Generationcited by 366
  11. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
  12. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
  13. 2022Efficient Training of Language Models to Fill in the Middlecited by 255
  14. 2018code2vec: Learning Distributed Representations of Codecited by 250
  15. 2022Data Contamination: From Memorization to Exploitationcited by 236
  16. 2020IntelliCode Compose: Code Generation Using Transformercited by 227
  17. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
  18. 2023Investigating Data Contamination in Modern Benchmarks for Large Language Modelscited by 138
  19. 2022Few-shot training LLMs for project-specific code-summarizationcited by 129
  20. 2024Generalization or Memorization: Data Contamination and Trustworthy Evaluation for Large Language Modelscited by 122
  21. 2018Mapping Language to Code in Programmatic Contextcited by 104
  22. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
  23. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 72
  24. 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 65
  25. 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
  26. 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
  27. 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 57
  28. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  29. 2025Spurious Forgetting in Continual Learning of Language Modelscited by 51
  30. 2023Unveiling Memorization in Code Modelscited by 30
  31. 2023Traces of Memorisation in Large Language Models for Codecited by 29
  32. 2024Concerned with Data Contamination? Assessing Countermeasures in Code Language Modelcited by 14
  33. 2024Are Large Language Models Memorizing Bug Benchmarks?cited by 12
  34. 2024Decoding Secret Memorization in Code LLMs Through Token-Level Characterizationcited by 9
  35. 2024ClassEval-T: Evaluating Large Language Models in Class-Level Code Translationcited by 8

Built on by

Not cited yet.