NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Calibrating Contamination Thresholds Against Measured Score Inflation

Every contamination audit of a language model benchmark makes a hidden choice. Someone computes a similarity score between each test question and each training document, using shared 13-word sequences, MinHash overlap, or the cosine similarity of text embeddings. They then pick a cutoff, and anything above it counts as "contaminated." Work on similarity graphs has long shown that this kind of cutoff controls the answer. In sentence graphs, moving the cutoff from 0.1 to 0.3 turns one dense clump into scattered fragments (LexPageRank). In protein data splitting, there is a tipping point below which almost everything links to everything else (GraphPart). The contamination literature shows the same symptom without naming it. Estimates swing between 1% and 45% across models and benchmarks (Xu et al. survey), and detectors barely agree with one another (Towards Data Contamination Detection).

We propose to stop choosing the cutoff by taste and set it by experiment. We plant benchmark-derived documents into a small model's training stream at controlled levels of similarity to the original items, from verbatim copies to same-concept problems. We then measure how much each planted document actually raises the model's score on the original test item and on matched unseen items. The result is a dose-response curve that links "how similar is this training text" to "how many points did it buy." A contamination threshold can then be defined as the similarity at which expected inflation exceeds a stated tolerance. Each similarity measure can also be ranked by how well it predicts real inflation, rather than by how well it matches a human's or GPT-4's sense of "duplicate."

Core Claim

Contamination is only meaningful as a cause of score inflation. The right similarity cutoff, and even the right similarity measure, should therefore be read off a measured inflation curve rather than fixed in advance. Concretely, we model the expected score gain on test item $i$ as

$$ \mathbb{E}[\Delta_i] = f\Big(\sum_j w(s_{ij})\Big), $$

where $s_{ij}$ is the similarity between test item $i$ and training document $j$, $w$ is a nonnegative weighting of similarity, and $f$ is a saturating function fit from injection data. A hard cutoff $\tau$ is the special case $w(s) = \mathbb{1}[s \ge \tau]$ with $f$ an indicator. The sum lets the number of near-copies matter. This follows the finding that exploitation of exact duplicates grows with repetition, reaching 40% at 200 copies while staying under 1% at low counts (Magar & Schwartz). Our claim has three parts:

  1. A learned soft weighting $w$ predicts held-out inflation better than any single hard cutoff.
  2. Measures differ sharply in how much they predict, with n-gram overlap likely near useless for paraphrases.
  3. Applying the calibrated measure to an open corpus yields contamination estimates that are stable across reasonable tolerances.

Uncalibrated thresholds do not have this stability.

Relation to Prior Work

The closest work uses continuous similarity but leaves the cutoff ad hoc. Soft Contamination Means Benchmarks Test Shallow Generalization retrieves embedding neighbors in the Olmo3 corpora and verifies them with an LLM. It reports semantic duplicates for 78% of CodeForces problems and about 20% gains on MuSR from fine-tuning on duplicates. It never asks how those figures move with the cutoff. Rethinking Benchmark and Contamination with Rephrased Samples shows that rephrased MMLU lifts a 13B model from about 55 to about 86 while evading n-gram filters. It retrieves top-$K$ neighbors and asks GPT-4 for a yes/no verdict.

Both papers motivate this proposal: they show that soft contamination is large and that string matching misses it. Both define contamination as semantic equivalence. We define it as measured inflation, and these two definitions can disagree.

DCR also abandons binary labels and scales accuracy by a fuzzy risk factor. Its scores come from probing the model, not from the corpus, so it cannot say which training text is responsible.

Magar & Schwartz supplies our method: controlled injection and a clean separation of memorization from exploitation. We extend their axis from duplicate count to graded similarity.

The threshold-sensitivity papers play a cautionary role. LexPageRank and GraphPart warn that sweeping a cutoff produces sudden structural changes. We expect contamination counts to show such a knee, and we must report where it lies. FineWeb adds a constraint: overly aggressive deduplication removes useful educational text and hurts benchmark scores. An overly loose contamination threshold therefore has a real cost, not just a conservative one.

Finally, the soft-contamination result that unseen same-domain items also improve directly challenges any item-level accounting. We address it by measuring spillover explicitly instead of assuming inflation is local to the item.

Research Program

Graded variants. For each sampled test item from GSM8K, MMLU, HumanEval, and MuSR, we build training documents at five rungs of distance:

  1. the verbatim item with its solution;
  2. a light paraphrase;
  3. a heavy rewrite or cross-language translation, following the rephrasing operations of Yang et al.;
  4. the same template with new entities and numbers;
  5. a different problem testing the same concept.

