What capacity changes would you make when a model has near-zero training error but high validation error?

Quick Overview

Asks how to respond when a model fits the training data almost perfectly but performs poorly on validation data. Tests diagnosis of high variance, the capacity and regularization settings for common model families, and how to tune them systematically without underfitting.

What capacity changes would you make when a model has near-zero training error but high validation error?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What adjustments to model capacity would you make if your model shows near-zero training error but high validation error? ```hint Name the failure mode first Put a name on this train/validation gap, then ask what else could produce the same gap before you touch the model. ``` ```hint Find the knob per model family For trees, neural nets, linear models and k-NN, ask which setting controls how closely the model can fit individual training points, and how you would choose its value. ``` ### What a Strong Answer Covers - The diagnosis as high variance, and ruling out leakage or a train/validation mismatch first - Direct ways to shrink capacity for common model families - Constraints that keep the architecture, such as regularization, early stopping and boosting settings - Ways to cut variance while keeping capacity, such as bagging, augmentation or more data - A systematic sweep of one capacity knob, and how to tell when you have overshot into underfitting ### Follow-up Questions - How would a learning curve tell you whether collecting more data is worth the cost? - Why does a larger k in k-NN lower variance, and what happens when k equals the number of training points? - Large neural networks often fit the training set perfectly and still generalize well. How does that fit with reducing capacity? - After tuning, validation error looks good but test error is high. What might have gone wrong?

Overview: Asks how to respond when a model fits the training data almost perfectly but performs poorly on validation data. Tests diagnosis of high variance, the capacity and regularization settings for common model families, and how to tune them systematically without underfitting.

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

What adjustments to model capacity would you make if your model shows near-zero training error but high validation error?

What a Strong Answer Covers Guidance

  • The diagnosis as high variance, and ruling out leakage or a train/validation mismatch first
  • Direct ways to shrink capacity for common model families
  • Constraints that keep the architecture, such as regularization, early stopping and boosting settings
  • Ways to cut variance while keeping capacity, such as bagging, augmentation or more data
  • A systematic sweep of one capacity knob, and how to tell when you have overshot into underfitting

Follow-up Questions Guidance

  • How would a learning curve tell you whether collecting more data is worth the cost?
  • Why does a larger k in k-NN lower variance, and what happens when k equals the number of training points?
  • Large neural networks often fit the training set perfectly and still generalize well. How does that fit with reducing capacity?
  • After tuning, validation error looks good but test error is high. What might have gone wrong?