How Severe Is Benchmark Contamination? Can We Still Trust LLM Scores

    This article examines benchmark contamination in large language model evaluation, using a case where a base model reproduced 158 hidden test questions verbatim. It explains how contamination occurs across pre-training and post-training, outlines five reproducible detection methods such as continuation probes and perturbation consistency, and covers governance across data, training, evaluation, and engineering. Readers will learn what to request during model selection and why scores without a contamination audit should be treated as unverified signals.

    1. The Symptom: A “Closed-Book Recall” Incident Exposes an Evaluation Crisis

    A team evaluated a newly released base model on a widely used code capability benchmark. The test set contains 164 questions, and during evaluation the model was given only the prompt for question 66. After answering it correctly, the model did not stop. It went on to reproduce the prompt, examples, and official reference answer for question 67 word for word, including a typo the original author had made in a single word. Then came questions 68, 69, and 70, in exactly the same order as the test set.

    None of this content appeared in the input. Across the full run, the model reproduced the prompts and answers for 158 questions from memory. Under the standard evaluation procedure, the same model scored a perfect mark on code capability.

    Once the questions the model could recite were deducted from the results, the conclusion reversed. The base model’s code score dropped from full marks to a single digit, the average ranking of the four evaluated models moved from first to last, and another vendor’s model rose to first place. Meanwhile, two models could barely reproduce any questions, showing that high scores are achievable without relying on memorization.

    This is not an isolated case. Observations over the past month show the same trend at both the pre-training and post-training stages: the share of high public scores that come from having “seen the exam paper” is increasing.

    2. The Mechanism: How Models “Go to School” and How Contamination Happens

    A large model typically develops in three stages:

    • Pre-training: equivalent to reading through an entire library, ingesting massive amounts of web pages, books, and code to produce a base model that is broad in knowledge but not yet good at following instructions;
    • Post-training: equivalent to on-the-job training, teaching the model to follow instructions, write code, and operate tools, resulting in a conversational assistant or agent;
    • Evaluation: equivalent to an exam, scoring the model on public standard test sets, which is where most launch-day scoreboards come from.

    The problem is that the exam papers are public. Once the original questions and answers enter the corpus the model has read or its training materials, the exam loses its discriminative power. Contamination also varies in severity: mild cases only drill the model on question patterns, while severe cases hand it the original paper and answers. The former produces a distribution bias; the latter produces near-verbatim memorization.

    From an information theory perspective, the meaning of an evaluation score rests on the premise that the samples have not been seen by the model. Once that premise is broken, the score measures corpus coverage rather than generalization ability.

    3. Detection: How to Identify “Memorized” High Scores

    There are five reproducible detection methods:

    1. Continuation probe: provide only the prompt of a single question and observe whether the model goes on to output the prompts and reference answers of subsequent questions, checking whether it reproduces typos and formatting flaws from the original text;
    2. Perturbation consistency: apply synonym rewriting, variable renaming, and boundary condition changes to the prompt; large score swings indicate reliance on surface patterns;
    3. Leave-one-out evaluation: remove one question from the test set at a time and observe whether scores on the remaining questions rise abnormally;
    4. Time slicing: build the test set using only questions created after the model’s training cutoff;
    5. Private set validation: cross-validate with self-built, unpublished questions and analyze the gap against public set scores.

    An illustrative workflow:

    1. def contamination_probe(model, items):
    2. report = []
    3. for i, item in enumerate(items):
    4. # Provide only the current prompt, with no subsequent content
    5. out = model.generate(item.prompt, max_tokens=1024)
    6. leak = out.count(items[i + 1].reference) > 0
    7. # Perturbed version: rewrite the prompt and re-evaluate
    8. score_clean = evaluate(model, [item])
    9. score_perturbed = evaluate(model, [perturb(item)])
    10. report.append({
    11. "id": item.id,
    12. "leak": leak,
    13. "delta": score_clean - score_perturbed,
    14. })
    15. return report

    Practical rules: questions where leak is true should be removed from the score outright; questions with a significantly positive delta should be treated as suspected memorization-driven results.

    4. Governance: Closing the Loop from Data to Evaluation

    • Data side: build corpus deduplication and approximate retrieval capabilities, apply both n-gram and semantic duplicate checks to public test sets, and route matching samples into an isolation zone; retain source and version records for training data to support traceability;
    • Training side: control the weight of benchmark-related corpus in the data mix, and avoid using public questions that contain standard answers for instruction fine-tuning during post-training;
    • Evaluation side: maintain a pool of private and dynamically generated questions, adopt time slicing and question rotation, and periodically publish “scores after deducting memorized questions”;
    • Engineering side: use object storage to keep data snapshots, message queues to drive evaluation jobs, a container platform to host reproducible evaluation environments, and logging and monitoring with alerting to track score drift.

    5. Conclusion and Recommendations

    Public benchmark scores are meaningful only when accompanied by a contamination audit. When selecting and accepting models, teams should request three things: whether a continuation probe has been run, whether perturbed scores are available, and whether results from an unpublished private set exist. If all three are missing, a high score should be treated as a signal awaiting verification rather than proof of capability. For developers, writing “reproducible, traceable, perturbable” into evaluation standards reflects real engineering maturity better than chasing leaderboard positions.