Original-Authored vs. Scraped Tasks: Measuring the Contamination Gap
Original-Authored vs. Scraped Tasks: Measuring the Contamination Gap
Benchmark contamination is not a theoretical concern. When evaluation tasks are scraped from the web, there is a non-trivial probability that those tasks appeared in a frontier model's pretraining corpus. The model has, in effect, seen the answer. What you measure is not capability; it is recall. The distinction between original-authored and scraped tasks is where that gap becomes measurable, and where evaluation integrity either holds or collapses. This post gives you a framework for quantifying that gap and deciding which task provenance is appropriate for your use case.
Answer Capsule: The contamination gap is the performance difference a model shows on scraped tasks versus original-authored tasks of matched difficulty. It is measured by constructing a paired task set, calibrating difficulty empirically using pass@k across several frontier models, then comparing score distributions. A gap that exceeds measurement noise is evidence of contamination. Original-authored tasks, derived from practitioner knowledge rather than web sources, are the primary control.
What contamination actually means in an eval context
Contamination occurs when evaluation data overlaps with pretraining or fine-tuning data, causing a model to retrieve rather than reason. It is not always detectable from model outputs alone, because a contaminated model and a genuinely capable model can produce identical correct answers.
There are two contamination vectors that matter in practice:
Exact contamination: the task text, or a near-duplicate, appears verbatim in the training corpus.
Semantic contamination: the task does not appear verbatim, but the answer strategy, worked solution, or problem template is well-represented in training data, making the task effectively solved by pattern completion rather than reasoning.
Scraped tasks are vulnerable to both vectors. Original-authored tasks, written by practitioners from their own domain knowledge and not derived from web sources, are structurally resistant to exact contamination. Semantic contamination is harder to eliminate entirely, but authoring tasks that require multi-step domain-specific judgment, rather than pattern completion, reduces it substantially.
The contamination gap is the performance delta between these two task classes at matched difficulty. Measuring it requires a controlled comparison, not an inference.
How to measure the contamination gap: a paired-task protocol
The most reliable way to measure the contamination gap is a paired-task experiment: construct two sets of tasks that are equivalent in difficulty and domain coverage, differing only in provenance. Then evaluate the same model on both and compare score distributions.
Here is a four-step protocol:
Source two task sets from the same domain. Set A is scraped or adapted from publicly available material (textbooks, forums, past exams). Set B is original-authored by practitioners who are instructed not to reproduce or paraphrase web-available content. Both sets should cover the same competency areas.
Calibrate difficulty empirically. Run both sets against at least two frontier models using pass@k (where k is typically 5 to 20, depending on task cost). Compute per-task solve rates. Filter to a matched difficulty band, for example tasks where pass@1 sits between 0.15 and 0.50 on both sets. This controls for the confound that scraped tasks might simply be easier.
Compare score distributions. For each model, compute mean pass@1 on Set A and Set B within the matched band. The contamination gap estimate is the difference: gap = mean(pass@1, Set A) - mean(pass@1, Set B). A positive gap on Set A is consistent with contamination. A gap near zero suggests the model's performance reflects genuine capability, not recall.
Run a sensitivity check. Re-run with a model known to have been trained on a narrower corpus (for example an older model or a domain-restricted model). If the gap narrows or reverses, this is further evidence that the Set A advantage is corpus-dependent, not capability-dependent.
This protocol does not prove contamination in any individual task. It estimates the expected contamination effect at the set level, which is the operationally relevant quantity for evaluation design.
Difficulty calibration: why pass@k is the right instrument
Pass@k estimates the probability that at least one of k independent samples from a model is correct. The unbiased estimator, introduced in the Codex paper (Chen et al., 2021), is:
pass@k = 1 - C(n-c, k) / C(n, k)
where n is the number of samples drawn, c is the number correct, and C denotes the binomial coefficient. Using this estimator rather than the naive c/n ratio avoids upward bias when k is close to n.
For contamination gap measurement, pass@1 is the most interpretable metric because it reflects the model's default behavior, not its ceiling. Pass@k at higher k is useful for identifying tasks that are solvable but hard: if pass@10 is high but pass@1 is low, the task is genuinely difficult but not impossible, which is the sweet spot for a useful eval.
Difficulty calibration must be done per model and per date. A task that is hard for a model today may be trivial for the next model generation. This is not a flaw in the method; it is a property of the domain that any honest eval design must account for. Tasks need to be re-calibrated as frontier models advance, which is one reason static scraped benchmarks degrade faster than continuously authored original task sets.
Comparing task provenance: a decision framework
Criterion | Scraped tasks | Original-authored tasks |
|---|---|---|
Exact contamination risk | High (source may be in pretraining corpus) | Low (not derived from web sources) |
Semantic contamination risk | High to moderate | Moderate to low (depends on authoring discipline) |
Difficulty calibration | Often uncalibrated; difficulty assumed from source | Empirically calibrated via pass@k against target models |
Verifiability | Depends on source quality; often ambiguous | Verifier or rubric designed alongside task |
Provenance traceability | URL or document reference; not authorship | Named practitioner, work-sample vetted |
Shelf life | Degrades as models train on more web data | Longer, but still requires recalibration over time |
Cost to produce | Low per task; high for quality control | High per task; lower rework if expert is well-calibrated |
The decision is not always original-authored. For rapid prototyping or low-stakes internal evals, scraped tasks with contamination checks may be sufficient. For post-training data, RL reward signals, or public benchmarks where model rankings will be reported, original-authored tasks are the appropriate standard.
Worked example: measuring the contamination gap in a manufacturing domain
Illustrative example. Numbers are constructed to demonstrate the method; they do not represent results from any specific model or dataset.
A team building an eval for CNC machining knowledge constructs two task sets:
Set A (scraped): 80 tasks adapted from publicly available CNC programming forums, textbook exercises, and certification exam prep sites.
Set B (original-authored): 80 tasks authored by CNC/CAM instructors from their own teaching practice, covering G-code interpretation, toolpath optimization, and fixture design tradeoffs. Tasks are not derived from any web source.
Both sets are evaluated on two frontier models using n=20 samples per task, computing pass@1 with the unbiased estimator. Difficulty matching is applied: only tasks where pass@1 falls between 0.10 and 0.45 on at least one model are retained, leaving 52 matched pairs.
Results on the matched set:
Model | Mean pass@1, Set A (scraped) | Mean pass@1, Set B (original) | Gap |
|---|---|---|---|
Model X | 0.38 | 0.21 | +0.17 |
Model Y | 0.29 | 0.24 | +0.05 |
Model X shows a gap of 0.17, which is large enough to be practically significant and warrants a contamination investigation. Model Y's gap of 0.05 is smaller; this could reflect lower contamination exposure or a different training corpus. Neither conclusion is certain without corpus access, but the gap measurement gives the eval team a concrete signal to act on: Set A tasks should not be used as held-out evals for Model X without further decontamination steps.
This is the kind of domain-specific failure analysis that expert-authored eval work makes tractable. The signal is in the gap, not the absolute score.
Common failure modes when measuring the contamination gap
1. Confounding difficulty with provenance
Detection: Set A and Set B have different mean difficulty before matching.
Fix: Always apply difficulty matching before comparing scores. Do not compare raw means across unmatched sets.
2. Treating pass@1 from a small sample as reliable
Detection: High variance in per-task estimates; confidence intervals overlap substantially.
Fix: Use n of at least 10 to 20 samples per task for pass@1 estimation. For high-cost tasks, use the unbiased estimator with n=10 and k=1, and aggregate at the set level rather than the task level.
3. Assuming original-authored means contamination-free
Detection: Original-authored tasks that closely mirror common textbook templates still show high solve rates.
Fix: Authoring discipline matters. Experts must be briefed to avoid reproducing problem structures that are well-represented online. Calibration against frontier models is still required even for original-authored sets.
4. Using a single model as the difficulty reference
Detection: Task difficulty rankings shift substantially when a second model is used for calibration.
Fix: Calibrate against at least two frontier models. Difficulty is a property of the task-model pair, not the task alone.
5. Ignoring verifier quality when comparing sets
Detection: High inter-rater disagreement on what counts as a correct answer, especially for open-ended tasks.
Fix: Define verifiers or rubrics before scoring. A task without a reliable verifier produces noisy pass@k estimates that contaminate the gap measurement itself. For more on this, see rubric and verifier design in the context of expert-authored tasks.
6. One-time measurement without recalibration
Detection: Gap narrows over successive model generations without any change to the task set.
Fix: Treat difficulty calibration as a recurring process. A task that was hard in one model generation may be easy in the next, especially as web-derived tasks become increasingly represented in training data.
Where this approach breaks down
The paired-task protocol assumes you can construct two sets of genuinely matched difficulty. In highly specialized domains, this is hard. There may not be enough publicly available material to build a credible scraped set, which makes the comparison moot. In those cases, the contamination gap is less useful as a measurement tool and more useful as a design principle: default to original-authored tasks because the alternative is structurally unreliable.
The protocol also does not give you corpus access. You cannot confirm which specific tasks appear in a model's training data. The gap is an indirect signal, not a proof. For legal or contractual purposes, this distinction matters.
Finally, this method measures contamination at the set level. It does not identify which individual tasks are contaminated. Task-level contamination detection requires different methods, such as membership inference or n-gram overlap analysis against known training data, neither of which is routinely available to external evaluators.
Frequently asked questions
What sample size do I need to detect a meaningful contamination gap?
As a practical threshold, 40 to 60 matched task pairs with n=20 samples per task gives you enough statistical power to detect a gap of around 0.10 to 0.15 in mean pass@1 with reasonable confidence. Smaller gaps require larger sets. For exploratory work, 30 matched pairs with n=10 can surface a directional signal, but treat the result as preliminary.
Can synthetic data substitute for original-authored tasks in this protocol?
Synthetic tasks generated from web-derived templates carry semantic contamination risk similar to scraped tasks, because the generation model itself was trained on web data. Synthetically generated tasks are useful for volume and coverage, but they do not serve as the contamination-free control in this protocol. Original-authored tasks from practitioners who work from domain knowledge, not web sources, are the appropriate control.
How do I brief domain experts to minimize semantic contamination?
Instruct experts to author tasks from their own professional experience and judgment, not from textbooks, forums, or certification materials. Provide gold-standard examples of what original authorship looks like versus paraphrase. Run a calibration round where a senior reviewer checks whether any task closely mirrors a known web-available problem structure. Rework rates in the first round are typically high; this is expected and not a sign of poor expert quality.
Does the contamination gap matter for post-training data, or only for evals?
It matters for both, but in different ways. For evals, contamination inflates measured performance and makes rankings unreliable. For post-training data, contaminated tasks teach the model to retrieve rather than reason, which can produce brittle capabilities that do not generalize. The provenance question is operationally identical in both contexts: where did the task come from, and can you verify it was not already in the model's training distribution?
How often should I recalibrate difficulty on an original-authored task set?
Recalibrate whenever a new frontier model generation is released, or when your target model is significantly updated. Difficulty is a function of the task-model pair. A set calibrated against last year's frontier models may be too easy for current models, which means your hard tasks are no longer hard and your gap measurement is no longer valid. Treat recalibration as a maintenance cost, not a one-time setup.
What this means in practice
The contamination gap is measurable. You do not have to accept on faith that your eval tasks are clean, or that your training data is free of retrieval artifacts. A paired-task protocol with empirical difficulty calibration gives you a concrete signal. The protocol requires original-authored tasks as the control, which means it requires practitioners who author from domain knowledge, not from web sources. That authoring discipline is not a detail; it is the mechanism by which the control condition holds.
The gap also drifts. As frontier models train on more web data, scraped tasks become easier faster. Original-authored tasks, particularly in specialist domains that are under-represented online, hold their difficulty longer. That is not a permanent advantage, but it is a meaningful one at the current frontier.
If you're building evals or post-training pipelines where provenance and difficulty calibration matter, talk to Chiron Data Labs about expert-authored tasks for your domain.
Benchmark contamination is not a theoretical concern. When evaluation tasks are scraped from the web, there is a non-trivial probability that those tasks appeared in a frontier model's pretraining corpus. The model has, in effect, seen the answer. What you measure is not capability; it is recall. The distinction between original-authored and scraped tasks is where that gap becomes measurable, and where evaluation integrity either holds or collapses. This post gives you a framework for quantifying that gap and deciding which task provenance is appropriate for your use case.
Answer Capsule: The contamination gap is the performance difference a model shows on scraped tasks versus original-authored tasks of matched difficulty. It is measured by constructing a paired task set, calibrating difficulty empirically using pass@k across several frontier models, then comparing score distributions. A gap that exceeds measurement noise is evidence of contamination. Original-authored tasks, derived from practitioner knowledge rather than web sources, are the primary control.
What contamination actually means in an eval context
Contamination occurs when evaluation data overlaps with pretraining or fine-tuning data, causing a model to retrieve rather than reason. It is not always detectable from model outputs alone, because a contaminated model and a genuinely capable model can produce identical correct answers.
There are two contamination vectors that matter in practice:
Exact contamination: the task text, or a near-duplicate, appears verbatim in the training corpus.
Semantic contamination: the task does not appear verbatim, but the answer strategy, worked solution, or problem template is well-represented in training data, making the task effectively solved by pattern completion rather than reasoning.
Scraped tasks are vulnerable to both vectors. Original-authored tasks, written by practitioners from their own domain knowledge and not derived from web sources, are structurally resistant to exact contamination. Semantic contamination is harder to eliminate entirely, but authoring tasks that require multi-step domain-specific judgment, rather than pattern completion, reduces it substantially.
The contamination gap is the performance delta between these two task classes at matched difficulty. Measuring it requires a controlled comparison, not an inference.
How to measure the contamination gap: a paired-task protocol
The most reliable way to measure the contamination gap is a paired-task experiment: construct two sets of tasks that are equivalent in difficulty and domain coverage, differing only in provenance. Then evaluate the same model on both and compare score distributions.
Here is a four-step protocol:
Source two task sets from the same domain. Set A is scraped or adapted from publicly available material (textbooks, forums, past exams). Set B is original-authored by practitioners who are instructed not to reproduce or paraphrase web-available content. Both sets should cover the same competency areas.
Calibrate difficulty empirically. Run both sets against at least two frontier models using pass@k (where k is typically 5 to 20, depending on task cost). Compute per-task solve rates. Filter to a matched difficulty band, for example tasks where pass@1 sits between 0.15 and 0.50 on both sets. This controls for the confound that scraped tasks might simply be easier.
Compare score distributions. For each model, compute mean pass@1 on Set A and Set B within the matched band. The contamination gap estimate is the difference: gap = mean(pass@1, Set A) - mean(pass@1, Set B). A positive gap on Set A is consistent with contamination. A gap near zero suggests the model's performance reflects genuine capability, not recall.
Run a sensitivity check. Re-run with a model known to have been trained on a narrower corpus (for example an older model or a domain-restricted model). If the gap narrows or reverses, this is further evidence that the Set A advantage is corpus-dependent, not capability-dependent.
This protocol does not prove contamination in any individual task. It estimates the expected contamination effect at the set level, which is the operationally relevant quantity for evaluation design.
Difficulty calibration: why pass@k is the right instrument
Pass@k estimates the probability that at least one of k independent samples from a model is correct. The unbiased estimator, introduced in the Codex paper (Chen et al., 2021), is:
pass@k = 1 - C(n-c, k) / C(n, k)
where n is the number of samples drawn, c is the number correct, and C denotes the binomial coefficient. Using this estimator rather than the naive c/n ratio avoids upward bias when k is close to n.
For contamination gap measurement, pass@1 is the most interpretable metric because it reflects the model's default behavior, not its ceiling. Pass@k at higher k is useful for identifying tasks that are solvable but hard: if pass@10 is high but pass@1 is low, the task is genuinely difficult but not impossible, which is the sweet spot for a useful eval.
Difficulty calibration must be done per model and per date. A task that is hard for a model today may be trivial for the next model generation. This is not a flaw in the method; it is a property of the domain that any honest eval design must account for. Tasks need to be re-calibrated as frontier models advance, which is one reason static scraped benchmarks degrade faster than continuously authored original task sets.
Comparing task provenance: a decision framework
Criterion | Scraped tasks | Original-authored tasks |
|---|---|---|
Exact contamination risk | High (source may be in pretraining corpus) | Low (not derived from web sources) |
Semantic contamination risk | High to moderate | Moderate to low (depends on authoring discipline) |
Difficulty calibration | Often uncalibrated; difficulty assumed from source | Empirically calibrated via pass@k against target models |
Verifiability | Depends on source quality; often ambiguous | Verifier or rubric designed alongside task |
Provenance traceability | URL or document reference; not authorship | Named practitioner, work-sample vetted |
Shelf life | Degrades as models train on more web data | Longer, but still requires recalibration over time |
Cost to produce | Low per task; high for quality control | High per task; lower rework if expert is well-calibrated |
The decision is not always original-authored. For rapid prototyping or low-stakes internal evals, scraped tasks with contamination checks may be sufficient. For post-training data, RL reward signals, or public benchmarks where model rankings will be reported, original-authored tasks are the appropriate standard.
Worked example: measuring the contamination gap in a manufacturing domain
Illustrative example. Numbers are constructed to demonstrate the method; they do not represent results from any specific model or dataset.
A team building an eval for CNC machining knowledge constructs two task sets:
Set A (scraped): 80 tasks adapted from publicly available CNC programming forums, textbook exercises, and certification exam prep sites.
Set B (original-authored): 80 tasks authored by CNC/CAM instructors from their own teaching practice, covering G-code interpretation, toolpath optimization, and fixture design tradeoffs. Tasks are not derived from any web source.
Both sets are evaluated on two frontier models using n=20 samples per task, computing pass@1 with the unbiased estimator. Difficulty matching is applied: only tasks where pass@1 falls between 0.10 and 0.45 on at least one model are retained, leaving 52 matched pairs.
Results on the matched set:
Model | Mean pass@1, Set A (scraped) | Mean pass@1, Set B (original) | Gap |
|---|---|---|---|
Model X | 0.38 | 0.21 | +0.17 |
Model Y | 0.29 | 0.24 | +0.05 |
Model X shows a gap of 0.17, which is large enough to be practically significant and warrants a contamination investigation. Model Y's gap of 0.05 is smaller; this could reflect lower contamination exposure or a different training corpus. Neither conclusion is certain without corpus access, but the gap measurement gives the eval team a concrete signal to act on: Set A tasks should not be used as held-out evals for Model X without further decontamination steps.
This is the kind of domain-specific failure analysis that expert-authored eval work makes tractable. The signal is in the gap, not the absolute score.
Common failure modes when measuring the contamination gap
1. Confounding difficulty with provenance
Detection: Set A and Set B have different mean difficulty before matching.
Fix: Always apply difficulty matching before comparing scores. Do not compare raw means across unmatched sets.
2. Treating pass@1 from a small sample as reliable
Detection: High variance in per-task estimates; confidence intervals overlap substantially.
Fix: Use n of at least 10 to 20 samples per task for pass@1 estimation. For high-cost tasks, use the unbiased estimator with n=10 and k=1, and aggregate at the set level rather than the task level.
3. Assuming original-authored means contamination-free
Detection: Original-authored tasks that closely mirror common textbook templates still show high solve rates.
Fix: Authoring discipline matters. Experts must be briefed to avoid reproducing problem structures that are well-represented online. Calibration against frontier models is still required even for original-authored sets.
4. Using a single model as the difficulty reference
Detection: Task difficulty rankings shift substantially when a second model is used for calibration.
Fix: Calibrate against at least two frontier models. Difficulty is a property of the task-model pair, not the task alone.
5. Ignoring verifier quality when comparing sets
Detection: High inter-rater disagreement on what counts as a correct answer, especially for open-ended tasks.
Fix: Define verifiers or rubrics before scoring. A task without a reliable verifier produces noisy pass@k estimates that contaminate the gap measurement itself. For more on this, see rubric and verifier design in the context of expert-authored tasks.
6. One-time measurement without recalibration
Detection: Gap narrows over successive model generations without any change to the task set.
Fix: Treat difficulty calibration as a recurring process. A task that was hard in one model generation may be easy in the next, especially as web-derived tasks become increasingly represented in training data.
Where this approach breaks down
The paired-task protocol assumes you can construct two sets of genuinely matched difficulty. In highly specialized domains, this is hard. There may not be enough publicly available material to build a credible scraped set, which makes the comparison moot. In those cases, the contamination gap is less useful as a measurement tool and more useful as a design principle: default to original-authored tasks because the alternative is structurally unreliable.
The protocol also does not give you corpus access. You cannot confirm which specific tasks appear in a model's training data. The gap is an indirect signal, not a proof. For legal or contractual purposes, this distinction matters.
Finally, this method measures contamination at the set level. It does not identify which individual tasks are contaminated. Task-level contamination detection requires different methods, such as membership inference or n-gram overlap analysis against known training data, neither of which is routinely available to external evaluators.
Frequently asked questions
What sample size do I need to detect a meaningful contamination gap?
As a practical threshold, 40 to 60 matched task pairs with n=20 samples per task gives you enough statistical power to detect a gap of around 0.10 to 0.15 in mean pass@1 with reasonable confidence. Smaller gaps require larger sets. For exploratory work, 30 matched pairs with n=10 can surface a directional signal, but treat the result as preliminary.
Can synthetic data substitute for original-authored tasks in this protocol?
Synthetic tasks generated from web-derived templates carry semantic contamination risk similar to scraped tasks, because the generation model itself was trained on web data. Synthetically generated tasks are useful for volume and coverage, but they do not serve as the contamination-free control in this protocol. Original-authored tasks from practitioners who work from domain knowledge, not web sources, are the appropriate control.
How do I brief domain experts to minimize semantic contamination?
Instruct experts to author tasks from their own professional experience and judgment, not from textbooks, forums, or certification materials. Provide gold-standard examples of what original authorship looks like versus paraphrase. Run a calibration round where a senior reviewer checks whether any task closely mirrors a known web-available problem structure. Rework rates in the first round are typically high; this is expected and not a sign of poor expert quality.
Does the contamination gap matter for post-training data, or only for evals?
It matters for both, but in different ways. For evals, contamination inflates measured performance and makes rankings unreliable. For post-training data, contaminated tasks teach the model to retrieve rather than reason, which can produce brittle capabilities that do not generalize. The provenance question is operationally identical in both contexts: where did the task come from, and can you verify it was not already in the model's training distribution?
How often should I recalibrate difficulty on an original-authored task set?
Recalibrate whenever a new frontier model generation is released, or when your target model is significantly updated. Difficulty is a function of the task-model pair. A set calibrated against last year's frontier models may be too easy for current models, which means your hard tasks are no longer hard and your gap measurement is no longer valid. Treat recalibration as a maintenance cost, not a one-time setup.
What this means in practice
The contamination gap is measurable. You do not have to accept on faith that your eval tasks are clean, or that your training data is free of retrieval artifacts. A paired-task protocol with empirical difficulty calibration gives you a concrete signal. The protocol requires original-authored tasks as the control, which means it requires practitioners who author from domain knowledge, not from web sources. That authoring discipline is not a detail; it is the mechanism by which the control condition holds.
The gap also drifts. As frontier models train on more web data, scraped tasks become easier faster. Original-authored tasks, particularly in specialist domains that are under-represented online, hold their difficulty longer. That is not a permanent advantage, but it is a meaningful one at the current frontier.
If you're building evals or post-training pipelines where provenance and difficulty calibration matter, talk to Chiron Data Labs about expert-authored tasks for your domain.