ML & Deep Learning Foundations·Question 1 of 55BasicAI-75

Explain the bias-variance tradeoff. How do you tell which one is hurting your model?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Expected test error decomposes into three parts: bias² (error from a model too simple to represent the true function), variance (error from sensitivity to the particular training sample - fitting noise), and irreducible noise. A linear model on a nonlinear problem has high bias; a deep net trained on 500 examples has high variance.

Full worked answer with diagram

Expected test error decomposes into three parts: bias² (error from a model too simple to represent the true function), variance (error from sensitivity to the particular training sample - fitting noise), and irreducible noise. A linear model on a nonlinear problem has high bias; a deep net trained on 500 examples has high variance.

You diagnose it from the train/val gap, not from theory:

  • High train error ≈ high val error → high bias (underfitting). Fixes: bigger/richer model, more features, train longer, reduce regularization.
  • Low train error, much higher val error → high variance (overfitting). Fixes: more data, regularization (weight decay, dropout, early stopping), augmentation, smaller model as a last resort.

Learning curves sharpen the diagnosis: if val error is still falling as you add data, more data helps (variance problem); if train and val curves have plateaued together at a bad level, more data won't help (bias problem).

Going further: follow-up territory

A strong candidate adds the modern caveat: the classical U-shaped "more capacity → more overfitting" curve breaks down for heavily overparameterized networks. Double descent (Belkin et al.; Nakkiran et al.) shows test error can decrease again past the interpolation threshold - which is consistent with the empirical reality that scaling up transformers improves generalization. So "your model is too big" is rarely the right first hypothesis in deep learning; data quality, leakage, and training recipe usually matter more.

Worth sketching. It turns the tradeoff into a diagnostic procedure, which is what the interviewer is actually asking for.

flowchart TD
    A["Compare train error<br/>with val error"] --> B{"Train error high?"}
    B -->|"yes, val close to train"| C["High bias"]
    B -->|"no, val far above train"| D["High variance"]
    C --> E["More capacity, better features,<br/>train longer, less regularization"]
    D --> F["More data, augmentation,<br/>weight decay, early stopping"]
    A --> G["Learning curve check"]
    G -->|"val still falling as data grows"| D
    G -->|"both plateaued together"| C

What a good answer covers

  • Expected test error decomposes into three parts
  • A linear model on a nonlinear problem has high bias; a deep net trained on 500 examples has high variance
  • High train error ≈ high val error → high bias (underfitting)
  • Low train error, much higher val error → high variance (overfitting)
  • Learning curves sharpen the diagnosis

Key terms: bias² · variance · train/val gap

Interviewer follow-ups to expect

  1. Your val loss is much lower than train loss - what could cause that?

  2. How does regularization move you along the tradeoff?

  3. Where does double descent leave the classical picture?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep