Model Selection, Tuning, and Generalization Questions

Choosing and tuning models so they generalize to unseen data rather than memorizing the training set. Covers the bias-variance tradeoff and its decomposition, diagnosing over- and under-fitting from learning curves, and regularization techniques such as L1/L2 penalties, dropout, and early stopping, alongside cross-validation strategies and grid, random, and Bayesian hyperparameter search. Emphasizes a principled, reproducible process for selecting model complexity and tuning against a real compute-versus-accuracy budget rather than ad-hoc trial and error.

EasyTechnical
115 practiced

Explain how k-fold cross-validation is used specifically FOR model selection and hyperparameter tuning (as opposed to just estimating a single model's performance): what score do you actually compare across candidate configurations, and what's the difference between using k-fold this way versus a single held-out validation set?

HardTechnical
70 practiced

You must select among candidate models optimizing multiple objectives at once, for example accuracy, inference latency, and a fairness constraint. Describe a systematic approach: how do you make trade-offs explicit rather than implicit, and how would you present the final choice to stakeholders who each care about a different objective?

MediumTechnical
84 practiced

Given a tabular dataset with 50,000 rows and 200 features, walk through how you'd choose between a linear model, a gradient-boosted tree ensemble, and a neural network. What properties of the data (feature interactions, missingness, interpretability requirements) push you toward each?

HardTechnical
87 practiced

Describe Population-Based Training (PBT): how population members are periodically exploited (copying a stronger run's weights) and explored (mutating its hyperparameters), what kinds of hyperparameters are well-suited to PBT versus poorly suited, and how it differs from tuning hyperparameters once, offline, before training starts.

HardTechnical
64 practiced

Simulate and compare nested cross-validation against a simple train/validation/test split to measure the optimistic bias the simple split introduces when you're also tuning hyperparameters. Set up a small synthetic experiment with a known ground truth and show the size of the gap.

Unlock Full Question Bank

Get access to all Model Selection, Tuning, and Generalization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.