Concerned with Data Contamination? Assessing Countermeasures in Code Language Model
Not on the map. Why?
Abstract (arXiv)
Various techniques have been proposed to leverage the capabilities of code language models (CLMs) for SE tasks. While these techniques typically evaluate their effectiveness using publicly available datasets, the evaluation can be subject to data contamination threats where the evaluation datasets have already been used to train the concerned CLMs. This can significantly affect the reliability of the evaluation. Different countermeasures have been suggested to mitigate the data contamination threat. Countermeasures include using more recent data, curating new data, and refactoring existing data are introduced, yet it is unclear whether these countermeasures could really mitigate data contamination threats to model evaluation. To fill the gap, we systematically study to quantify the impacts of these countermeasures on CLMs' performance. To facilitate the study, we collected over 2 million Python functions with timestamps ranging from January 1st, 2018, to December 31st, 2023. The data created before the models' cut-off date are considered "contaminated data", while the data where the countermeasures are taken are regarded as "cleansed data". We study the impact of these countermeasures by investigating the difference in CLMs' performance on contaminated and cleansed data derived from different countermeasures. Our experiments yield several interesting observations. For instance, CLMs do not necessarily perform worse on data after the models' cut-off date; on the contrary, they sometimes perform better. In addition, refactoring did not always result in decreased performance; it could lead to improvements instead. Furthermore, existing metrics such as perplexity cannot distinguish contaminated/cleansed data. We hope that the results and observations could help deepen the understanding of CLMs' capabilities and inform the community about data contamination.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). First posted on arXiv 25 Mar 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 9; 2025: 2; 2026: 3.
14 papers.
Sort:
By area:
- 2024Pretraining Data Detection for Large Language Models: A Divergence-based Calibration Methodcited by 55
- 2025A Survey on Data Contamination for Large Language Modelscited by 35
- 2024CRUXEval-X: A Benchmark for Multilingual Code Reasoning, Understanding and Executioncited by 31
- 2024Unleashing the Power of Data Tsunami: A Comprehensive Survey on Data Assessment and Selection for Instruction Tuning of Language Modelscited by 29
- 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptionscited by 26
- 2024A Comprehensive Survey of Contamination Detection Methods in Large Language Modelscited by 12
- 2024Are Large Language Models Memorizing Bug Benchmarks?cited by 12
- 2024A Taxonomy for Data Contamination in Large Language Modelscited by 11
- 2024JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Modelscited by 10
- 2024CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkitcited by 2
- 2026Can AI Agents Generate Microservices? How Far are We?cited by 1
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysiscited by 1
- 2026Pretraining Data Exposure in Large Language Models: A Survey of Membership Inference, Data Contamination, and Security Implications21 May 2026
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysis11 Apr 2026
- 2026Can AI Agents Generate Microservices? How Far are We?9 Mar 2026
- 2025Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligence3 Jun 2025
- 2025A Survey on Data Contamination for Large Language Models20 Feb 2025
- 2024Are Large Language Models Memorizing Bug Benchmarks?20 Nov 2024
- 2024CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkit16 Nov 2024
- 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptions24 Oct 2024
- 2024Pretraining Data Detection for Large Language Models: A Divergence-based Calibration Method23 Sep 2024
- 2024CRUXEval-X: A Benchmark for Multilingual Code Reasoning, Understanding and Execution23 Aug 2024
- 2024Unleashing the Power of Data Tsunami: A Comprehensive Survey on Data Assessment and Selection for Instruction Tuning of Language Models4 Aug 2024
- 2024A Taxonomy for Data Contamination in Large Language Models11 Jul 2024
- 2026Can AI Agents Generate Microservices? How Far are We?cited by 1
- 2026Can AI Agents Generate Microservices? How Far are We?9 Mar 2026
- 2024Pretraining Data Detection for Large Language Models: A Divergence-based Calibration Methodcited by 55
- 2025A Survey on Data Contamination for Large Language Modelscited by 35
- 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptionscited by 26
- 2024A Comprehensive Survey of Contamination Detection Methods in Large Language Modelscited by 12
- 2024Are Large Language Models Memorizing Bug Benchmarks?cited by 12
- 2024A Taxonomy for Data Contamination in Large Language Modelscited by 11
- 2024JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Modelscited by 10
- 2024CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkitcited by 2
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysiscited by 1
- 2025Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligencecited by 0
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysis11 Apr 2026
- 2025Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligence3 Jun 2025
- 2025A Survey on Data Contamination for Large Language Models20 Feb 2025
- 2024Are Large Language Models Memorizing Bug Benchmarks?20 Nov 2024
- 2024CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkit16 Nov 2024
- 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptions24 Oct 2024
- 2024Pretraining Data Detection for Large Language Models: A Divergence-based Calibration Method23 Sep 2024
- 2024A Taxonomy for Data Contamination in Large Language Models11 Jul 2024
- 2024JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Models10 Jun 2024
- 2024A Comprehensive Survey of Contamination Detection Methods in Large Language Models31 Mar 2024