advanced24 min studyLesson 848 in Engineering

Preserve test independence across training, retrieval, and feedback channels

Track known overlap, semantic near duplicates, benchmark feedback, and authorized access without mistaking an overlap search or sealed file for a complete independence guarantee.

On this page

What you’ll understand

  • Identify direct and indirect paths from evaluation evidence into model selection.
  • Interpret known-overlap and clean-subset scores without claiming a causal correction.
  • Design bounded evaluation access with auditable feedback and artifact handling.

A final test file is private, yet its questions appear in a prompt-debugging notebook that later becomes synthetic training data. Another team sees only aggregate scores but repeatedly tunes toward them. Both paths can compromise the intended independent evaluation. Contamination control includes the complete information flow through training, retrieval, examples, annotation, logs, and model selection. Access restrictions reduce some exposure channels, while overlap searches identify some known matches. Neither mechanism alone proves that a model has never encountered equivalent content or that repeated test feedback remains statistically harmless.

Separate observed overlap from unobserved exposure

Define what an overlap check actually recognizes: identical normalized bytes, shared identifiers, n-gram matches, semantic candidates, or another documented relation. Retain the normalization version and the relevant training, retrieval, and test snapshots. Exact matches can be meaningful evidence, but paraphrases, translations, answer keys, or derived explanations can bypass simple string checks. Yang and colleagues demonstrate such limitations with rephrased benchmark samples. A nonmatch therefore means the declared detector found no match in the inspected material, not that all possible exposure has been ruled out.

Exposure is also different from proving memorization or quantifying a causal performance gain. A known-overlap subset can be easier or harder for reasons unrelated to exposure. Removing it changes the evaluation population and can change weights or difficulty. Report the inspected inventory, known-overlap rate, subgroup results, and uncertainty without presenting a filtered score as a perfectly decontaminated counterfactual. When training data are unavailable, state that limitation and use additional evidence such as fresh independently authored cases or collection-after-cutoff samples under a documented protocol.

c^=∣O∣∣T∣,O⊆T,∣T∣>0\widehat{c}=\frac{|O|}{|T|},\qquad O\subseteq T,\quad |T|>0
T is the eligible test inventory and O the items flagged by a specified overlap relation against specified inspected sources. The dimensionless fraction is a known-flag rate, not the unknown total exposure rate or a detector recall guarantee.↔ Scroll wide equations horizontally.

Treat scores and logs as feedback channels

Keep development material available for ordinary iteration while restricting confirmatory prompts, labels, and outputs to the authorized evaluation workflow. Separate the identities that submit a model, execute a test, inspect protected content, and approve a report where practical. Enforce dataset and purpose scope in the actual service and storage permissions, rather than relying on a folder name such as secret-test. Record who accessed which snapshot and why. Audit whether debug traces, retries, cached prompts, or generated annotations can flow back into training or prompt development.

Even aggregate results reveal information about a test. If those results drive repeated selection, the final model becomes dependent on that feedback despite never reading raw labels. Use a declared evaluation budget, independent confirmation, or a justified adaptive-analysis method with its assumptions; simple query counting is not itself a theorem of validity. Incident handling should preserve the exposure timeline and affected model runs, restrict further reuse, and determine which claims need a fresh independent assessment. Avoid silently replacing a compromised test and reporting the new score as though the protocol never changed.

θ^T=c^ θ^O+(1−c^)θ^T∖O\widehat{\theta}_{T}=\widehat{c}\,\widehat{\theta}_{O}+(1-\widehat{c})\widehat{\theta}_{T\setminus O}
This exact decomposition uses one score convention, a nonempty test, and nonempty flagged and unflagged subsets for their means. It partitions an observed unweighted statistic; it does not identify the causal effect of exposure or establish that the unflagged subset is clean.↔ Scroll wide equations horizontally.

Combine prevention, detection, and transparent claims

Version access policies and overlap detectors with the evaluation artifact. Preserve an immutable source inventory or bounded evidence about what was available to inspect. Distinguish approved use of development examples from accidental exposure of confirmatory cases, and document changes after an incident. Fresh cases can improve independence but still require representative construction and correct scoring. A robust report names remaining unknowns and limits the claim accordingly instead of equating a private dataset, a successful scan, or a high score with uncontaminated general capability.

The probability lab illustrates only a hypothetical exposure-membership model. Reset, set both p=0.05 and n=20, predict the chance of at least one flagged item, then inspect one minus the zero-success bar. Under independent identical flag events it is 1−0.95^20≈0.64151. The model has no overlap detector, corpus, access policy, or training history. Real flags are often clustered and detector misses are unknown, so this probability cannot certify an evaluation. It simply shows how a small per-item chance can accumulate across a collection under an explicit toy assumption.

Partition a known-overlap result without inventing a causal correction

A fictional two-hundred-item test has forty records flagged by one documented overlap detector. The model succeeds on thirty-eight flagged records and one hundred twelve of the one hundred sixty unflagged records. All items use the same binary score convention.

  1. The known-flag fraction is 40/200=0.20. Flagged accuracy is 38/40=0.95, while unflagged accuracy is 112/160=0.70.

  2. The full test score is 150/200=0.75, also 0.2×0.95+0.8×0.70=0.75 by the partition identity.

  3. Filtering flagged cases leaves an observed 70% score on another subset. The five-point difference from the full score is not an identified contamination effect; difficulty, detector misses, and population composition remain possible explanations.

The result

Report the 75% full score, the flagged inventory and subgroup counts, and the 70% unflagged-subset score with their scope. Do not call the difference a verified causal correction or assume unflagged means never exposed.

Explore the model

Interactive lab

Interactive lab · probability

Accumulate a hypothetical flag probability with explicit assumptions

Reset, set both p=0.05 and n=20, predict, then inspect. One minus the zero-success bar is 1−0.95^20≈0.64151 under independent identical flag events. This exact count model has no corpus, semantic matcher, access controls, or exposure detector.

Accumulate a hypothetical flag probability with explicit assumptionsThese are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Current readings: Mean · np: 5; Variance · np(1−p): 2.5; Total probability: 1. All parameters are adjustable with the labeled controls below.03581000.070.150.220.3Successes kP(X = k)k = 0 · P = 9.77e-4
Exact probabilityHighlighted outcomeMean np
Mean · np
5
Variance · np(1−p)
2.5
Total probability
1
t = 0 s

These are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forObserved flags and unknown exposure are different. Quantified toy probabilities do not replace source inventories, feedback isolation, and detector-limit documentation.

Check your understanding

An exact-string scan finds no training/test matches in the inspected corpus. What is justified?

Try it yourself

A hundred-item test has twenty flagged records with eighteen successes, and eighty unflagged records with fifty-six successes. Compute full and subgroup scores, then state what cannot be inferred.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Use the same binary scoring convention and partition the full numerator.

Compare with the solution

Flagged accuracy is 90%, unflagged accuracy 70%, and full accuracy 74/100=74%. The four-point difference between full and unflagged scores is an observed composition difference, not an identified causal contamination gain, and unflagged records may still have undetected exposure.

Take it with you

  • Overlap searches identify documented relations within inspected sources.
  • Training, retrieval, logs, and aggregate feedback can all transmit evaluation information.
  • Restricted access and filtered scores do not alone prove independence or causal generalization.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.