mlsanityData to 14 Oct 2026

SrDetection: A Self-Referential Framework for Data Leakage Detection in Code Large Language Models

arXiv 2606.29815 ↗First posted 29 Jun 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Evaluating code large language models (Code LLMs) requires reliable detection of data leakage, where benchmark performance is artificially inflated by exposure to benchmark data during pre-training. Existing approaches either assume access to proprietary training corpora, rely on brittle heuristics such as timestamp filtering, or use external reference sets with manually tuned, non-generalizable thresholds. To address these limitations, we introduce SrDetection, a unified self-referential leakage detection framework for both gray-box (access to model logits) and black-box (access to model outputs) settings. SrDetection generates semantically equivalent variants of a benchmark sample and detects leakage by contrasting the model's behavior on the original versus its variants, flagging cases where the original is disproportionately easier for the model. We further design a controlled leakage detection testbed and evaluate SrDetection in this environment. Across different models and training stages, SrDetection improves average F1 by 21.52 points in the gray-box setting and 14.46 points in the black-box setting over strong baselines, demonstrating robust, threshold-independent leakage detection. Finally, a gray-box study of 15 widely used Code LLMs on four popular benchmarks reveals benchmark-specific leakage patterns beyond prior overlap-based analysesfootnotefootnotesize Source code and data are available at https://github.com/SMinL/SrDetectionCode

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 22 references that are in the map. First posted on arXiv 29 Jun 2026.

Builds on

17 of 22 references.

References · 17

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2021Program Synthesis with Large Language Modelscited by 3,637
  4. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
  5. 2020Extracting Training Data from Large Language Modelscited by 2,189
  6. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  7. 2021Measuring Coding Challenge Competence With APPScited by 902
  8. 2024A Survey on Large Language Models for Code Generationcited by 658
  9. 2019White-box vs Black-box: Bayes Optimal Strategies for Membership Inferencecited by 271
  10. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 216
  11. 2023Rethinking Benchmark and Contamination for Language Models with Rephrased Samplescited by 195
  12. 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 66
5 more
  1. 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 65
  2. 2024Pretraining Data Detection for Large Language Models: A Divergence-based Calibration Methodcited by 55
  3. 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 37
  4. 2024On Leakage of Code Generation Evaluation Datasetscited by 32
  5. 2025Automated Detection of Pre-training Text in Black-box LLMscited by 6

Built on by

Not cited yet.