# Benchmark Contamination: How It Happens, How to Detect It, How to Avoid It

> Benchmark contamination means evaluation questions, answers or paraphrases of them ended up in a model's training data, so scores measure memory instead of ability. A small experiment with known ground truth measures the dose-response and what n-gram and model-based detectors catch or miss.

- URL: https://dmxsf.com/en/wiki/evaluation/benchmark-contamination/
- [DMXSF](https://dmxsf.com/en/about/)
- Intermediate
- Updated: 2026-11-22
- Tags: Evaluation, Data engineering

## After this page you will be able to

- Tell verbatim, paraphrased and question-only contamination apart, and say how each inflates scores and whether n-gram overlap can catch it.
- Implement the GPT-3 n-gram overlap rule, explain why N is clamped to 8-13 words, and why a small N flags templates as contamination.
- Detect contamination with the loss gap to a base model and Min-K% Prob, compare detectors by AUROC, and know that such signals are much weaker on real pretraining data.
- Explain why evaluating only on the n-gram-clean subset can still overstate ability, and how a calibration set of fresh items helps.
- Reduce contamination risk by design (time splits, freshly written same-distribution items, private held-out sets, canary strings) and say what a report should disclose.

Benchmark contamination means that the questions, answers or paraphrases of an evaluation set ended up in a model's training data. When it happens, part of a leaderboard score is memory: it neither shows that the model can solve such problems nor allows a fair comparison between two models that remember different amounts. Contamination is hard to prove from the outside and hard to prevent completely, but the inflation it causes can be measured, and so can the blind spots of the methods that look for it.

The [evaluation methodology](https://dmxsf.com/en/wiki/evaluation/llm-evaluation/) page described the GPT-3 n-gram recipe and its blind spot for paraphrases. This page turns those sentences into numbers by **building a contamination with known ground truth**: invented "country and river" facts are mixed into the fine-tuning data of a 0.5B model, in a verbatim form and in a paraphrased form, repeated 1 to 16 times. Then four questions: how much is the score inflated? How much does n-gram overlap catch and miss? How much does the model's own behavior reveal? And once the items flagged as dirty are removed, how much inflation is left in the "clean" subset?

> [!NOTE] Environment
> The nine code blocks, run in order, form one script; the `run` block trains three seeds and is the slow part. Environment: Apple M2 Max (64 GB), PyTorch MPS backend, full fine-tuning in float32; Python 3.14.3, PyTorch 2.10.0, transformers 5.3.0, NumPy 2.4.2 (the versions are printed by `setup`); model Qwen2.5-0.5B (Apache-2.0 license). A complete run takes about 13 minutes. Seeds are fixed, but full fine-tuning on MPS is not bit-for-bit reproducible, so on another machine or on a rerun the last digits in the tables will differ; the shape of the curves will not.

> [!WARNING] This is a toy: do not carry the absolute numbers over to real benchmarks
> Each fact here appears 1 to 16 times among about 5,200 training lines; in real pretraining a question may appear a few times among trillions of tokens. The facts are invented and the base model knows nothing about them, so its "real ability" is exactly zero; on a real benchmark, contamination inflates the part of the score on top of whatever ability the model already has. What carries over is the shape: the dose-response, the blind spots of the two kinds of detector, and what remains after decontamination.

## Kinds of contamination

Contamination is more than "the question appears verbatim in the training set". The kinds differ in how they affect scores and in how they can be detected:

| Kind | How it happens | Effect on the score | N-gram overlap |
| --- | --- | --- | --- |
| Verbatim: question and answer appear as is | Question-bank sites, paper appendices and GitHub evaluation repositories get crawled into the corpus | Most direct: the model can recite the answer | Catches it |
| Question only, no answer | The source passage of a reading-comprehension item is on a web page; the question and answer are not | Small or none | Catches it, but calling it "dirty" is a false positive |
| Rephrased, translated, numbers changed | Test items are rewritten and used for training, or translated versions circulate | As effective as verbatim contamination (Yang et al., 2023) | Misses it |
| Through synthetic data | Synthetic data is generated from benchmark items, or distilled from a model that saw the benchmark | Unintentional and hard to trace; Yang et al. found contamination in synthetic data generated by GPT-3.5/4 | Mostly misses it |
| Metadata and format | Category labels, option formats or other evaluation metadata enter the corpus | Indirect: on TruthfulQA, giving models extra metadata improved their performance notably (Deng et al., 2023) | Depends |
| Leakage in time | The item was published before the model's data cutoff | Cannot be proven item by item, but a natural experiment over time is possible (Roberts et al., 2023) | Nothing to check without the corpus |

Two points from this table. First, **whether contamination raises the score depends on what the model learned from it**: with only the question, the model can at most memorize the question; with the answer attached, it can recite the result. Jiang et al. (2024) pretrained a series of GPT-2 models from scratch with two kinds of contamination, "input text only" and "ground truth" (the text plus the prompt and the answer), and varied the number of repetitions: ground-truth contamination has to be considered separately, and the effect of repetition on the score can even be U-shaped rather than monotone. Second, **"overlap detected" does not mean "score inflated"**: in the GPT-3 paper 94% of DROP examples were marked dirty, but the matching training documents contained only the passages the questions are based on, not the questions or answers, so nothing was leaked (Brown et al., 2020, Appendix C).

## Experiment: build a contamination yourself

### Design: make the ground truth known

The training data of a real model is invisible, so the "truth" of contamination is unknown. We turn this around: decide which items are contaminated and how many times, then see whether the methods find them.

- **The facts are invented.** Country and river names are glued together from random syllables; Qwen2.5-0.5B cannot have seen them in pretraining. Before training, accuracy should be the 0.25 of guessing, and anything above it comes from the few lines we put in.
- **Eleven cells of 60 items each.** One "clean" cell (0 copies), five "verbatim" cells and five "paraphrased" cells (1, 2, 4, 8 and 16 copies each), plus one "fresh" cell that never enters training and later serves as a control and for calibrating a threshold. Verbatim is the original evaluation format (`Q: ...? A: ...`); paraphrased is the same fact in one of three declarative sentences, without the "Q:" format.
- **Ordinary text is mixed in.** The training set is the contamination lines plus 1,500 lines of background text (WikiText-2 for English, paragraphs from this site's wiki and blog for the Chinese version), shuffled and trained for one epoch with no deduplication.
- **Four-way scoring.** The distractors are the rivers of **other items in the same cell**, so every option was shown equally often during training and the model can only answer from "this country goes with this river", not from "I have seen this name". The score is the conditional log-probability minus the log-probability under a neutral prompt; guessing gives 0.25.
- **Three seeds.** A new seed changes the names, which cell each item lands in, the paraphrase templates and the shuffle order (each from an independent random stream). With 60 items per cell the binomial standard error is about 6 percentage points, so differences between 0.2 and 0.3 in a single cell should not be interpreted.

### Code: environment, corpus and data

The first block fixes the model, constants and corpus. `ASK` is the original evaluation format, `PARA` holds the three paraphrases, and `background` draws the background text.

```python
import glob, math, os, random, re, time
import importlib.metadata as md
import numpy as np
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers import logging as hf_logging

hf_logging.set_verbosity_error()
hf_logging.disable_progress_bar()
MODEL, DEV = "Qwen/Qwen2.5-0.5B", "mps"
tok = AutoTokenizer.from_pretrained(MODEL)
for pkg in ("torch", "transformers", "numpy"):
    print(pkg, md.version(pkg))
print("model", MODEL, "on", DEV, "in float32")

KS = (1, 2, 4, 8, 16)                  # copies of an item in the training set
FORMS = ("verbatim", "paraphrase")
CELLS = [("clean", 0)] + [(f, k) for f in FORMS for k in KS]
PER, NBG, B, LR = 60, 1500, 16, 2e-5   # items per cell, background lines,
SEEDS = (0, 1, 2)                      # batch size, peak learning rate

SYL = ["ka", "vel", "mor", "tis", "ran", "dor", "lu", "shen", "bar", "quo",
       "zin", "pal", "tor", "mey", "ve", "nu", "sa", "gro", "fi", "hal",
       "wen", "dra", "kos", "bi", "yul", "or", "ten", "mar", "ul", "sek"]
COUNTRY, RIVER, SEP = "", "", " "
ASK = "Q: Which river crosses the capital of {c}? A:"
NEUTRAL = "A:"
PARA = ["The capital of {c} is crossed by the {r}.",
        "In {c}, the river that flows through the capital is the {r}.",
        "Travelers in {c} know that the {r} runs right through the capital."]

def background(n):
    """Ordinary text that keeps the model from only seeing our facts."""
    import pyarrow.parquet as pq
    hub = "~/.cache/huggingface/hub/datasets--Salesforce--wikitext"
    path = glob.glob(os.path.expanduser(
        hub + "/snapshots/*/wikitext-2-raw-v1/train-*.parquet"))[0]
    raw = pq.read_table(path).column("text").to_pylist()
    paras = [t.strip() for t in raw if len(t.strip()) > 200]
    texts = [t[:160] for t in paras if not t.startswith("=")]
    random.Random("background").shuffle(texts)
    return texts[:n]

BACKGROUND = background(NBG)
print("background lines:", len(BACKGROUND))
print("sample:", BACKGROUND[0][:60])
```
```text
torch 2.10.0
transformers 5.3.0
numpy 2.4.2
model Qwen/Qwen2.5-0.5B on mps in float32
background lines: 1500
sample: Insular art , or Hiberno @-@ Saxon art , is the name given t
```

The second block creates the data: 720 invented facts per seed, divided into 12 cells (the 11 above plus "fresh"), then writes out the training lines according to each cell's number of copies.

```python
def make_names(rng, n, used, suffix):
    out = []
    while len(out) < n:
        word = "".join(rng.choice(SYL) for _ in range(rng.choice((2, 3))))
        word = word.capitalize() + suffix
        if word not in used:
            used.add(word)
            out.append(word)
    return out

def build(seed):
    """Invented facts split into cells, plus the shuffled training lines."""
    n = PER * (len(CELLS) + 1)             # the extra cell: fresh items
    used = set()
    names = random.Random(f"names-{seed}")
    countries = make_names(names, n, used, COUNTRY)
    rivers = make_names(names, n, used, RIVER)
    order = list(range(n))
    random.Random(f"cells-{seed}").shuffle(order)
    cells = {c: order[i * PER:(i + 1) * PER] for i, c in enumerate(CELLS)}
    cells[("fresh", 0)] = order[len(CELLS) * PER:]
    pick, lines = random.Random(f"para-{seed}"), []
    for (form, k), items in cells.items():
        for i in items:
            for _ in range(k):
                if form == "verbatim":
                    lines.append(ASK.format(c=countries[i]) + SEP + rivers[i])
                else:
                    lines.append(pick.choice(PARA).format(c=countries[i],
                                                          r=rivers[i]))
    lines += BACKGROUND
    random.Random(f"shuffle-{seed}").shuffle(lines)
    return countries, rivers, cells, lines

countries, rivers, cells, lines = build(0)
n_items = sum(len(v) for v in cells.values())
print("items:", n_items, "| training lines:", len(lines), "| steps:",
      len(lines) // B)
for form, k in (("verbatim", 4), ("paraphrase", 4)):
    i = cells[(form, k)][0]
    print(f"{form} x{k}:", [x for x in lines if rivers[i] in x][0])
print("a clean item:", ASK.format(c=countries[cells[CELLS[0]][0]]))
```
```text
items: 720 | training lines: 5220 | steps: 326
verbatim x4: Q: Which river crosses the capital of Sekmornu? A: Zinkosvel
paraphrase x4: The capital of Dorfishen is crossed by the Kosran.
a clean item: Q: Which river crosses the capital of Meyfior? A:
```

The output shows a sample from seed 0: verbatim contamination keeps the evaluation format, paraphrased contamination changes the wording and drops the "Q:" format.

The third block holds the scoring and training functions: `token_logprobs` gives per-token log-probabilities, `multiple_choice` does the four-way test, and `train` is one epoch of full fine-tuning (AdamW, 20 warm-up steps, cosine decay to 10%).

```python
def batches(seq, size):
    for i in range(0, len(seq), size):
        yield seq[i:i + size]

@torch.no_grad()
def token_logprobs(model, texts):
    """Log-probability of every token after the first, one array per text."""
    out = []
    for chunk in batches(texts, 64):
        enc = tok(chunk, return_tensors="pt", padding=True).to(DEV)
        logits = model(**enc).logits[:, :-1].float()
        lp = torch.log_softmax(logits, -1).gather(
            -1, enc.input_ids[:, 1:, None])[..., 0]
        mask = enc.attention_mask[:, 1:].bool()
        out += [lp[j][mask[j]].cpu().numpy() for j in range(len(chunk))]
    return out

@torch.no_grad()
def continuation_logprob(model, prompts, conts):
    """Summed log-probability of each continuation given its prompt."""
    out = []
    for p, c in zip(batches(prompts, 64), batches(conts, 64)):
        a = [tok(x).input_ids for x in p]
        b = [tok(x).input_ids for x in c]
        ids = torch.full((len(p), max(len(x) + len(y) for x, y in zip(a, b))),
                         tok.pad_token_id)
        for j, (x, y) in enumerate(zip(a, b)):
            ids[j, :len(x) + len(y)] = torch.tensor(x + y)
        ids = ids.to(DEV)
        lp = torch.log_softmax(model(input_ids=ids).logits[:, :-1].float(), -1)
        lp = lp.gather(-1, ids[:, 1:, None])[..., 0].cpu()
        out += [lp[j, len(x) - 1:len(x) + len(y) - 1].sum().item()
                for j, (x, y) in enumerate(zip(a, b))]
    return out

def multiple_choice(model, cells, seed):
    """4 options: the true river and 3 rivers from the same cell (so every
    option was shown equally often); score = gain over a neutral prompt."""
    rng = random.Random(f"options-{seed}")
    prompts, neutral, conts = [], [], []
    for items in cells.values():
        for i in items:
            for j in [i] + rng.sample([x for x in items if x != i], 3):
                prompts.append(ASK.format(c=countries[i]))
                neutral.append(NEUTRAL)
                conts.append(SEP + rivers[j])
    gain = np.array(continuation_logprob(model, prompts, conts))
    gain -= np.array(continuation_logprob(model, neutral, conts))
    return gain.reshape(-1, 4).argmax(1) == 0

def train(model, lines, seed):
    """One epoch of full fine-tuning: AdamW, warm-up, cosine decay to 10%."""
    torch.manual_seed(seed)
    opt = torch.optim.AdamW(model.parameters(), lr=LR, weight_decay=0.0)
    steps = len(lines) // B
    model.train()
    for step in range(steps):
        enc = tok(lines[step * B:(step + 1) * B], return_tensors="pt",
                  padding=True).to(DEV)
        labels = enc.input_ids.masked_fill(enc.attention_mask == 0, -100)
        model(**enc, labels=labels).loss.backward()
        torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)
        warm = min(1.0, (step + 1) / 20)
        cosine = 0.1 + 0.45 * (1 + math.cos(math.pi * step / steps))
        for g in opt.param_groups:
            g["lr"] = LR * warm * cosine
        opt.step()
        opt.zero_grad(set_to_none=True)
    model.eval()
```

## Two families of detectors

### N-gram overlap

The most common approach compares the evaluation items with the training corpus and flags items that share a run of consecutive text with it. The GPT-3 rule (Brown et al., 2020, Appendix C): for each benchmark, take the 5th percentile of item length (in words, ignoring punctuation, whitespace and case) as $N$, with a minimum of 8 (smaller values give spurious collisions) and a maximum of 13; a sample with any $N$-gram collision with a training document is "dirty", the others are "clean". Different reports use different definitions:

| Report | How contamination is decided |
| --- | --- |
| GPT-3 | $N$ is the 5th percentile of item length, clamped to 8 to 13 words; any $N$-gram collision with a training document makes the sample dirty |
| PaLM | At least 70% of all 8-grams in the sample were seen in the pretraining corpus (as summarized by Jiang et al.) |
| Llama 2 | A token counts as contaminated if it lies in an n-gram of more than 10 tokens shared by the evaluation sample and the training set; a sample's contamination is the share of contaminated tokens, bucketed into Clean, Not Clean, Not Dirty and Dirty (as summarized by Jiang et al.) |

The [Llama 3 report](https://dmxsf.com/en/blog/the-llama-3-herd-of-models/) also uses 8-gram overlap and picks a threshold per dataset; the paper itself says that on MBPP, HumanEval, MMLU and MMLU-Pro the 8-gram contamination scores were too high to give a credible estimate of the gain. In the code below, `units` splits text into units (words for English, characters for Chinese), `gpt3_n` implements the rule above, and `overlap_flags` finds the items that share an n-gram with a training line.

### The model's own behavior

Without the training corpus you can ask the model: do you know this item too well? Two signals are common.

- **Loss gap to the base model**: for the same item, the mean log-probability after fine-tuning minus the mean log-probability before it (the base model). Contamination makes an item "more predictable", so the gap is large. It needs a reference model that shares an origin with the model under test.
- **Min-K% Prob** (Shi et al., 2023): look only at the K% least likely tokens of the item and average their log-probabilities. The hypothesis is that an unseen text contains a few outlier tokens with very low probability, and a seen text far fewer. It needs neither a reference model nor the training data, only access to log-probabilities. We use K = 20%, not tuned.

How to compare detectors? Use **AUROC**: the probability that for a random contaminated item and a random clean item, the detector gives the contaminated one the higher score. 0.5 means no discriminating power and 1.0 is perfect. The `auroc` function below computes it from rank sums.

### Detecting without the weights

Closed models do not expose log-probabilities, and some methods only need black-box access. Their ideas and reported results (taken from each paper's abstract):

| Method | What it does | Reported result |
| --- | --- | --- |
| Guided completion (Golchin and Surdeanu, 2023) | Give the model the dataset name, the split and the first part of an item, and ask it to continue; a continuation that matches or nearly matches the original flags contamination | 92% to 100% accuracy against human judgments; finds GPT-4 contaminated with AG News, WNLI and XSum |
| Exchangeability test (Oren et al., 2023) | Without contamination, shuffling item order should not change the likelihood; a model that prefers the dataset's canonical order has seen it | Gives statistical guarantees for models as small as 1.4B parameters and test sets of only 1,000 items; an audit of five public models found little evidence of pervasive contamination |
| Guessing a masked option (Deng et al., 2023) | Mask one wrong option of a multiple-choice question and ask the model to fill it in | ChatGPT and GPT-4 reach exact-match rates of 52% and 57% on MMLU |
| Perplexity and n-gram accuracy (Xu et al., 2024) | Look at the model's perplexity and n-gram-by-n-gram prediction accuracy on the benchmark | Analyzing 31 models on mathematical reasoning benchmarks, they found signs of training on training, and even test, sets |
| Natural experiment over time (Roberts et al., 2023) | Compare pass rates for items published before and after a model's data cutoff | On Codeforces and Project Euler, pass rate shows significant trends against release date and GitHub popularity, which is strong evidence of contamination |

The `detect` block holds the n-gram functions, the two signals and AUROC together.

```python
def units(text):
    return re.sub(r"[^\w\s]", " ", text.lower()).split()

LO, HI = 8, 13

def gpt3_n(texts):
    """N = 5th percentile of the item length, clamped to [LO, HI]."""
    sizes = sorted(len(units(t)) for t in texts)
    return min(HI, max(LO, sizes[int(0.05 * len(sizes))]))

def grams(seq, n):
    n = min(n, len(seq))
    return {tuple(seq[i:i + n]) for i in range(len(seq) - n + 1)}

def overlap_flags(texts, lines, n):
    """True for the items that share at least one n-gram with the corpus."""
    seen = set()
    for line in lines:
        seen |= grams(units(line), n)
    return np.array([bool(grams(units(t), n) & seen) for t in texts])

def min_k(lp, k=0.2):
    """Min-K% Prob: mean log-probability of the k least likely tokens."""
    return np.sort(lp)[:max(1, int(k * len(lp)))].mean()

def auroc(pos, neg):
    """Chance that a random item of `pos` scores above one of `neg`."""
    ranks = np.concatenate([pos, neg]).argsort().argsort() + 1
    return (ranks[:len(pos)].sum() - len(pos) * (len(pos) + 1) / 2) / (
        len(pos) * len(neg))
```

## One run: three seeds

For each seed, `run` does the same thing: build the data, load the base model, record the base model's log-probabilities and the four-way result before training, train, test again, and finally store the n-gram flags and the two signals.

```python
RUNS = []
for seed in SEEDS:
    t0 = time.time()
    countries, rivers, cells, lines = build(seed)
    model = AutoModelForCausalLM.from_pretrained(MODEL, dtype=torch.float32)
    model = model.to(DEV).eval()
    order = [i for cell in cells.values() for i in cell]
    texts = [ASK.format(c=countries[i]) + SEP + rivers[i] for i in order]
    run = {"order": order, "cells": cells}
    run["ref"] = np.array([lp.mean() for lp in token_logprobs(model, texts)])
    run["before"] = multiple_choice(model, cells, seed)
    train(model, lines, seed)
    run["after"] = multiple_choice(model, cells, seed)
    lps = token_logprobs(model, texts)
    run["ft"] = np.array([lp.mean() for lp in lps])
    run["mink"] = np.array([min_k(lp) for lp in lps])
    assert np.isfinite(run["ref"]).all() and np.isfinite(run["ft"]).all()
    run["N"] = gpt3_n(texts)
    run["flag_rule"] = overlap_flags(texts, lines, run["N"])
    run["flag_4"] = overlap_flags(texts, lines, 4)
    RUNS.append(run)
    del model
    torch.mps.empty_cache()
    print(f"seed {seed}: {len(lines) // B} steps, {time.time() - t0:.0f} s")
```
```text
seed 0: 326 steps, 228 s
seed 1: 326 steps, 272 s
seed 2: 326 steps, 280 s
```

## Result 1: the dose-response of contamination

```python
NAMES = {"clean": "clean", "verbatim": "verbatim", "paraphrase": "paraphrased",
         "fresh": "fresh (control)"}

def label(cell):
    return NAMES[cell[0]] + (f" x{cell[1]}" if cell[1] else "")

def fit(s, n, left=False):
    """Pad to n terminal columns (CJK characters take two)."""
    gap = " " * (n - sum(1 + (ord(c) > 0x2e80) for c in s))
    return s + gap if left else gap + s

def table(head, rows, widths):
    for row in [head] + rows:
        print(fit(row[0], widths[0], True)
              + "".join(fit(x, w) for x, w in zip(row[1:], widths[1:])))

def positions(run, which):
    """Row numbers (in run["order"]) of the items in the given cells."""
    at = {i: p for p, i in enumerate(run["order"])}
    return [at[i] for cell in which for i in run["cells"][cell]]

rows = []
for cell in CELLS + [("fresh", 0)]:
    ids = [positions(r, [cell]) for r in RUNS]
    before = [r["before"][i].mean() for r, i in zip(RUNS, ids)]
    after = [r["after"][i].mean() for r, i in zip(RUNS, ids)]
    rows.append([label(cell), f"{np.mean(before):.3f}", f"{np.mean(after):.3f}",
                 f"{np.std(after, ddof=1):.3f}", f"{min(after):.3f}"])
table(["cell", "before", "after", "std", "worst seed"], rows,
      [18, 8, 8, 8, 12])
```
```text
cell                before   after     std  worst seed
clean                0.250   0.233   0.073       0.150
verbatim x1          0.228   0.433   0.073       0.383
verbatim x2          0.283   0.567   0.044       0.517
verbatim x4          0.256   0.661   0.067       0.600
verbatim x8          0.222   0.872   0.082       0.817
verbatim x16         0.217   0.967   0.029       0.933
paraphrased x1       0.272   0.322   0.025       0.300
paraphrased x2       0.233   0.461   0.025       0.433
paraphrased x4       0.244   0.506   0.100       0.400
paraphrased x8       0.244   0.778   0.095       0.700
paraphrased x16      0.200   0.900   0.029       0.867
fresh (control)      0.278   0.283   0.076       0.200
```

*Figure: Mean over 3 seeds, bars span the minimum to the maximum over seeds, 60 items per cell. The dashed line is guessing at 0.25 and the dotted line is the unseen clean cell (0.233).*

The widget below turns this table into a draggable dose-response curve: pick the contamination kind, drag the copy count x1-x16, and read each cell's before/after accuracy plus its inflation over the clean cell — one copy already adds about 20 points, x16 is nearly memorized.

Before training every cell sits near the 0.25 of guessing (0.200 to 0.283; each cell has 3 seeds × 60 four-way questions, a sampling error of about 3 points). After training, **the clean cell (0.233) and the fresh cell (0.283) are still guessing**: both were never seen and are two samples from the same distribution, so the difference between them is the noise floor of this experiment. Verbatim contamination rises monotonically with the number of copies, from 0.433 at ×1 to 0.967 at ×16; the paraphrased curve lies below the verbatim one all the way but also rises with the dose, from 0.322 at ×1 to 0.900 at ×16. Now the low doses, where the highest single seed among the control cells scores 0.350. The three-seed mean of verbatim ×1 is already clearly above both control cells, but single seeds are unstable (the worst is 0.383); the worst seed of paraphrased ×1 is 0.300, which cannot be told from it. Only at ×4 are the worst seeds of both forms (verbatim 0.600, paraphrased 0.400) above it.

This curve is how to measure "how much does contamination matter": not whether the model has seen the item, but how many times, in what form, and how much the score rose as a result. A real model's curve will not look like this one (Jiang et al. observed U shapes in GPT-2 models pretrained from scratch), but the fact that part of the score is memory does not change.

## Result 2: what n-gram overlap catches

```python
sizes = sorted({r["N"] for r in RUNS})
print("N from the GPT-3 rule (per seed):", sizes)
rows = []
for cell in CELLS:
    ids = [positions(r, [cell]) for r in RUNS]
    rule = np.mean([r["flag_rule"][i].mean() for r, i in zip(RUNS, ids)])
    four = np.mean([r["flag_4"][i].mean() for r, i in zip(RUNS, ids)])
    rows.append([label(cell), f"{rule:.3f}", f"{four:.3f}"])
table(["cell", "rule N", "N = 4"], rows, [18, 10, 8])
```
```text
N from the GPT-3 rule (per seed): [10]
cell                  rule N   N = 4
clean                  0.000   1.000
verbatim x1            1.000   1.000
verbatim x2            1.000   1.000
verbatim x4            1.000   1.000
verbatim x8            1.000   1.000
verbatim x16           1.000   1.000
paraphrased x1         0.000   1.000
paraphrased x2         0.000   1.000
paraphrased x4         0.000   1.000
paraphrased x8         0.000   1.000
paraphrased x16        0.000   1.000
```

With the GPT-3 rule, N is 10. Every verbatim cell is flagged and not a single clean item is (share 0.000), which is what n-gram overlap is best at. **Not one paraphrased item is caught** (the share is 0.000 in all five paraphrased cells), yet after 16 copies their accuracy is already 0.900: by the n-gram criterion these items are "clean", but the model has memorized them.

The window-of-4 control fails the other way round: the share of clean items flagged is 1.000 too, because four consecutive words almost always fall inside the question template (`which river crosses the`). With a small N the detector finds the template rather than the content; with a large N it finds nothing, which is why GPT-3 sets a minimum for N.

At corpus scale n-gram matching has three more practical traps: how you normalize (case, punctuation, whitespace, full-width characters) changes the hit counts; a huge corpus needs a distributed job for exact collisions (GPT-3 used Spark, while GPT-2 used Bloom filters that give probabilistic bounds); and common phrases and boilerplate (legal text, cultural clichés) cause false positives, which is why GPT-3, when cleaning its training set, ignored 13-grams that occurred in more than 10 training documents.

## Result 3: the model's own behavior

```python
def scores(run, kind, cell):
    ids = positions(run, [cell])
    return (run["ft"] - run["ref"] if kind == "gap" else run["mink"])[ids]

def mean_auroc(kind, cell, against=CELLS[0]):
    return np.mean([auroc(scores(r, kind, cell), scores(r, kind, against))
                    for r in RUNS])

rows = [[label(cell), f"{mean_auroc('gap', cell):.3f}",
         f"{mean_auroc('mink', cell):.3f}"] for cell in CELLS[1:]]
rows.append([label(("fresh", 0)), f"{mean_auroc('gap', ('fresh', 0)):.3f}",
             f"{mean_auroc('mink', ('fresh', 0)):.3f}"])
table(["versus clean cell", "gap to base", "Min-K%"], rows, [20, 13, 10])
```
```text
versus clean cell     gap to base    Min-K%
verbatim x1                 0.752     0.842
verbatim x2                 0.898     0.951
verbatim x4                 0.943     0.995
verbatim x8                 0.969     1.000
verbatim x16                0.982     1.000
paraphrased x1              0.675     0.726
paraphrased x2              0.758     0.865
paraphrased x4              0.851     0.952
paraphrased x8              0.914     0.994
paraphrased x16             0.948     0.997
fresh (control)             0.468     0.537
```

*Figure: Mean over 3 seeds; within each seed 60 contaminated items are compared with 60 clean items. The dashed line at 0.5 means no discriminating power; "control" compares the fresh cell with the clean cell (grey filled dot: loss gap, hollow dot: Min-K%).*

First the control: the fresh and clean cells were both never seen, so AUROC should be near 0.5, and it is 0.468 and 0.537, which is the scale of the noise. At verbatim ×1 the loss gap and Min-K% reach AUROC 0.752 and 0.842; at ×16, 0.982 and 1.000. **The paraphrased cells that n-gram overlap missed entirely are caught in part by the model signals**: only 0.675 and 0.726 at ×1, a weak signal; 0.851 and 0.952 at ×4, and 0.948 and 0.997 at ×16. Of the two detectors, Min-K% is at least as high as the loss gap in every cell, although it needs no reference model. One possible reason, which we did not test separately: whatever the sentence form, the invented names are the hardest tokens to predict and training on them raises their probabilities; Min-K% looks exactly at the least likely tokens, while the loss gap also averages in the template tokens that were easy to predict anyway.

This is the **most favorable condition**, and should not be read as confidence in detecting real contamination:

- The dose is large and arrives in one fine-tuning run; in real pretraining a question is a few tokens among trillions. Duan et al. (2024) evaluated membership inference on models of 160M to 12B parameters trained on the Pile and found that in most settings it barely beats random guessing, because the dataset is huge and training passes are few, and because the boundary between members and non-members is inherently fuzzy; in the few settings that looked successful, the success could be attributed to members and non-members coming from different distributions (for example different time ranges). Min-K% improved on earlier methods by 7.4% on WikiMIA, a benchmark that is itself split by time (Shi et al., 2023).
- The loss gap needs a reference model with a shared origin, which often does not exist.
- The clean and contaminated cells come from the same distribution, which is why AUROC is meaningful here; with two sets of items that differ in distribution, a detector may just be detecting the distribution shift.

## Result 4: after decontamination, how much inflation is left in the clean subset

The GPT-3 recipe is to re-evaluate on the "clean" subset only and compare it with the full set. We do the same on three benchmarks of 180 items each: 60 clean items, 60 verbatim items and 60 paraphrased items, with the same number of copies (1, 4 and 16) for the contaminated ones. Four scores are compared: all 180 items; after removing the items flagged by n-gram overlap; after removing the items flagged by the model signal; and the truly clean 60. The model detection uses the loss gap with a threshold at the 95th percentile of the fresh cell's scores, which assumes you have a set of items that never entered training to calibrate against (by construction about 5% of clean items are removed by mistake).

```python
rows = []
for k in (1, 4, 16):
    acc = {key: [] for key in ("all", "ngram", "model", "clean")}
    size = {key: [] for key in ("ngram", "model")}
    for r in RUNS:
        keep = [CELLS[0], ("verbatim", k), ("paraphrase", k)]
        ids = positions(r, keep)
        gap = r["ft"] - r["ref"]
        cut = np.quantile(gap[positions(r, [("fresh", 0)])], 0.95)
        subsets = {"all": ids, "clean": positions(r, [CELLS[0]]),
                   "ngram": [i for i in ids if not r["flag_rule"][i]],
                   "model": [i for i in ids if gap[i] <= cut]}
        for key, sub in subsets.items():
            acc[key].append(r["after"][sub].mean())
            if key in size:
                size[key].append(len(sub))
    a = {key: np.mean(v) for key, v in acc.items()}
    n = {key: np.mean(v) for key, v in size.items()}
    rows.append([str(k), f"{a['all']:.3f}",
                 f"{n['ngram']:.0f}", f"{a['ngram']:.3f}",
                 f"{n['model']:.0f}", f"{a['model']:.3f}", f"{a['clean']:.3f}"])
table(["copies", "all 180", "n-gram kept", "acc", "model kept", "acc",
       "truly clean"], rows, [8, 9, 14, 8, 13, 8, 13])
```
```text
copies    all 180   n-gram kept     acc   model kept     acc  truly clean
1           0.330           120   0.278          149   0.274        0.233
4           0.467           120   0.369           98   0.278        0.233
16          0.700           120   0.567           69   0.346        0.233
```

*Figure: Mean over 3 seeds, bars span the minimum to the maximum over seeds. The dashed line is guessing at 0.25. N-gram removed every verbatim item and the paraphrased ones stayed; the model threshold is the 95th percentile of the fresh cell's scores.*

In all three benchmarks the n-gram rule removes all 60 verbatim items and keeps 120. But the paraphrased items stay: in the benchmark with 16 copies the kept items score 0.567, against 0.233 for the truly clean items. **Decontaminating by n-gram overlap does not give a clean benchmark; it gives a benchmark with the verbatim contamination removed.** The model detection removes more: the same benchmark keeps 69 items at accuracy 0.346, closer to the truly clean 0.233 but still high, because the threshold lets 95% of clean items through and some contaminated items with a low gap slip through as well. With few copies the inflation of the whole benchmark is small to begin with: at ×1 it is 0.330 for all items and 0.233 for the truly clean ones; both decontamination methods bring it down to 0.278 and 0.274, hardly different from each other. The differences open up only with many copies (×16: 0.700, 0.567 and 0.346 against 0.233).

The GPT-3 paper itself notes the limits of this method: the clean subset may not be drawn from the same distribution as the original, so memorization could inflate the score while a bias toward easier items in the clean subset cancels it; and on DROP, where 94% of the examples were dirty, the remaining 6% came from a slightly different distribution, so the comparison gave no good signal there. In the toy the "truly clean" items are a random sample, so this problem does not arise; in a real benchmark the flagged items are often more common and easier to begin with.

The widget below makes this table draggable: drag the copy count to compare the four scores — all items, after n-gram decontamination, after model-detection decontamination, and truly clean. At 16 copies, n-gram decontamination still leaves 0.556 of inflation; model detection presses it to 0.349, but that is still above the truly clean 0.278.

## Keep contamination out by design

Detection always comes after the fact; what you can do while designing the evaluation is cheaper:

| Practice | How it avoids contamination | Cost and limits | Example |
| --- | --- | --- | --- |
| Split by time and keep adding items | Evaluate only on items published after the model's data cutoff | The set keeps changing, so scores across time are not directly comparable; the cutoff must be credible | LiveCodeBench keeps collecting new problems from LeetCode, AtCoder and CodeForces, and at the time had 400 problems published between May 2023 and May 2024 (Jain et al., 2024) |
| Rewrite fresh same-distribution items and keep them private | Commission a new set to the same specification and compare scores on the old and new benchmarks | Expensive, and it is hard to be sure the distribution really matches | GSM1k is matched to GSM8k on human solve rate, number of steps and answer magnitude; accuracy on it is up to 8% lower, several model families show systematic overfitting, and many frontier models show little (Zhang et al., 2024) |
| Private held-out set | Items are not public and the evaluator runs the models | Cannot be reproduced independently, and the evaluator has to guard it | See [building eval sets](https://dmxsf.com/en/wiki/evaluation/building-eval-sets/) |
| Canary strings | Put a string that cannot occur naturally into the evaluation files so that training pipelines can filter on it, and so that you can probe whether a model has seen it | Works only if the trainers actually filter on it, and does nothing against paraphrases | Every BIG-bench task file contains a canary string that must not be edited, to keep tasks from leaking into web-scraped training data |
| Decontamination on the training side | Treat the evaluation set as duplicates to remove: exact match, MinHash near-duplicates, paragraph-level dedup | Same blind spots as n-gram overlap; Jiang et al. found that documents removed under n-gram definitions are not always genuinely contaminated | See [pretraining data engineering](https://dmxsf.com/en/wiki/pretraining/data-engineering/); [Let's Verify Step by Step](https://dmxsf.com/en/blog/lets-verify-step-by-step/) used string matching to drop MATH problems from its training mix and admits it cannot give a strong guarantee |

What an evaluation report should say about contamination, as a checklist:

1. **How the check was done**: the n-gram N, the unit (words, characters, tokens), the normalization, which corpus it was run against; write "not checked" for what was not.
2. **Scores on the full set and on the clean subset**, and the share of items flagged; a very high share (DROP's 94%) signals a problem with the method itself.
3. **The data cutoff and the item publication dates**; where a time split is possible, the scores before and after it.
4. **The relation between post-training data and the benchmark**: whether the benchmark's training split, similar items, or data generated by models that saw the benchmark were used (the "Benchmark Transparency Card" proposed by Xu et al. in 2024 is meant for this kind of documentation).
5. **What cannot be checked**: closed models and closed corpora. Say so, and do not let "no contamination found" stand in for "could not check".

## Summary and exercises

- Whether contamination raises a score depends on what the model learned: questions, answers, paraphrases and metadata have different effects; overlap is not leakage.
- In an experiment with known ground truth, accuracy on verbatim contamination rises with the number of copies from 0.433 (×1) to 0.967 (×16) and on paraphrased contamination from 0.322 to 0.900, while items never seen stay at guessing.
- N-gram overlap catches verbatim contamination and misses paraphrases; a window that is too small flags the template. Model signals (loss gap, Min-K%) also catch paraphrases, but are much weaker on real pretraining data.
- Decontamination is not "clean once detected": after n-gram overlap removes the verbatim items, paraphrased contamination still inflates the score, and the clean subset may differ in distribution from the original.
- The cheapest defense is in the evaluation design: time splits, fresh same-distribution items, private held-out sets and canary strings, plus a report that says how the check was done and what it cannot see.

### Quick check

**1. Which kind of contamination is most easily missed by GPT-3-style n-gram overlap?**

- [ ] The question and answer appear verbatim in a training document
- [x] A test item was reworded and then used for training
- [ ] The question and answer differ only by a punctuation mark
- [ ] The same item appears many times in the training set

> N-gram overlap only sees surface text. Verbatim copies and copies that differ only in punctuation (which is ignored) are caught, and repeats are just more hits; after rewording, hardly any N consecutive words match. In this page's experiment the paraphrased cells were flagged at a rate of 0.000 even though accuracy after 16 copies was 0.900.

**2. What happens if the n-gram window N is cut from the GPT-3 rule's value down to 4?**

- [ ] Detection becomes more sensitive and catches more contaminated items, with no side effects
- [x] Question templates and common phrases are also counted as contamination, so many clean items are flagged
- [ ] Verbatim contamination can no longer be caught
- [ ] All paraphrased items are caught, so smaller N is always better

> In this page's experiment with N = 4, the share of never-seen clean items that were flagged was 1.000, because four consecutive words almost always fall inside the template; GPT-3 sets a minimum of 8 for this reason.

**3. What does a detector with an AUROC of 0.5 mean?**

- [ ] It catches half of the contaminated items
- [ ] Its false positive rate is 50%
- [x] Its scores for contaminated and clean items do not differ systematically, so it is guessing
- [ ] It is perfect on contaminated items and fails completely on clean ones

> AUROC is the probability that a random contaminated item gets a higher score than a random clean item, and 0.5 means no discriminating power. The control in this page (two cells that were never seen) gives 0.468 and 0.537.

**4. In the four-way scoring, why are the distractors the rivers of other items from the same cell?**

- [ ] It makes the questions harder and the scores lower
- [x] Every option was shown equally often in training, so the model can only answer from "this country goes with this river" and not from "I have seen this name"
- [ ] It removes the need for the neutral prompt
- [ ] It makes accuracy on the clean cell higher than 0.25

> If the distractors were rivers never seen in training, "this name looks familiar" alone would pick the right answer, and the score would reflect name familiarity instead of the country-river association.

**5. After n-gram decontamination, a benchmark's remaining items still score clearly higher than the truly clean ones. Which explanations are plausible? (Select all that apply.)**

- [x] The remaining items contain paraphrased, translated or otherwise reworded contamination that n-gram overlap cannot see
- [x] The flagged items differed in difficulty from the rest, so the clean subset is no longer distributed like the original dataset
- [ ] N-gram decontamination removed every contaminated item, so the gap can only be noise
- [x] The contamination is in some other phrasing of the item than the one that was checked

> In Result 4 the n-gram rule removed all verbatim items, yet the paraphrased items that stayed still raised the accuracy (0.567 against 0.233 at 16 copies). The third option confuses "not detected" with "not there".

**6. Which of these practices reduce the risk of a contaminated evaluation? (Select all that apply.)**

- [x] Use only items published after the model's data cutoff, and keep adding new ones
- [x] Commission a fresh same-distribution set, keep it private, and compare old and new scores
- [ ] Put a canary string in the evaluation files, which guarantees that no training set contains them
- [x] Report scores on both the full set and the clean subset, and state how the check was done and what could not be checked

> A canary string works only if the trainers filter on it, and it does nothing against paraphrases; it is a door, not a guarantee.

### Exercises

1. **Compute.** A benchmark has 1,000 items and 20% of them are contaminated; accuracy is 0.90 on the contaminated items and 0.50 on the clean ones. What is the overall score? What is it after removing the contaminated items? What does the difference mean?
2. **Read the table.** In Result 4, for the benchmark with 16 copies, the items kept after model-based decontamination still score higher than the truly clean ones. Give two reasons, say how to bring the score closer to the truly clean one, and what that costs.
3. **Try it.** Change `LR` from 2e-5 to 5e-5 and rerun `accuracy`: in which direction does the dose-response curve move? And with `PER` set to 20, which numbers become noisier? Write your prediction first, then run it.
4. **Design.** Design a contamination check for a benchmark you know: say what access you have (corpus, log-probabilities, text replies only), pick two detectors, and explain how you would tell whether "flagged" really means "score inflated".

<details>
<summary>Reference answers</summary>

1. The overall score is $0.2\times0.9+0.8\times0.5=0.58$; after removing the contaminated items it is $0.50$. The difference $0.08$ is the inflation caused by contamination, about 14% of the overall score. It shrinks if the flagged items were easier than the clean ones to begin with, and it understates the truth if paraphrased contamination that n-gram overlap missed is still in the clean subset.
2. Two reasons: (a) the threshold is the 95th percentile of the fresh cell's scores, so contaminated items scoring below it slip through (especially paraphrases and low copy counts); (b) the loss gap is noisy, and lightly contaminated items overlap with clean ones. Lowering the threshold lets fewer contaminated items through, at the cost of removing more clean items, which leaves a smaller subset that represents the benchmark less well; it is a trade-off between residual contamination and wrongly removed clean items.
3. We have not run 5e-5, so what follows is an expectation, not a result: a higher learning rate leaves a deeper mark with each exposure, so the curve is expected to move up and saturate earlier, and a rate that is too high may destabilize training and damage the background text as well. A smaller `PER` leaves fewer items per cell, so the standard error of each cell's accuracy grows (about 6 points with 60 items, about 10 points with 20), and the worst-seed column and the AUROCs become less stable. Compare with your prediction after running it, and trust your own run.
4. One example: with text replies only, use guided completion (give the first half of the question and ask for a continuation) plus a time split (compare pass rates for items published before and after the model's data cutoff); with log-probabilities, add Min-K% and calibrate with fresh items. To tell whether "flagged" means "score inflated", compare the scores on flagged and unflagged items, and use a set of fresh same-distribution items to estimate what that difference should be when there is no contamination.

</details>

## Further reading

- [Language Models are Few-Shot Learners](https://arxiv.org/abs/2005.14165) (Brown et al., 2020): the contamination analysis in Section 4 and Appendix C.
- [Investigating Data Contamination for Pre-training Language Models](https://arxiv.org/abs/2401.06059) (Jiang et al., 2024): GPT-2 pretrained from scratch, contamination forms and repetition, and a critique of n-gram definitions.
- [Rethinking Benchmark and Contamination for Language Models with Rephrased Samples](https://arxiv.org/abs/2311.04850) (Yang et al., 2023): rephrasing bypasses n-gram decontamination, and an LLM-based decontaminator.
- [Detecting Pretraining Data from Large Language Models](https://arxiv.org/abs/2310.16789) (Shi et al., 2023): WikiMIA and Min-K% Prob.
- [Do Membership Inference Attacks Work on Large Language Models?](https://arxiv.org/abs/2402.07841) (Duan et al., 2024): why membership inference is weak on real pretraining data.
- [Proving Test Set Contamination in Black Box Language Models](https://arxiv.org/abs/2310.17623) (Oren et al., 2023): statistical guarantees of contamination from exchangeability.
- [Time Travel in LLMs: Tracing Data Contamination in Large Language Models](https://arxiv.org/abs/2308.08493) (Golchin and Surdeanu, 2023): guided completion.
- [Investigating Data Contamination in Modern Benchmarks for Large Language Models](https://arxiv.org/abs/2311.09783) (Deng et al., 2023): retrieval and TS-Guessing.
- [Benchmarking Benchmark Leakage in Large Language Models](https://arxiv.org/abs/2404.18824) (Xu et al., 2024): perplexity and n-gram accuracy, and the Benchmark Transparency Card.
- [Data Contamination Through the Lens of Time](https://arxiv.org/abs/2310.10628) (Roberts et al., 2023): a natural experiment from training cutoffs.
- [A Careful Examination of Large Language Model Performance on Grade School Arithmetic](https://arxiv.org/abs/2405.00332) (Zhang et al., 2024): GSM1k.
- [LiveCodeBench](https://arxiv.org/abs/2403.07974) (Jain et al., 2024): a continuously updated contamination-free code benchmark.
- [Benchmark Data Contamination of Large Language Models: A Survey](https://arxiv.org/abs/2406.04244) (Xu et al., 2024): a survey.
- [BIG-bench README](https://github.com/google/BIG-bench): the canary strings in task files.

## Companion code

[Benchmark contamination: detect wording overlap and audit slices](https://github.com/dmxsf/dmxsf/tree/main/labs/evaluation/benchmark-contamination): Build real overlap flags on synthetic benchmark questions and audit how averaging hides contaminated and clean slices.

- Run it in the companion repository (add --quick for a fast pass): `uv run dmxsf run evaluation/benchmark-contamination`
- [View the lab script](https://github.com/dmxsf/dmxsf/blob/main/labs/evaluation/benchmark-contamination/run.py)
- [Lab write-up](https://github.com/dmxsf/dmxsf/blob/main/labs/evaluation/benchmark-contamination/README.en.md)
- [`contamination.py`](https://github.com/dmxsf/dmxsf/blob/main/src/dmxsf/evaluation/contamination.py)
- [Find this lab in the catalog](https://dmxsf.com/en/code/#benchmark-contamination)

## FAQ

### What is benchmark contamination (data contamination)?

Benchmark contamination means that evaluation questions, answers or paraphrases of them are in a model's training data, so part of the score is memory and no longer reflects generalization. It is often unintentional: crawled web pages, public evaluation repositories and synthetic data written by models that had seen the benchmark can all carry questions into a corpus. In this page's experiment the model knows nothing about the invented facts: items it never saw score 0.233 (guessing is 0.25), items repeated verbatim 16 times score 0.967, and the whole gap comes from the few lines mixed into the training set.

### How do you detect whether a model was contaminated by a benchmark?

It depends on what you can access. With the training corpus, look for overlap between evaluation items and documents with n-grams (GPT-3 used windows of 8 to 13 words), or find semantic duplicates with embeddings or a strong model. Without it, look at the model itself: items whose loss is far below a base model's, or whose Min-K% Prob is high; black-box options include guided completion, an exchangeability test that shuffles item order, and guessing masked options; items published after the training cutoff give a time-based control. In this page's small experiment n-gram overlap catches only verbatim contamination while model signals also catch paraphrases, but on real pretraining data such signals are much weaker.

### Why is n-gram decontamination not enough?

N-gram overlap only sees surface text: rephrasing, translating or reformatting a test item slips through, while a window that is too small flags templates and common phrases. In this page's experiment the GPT-3-style rule flagged a share of 1.000 of the verbatim items and 0.000 of the paraphrased ones, although paraphrased items repeated 16 times reached 0.900 accuracy; with a window of 4, the share of never-seen items flagged was 1.000 as well. Yang et al. (2023) likewise found that paraphrased or translated test items bypass n-gram decontamination, and a 13B model trained on them can match GPT-4 on the benchmarks.

### How do you design an evaluation that is hard to contaminate?

Four families of practice: split by time and keep adding items (LiveCodeBench keeps collecting new contest problems and can evaluate only problems published after a model's cutoff); commission a fresh same-distribution set and keep it private, then compare old and new scores (GSM1k against GSM8k); keep a private test set and run it yourself; put canary strings in evaluation files so that training pipelines can filter them. Each has costs, so a report should also state how contamination was checked, the scores on the full set and the clean subset, and what could not be checked.

### Does a high score on a contaminated benchmark mean the model cheated?

Not necessarily, and the effect may be small. Most contamination is unintentional (web crawls, synthetic data), and overlap is not the same as leaked answers: in the GPT-3 paper 94% of DROP examples were marked dirty, yet the matching training documents contained only the source passages, not the questions or answers. For most benchmarks the GPT-3 analysis found negligible differences between the clean subset and the full set, flagging only a few. So measure the effect by comparing scores on the full set, the clean subset and fresh items, instead of either accusing or reassuring without evidence.
