What could explain a held-out test score that is noticeably better than the cross-validation score?

Quick Overview

Explain why a model might score noticeably better on a held-out test set than in cross-validation, and how to find out which cause applies. Tests reasoning about sampling noise, refit training size, distribution shift between splits, leakage and evaluation pipeline mismatches.

What could explain a held-out test score that is noticeably better than the cross-validation score?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What could explain a held-out test score that is noticeably better than the cross-validation score? ```hint Start with uncertainty Before looking for a cause, ask how much the test metric would move if you drew a different test set of the same size. ``` ```hint Compare how each number was produced List what differs between the fold models and the final model: the training rows they saw, the split strategy, the preprocessing, and how the metric was computed. ``` ### What a Strong Answer Covers - Whether the gap is larger than the noise in each estimate, and how to measure that. - How the final model's training data differs from what the fold models saw. - Ways the test set can differ from the CV folds in distribution or split strategy. - Leakage and pipeline mismatches that would inflate the test score. - Concrete checks that tell these explanations apart. ### Follow-up Questions - How would you build a confidence interval for the test metric? - How does adversarial validation work, and what do you do if the classifier separates test rows from training rows easily? - If the data has a time order, how should the CV scheme and the test split relate? - After finding the cause, which number would you report as the expected production performance?

Overview: Explain why a model might score noticeably better on a held-out test set than in cross-validation, and how to find out which cause applies. Tests reasoning about sampling noise, refit training size, distribution shift between splits, leakage and evaluation pipeline mismatches.

PracHub logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What could explain a held-out test score that is noticeably better than the cross-validation score?

What a Strong Answer Covers Guidance

  • Whether the gap is larger than the noise in each estimate, and how to measure that.
  • How the final model's training data differs from what the fold models saw.
  • Ways the test set can differ from the CV folds in distribution or split strategy.
  • Leakage and pipeline mismatches that would inflate the test score.
  • Concrete checks that tell these explanations apart.

Follow-up Questions Guidance

  • How would you build a confidence interval for the test metric?
  • How does adversarial validation work, and what do you do if the classifier separates test rows from training rows easily?
  • If the data has a time order, how should the CV scheme and the test split relate?
  • After finding the cause, which number would you report as the expected production performance?