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

Shared Errors as Evidence of Copying: A Philological Test for Benchmark Contamination

Benchmarks contain mistakes. A few answer keys are wrong, some arithmetic in the gold solutions is off, and some questions carry an odd phrasing that only their authors would have written. Textual critics have used this kind of evidence for two centuries. When two manuscripts share the same idiosyncratic error, the most economical explanation is that one was copied from the other, or both from a common source, because independent scribes rarely make the same unlikely slip. We propose to apply that rule to language models. If a model reproduces a benchmark's wrong gold answer far more often than an uncontaminated model of similar ability would, the model has inherited the benchmark rather than reasoned its way to the answer.

This matters because the most realistic forms of leakage defeat current detectors. Benchmark data contamination means test items end up in a model's training data, so that high scores reflect recall. Leaked items get shuffled, scattered across web documents, paraphrased, or relayed through synthetic data produced by a teacher model. Rephrasing an item preserves its answer, and that includes a wrong answer. A shared-error test therefore keeps working under the transformations that break order-based and wording-based tests. It needs only sampled outputs from the model, with no training corpus and no log-probabilities.

Core Claim

Our central claim is that documented errors in benchmark answer keys work as built-in canaries: unique marker strings planted in a dataset so that copying can later be detected. They survive paraphrase, translation, shuffling, and distillation, and they support item-level, black-box contamination evidence. The philological ingredient that makes this rigorous, and not just a heuristic, is the textual critic's distinction between errors that independent copyists could easily make on their own and errors that are unlikely to arise twice by chance. A shared answer only counts as evidence if a model that never saw the benchmark would rarely produce it. We estimate that baseline rate from reference models known to be clean.

Concretely, let $E$ be a set of benchmark items whose gold answer $g_i$ has been verified as wrong. Let $q_T(g_i)$ be the frequency with which the target model outputs $g_i$ under sampling, and let $q_0(g_i)$ be the same frequency pooled over a set of clean reference models of comparable accuracy. Each item receives a score, and the scores are summed into a test statistic:

$$ s_i = \log \frac{q_T(g_i) + \epsilon}{q_0(g_i) + \epsilon}, \qquad S = \sum_{i \in E} w_i\, s_i , $$

Here $\epsilon$ is a small smoothing constant. The weight $w_i$ increases as $q_0(g_i)$ decreases, so that wrong answers clean models rarely give count for more, the analogue of an unlikely shared slip. A permutation null is built by swapping target and reference labels across models, and it gives a dataset-level p-value. The per-item $s_i$ give instance-level evidence on the error items themselves.

Relation to Prior Work

Philology supplies the method. Logion: Machine Learning for Greek Philology trains a masked language model on 70 million words of Ancient Greek to flag scribal corruptions. Its Scribal Distance metric penalizes phonetically natural slips, the kind many scribes make independently, less than arbitrary substitutions. We borrow exactly this idea, a graded estimate of how likely an error is to arise twice independently, but we turn the direction around. Logion uses language models to study manuscript transmission, and we use transmission logic to study language models. The constraint-based tradition of textual criticism, for example Überlegungen zu den Theognideen, argues for reasoning from observable shared features and against reconstructing a lost original. That stance fits our setting, where the training corpus of a closed model is the unrecoverable original and only its outputs can be observed. Textkritische Uberlegungen zu hellenistischen Epigrammen supplies a needed caution: some apparent errors are deliberate or natural forms that any competent writer would produce. Our reference-model baseline is the computational version of that check.

Contamination work supplies the motivation and the constraints. Rethinking Benchmark and Contamination for Language Models with Rephrased Samples shows that rephrased MMLU training data lifts Llama-2-13B from roughly 55 to roughly 86 while evading n-gram filters. It also finds that 12.8% of CodeAlpaca consists of disguised HumanEval items inherited from a teacher model. Both results show leakage that preserves answers and alters surface wording, which is the regime we target. Proving Test Set Contamination in Black-Box Language Models gives provable dataset-level detection by testing whether the canonical item order is more likely than shuffled orders. It reports p-values around 0.01 for LLaMA2 and Mistral on MMLU, and it detects contamination from as few as 2 to 4 duplicates in controlled pretraining. The test depends entirely on item order, which shuffling and scattering destroy. Our test ignores order altogether. PaCoST compares the model's confidence on original and rephrased items, needs log-probabilities, and reports only aggregate results. Data Contamination Quiz asks the model to recognize the original wording among word-level perturbations, estimating about 95% contamination for GPT-4 on XSum. It detects memorized wording and would miss paraphrased leakage that kept the answer. A Taxonomy for Data Contamination in Large Language Models shows that noised (paraphrased) contamination performs almost as well as verbatim exposure on SQuAD and CBT. We reuse its controlled-pretraining design and its contamination categories as our experimental grid.

Research Program

The first deliverable is a critical apparatus, the textual critic's list of variant and erroneous readings, for MMLU, GSM8K, and ARC. For GSM8K, wrong gold answers can be found mechanically by checking the arithmetic in the reference solutions. For MMLU and ARC we will collect expert re-annotations of items where strong models disagree with the key. Each confirmed error will then be graded by how likely it is to arise independently. Errors that look like slips, such as an answer key shifted by one option or a transposed digit, tend to be unlikely to recur by chance. Errors where the question is genuinely ambiguous tend to recur. The grading uses clean-model frequencies. We have no count yet of how many confirmed errors each benchmark contains. That count determines the statistical power of the test and is the first thing we will measure.