Scoring. Every variant is scored under 13-gram overlap, MinHash Jaccard, and two embedding models, so a single injection experiment calibrates all measures at once.

Injection. We continue training small open models on a FineWeb sample (FineWeb) with variants mixed in. We use sparse densities near the 4-in-10,000 regime of the soft-contamination study, and repetition counts of 1, 10, and 100.

Measuring inflation. Inflation is measured three ways:

  • Per-item: the gain on the original item relative to a twin model trained without that item's variant.
  • Spillover: the gain on held-out items from the same benchmark that received no variant.
  • Domain baseline: the gain on a fresh same-domain set.

Fitting and auditing. We fit $w$ and $f$ on half the benchmarks and test prediction on the rest. We then run the calibrated scorer over the open Olmo3 training corpora and report contamination estimates with bootstrap intervals as a function of the tolerance. We check those estimates against the actual score gap between flagged and unflagged items in the released Olmo3 models.

Baselines

Naive reference: one benchmark-wide inflation number. This method assigns every item the average inflation measured on that benchmark and ignores similarity entirely. It is the strongest version of "contamination is a property of the domain, not the item," which the soft-contamination spillover result makes plausible. Our model must beat it in held-out item-level prediction error. If it cannot, item-level thresholds are pointless, and that finding would itself be the result.

Fixed n-gram cutoff. The standard 13-gram rule is run on identical variants and models. Yang et al. report that it misses rephrased MMLU entirely, with the 55 to 86 jump going undetected. We expect it to predict inflation well only on the verbatim rung.

Strongest existing method: the LLM Decontaminator. This is top-$K$ embedding retrieval plus an LLM yes/no verdict (Yang et al.), with a reported 0.94–1.0 F1 against rephrasing labels. We run it with the same $K$, the same retrieval embeddings, and an open judge of matched cost. Its binary output enters our predictor as $w \in \{0,1\}$. Beating it means higher area under the ROC curve (AUROC) for predicting which items show significant inflation, and lower error on the size of inflation. F1 against equivalence labels is not the bar, because high F1 on equivalence can coexist with poor prediction of inflation.

Embedding cutoff tuned on the training benchmarks. This is a single cosine threshold swept and tuned with the same data budget as our method. It isolates the key ingredient: whether the soft, count-summed weighting adds anything over the best hard cutoff.

Model-side detectors. Min-K% and loss-based detectors are reported for completeness. They are not expected to be competitive after reinforcement-learning post-training, where On The Fragility of Benchmark Contamination Detection finds 50–58% AUROC.

Why not just…?

Why not just ask an LLM judge whether each neighbor is a duplicate? The judge answers a different question: whether two texts are equivalent, not whether one inflated a score. The fourth and fifth rungs are where the gap should appear, because a judge may call them non-duplicates while they still produce gains. Judges also show position and fluency biases (ABCD; Towards Data Contamination Detection). This alternative is a real threat on the first three rungs, where equivalence and inflation probably coincide. The per-rung comparison of judge labels against measured gains settles it either way.

Why not just sweep thresholds and publish the curve? A sensitivity curve shows that estimates move with the cutoff, but not which point on the curve is true. We include the sweep as a deliverable. Calibration is what turns it into a decision. If the inflation curve turned out flat in similarity, the sweep alone would suffice and our model would collapse to the naive baseline.

Why not just use fresh or rephrased benchmarks and skip corpus auditing? The soft-contamination study shows gains on unseen same-domain items, so fresh items drawn from a contaminated concept distribution are still inflated. Fresh benchmarks also say nothing about which training data to remove. Our spillover measurement quantifies exactly how much inflation is domain-level and therefore invisible to refreshing.

Decisive Checks

The project succeeds if three things hold:

  1. The calibrated soft weighting beats the tuned single embedding cutoff and the LLM Decontaminator in held-out AUROC for predicting significant per-item inflation, on benchmarks not used for fitting.
  2. Contamination estimates on the Olmo3 corpora change less across a range of tolerances than estimates across a comparable range of raw thresholds.
  3. Items the calibrated scorer flags in Olmo3 show a larger score advantage in the released models than unflagged items.

It fails informatively if spillover dominates, meaning held-out same-benchmark items gain as much as targeted ones. That outcome would show that item-level decontamination thresholds cannot work in principle and that audits should be reported at the domain level. For lack of a reported figure, we treat this as an open empirical question: no reported result was found on Lacuna for inflation as a function of graded semantic similarity.