When should you remove features to resolve a generalization issue?

Quick Overview

Asks when dropping features is the right fix for a model that generalizes poorly. It tests whether you can tell overfitting from underfitting with training and validation error, recognize leaky or drifting features, weigh regularization as an alternative, and run feature selection without leaking into cross-validation.

When should you remove features to resolve a generalization issue?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When should you remove features to resolve a generalization issue? A generalization issue here means the model performs worse on new data than you need it to. ```hint Diagnose first Put training error and validation error side by side before deciding anything. For which pattern would fewer features actually help? ``` ```hint Look past variance Some features hurt in production even when validation scores look fine. Think about where and when each feature's value is produced. ``` ### What a Strong Answer Covers - How to tell a variance problem from a bias problem using training and validation error - The situations where removing features helps, including leakage and features that drift or are unavailable at serving time - When removing features makes things worse - Alternatives such as regularization, dimensionality reduction and more data - How to run feature selection without leaking information into the evaluation ### Follow-up Questions - How would you choose between L1 regularization and dropping features by hand? - How do you catch target leakage before a model ships? - Why can permutation importance mislead you about which features to drop when features are correlated?

Overview: Asks when dropping features is the right fix for a model that generalizes poorly. It tests whether you can tell overfitting from underfitting with training and validation error, recognize leaky or drifting features, weigh regularization as an alternative, and run feature selection without leaking into cross-validation.

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

When should you remove features to resolve a generalization issue?

A generalization issue here means the model performs worse on new data than you need it to.

What a Strong Answer Covers Guidance

  • How to tell a variance problem from a bias problem using training and validation error
  • The situations where removing features helps, including leakage and features that drift or are unavailable at serving time
  • When removing features makes things worse
  • Alternatives such as regularization, dimensionality reduction and more data
  • How to run feature selection without leaking information into the evaluation

Follow-up Questions Guidance

  • How would you choose between L1 regularization and dropping features by hand?
  • How do you catch target leakage before a model ships?
  • Why can permutation importance mislead you about which features to drop when features are correlated?