The second deliverable is the set of clean reference models. These include small models we pretrain ourselves on FineWeb after aggressive decontamination, and public models whose training data predates a benchmark's release. The reference set is matched to the target on accuracy over the error-free items, so that the baseline reflects ability and not just chance.

The third deliverable is a family tree of transmission. A teacher model may reproduce benchmark errors, and its synthetic instruction data may then pass them to a student. In that case the shared errors should be visible at every link, from benchmark to teacher, from teacher to synthetic data, and from synthetic data to student. This is the setting in which Rethinking Benchmark and Contamination found HumanEval leaking into CodeAlpaca, but there the leak was detected by similarity, without tracing who inherited from whom.

Baselines

The naive reference point is accuracy on the error items scored against the corrected answers, with no clean baseline. This is what an evaluator would see by default, and it tells us how much our calibration adds.

The strongest order-based competitor is the sharded rank comparison test of Proving Test Set Contamination in Black-Box Language Models. Its reported figures are p ≈ 0.01 for LLaMA2 and Mistral on MMLU, p = 0.001 for Mistral-7B on ARC, and reliable detection at 2 to 4 duplicates. We will run it with its published shard settings on the same target models and the same injected-contamination conditions.

PaCoST is the strongest black-box confidence method for paraphrase-sensitive leakage, although it needs log-probabilities. It will run on the same open-weight models with the same paraphrases we use elsewhere. We found no per-benchmark numerical result for PaCoST on Lacuna.

Data Contamination Quiz is the strongest recognition-based method, with a reported estimate of about 95% contamination for GPT-4 on XSum. It will run with its bias-compensation quizzes on the same items.

The LLM Decontaminator from Rethinking Benchmark and Contamination inspects the training corpus directly. It applies only where we control that corpus, and there it serves as an upper-bound oracle.

All methods receive the same items, the same models, and the same query budget per item. Hyperparameters are tuned on one held-out contamination condition and frozen. We beat a baseline if we reach higher detection power at a 5% false-positive rate in the shuffled-and-rephrased condition, and stay within its confidence interval in the verbatim canonical-order condition, where we expect the rank test to be very strong.

Two ablations isolate the key ingredient. The first applies the identical statistic to randomly chosen correct items, where agreement with gold reflects ability as well as copying. If the error items are what make the test work, this version should lose most of its power. The second sets every weight $w_i$ to one, removing the grading by independent-error likelihood. This shows whether the philological distinction matters, or whether raw agreement with wrong answers is enough.

Why not just…?

Why not just check whether the model matches wrong gold answers, with no reference models? Hard questions are where annotators err, and capable models may err the same way for the same reason. Raw agreement therefore confounds difficulty with copying. That confound is exactly the case of errors that arise independently, and it is why textual critics discount natural slips. The unweighted, uncalibrated ablation measures how much this matters. If it performs as well as the full test, the philological framing adds nothing and we will say so.

Why not just use the order test or PaCoST? Under verbatim, ordered leakage they may well beat us, since a single model sees many more items than there are error items. The case for our test rests on the shuffled, scattered, and rephrased conditions, where the rank test has no signal by construction, and on closed models, where PaCoST cannot run. If PaCoST stays strong under rephrasing on open models, our advantage shrinks to black-box access and per-item evidence. That is still useful, but it is a weaker claim.

Why not just compare accuracy on fresh look-alike items, as dynamic benchmarks or EvoEval-style rewrites do? The survey Benchmark Data Contamination of Large Language Models: A Survey reports a 39.4% average drop on evolved HumanEval across 51 models. A drop of that kind mixes contamination with the difficulty shift introduced by the rewrite. A wrong answer has no legitimate route to being produced more often, so a shared error points to copying with fewer confounds. Fresh items are also no help in auditing models that have already been trained.

Proposed Experiments

The decisive experiment is controlled pretraining of roughly 1-billion-parameter models on a FineWeb sample, following the design of A Taxonomy for Data Contamination. We inject MMLU, GSM8K, and ARC test items, including the error items, at repetition counts from 1 to 16. The injection takes four forms: verbatim in canonical order, verbatim shuffled and scattered across documents, rephrased in the style of Rethinking Benchmark and Contamination, and question-plus-answer pairs only. Every detector is scored by power at a fixed false-positive rate, and by item-level ranking quality (area under the ROC curve) on the error items. The predicted signature is that the rank test collapses in the shuffled condition, recognition quizzes weaken under rephrasing, and the shared-error statistic stays roughly flat across all four forms. The idea is falsified if, after rephrasing, contaminated models answer with the corrected answer instead of the inherited error. That would mean paraphrased training teaches the skill rather than transmitting the key.

The second experiment is distillation. We fine-tune a student on synthetic data from a teacher that was deliberately contaminated, and test whether the shared errors pass through every link of the chain. The third is an audit of public open and closed models on the error apparatus. Each verdict is reported against the clean-reference baseline, with per-item scores released alongside, so that others can inspect individual cases the way textual critics inspect a disputed reading.