Skip to content
Preptima
mediumConceptScenarioMidSeniorStaff

What is target leakage, and how would you catch it before the model ships?

Target leakage happens when a feature contains information that would not be available at prediction time. Catch it by auditing feature creation times, window boundaries, post-label columns and suspiciously strong validation performance. Use this data leakage answer to show the decision, trade-off, and evidence rather than a memorised definition.

5 min readUpdated 2026-08-15

Answer

Short answer

Target leakage means the model sees information that would not exist when making the prediction in production. Common leaks are post-outcome fields, aggregates that include the label window, and preprocessing fit before the split. Audit every feature by timestamp and availability, not just by name.

Was this answer helpful?

Likely follow-ups

  • Which is worse for the investigation, leakage in one column or leakage spread thinly across ten?
  • How does a feature store with point-in-time joins prevent this, and what does it not prevent?
  • Your best feature is legitimate but only available three days after the decision. What are the options?
  • How would you write an automated test that fails a pull request introducing leakage?

Related questions

Further reading