LearnQuestion bank

How do you tell whether a model is overfitting or underfitting, and what would you try in each case? How does “double descent” complicate the classic bias–variance picture?

ResearchTechnicalEasy

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Compare training and validation curves: high train and validation error means underfitting; low train error with a large validation gap means overfitting.
  • Underfitting: check optimisation, then add capacity, better features, or longer training; do not just add regularisation.
  • Overfitting: add data or augmentation, regularise, use early stopping, dropout, weight decay, or reduce capacity.
  • For squared loss, expected test error decomposes into bias squared plus variance plus irreducible noise; classic picture is U-shaped error versus model complexity.
  • Double descent: near the interpolation threshold test error can rise sharply, then fall again in the highly overparameterised regime, so more capacity is not always worse.
  • For LLMs, memorisation is driven by repeated exposure to data, so deduplication, fewer epochs, held-out and fresh evaluation, and regularisation matter.

In full

I diagnose it from curves: if training and validation error are both high, the model is underfitting; if training error is low but validation error is much worse, it is overfitting. For underfitting I first check optimisation and data quality, then add capacity, better features, or longer training rather than more regularisation. For overfitting I add data or augmentation, use weight decay, dropout, early stopping, or reduce capacity, and keep a clean validation set. For squared loss, expected test error is bias squared plus variance plus irreducible noise, which gives the classic U-shaped bias-variance picture. Double descent complicates that by showing test error can spike near the interpolation threshold and then decrease again in the very overparameterised regime, though this is not universal and depends on the model, data, loss, and implicit regularisation. For LLMs specifically, repeated exposure to the same text can drive memorisation, so I would deduplicate data, limit epochs, regularise, and evaluate on held-out and fresh examples rather than trusting training loss.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Diagnose from training vs validation curves.
  • Underfitting: more capacity, longer training, better features.
  • Overfitting: more data, augmentation, regularisation, early stopping, dropout.
  • The bias–variance decomposition (for squared loss).
  • Double descent around the interpolation threshold.
  • For LLMs: memorisation driven by repeated data.

Common mistakes

  • Tuning on the test set.
  • Treating low training loss alone as proof of overfitting.