Correcting test set contamination by spiking the training data
stat.ME, cs.CL, cs.LG
Submitted: 2026-05-24
Updated: 2026-08-29
Code: https://github.com/Jeli04/spiking-tsc
License: http://creativecommons.org/licenses/by/4.0/
The gist: The literature on test set contamination largely focuses on detection, but the correction of contaminated test scores is underexplored.
Terminology
Abstract
The literature on test set contamination largely focuses on detection, but the correction of contaminated test scores is underexplored. Our core proposal is to spike the training data by intentionally contaminating some test examples at known rates. The spiked examples can then be used to calibrate predictors of model memorization which enable principled statistical correction of inflated test scores. To evaluate different correction estimators, we first present a simulation framework based on the Hubble models. Hubble models come in minimal pairs, where the perturbed model was deliberately contaminated with several test sets, while the standard model was not, serving as the counterfactual and correction target. We consider estimators that use information from a memorization predictor, correctness predictor, or both. In simulation, we establish basic statistical intuitions and show that estimators leveraging memorization and correctness information are better than naive estimation which makes no correction at all. We then instantiate several memorization and correctness predictors, and find that simple predictors such as Platt-scaled membership inference metrics provide good signal for correction. Finally, we examine the practical considerations of spiking. Simple memorization predictors need no more than 10 examples for calibration and often transfer from one dataset to another. Taken together, spiking is a promising solution for test set contamination.
Sources
- Apertus: Democratizing Open and Compliant LLMs for Global Language Environments
- The Llama 3 Herd of Models
- A Tutorial on Doubly Robust Learning for Causal Inference
- Investigating Data Contamination for Pre-training Language Models
- RoBERTa: A Robustly Optimized BERT Pretraining Approach
- Quantifying the Effect of Test Set Contamination on Generative Evaluations
- Evaluation data contamination in LLMs: how do we measure it and (when) does it matter?
- Qwen3 Technical Report
- Rethinking Benchmark and Contamination for Language Models with Rephrased Samples
Related papers
- Doubly robust inference via calibration
- Bayesian Empirical Bayes: Simultaneous Inference from Probabilistic Symmetries
- Flexible Nonparametric Inference for Causal Effects under the Front-Door Model
- Deployment of AI-Assisted Interventions: Capacity Constraints and Noisy Compliance
- A Survey on Archetypal Analysis
- Dynamic Spatial Bayesian Machine Learning Model: Applications to Intergenerational Economic Mobility and Geographic Income Inequality in the United States