TRACER: A Semantic-Aware Framework for Fine-Grained Contamination Detection in Code LLMs
Not on the map. Why?
Abstract (arXiv)
Data contamination is a known threat to the reliability of model evaluation. However, it remains underexplored in code large language models (LLMs), where contamination often goes beyond exact duplication. We present TRACER, a semantic-aware framework for fine-grained code contamination detection. TRACER models contamination using three levels of semantic overlap - Functionally Identical, Nearly Identical, and Shared Logic - and detects them through a coarse-to-fine pipeline. We also introduce the first benchmark for fine-grained code contamination detection, spanning three widely used benchmarks and three representative post-training datasets. TRACER achieves strong and consistent performance across multiple LLM backbones, with GPT-5 reaching an F1 score of 0.91 in fine-grained detection. In the binary setting, TRACER attains an F1 of 0.92, outperforming existing methods by 42%-217%. We further conduct ablation studies and error analysis to assess the contributions of individual components in TRACER.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 35 of its 50 references that are in the map. First posted on arXiv 22 May 2026.
Builds on
35 of 50 references.
References · 35
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2023Textbooks Are All You Needcited by 561
- 2023Detecting Pretraining Data from Large Language Modelscited by 375
- 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
- 2024Leak, Cheat, Repeat: Data Contamination and Evaluation Malpractices in Closed-Source LLMscited by 224
23 more
- 2023Rethinking Benchmark and Contamination for Language Models with Rephrased Samplescited by 192
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 188
- 2023Platypus: Quick, Cheap, and Powerful Refinement of LLMscited by 150
- 2023Stop Uploading Test Data in Plain Text: Practical Strategies for Mitigating Data Contamination by Evaluation Benchmarkscited by 139
- 2024Benchmark Data Contamination of Large Language Models: A Surveycited by 138
- 2024jina-embeddings-v3: Multilingual Embeddings With Task LoRAcited by 138
- 2023Investigating Data Contamination in Modern Benchmarks for Large Language Modelscited by 136
- 2024Generalization or Memorization: Data Contamination and Trustworthy Evaluation for Large Language Modelscited by 119
- 2024Min-K%++: Improved Baseline for Detecting Pre-Training Data from Large Language Modelscited by 102
- 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 62
- 2023LatestEval: Addressing Data Contamination in Language Model Evaluation through Dynamic and Time-Sensitive Test Constructioncited by 57
- 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
- 2019Paraphrasing with Large Language Modelscited by 35
- 2025A Survey on Data Contamination for Large Language Modelscited by 33
- 2023The ROOTS Search Tool: Data Transparency for LLMscited by 30
- 2024Evading Data Contamination Detection for Language Models is (too) Easycited by 30
- 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptionscited by 26
- 2024TRUCE: Private Benchmarking to Prevent Contamination and Improve Comparative Evaluation of LLMscited by 24
- 2023LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuningcited by 15
- 2023A systematic literature review on source code similarity measurement and clone detection: techniques, applications, and challengescited by 14
- 2023CLEVA: Chinese Language Models EVAluation Platformcited by 13
- 2024A Comprehensive Survey of Contamination Detection Methods in Large Language Modelscited by 12
- 2024CAP: Data Contamination Detection via Consistency Amplificationcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.