Home/Machine Learning/Generalization
Machine Learning

Generalization

Working on data you've never seen — the only thing that matters, and nobody can explain why deep learning does it.

Reading level: Curious
Pick your depth ↓

When not to use it

  • (Reasoning about generalisation that misleads.)*
  • Classical capacity bounds on deep networks. They're vacuous — "test error below 500%" is true and useless.
  • "Smaller to avoid overfitting," without knowing which side of the peak you're on. Past the interpolation threshold, bigger is better.
  • Training accuracy as evidence of anything. It'll fit random labels perfectly.
  • A held-out set you've looked at repeatedly. You've been training on it slowly.

Reach for something else instead

  • (Ways to know whether you generalise.)*
  • A clean held-out set — the only real answer, and only if you don't touch it.
  • Cross-validation — when data is scarce.
  • Out-of-distribution testing — the question you actually care about.
  • Conformal prediction — coverage guarantees without a theory of why.

Sources & further reading

  • Zhang et al. (2017), Understanding deep learning requires rethinking generalization — networks fit random labels perfectly. The experiment that broke the theory.
  • Belkin et al. (2019), Reconciling modern machine-learning practice and the classical bias–variance trade-off — double descent; bigger past the threshold is better.
  • Nakkiran et al. (2021), Deep Double Descent: Where Bigger Models and More Data Hurt — it happens in model size, data size and training time.

Primary sources, listed so you can check the claims on this page rather than take them on trust.

Where people go wrong

  • Believing the capacity story. Zhang et al.: it can memorise anything, so capacity isn't what stops it.
  • Not knowing double descent exists, then shrinking a model that was about to get better.
  • Treating flat minima as the settled explanation. Flatness isn't reparameterisation-invariant.
  • Assuming the theory exists somewhere and you just haven't read it. It doesn't.

At a glance

FieldMachine Learning
The only thing that mattersperformance on data you haven't seen
The broken experimentnetworks fit randomly shuffled labels perfectly
Consequenceclassical capacity bounds are vacuous here
Double descentbigger past the interpolation threshold is better
Statusthe central open question, unanswered
DifficultyAdvanced
Flashcards for this concept
Question
Answer
1 / 4

Often compared with

Classical theory vs. deep learning — one says capacity must be limited or you'll memorise noise; the other memorises noise on demand, generalises anyway, and gets better past the point the theory says it dies.