TL;DR
Evaluating Large Language Models (LLMs) fairly is nearly impossible when test questions accidentally leak into their massive training datasets. While we have statistical tools to filter out memorized test items for a single model, comparing multiple models head-to-head requires a single, shared, clean test set—and naive ways of combining clean lists break statistical guarantees. This paper introduces JECS, a clever statistical procedure that builds one shared, provably clean benchmark across a whole crowd of models without throwing away all your good test questions in the process.
What Problem Does This Paper Address?
Imagine giving a standardized test to 16 students, only to find out each student accidentally saw a different subset of the exam questions last night. That is benchmark data contamination in LLM evaluation: internet-scale pretraining corpora inevitably swallow up evaluation benchmarks, inflating scores and ruining model comparisons.
Researchers usually try to spot memorized examples using detection scores (like Perplexity or Min-K%), which measure how "unsurprised" a model is by a piece of text. Recently, researchers paired these scores with conformal inference—a framework that turns raw, arbitrary scores into calibrated, trustworthy probabilities ($p$-values)—to filter out contaminated items for a single model with mathematical error guarantees.
Here’s the catch: if you run that filter separately on $K$ different models, you get $K$ different clean benchmarks. To compare models fairly, you need one shared benchmark made of jointly pure items (items none of the models trained on), while keeping the Global Contamination Rate (GCR)—the expected fraction of leaked items that sneak into your final test set—below a strict budget $\alpha$ (say, 10%). Surprisingly, just taking the union or intersection of each model's "clean" list completely breaks that error guarantee.
Methods
The authors build up to their method, Joint Envelope Conformal Selection (JECS), in two intuitive steps:
- Standard Calibration + A New Baseline (JMCS): Using a small calibration set of known shared training examples, they convert any standard memorization score into a conformal $p$-value for each model, where a tiny $p$-value means "almost certainly unseen." For each candidate test item, they take the maximum $p$-value ($p^*$) across all $K$ models—because an item is only jointly pure if every model finds it unfamiliar. Feeding $p^*$ into the classic Benjamini–Hochberg (BH) multiple-testing filter gives a valid baseline (JMCS), but it suffers from a brutal "super-uniformity tax." The maximum of $K$ uniform variables piles up heavily near $1.0$, making small values vanishingly rare and causing BH to reject almost nothing.
- The Novel Fix (JECS): To win back lost statistical power, JECS estimates the true shape of that skewed $p^*$ distribution. Because truly pure items cluster near $0$, the right tail (above a data-driven threshold $\lambda$) is dominated by contaminated items. JECS fits the empirical curve in that right tail and connects it linearly back to zero, creating a conservative upper-bound "envelope" ($\widehat{F}_{\text{fit}}$) of the null cumulative distribution. Mapping $p^*$ through this envelope rescales the squished values back toward uniformity, after which an adaptive Storey–BH step selects the final shared benchmark with asymptotic GCR control.
Datasets
No new text datasets are introduced; instead, the authors create controlled multi-model contamination setups (fine-tuning models on overlapping data splits so ground-truth membership is known) using established training-data-detection benchmarks:
- Synthetic data (for testing naive composition failures).
- WikiMIA and ArXivTection (main real-world LLM evaluations).
- Five MIMIR subsets (HackerNews, DMMath, GitHub, Pile-CC, PubMed) in appendix evaluations.
Key Insights and Ideas
- Intersecting clean lists isn't safe: Intuition says taking the intersection of each model's individually decontaminated set should be ultra-safe. In reality, changing the set size changes the error denominator across dependent models—on synthetic data with a 10% target, intersection still leaked 36.6% contaminated items!
- Recalibrating beats raw conservatism: Taking the max $p$-value across 16 models is mathematically valid, but practically paralyzing. Realizing you can reconstruct the null distribution solely from the contaminated right tail lets you audit many models simultaneously without your benchmark shrinking to zero.
- Tiny calibration sets suffice: You don't need each model's proprietary training corpus—roughly 100 shared known training items (e.g., from public benchmark train splits or Wikipedia/arXiv disclosures) are enough for JECS's power to saturate.
Key Results
Evaluated across $K=16$ models spanning GPT-NeoX-20B, LLaMA-7B, Pythia-6.9B (plus an 8-family heterogeneous pool including Qwen2.5, Mistral, Gemma-2, and OLMo-2) and four detection scores:
- Consistent Error Control: Across all datasets, scores, model counts ($K \in \{2,4,8,16\}$), and contamination rates, JECS keeps the realized contamination rate at or below the target $\alpha$.
- Massive Power Gains ("Power" = fraction of truly clean items successfully kept): On ArXivTection at $\alpha = 0.1$:
- With LLaMA-7B (Min-K%), JECS boosts power from 0.055 (JMCS baseline) to 0.715—recovering over 13$\times$ as many clean test examples.
- With Pythia-6.9B (Min-K%++), power jumps from 0.094 to 0.447.
- On synthetic data ($\alpha=0.1$), JECS hits 0.038 GCR while Union (0.763) and Intersection (0.366) badly miss the mark.
Limitations and Future Work
- Distribution matching: Like standard conformal methods, JECS assumes the shared calibration items come from a similar distribution (topic, length, domain) as the candidate benchmark pool. Incorporating importance-weighted conformal $p$-values to handle broader distribution shifts is left for future work.
- Exact vs. "soft" contamination: The current framework tests for exact training-set membership. Extending provable guarantees to paraphrases, translations, or near-duplicates remains an open frontier.
Summary updated