Skip to content

Your benchmark questions may already be in the training set

THE ARGUMENT

A benchmark score only means something if the items were never in the training data. Contamination is judged with evidence — a fresh parallel set, text overlap, and elicited recall — not intuition. And that evidence can only falsify, never certify.

On this page

Suppose you are comparing two models on the same math benchmark. Model A scores 78, model B scores 92, and B costs 40% more. Will you pay for those 14 points? Not yet. The benchmark has been public for years, its questions are all over the internet, and most training corpora come from the internet. Those two facts together mean the gap may have nothing to do with capability. This article is about how much of that 14 points comes from having seen the questions, and what you can actually do about it at acceptance time.

Start with one score jump

A familiar situation: one open model reports 92 on GSM8K, another reports 78. You are buying the second one because it is cheaper and can be deployed privately. You plan to use the first as a baseline and tell your manager that the gap is only 14 points, and one round of extra data will close it.

That reasoning hides an unverified assumption: the 92 was earned on questions the model had never seen. GSM8K was released in 2021, holds a bit over eight thousand grade-school word problems, and has since been copied, discussed, solved and reposted countless times. Web-scale pretraining corpora rarely remove all of those copies.

GSM1k did something very plain: it wrote new questions

A 2024 effort (GSM1k) invented no new method. It wrote a fresh set of problems at the same difficulty and in the same style, then ran the same models on both sets. The logic is clean: if a model genuinely learned this kind of problem, a new set of equal difficulty should yield roughly the same score. A clear drop means part of the earlier score came from familiarity with the original items.[1]

Scores did drop. The value of the experiment is not some universal “contamination rate”; it is a reusable acceptance idea: calibrate a public test set against a parallel set that was never published. You do not have to trust anyone's methodology. You can write the items yourself.

A systematic study organizes detection into three families: n-gram overlap between training corpus and test items, perplexity anomalies on the test items, and guided prompting that tries to elicit recall (asking the model to complete the question, or asking directly whether it has seen it).[2] All three point at the same thing: the model's familiarity with the item exceeds what the difficulty alone would explain.

Three signals and what each can prove

SignalHow to lookWhat it showsWhat it does not show
n-gram overlapMatch test items against the training corpus at 13-gram lengthThis exact string appears on both sidesOverlap is not learning; paraphrased items escape detection
Perplexity anomalyCompare loss on test items versus equally hard new itemsThe model finds this text unusually familiarFamiliarity can also come from legitimate in-distribution training
Guided promptingAsk the model to complete the stem or recite the solutionRecall can be elicitedA failed elicitation does not prove absence; prompt design matters

The first is the easiest to automate; the third is closest to human judgment. Their shared limit: they find positive evidence of overlap, but a negative result does not certify cleanliness. Nothing may be found because the item was heavily rewritten, or because the leak happened inside a pretraining corpus you will never see.

Four steps you can run at acceptance

  1. Build a small parallel set: 20 to 50 items, same skills and difficulty, but with rewritten wording, numbers and contexts. Write it yourself, keep it unpublished, and never commit it to a shared repository.
  2. Run both the candidate model and the baseline on both sets. Ask whether the gap shrinks, holds, or reverses. A gap concentrated on the public set means the public score is inflated.
  3. Run an n-gram overlap check on the public set — against the training corpus if you have it, against a public crawl snapshot if you do not. Mark hits, remove them, and recompute.
  4. Write the conclusion as one sentence: “On an unpublished parallel set the candidate is N points ahead of the baseline; on the public set it is M points ahead.” That sentence is far more useful than “92 points” and much harder to answer with sales language.

Step three is usually skipped because buyers rarely get a full training corpus. Then step back: check only a public mirror, such as one Common Crawl snapshot, against the item pages. It is incomplete, but it converts “we cannot check” into “we checked a stated scope”.

What this check does not prove

The second limit is time. Today's clean item enters tomorrow's pretraining corpus. Your parallel set therefore has a shelf life: used items must retire and new ones must keep arriving. The real cost is not writing items but maintaining a set that never leaks — once it appears in public, your calibration tool is gone with it.

One last uncomfortable point: if the evaluation set you bought is a cleaned-up copy of a public benchmark, you bought used questions. To judge capability for your own use case, you have to write items for that use case. Other people's questions only tell you what other people care about.

References

  1. A Careful Examination of Large Language Model Performance on Grade School Arithmetic (GSM1k)
  2. Investigating Data Contamination in Modern Benchmarks for Large Language Models

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…