Benchmark contamination and canary strings
Short answer. Contamination happens when evaluation tasks or answers end up in a model's training data. Private splits, canary strings, rotation and regular scans reduce the risk and make it visible.
How leaks happen
Tasks get copied into forums, mirrored on code hosts, quoted in papers or scraped into crawls. Once public, they can enter the next training run. Even a private set can leak when its tasks are pasted into a public chat.
Defenses
Keep the main evaluation set private. Add a canary string, a unique marker that should never appear in training data, so you can test whether a model has seen the file. Rotate tasks at each release. Scan the web and probe models for the canary on a schedule.
When a leak is found
Retire the affected tasks, replace them, and note the change in the release log. Report old scores with a caveat. Treat leak findings as normal maintenance, not a scandal.
Common questions
Can a canary prove contamination?
It is evidence, not proof. If a model completes a canary string it likely saw the document, but absence does not prove it did not.
Should evaluation sets ever be public?
Public sets help transparency but lose value as they spread. Many teams publish a small public subset and keep the rest private.