TL;DR
Statistical methods designed to detect LLM benchmark contamination fail significantly when deployed in realistic, "in-the-wild" scenarios. By systematically evaluating three leading detection paradigms across 25 models, researchers uncovered a severe reliability gap: out of 335 evaluations, the tools achieved only a 60% success rate. The findings reveal that statistical auditing cannot currently replace transparent data provenance.
What Problem Does This Paper Address?
As large language models (LLMs) scale, benchmark contamination—where evaluation data accidentally leaks into a model's training set—has become a major threat to valid performance assessment. If a model has already seen the test questions, its high score reflects memorization rather than true generalization.
While researchers have developed statistical tools to detect this leakage, these methods were almost exclusively validated in pristine, controlled academic settings (e.g., single-stage training on massive, homogeneous corpora). This paper investigates whether these tools actually work in the messy real world, where benchmarks are tiny compared to pre-training corpora (scale constraints) and models undergo complex, multi-stage instruction tuning (introducing distribution shifts).
Methods
The authors stress-tested three state-of-the-art contamination detection paradigms:
- LLM Dataset Inference (LLM DI): This method aggregates weak membership inference attack (MIA) signals (like loss or perplexity) across a dataset and compares them against a known, unseen validation set using a statistical t-test.
- Post-Hoc Dataset Inference (Post-Hoc DI): To bypass the need for a natural, unseen validation set, this approach trains a small generator model to create a synthetic validation set that matches the surface-level distribution of the suspect data.
- CoDeC (Contamination Detection via Context): A training-free approach that measures how adding in-context examples affects next-token likelihood. If adding context reduces model confidence, it suggests the model has already memorized the target distribution.
Datasets
The study evaluated these methods across an expansive suite of 25 models up to 27B parameters, including:
- Open Suites: Pythia and OLMo 2.
- Specialized Models: PLLuM (Polish-language LLMs) and various medical LLMs (MedGemma, Meditron3, Meerkat, Neeto-1.0).
- Frontier Industry Models: Google’s Gemma 3, Alibaba’s Qwen 3, and Meta’s Llama 3.2.
The evaluation covered standard benchmarks (GSM8K, MATH, DROP, MMLU), subsets of The Pile (Common Crawl, Europarl, Hacker News, Stack Exchange), medical QA datasets (MedQA-USMLE, MedMCQA), and custom Polish SFT/Alignment datasets.
Key Insights and Ideas
- The IID Assumption is a Critical Vulnerability: LLM Dataset Inference assumes that the train and test splits of a benchmark are independent and identically distributed (IID). In reality, they often differ in difficulty, style, or formatting. LLM DI mistakes these natural distribution shifts for training exposure, leading to frequent false positives.
- Data Scarcity Kills Generative Calibration: Post-Hoc DI relies on training a generator to produce high-quality synthetic data. At standard benchmark scale (around 2,000 samples), the generator is too weak. The resulting synthetic text is easily distinguishable from real text by a simple text classifier, completely drowning out the subtle membership signals.
- CoDeC is a Compass, Not a Scale: CoDeC successfully captures broad dataset provenance (separating pre-training data from evaluation-only benchmarks), but it lacks the granularity required for split-level auditing. It scores train and test splits from the same dataset nearly identically, making it ineffective for verifying if a specific split leaked.
Key Results
Across all 335 evaluations, the methods frequently faltered, highlighting a systematic reliability gap.
- Task 1 (Limited Data Scarcity): When restricted to benchmark-sized slices (n=2,000) of The Pile, Post-Hoc DI failed to reject the null hypothesis of non-membership for nearly every train split, proving underpowered at this scale.

- Task 2 (Split-Level Auditing): On instruction-tuned OLMo 2 models, LLM DI produced false positives on entirely unseen benchmarks like DROP and MMLU due to distribution shifts.
- Task 4 (Industry Models): When applied comparatively to closed frontier models, the methods successfully highlighted family-level differences. Notably, Google's Gemma-3 series consistently showed lower CoDeC scores and was the only family not flagged by LLM DI on GSM8K, strongly suggesting it was clean of GSM8K train contamination.
Limitations and Future Work
The authors note that their evaluations relied on a shared interface with default hyperparameters rather than exhaustive per-task tuning, which might leave room for optimization. Additionally, the study did not cover free-form generation benchmarks, non-text modalities, or languages beyond English and Polish.
The paper concludes that there is currently no "silver bullet" for statistical contamination detection. Future work must focus on developing auditing tools that are explicitly robust to both small data scales and real-world distribution shifts.
Summary updated