Auditing near-duplicate examples before reporting a benchmark

← Back to Blog & Articles

Lee and colleagues study the effects of deduplicating language-model training corpora (Lee et al.

Lee and colleagues study the effects of deduplicating language-model training corpora (Lee et al. 2022).

Build an exact-match pass with documented normalization. Follow it with a near-match pass using character or token shingles and a candidate-generation index. Calibrate similarity thresholds on a labeled audit of candidate pairs, including borderline pairs. Test a sample of noncandidate pairs when feasible because candidate generation can miss paraphrases. Report the numerator and denominator for every match category, and distinguish shared template fragments from a shared answer or source.

Transitive clustering has a failure mode. If A is similar to B and B to C, connected components place A and C together even if they have little in common. This can be desirable for conservative train-test isolation and misleading for counting unique intents. Inspect large or rapidly growing components and record the grouping rule.

Report full and filtered scores with the same paired units. If gains are +12 points on the 150 flagged rows and +2 points on the 850 unflagged rows, the pooled gain is +3.5 points. Excluding flagged rows changes the evaluation population and reduces the point estimate to +2 points. The gap is consistent with contamination sensitivity, but flagged cases can also differ in difficulty or age. A temporal holdout of new families and matched comparisons by case type strengthen the diagnosis.

Continue with the book

Explore the full treatment, worked examples, and exercises in Statistical Foundations for LLM Development and Evaluation.


Companion article for Statistical Foundations for LLM Development and Evaluation, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.

Scroll to Top