How to Keep an AI Evaluation Set Out of Training Data
If a model has seen a task and its answer during training, its score measures recall, not skill. How to keep an AI evaluation set private, unleaked and useful.
Short answer
Keep an AI evaluation set out of training data by writing every task from scratch and never publishing it, screening it against public task sets, checking that the answer is not given away in the codebase, its history or the brief, and checking that reference answers never leak back into the repository. A private set measures skill. A public one slowly turns into a test of memory.
A model that scores well on a benchmark has done one of two things. It has worked the problems out, or it has seen them before. From the outside, the two look exactly the same.
That is the problem with contamination. If a task and its answer end up in a model's training data, the score on that task stops measuring capability and starts measuring recall. Nothing in the result tells you which one you are looking at. The number is just a number.
Keeping an evaluation set out of training data is not one step. It is a set of habits that start before the first task is written and continue for as long as the set is in use. This post covers the ones we rely on when we build evaluation sets for labs.
How does an evaluation set end up in training data?
Usually without anyone meaning it to. Models are trained on very large amounts of text gathered from the public web and from public code. Anything public can end up in that pile.
It is not only the tasks themselves. Public tasks get discussed. People post their solutions, write blog posts about the tricky ones and open pull requests that fix the bugs the tasks were built around. Each of those is a path from the benchmark into the next model's training data. After a while, a model can arrive at a public task already knowing roughly what the fix looks like.
There is a quieter path too. A task built on a real codebase can give its own answer away. If the fix for the bug is already in a later commit, or a comment in the code explains exactly what is wrong, then a model that searches well can find the answer without solving anything. That is not contamination from training. It is a leak inside the task, and it does the same damage.
Rule 1. Write tasks from scratch and never publish them
The most reliable way to keep a task out of training data is to make sure it never exists anywhere public.
Our evaluation tasks are original. They are written by our engineers and domain experts for the lab that asked for them, delivered into a private repository and never published. We also screen new tasks against public task sets, so we are not rebuilding something a model may already have seen under a different name.
Private by default is a stronger guarantee than it sounds. Nobody can train to the answers of a task that was never published, so the results stay a cleaner measure of real skill.
Rule 2. Check that the answer is not in reach
A task can be private and still leak its answer from the inside. So before a task ships, we check every place the agent can look.
- The codebase. Is the answer written down anywhere, in a comment, a test, a fixture or a configuration file?
- The history. If the task is pinned to one commit of a real repository, does a later commit, a branch or a tag contain the fix?
- The brief. Does the wording point straight at the answer, or name the method the agent is supposed to work out?
For codebase investigation tasks, the brief is a plain-language question an engineer would ask, about a large codebase pinned to one commit. The answer has to come from reading the source and running the code, not from finding a sentence that already states it. If any of those checks turn up the answer, the task is changed until they do not.
Rule 3. Keep reference answers out of the repository
The reference answer is the most valuable file in the task, and the easiest to leak by accident.
A reference answer that sits next to the code, or a test file that contains the expected output in plain text, can be read by any agent that looks. So the reference lives outside anything the agent can reach. Verifiers run as a separate user, and for complex tasks in a separate container, so the agent cannot read the tests or the expected results.
We then check, as a separate step, that the reference answer has not found its way back into the repository. Answers have a way of creeping in through debugging notes, leftover files from building the task or a test that was copied in the wrong place. A final pass that looks for them catches what careful authors still miss.
Rule 4. Report results per task, not only overall
Contamination rarely hits a whole set at once. It tends to show up in a few tasks first.
That is one reason every task in our evaluation sets ships with its own frontier-model results: the models tested, the attempts, the pass rate and why each failure was real. If one task suddenly becomes easy for a new model while the rest of the set does not move, that is worth a look. It might be real progress. It might be a leak. With per-task results, you can tell the difference. With only one overall number, you cannot.
When should an evaluation set be refreshed?
When it stops telling models apart. As models improve, pass rates rise and scores bunch together at the top. A set that nearly every model aces can no longer separate them, and a set that has been in use for a long time has had more chances to leak.
The signal to watch is the spread of scores from one evaluation cycle to the next. When it keeps shrinking, the set is due a refresh with new, harder tasks. We cover how to pick the right difficulty range in what pass rate an AI benchmark should target.
Is a public benchmark still useful?
Yes, for what it is. Public benchmarks give the field a shared reference point, and they are often the only way to compare results across teams. We explain how they are built in what an agentic benchmark is.
But a public score is a claim about a model and a test that the model may have seen. If you are deciding which model to ship, or measuring whether your own training run actually improved anything, you want a set the model cannot have studied for. That is what a private, held-out set is for.
Quick answers
What is benchmark contamination? When tasks from an evaluation set, or their answers, end up in a model's training data. The model's score then reflects what it remembers instead of what it can do.
How do you know if an evaluation set has leaked? Look at results per task. A few tasks that suddenly become easy for a new model, while the rest of the set does not move, are a sign worth checking.
Is keeping the tasks private enough? No. A private task can still give its answer away through the codebase, its history or the brief, so each of those needs checking before the task ships.
What is the difference between an evaluation set and an RL environment? The package is the same. An evaluation set is held out from training and used only to measure models, so its tasks are never published and their results are reported per task.
Need an evaluation set nobody has trained on?
Our evaluation tasks are written from scratch, never published, checked for leaks and shipped with their frontier-model results per task.
Keep reading
All articles- Verifiers and reward hackingMay 14, 2026
How to Write a Fair Grading Rubric for AI Answers
An LLM as a judge grading rubric should check the facts an answer states, not how it was written. The rules our engineers use to keep AI scoring fair.
- Verifiers and reward hackingJan 8, 2026
What Pass Rate Should an AI Benchmark Target?
What pass rate should an AI benchmark have? Aim for 40 to 70 percent on your target models so scores spread out and rankings hold. Here is how we calibrate.
- Verifiers and reward hackingSep 24, 2026
How to Make Sure an AI Grader Is Fair
To test an AI grader for false fails, run known bad and valid alternative solutions through it, then read every failed run. How our reviewers prove fairness.