Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Data leakage

Also: test contamination

In plain words

Data reaching a place it should not. In model tests, it can also mean test answers have reached the training data.

The fuller definition

In evaluation, data leakage means information unavailable in the intended real task improperly influences training or assessment. In security discussions, the phrase can also mean unauthorized disclosure.

How it fits together
  1. Held-out answer

    Should remain unseen

  2. Leak

    Answer reaches development

  3. Score

    Misleadingly high

A simplified relationship, not a screenshot or a complete design.

A concrete example

A test answer accidentally included in a prompt inflates the measured score.

The distinction that matters

Keep evaluation contamination distinct from confidential-data disclosure; the remedies differ.

Related terms

Where it is taught

Test an AI workflow on work you can assess

Source and further reading

Anthropic · Evaluating AI agents

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC