Checking benchmark exposure before interpreting an apparent gain

← Back to Blog & Articles

A benchmark is contaminated when items, or close variants of them, appear in the training data of the model being evaluated.

A benchmark is contaminated when items, or close variants of them, appear in the training data of the model being evaluated. Accuracy on contaminated items measures memory, and the i.i.d. assumption of the companion book example fails, because the model is no longer independent of the test set. We study two detectors on a generated toy corpus (no downloads).

The toy world: tokens are Zipf draws from a vocabulary of 5000. The training corpus has 1500 documents of 200 tokens, with 20 fixed six-token template phrases (boilerplate) inserted at random positions. The benchmark has 500 items of 40 tokens: 150 clean, 50 clean with a template inserted, 100 verbatim copies of corpus spans, and 100 each of copies in which every token is replaced by a fresh draw with probability 0.10 (“10% edited”) or 0.25 (“25% edited”).

Continue with the book

Explore the full treatment, worked examples, and exercises in Applied AI Under Uncertainty.


Companion article for Applied AI Under Uncertainty, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.

Scroll to Top