If you rewrite a prompt until it scores well on a set of examples, those examples can no longer tell you how the prompt will do on new inputs. Decades of machine-learning research on model selection explain why, and the fix is cheap: split your examples before you start, and keep the test half out of your hands.
AI disclosure. This page was drafted by Claude, an AI model, expanding an earlier AI draft by Grok Bot for Apiary, from sources read on 27 November 2026. It has not been reviewed by a human expert and is not founder-verified. Status: candidate. If something looks wrong, tell Apiary.
When you write a prompt for an AI system, you usually try it on some examples, see what goes wrong, change the wording, and try again. That loop is how prompts get better. It also has a side effect people often miss: after enough rounds, the prompt is fitted to those examples. Scoring it on the same examples now measures how well you tuned, not how well it will work on the next input that arrives. The score comes out too high, sometimes by a lot.
The fix is to keep two sets of examples:
- a tuning set (sometimes called a development set) that you look at, run, and iterate on as much as you like;
- a held-out test set that you do not use while tuning, run only to check a finished version, keep out of your prompts entirely, and replace when it has been used too often.
This is not a new idea invented for language models. It is the standard practice in machine learning for choosing settings, and the research behind it is clear about what goes wrong without it. Cawley and Talbot showed in 2010 that "the degradation in performance due to over-fitting the model selection criterion can be surprisingly large" 1(https://www.jmlr.org/papers/volume11/cawley10a/cawley10a.pdf). Varma and Simon showed in 2006 that tuning on random data with no real signal could still produce classifiers that looked far better than chance on the data they were tuned on, while performing no better than chance on independent data 2(https://doi.org/10.1186/1471-2105-7-91).
This page explains why tuning inflates scores, what the evidence shows (and where it comes from), how prompt work differs from classical model tuning, how to split and protect a test set in practice, and how to report results honestly.
1. Why tuning on your test examples inflates scores
Selection is a kind of fitting
A prompt has many adjustable parts: the instructions, their order, the wording of each rule, which examples you include, the output format, sometimes sampling settings. Each time you change one of them and keep the change because the results improved, you are selecting among candidate prompts based on a score.
That score is computed on a finite set of examples, so it contains noise. Some candidates look better than they are because they happened to suit the particular examples you used. When you pick the best-looking candidate, you are partly picking the one that got lucky on your examples. That luck does not carry over to new inputs.
A small simulation (hypothetical)
Hypothetical, computed for this page. Imagine 20 prompt variants that are, in truth, exactly equally good: each answers 80% of real-world inputs correctly. You test all 20 on the same small set of examples and keep the one with the highest score.
In a simple simulation (20,000 repetitions, each variant's answers treated as independent 80% coin flips), the winning variant's average measured accuracy was about 97% when the test set had 15 examples, about 90% with 50 examples, and about 85% with 200 examples. Its true accuracy was 80% every time.
The simulation is deliberately simplified. Real variants are not equally good, and their errors are not independent. But it shows the mechanism clearly: choosing the best of several noisy scores produces a winner whose score is biased upward, and the bias is largest when the example set is small and the number of candidates is large. Prompt tuning usually has both.
What the research calls it
Cawley and Talbot's paper, "On Over-fitting in Model Selection and Subsequent Selection Bias in Performance Evaluation" (Journal of Machine Learning Research 11, 2010, pages 2079–2107; full PDF read), studied exactly this effect in classical machine learning 1(https://www.jmlr.org/papers/volume11/cawley10a/cawley10a.pdf). In their setting, people choose a model's settings (hyper-parameters) by optimizing a performance estimate such as cross-validation accuracy. The abstract says:
- low variance in that estimate "is at least as important" as lack of bias, because "a non-negligible variance introduces the potential for over-fitting in model selection as well as in training the model";
- "the degradation in performance due to over-fitting the model selection criterion can be surprisingly large";
- "the effects of this form of over-fitting are often of comparable magnitude to differences in performance between learning algorithms, and thus cannot be ignored in empirical evaluation";
- "some common performance evaluation practices are susceptible to a form of selection bias as a result of this form of over-fitting and hence are unreliable" 1(https://www.jmlr.org/papers/volume11/cawley10a/cawley10a.pdf).
The authors also state the generality of the point: although they concentrate on cross-validation, "the findings are quite general and apply to any model selection practice involving the optimisation of a model selection criterion evaluated over a finite sample of data" 1(https://www.jmlr.org/papers/volume11/cawley10a/cawley10a.pdf).
Their remedy is to treat selection as part of fitting: "model selection must be treated as an integral part of the model fitting process," which means robust evaluation "is likely to require more rigorous and computationally intensive protocols, such a nested cross-validation or 'double cross'" 1(https://www.jmlr.org/papers/volume11/cawley10a/cawley10a.pdf).
The starkest demonstration: tuning on noise
Varma and Simon, "Bias in error estimation when using cross-validation for model selection" (BMC Bioinformatics, 2006; abstract read via Europe PMC), made the effect impossible to ignore 2(https://doi.org/10.1186/1471-2105-7-91). They created random "null" datasets where there was no real difference between the two classes, then tuned two kinds of classifiers to minimize the cross-validation error on that data.
Even with nothing to find, the tuned classifiers' estimated error rate came out below 30% on 18.5% of the simulated datasets for one method and on 38% for the other, while "Performance of the optimized classifiers on the independent test set was no better than chance" 2(https://doi.org/10.1186/1471-2105-7-91). A nested procedure, which tuned inside an inner loop and measured in an outer loop, "reduces the bias considerably" and gave estimates close to the independent test results 2(https://doi.org/10.1186/1471-2105-7-91). Observed results, for those classifiers and simulated data.
The lesson for prompt work is uncomfortable and useful. Tuning can make a system look skilled on the examples you tuned on even when it has learned nothing that generalizes.
2. Applying this to prompts: what is evidence and what is analogy
The analogy, stated plainly
Cawley and Talbot, and Varma and Simon, studied classical classifiers and their numeric settings. They did not study language-model prompts. Applying their results here is a reasoned analogy, not something they tested. The analogy is close, though: each prompt rewrite is a choice among candidate settings, made by looking at scores on a finite set of examples. That is the situation Cawley and Talbot say their findings cover 1(https://www.jmlr.org/papers/volume11/cawley10a/cawley10a.pdf).
Evidence that prompts are especially sensitive
One feature of language models makes the problem worse. Small, meaning-preserving changes to a prompt can change performance a lot. Sclar, Choi, Tsvetkov and Suhr, "Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design" (ICLR 2024; arXiv v2, 1 July 2024; abstract read), found that several widely used open-source models were very sensitive to subtle formatting changes in few-shot prompts, with performance differences of "up to 76 accuracy points" for LLaMA-2-13B 7(https://arxiv.org/abs/2310.11324). The sensitivity persisted as models grew, as the number of few-shot examples increased, and after instruction tuning. The authors argue that prompt-based evaluations should report "a range of performance across plausible formats" rather than one number 7(https://arxiv.org/abs/2310.11324). Observed result, for the models tested.
If performance swings that much on formatting, then a long tuning session explores a landscape full of spurious peaks. Some of the "improvements" found while tuning will be peaks that suit your particular examples and not the next ones.
Evidence that seen-before items inflate scores
A related problem is contamination: a model doing well on test items because it has seen them, or close copies, before. Zhang and colleagues built GSM1k, a new set of grade-school math problems designed to match the existing GSM8k benchmark in style and difficulty, and compared model scores on the two (NeurIPS 2024 Datasets and Benchmarks Track; arXiv v4, 22 November 2024; abstract read) 6(https://arxiv.org/abs/2405.00332). They report accuracy drops of up to 8% on the new set, with several model families showing signs of "systematic overfitting" across almost all sizes, and a positive relationship (Spearman's r² = 0.36) between how likely a model was to generate GSM8k examples and its gap between the two sets 6(https://arxiv.org/abs/2405.00332). They also report that many models, especially frontier models, showed minimal overfitting 6(https://arxiv.org/abs/2405.00332).
Putting your test examples into a prompt as few-shot examples is the same kind of leak, done on purpose. The model can copy the pattern of the answer it was shown. A test of that prompt on those examples measures copying.
3. The counter-evidence: when reuse does less harm
It is worth being precise about what the research does not show, because overstating the problem leads to bad advice.
Large test sets resist adaptive overfitting
Roelofs and colleagues, "A Meta-Analysis of Overfitting in Machine Learning" (NeurIPS 2019; abstract read), analyzed more than 100 Kaggle competitions 4(https://proceedings.neurips.cc/paper/2019/hash/ee39e503b6bedf0c98c388b7e8589aca-Abstract.html). In those competitions, participants repeatedly checked their models against a public leaderboard computed on one holdout set, while a separate test set used only once decided the final ranking. Comparing the two, the authors found "little evidence of substantial overfitting" from reusing the public holdout 4(https://proceedings.neurips.cc/paper/2019/hash/ee39e503b6bedf0c98c388b7e8589aca-Abstract.html).
Score drops on new test sets are not always overfitting
Recht, Roelofs, Schmidt and Shankar, "Do ImageNet Classifiers Generalize to ImageNet?" (arXiv v2, 12 June 2019; abstract read), built new test sets for CIFAR-10 and ImageNet following the original procedures and found accuracy drops of 3% to 15% on CIFAR-10 and 11% to 14% on ImageNet 5(https://arxiv.org/abs/1902.10811). But they concluded the drops were not caused by adaptivity (overfitting to the reused test sets); they attributed them to models failing to generalize to slightly "harder" images 5(https://arxiv.org/abs/1902.10811). Gains on the original test sets carried over to the new ones.
What this means for prompt work
Editorial interpretation. Those findings come from settings with large test sets (thousands of items), many independent teams, and limited feedback per submission. Prompt tuning in a small team usually has the opposite: a test set of tens of items, one person looking at every output, and dozens of changes guided by what they see. That is exactly the situation the simulation in section 1 and the model-selection papers warn about.
The Recht result carries a second lesson: even with no overfitting at all, a new set of inputs can be harder than the old one. A held-out test set guards against tuning bias. It does not guarantee that next month's inputs look like this month's. That is a reason to refresh test sets from real recent work, not a reason to skip them.
4. Why repeated peeking is also tuning
Keeping a test set separate is the first step. Using it carefully is the second. If you run the test set after every change and keep changes that improve the test score, the test set has become a tuning set, just a slower one.
This problem has a name in statistics: adaptive data analysis. Dwork, Feldman, Hardt, Pitassi, Reingold and Roth, "Generalization in Adaptive Data Analysis and Holdout Reuse" (arXiv v2, 25 September 2015; abstract read), describe it directly: "the practice of data analysis is an inherently interactive and adaptive process," in which analysts choose new hypotheses after seeing earlier results, so reusing a holdout set this way can overfit it 3(https://arxiv.org/abs/1506.02629). They propose "a simple and practical method for reusing a holdout (or testing) set to validate the accuracy of hypotheses produced by a learning algorithm operating on a training set," designed to allow many adaptive checks while avoiding overfitting to the holdout 3(https://arxiv.org/abs/1506.02629).
Their methods are more formal than most prompt projects need. The practical takeaway is simpler (editorial suggestion): limit how often you look, and when you look, record that you did. Treat each test-set run as spending part of a budget. When the budget is used up, gather new test examples.
5. What provider guidance says
Provider evaluation guides take held-out data for granted in their examples, though they say less about it than the research does.
- OpenAI's evaluation best-practices guide gives an example success criterion defined "On a held-out set of 1000 reference transcripts," and advises "Log everything: Log as you develop so you can mine your logs for good eval cases" 9(https://developers.openai.com/api/docs/guides/evaluation-best-practices). It recommends test data that "includes typical cases, edge cases, and adversarial cases," warns against "Biased design: Creating eval datasets that don't faithfully reproduce production traffic patterns" and against "Vibe-based evals," and suggests continuous evaluation "to run evals on every change" 9(https://developers.openai.com/api/docs/guides/evaluation-best-practices). As read on 27 November 2026, the guide does not discuss overfitting to the evaluation set explicitly.
- Anthropic's guide to defining success criteria and building evaluations frames its example target as an F1 score "on a held-out test set of 10,000 diverse Twitter posts" 10(https://platform.claude.com/docs/en/test-and-evaluate/define-success). The same guide asks for evals that "mirror your real-world task distribution," with edge cases, automated grading where possible, and "volume over quality" 10(https://platform.claude.com/docs/en/test-and-evaluate/define-success). The parts read for this page did not discuss how to protect the held-out set. (The guide's older address for developing tests now opens the same page.)
- Anthropic's engineering post on writing tools for agents describes the practice from the inside: "We relied on held-out test sets to ensure we did not overfit to our 'training' evaluations," and says those test sets "revealed that we could extract additional performance improvements" 11(https://www.anthropic.com/engineering/writing-tools-for-agents). This is a vendor account of its own process.
There is a tension worth noticing between "run evals on every change" 9(https://developers.openai.com/api/docs/guides/evaluation-best-practices) and "don't peek at the test set too often." The way to reconcile them (editorial suggestion) is to run your tuning set on every change, and the held-out test set only at decision points. Continuous evaluation on a tuning set catches regressions. The held-out set answers the question "how good is it really?"
6. Leakage: the many ways test examples sneak back in
Separation can fail without anyone intending it. Kapoor and Narayanan, "Leakage and the Reproducibility Crisis in ML-based Science" (arXiv, 14 July 2022; abstract read), surveyed fields that adopted machine learning and found leakage-related errors in 17 fields affecting 329 papers, and propose "a fine-grained taxonomy of 8 types of leakage" 8(https://arxiv.org/abs/2207.07048). In a case study on civil war prediction, every paper claiming complex models beat logistic regression failed to reproduce because of leakage 8(https://arxiv.org/abs/2207.07048). Their taxonomy is about scientific ML, but the general pattern applies to prompt work: information from the test set reaching the system being tested.
Common ways this happens in prompt projects (editorial list):
- Few-shot examples copied from the test set. The most direct leak.
- Rules written from test failures. You look at a test item the prompt got wrong and add an instruction that fixes exactly that case. Now the test set is tuning the prompt.
- Near-duplicates. A lightly reworded test item sits in the tuning set. Or the same source document appears in both, split into different passages.
- Shared context. Retrieved documents or reference material in the prompt contain the answers to test items.
- Grader leakage. A grading rubric or a judge prompt is tuned against the test outputs until it agrees with what you hoped.
- Time leakage. The test set includes items from after the period the prompt is supposed to handle, or the tuning set includes later items that reveal how earlier ones turned out.
- Selection by the same person. Whoever tunes the prompt also hand-picks the test items, and unconsciously picks ones the prompt handles.
7. How to split and protect a test set
Editorial suggestions, drawing on the sources above.
Before you start tuning
- Gather examples from real work, the way OpenAI's guide suggests mining logs 9(https://developers.openai.com/api/docs/guides/evaluation-best-practices) and Anthropic's suggests mirroring the real task distribution 10(https://platform.claude.com/docs/en/test-and-evaluate/define-success). Include typical cases, edge cases and hard cases.
- Split at random, before anyone looks closely. For example, 30 for tuning and 30 for testing, or a larger test share if you can afford it. Random assignment avoids the "picked the easy ones" problem.
- Split by group, not by item, when items are related. If several examples come from the same document, the same hive, the same volunteer or the same week, put the whole group on one side. Otherwise near-duplicates leak.
- Record the split in a file: item IDs, which set each is in, the date, and who made it. Do not move items between sets later.
- Write the grading rule down before tuning. What counts as correct, partially correct, or wrong. Fix it before you see the prompt's outputs on the test set.
While tuning
- Work only on the tuning set. Look at its failures, change the prompt, re-run, repeat. Run it on every change.
- Never paste test items into the prompt, as examples or as "here is what good looks like."
- If one person must see test results, separate roles where possible. Someone other than the tuner runs the test set and reports only the aggregate number.
At decision points
- Run the test set only when deciding something: ship this version, choose between two finalists, report a result.
- Log every test run: date, prompt version, model version, score. The log is your peeking budget.
- Retire the test set when it has guided many decisions, and build a fresh one from recent real work. Move the old test items into the tuning set if you like; they are no longer independent.
Reporting
- Say which set each number came from. "93% on tuning examples" and "84% on held-out examples" are different claims.
- Report the size of the test set and some measure of spread. A score on 30 items is noisy even when it is unbiased.
- Report variation across runs and formats where you can. Model outputs can vary between runs, and Sclar and colleagues recommend reporting a range across plausible prompt formats 7(https://arxiv.org/abs/2310.11324). The companion page what-a-fixed-seed-promises-in-ai-apis covers run-to-run variation.
8. How big should the sets be?
There is no single right size, but the trade-offs are clear.
- Bias depends on how hard you search. The more variants you try and the smaller the tuning set, the more the best tuning score overstates true performance (section 1). That is why the test set must be separate, not why the tuning set must be huge.
- Noise depends on the test set's size. Even an unbiased estimate from 30 items is rough. Hypothetical arithmetic: if a prompt's true accuracy is 80%, the standard error of a score on 30 items is about √(0.8 × 0.2 / 30) ≈ 0.073, or roughly 7 percentage points. Two prompts whose test scores differ by 5 points on 30 items are not reliably different. The companion page how-imbalanced-test-sets-hide-weak-classifiers covers a related trap.
- Rare cases need deliberate coverage. If a failure that matters (missing a queenless-colony flag, for example) appears in 1 report in 50, a random 30-item test set may contain none. Add targeted examples of rare-but-important cases to both sets, split by the same rule.
Anthropic's guide leans toward many automatically graded questions over few hand-graded ones 10(https://platform.claude.com/docs/en/test-and-evaluate/define-success). For small volunteer projects, a practical middle ground is a modest test set graded carefully by a written rule, refreshed regularly.
9. Worked examples (hypothetical)
These examples are Hypothetical, invented to show the pattern.
Example A: the perfect afternoon
A volunteer tunes a "summarize hive inspection notes" prompt over an afternoon, testing the same 15 notes after each change and keeping changes that help. By evening, all 15 summaries are perfect.
Run on 15 different notes from the same season, the prompt misses a queenless-colony flag in 2 of them. The 15 of 15 measured the afternoon's tuning; the 13 of 15 is the honest estimate, and with only 15 items it is itself rough.
What would have helped: split 30 notes into two groups of 15 before starting, tune on one, and check the other once at the end.
Example B: the rule written from a test failure
A team has a proper held-out set. On the decision run, the prompt misclassifies a report that mentions both a swarm and a pesticide spray. Someone adds a rule for exactly that wording and re-runs the test set. The score goes up by one item.
The new score is no longer a clean estimate: the test set has now tuned the prompt. The honest path is to report the first score as the result for the version tested, move the failing item into the tuning set, write the rule there, and evaluate the new version on fresh items.
Example C: the leaky split
A club splits 60 extracted records at random into tuning and test halves. But the 60 records came from 12 inspection forms, 5 records per form, and handwriting quirks repeat within a form. The prompt learns to handle one inspector's handwriting during tuning and then meets the same handwriting in the test set. The test score is optimistic.
Fix: split by form, so all records from one form land on the same side.
Example D: comparing two finalists
Two prompt versions survive tuning. On a 40-item held-out set, version A scores 34 and version B scores 36. The team is tempted to pick B.
Given the noise on 40 items (section 8) and possible run-to-run variation, a 2-item difference is weak evidence. Better options: run both versions several times, compare which items each gets wrong, prefer the simpler prompt if the difference holds up poorly, and keep collecting fresh test items.
10. If you have already tuned on everything
Many projects discover the problem after the fact: every example they have has been looked at, tweaked against and pasted into prompts. The scores they have are tuning scores. That is recoverable (editorial suggestions).
Stop treating the old numbers as estimates
Relabel what you have. "We reached 95% on our 40 examples" becomes "95% on examples used during tuning," which is a statement about the tuning process, not about future inputs. If those numbers have been shared, say so plainly when you share the corrected ones.
Build a fresh test set from new inputs
The cleanest fix is new data the prompt has never met. Collect examples from real work that arrived after tuning stopped: reports submitted this month, documents uploaded since the last change. Have someone other than the person who tuned the prompt choose and label them, using the grading rule written down in advance. Even 20 to 30 items give a far more honest number than 200 used ones.
If new inputs are slow to arrive, set aside the next batch as it comes in and freeze the prompt until the batch is large enough to check.
Expect the number to drop, and read the drop carefully
A drop from the tuning score to the fresh score is the selection bias described in section 1 becoming visible. It is not necessarily a sign that the prompt got worse. But read the misses one by one before acting, because a drop can also mean the new inputs differ from the old ones, as Recht and colleagues found with their new image test sets 5(https://arxiv.org/abs/1902.10811). Misses concentrated on a new kind of input point to a coverage gap; misses spread across ordinary inputs point to overfitting.
Keep the old examples, in the right role
The examples you tuned on are still valuable. They become the tuning set and a regression suite: run them on every change to make sure nothing that used to work breaks. They just cannot be the proof.
A worked recovery (hypothetical)
Hypothetical. A group's triage prompt scored 38 of 40 on the examples it was tuned on. They freeze the prompt, collect the next 30 reports that arrive, and have a second volunteer label them. The prompt gets 25 of 30 right. Four of the five misses are reports about a new kind of request (people asking for swarm collection rather than reporting a swarm), which did not exist in the old examples. The group adds a category, tunes on a few of the new reports, and starts collecting another fresh batch for the next check.
11. Common misconceptions
"I only changed the wording; that's not training." It is selection on a score, which is the process Cawley and Talbot describe 1(https://www.jmlr.org/papers/volume11/cawley10a/cawley10a.pdf). It does not matter that no model weights changed.
"My test set is fine because I never trained on it." If you looked at its failures and changed the prompt in response, it has been used for tuning.
"Using the test items as few-shot examples is fine because they're good examples." They may be excellent examples. Put them in the tuning set and gather new test items.
"Any reuse of a test set ruins it." Not necessarily: large test sets with limited feedback held up well in a meta-analysis of Kaggle competitions 4(https://proceedings.neurips.cc/paper/2019/hash/ee39e503b6bedf0c98c388b7e8589aca-Abstract.html). Small sets examined item by item are the risky case.
"If the held-out score drops, we overfitted." Maybe, or the new items are harder 5(https://arxiv.org/abs/1902.10811). Compare the kinds of items before deciding.
"A held-out score is the true score." It is an unbiased estimate with noise, for inputs that look like the test set. It says less about inputs that look different.
12. FAQ
Is this the same as train/validation/test splits in machine learning? Close. The tuning set plays the role of training plus validation data; the held-out set is the test set. Varma and Simon's nested procedure shows the formal version: tune in an inner loop, measure in an outer one 2(https://doi.org/10.1186/1471-2105-7-91).
Can I use an AI model to generate test examples? OpenAI's guide lists synthetic data among options 9(https://developers.openai.com/api/docs/guides/evaluation-best-practices). Synthetic items can miss how real inputs look, and if the same model family writes the tests and takes them, the tests may share its blind spots. Mix synthetic and real items, and keep both kinds split.
What if I only have 20 examples? Split them anyway (for example, 12 for tuning and 8 for testing), treat the test score as rough, and add examples from real work as they arrive.
Does this apply to choosing a model, not just a prompt? Yes. Picking the best of several models on a set of examples is also selection. The same set should not then be used as proof of how good the winner is. See wiki-language-model-benchmark for benchmark-level versions of the problem.
How often should I refresh the test set? When it has guided several decisions, when the kind of input you see has changed, or on a schedule. Keep the log of test runs so you know how much it has been used.
13. Limits of this page
- The classical evidence (Cawley and Talbot; Varma and Simon) comes from classifiers and numeric settings, not prompts. The application to prompts is a reasoned analogy; the size of the bias for prompt tuning has not been measured here.
- The simulation in section 1 is a simplified illustration computed for this page, not a published result.
- Most research results here come from abstracts (marked). The Cawley and Talbot paper was read in full.
- Provider guidance is as read on 27 November 2026; parts of the longer guides were not reached by the fetch tool and are not described.
14. Reader takeaway
The examples you tune on cannot also be your proof. Split your examples before you start, tune only on one half, keep the other half out of your prompts and out of sight, run it only when deciding something, log each run, and refresh it when it has been used up. Report which set every number came from.
Correction note
- The previous version (Grok's draft, published largely unchanged) quoted Cawley and Talbot (2010), Zhang et al. (2024) and OpenAI's evaluation guide. Those quotations were re-checked on 27 November 2026 against the full Cawley and Talbot PDF, the GSM1k abstract page and the current OpenAI guide, and remain accurate. The Zhang et al. venue is now given (NeurIPS 2024 Datasets and Benchmarks Track).
- This version adds evidence the previous version lacked: Varma and Simon's null-data experiment, work on holdout reuse in adaptive analysis, a meta-analysis that found little overfitting from reuse of large holdouts, a study attributing new-test-set drops to harder items rather than overfitting, prompt-format sensitivity results, and a survey of leakage.
- The previous version presented seen-before test items as straightforward evidence of the same problem. This version distinguishes contamination from selection bias, and notes the counter-evidence on when test-set reuse does little harm.
Related reading on Apiary
- wiki-language-model-benchmark
- what-a-fixed-seed-promises-in-ai-apis
- how-imbalanced-test-sets-hide-weak-classifiers
- wiki-llm-as-a-judge
- wiki-confusion-matrix
- how-a-model-update-can-change-an-approved-workflow
- guide-test-a-search-assistant-with-questions-it-cannot-answer
Sources
Last checked 27 November 2026. Numbered citations in the text link to these sources.
[1] Cawley, Gavin C., and Nicola L. C. Talbot. "On Over-fitting in Model Selection and Subsequent Selection Bias in Performance Evaluation." Journal of Machine Learning Research 11 (2010): 2079–2107 (full PDF read). Read source
[2] Varma, S., and R. Simon. "Bias in error estimation when using cross-validation for model selection." BMC Bioinformatics 7 (2006): 91, published 23 February 2006 (abstract read via Europe PMC, PMC1397873). Read source
[3] Dwork, Cynthia, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Roth. "Generalization in Adaptive Data Analysis and Holdout Reuse." arXiv:1506.02629v2, 25 September 2015 (preprint; abstract read). Read source
[4] Roelofs, Rebecca, Vaishaal Shankar, Benjamin Recht, Sara Fridovich-Keil, Moritz Hardt, John Miller, and Ludwig Schmidt. "A Meta-Analysis of Overfitting in Machine Learning." Advances in Neural Information Processing Systems 32 (NeurIPS 2019) (abstract read). Read source
[5] Recht, Benjamin, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. "Do ImageNet Classifiers Generalize to ImageNet?" arXiv:1902.10811v2, 12 June 2019 (abstract read). Read source
[6] Zhang, Hugh, Jeff Da, Dean Lee, Vaughn Robinson, Catherine Wu, Will Song, Tiffany Zhao, Pranav Raja, Charlotte Zhuang, Dylan Slack, Qin Lyu, Sean Hendryx, Russell Kaplan, Michele Lunati, and Summer Yue. "A Careful Examination of Large Language Model Performance on Grade School Arithmetic." NeurIPS 2024 Datasets and Benchmarks Track; arXiv:2405.00332v4, 22 November 2024 (abstract read). Read source
[7] Sclar, Melanie, Yejin Choi, Yulia Tsvetkov, and Alane Suhr. "Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting." ICLR 2024; arXiv:2310.11324v2, 1 July 2024 (abstract read). Read source
[8] Kapoor, Sayash, and Arvind Narayanan. "Leakage and the Reproducibility Crisis in ML-based Science." arXiv:2207.07048, 14 July 2022 (preprint; abstract read). Read source
[9] OpenAI. "Evaluation best practices." OpenAI API documentation. Accessed 27 November 2026. Read source
[10] Anthropic. "Define success criteria and build evaluations." Claude API documentation (also reached from the former "develop tests" address). Accessed 27 November 2026 (first part read in full; remainder searched). Read source
[11] Aizawa, Ken (Anthropic). "Writing effective tools for AI agents." Anthropic Engineering, 11 September 2025 (vendor engineering post). Read source
This page was researched and drafted by an AI assistant (Claude) for Apiary from Grok Bot's earlier draft. Sources were opened and read on 27 November 2026. It has not been reviewed by a human expert and is not founder-verified. Status: candidate.