Why don't huge overparameterized models always overfit?
Written by the mlprep team · Updated
Classical statistics says more parameters than data points means overfitting. GPT-4 has hundreds of billions of parameters trained on far fewer effective examples. Why doesn't it overfit?
What classical theory predicts#
The bias-variance tradeoff says: as model complexity grows, bias decreases but variance increases. At some optimal point, total error is minimized. Past that point, the model overfits — it memorizes training data including noise.
For a model with more parameters than data points, classical theory predicts the variance term explodes. The model can fit training data perfectly (zero training error) but will fail on anything outside it.
This prediction is empirically wrong for modern deep networks.
Double descent#
The classical U-shaped test error curve describes models up to the interpolation threshold — the point where the model first has enough capacity to fit all training data exactly. Past this threshold, something unexpected happens: test error decreases again as model size grows.
Test Error
↑ Classical Modern regime
| U-curve ↘
| ↗ ↘ ↗ ↘
| ↗ ↘↗ ↘
| ↑
| Interpolation threshold
+------------------------------------------→ Model Size
In the modern (overparameterized) regime, larger models generalize better. This is the double descent phenomenon — two descent phases separated by a peak at the interpolation threshold.
Why: implicit regularization from SGD#
A key insight: there are infinitely many parameter configurations that fit the training data exactly (when parameters exceed data points). The question is which one gradient descent finds.
SGD with small learning rate has an implicit bias toward flat minima — regions of the loss landscape where the loss is low and the curvature is low. Flat minima generalize better because small perturbations (test examples slightly off the training distribution) don't cause large changes in loss. Sharp minima are memorization-like — they fit training data but the decision boundary is brittle.
Equivalently: among all solutions that interpolate the training data, SGD tends to find the minimum-norm solution. Minimum norm is a form of implicit regularization — the model uses the least "complexity" needed to fit the data.
Why: the loss landscape of overparameterized networks#
In high dimensions, the loss surface has many more saddle points and flat regions than local minima. Gradient descent navigates these flat regions and tends to settle in broad valleys (flat minima) rather than narrow sharp ones. This is partly because:
- Larger networks have more redundant paths for representing any given function
- SGD noise helps escape sharp minima (the gradient estimate from a minibatch introduces randomness that bounces the optimizer out of tight basins)
- Batch normalization and dropout further smooth the landscape
Why: representation learning and inductive bias#
Overparameterized networks don't just memorize — they learn a compressed representation of the data. The inductive bias of the architecture (locality in CNNs, sequence modeling in transformers) ensures the learned function is smooth and structured rather than arbitrary.
Transformers trained on text don't learn a lookup table of every sentence — they learn attention patterns, semantic relationships, and compositional structure. This structured representation generalizes because it captures the data-generating process, not just the training samples.
Scaling laws#
Empirically (Kaplan et al., 2020; Chinchilla, 2022): test loss for language models follows a power law with compute, dataset size, and model parameters. Larger models trained on proportionally more data consistently achieve lower test loss. The relationship is smooth and predictable — no sign of classical overfitting.
The Chinchilla result was that prior large models were undertrained: optimal generalization requires scaling data and model size together. GPT-3 (175B params) would've generalized better trained on 3× more data at 3× smaller size.
Where the classical picture is still right#
- Small datasets with large models in narrow domains: classical overfitting does occur without sufficient data or regularization (dropout, weight decay)
- Fine-tuning on tiny datasets: a 70B model fine-tuned on 50 examples will memorize them without PEFT/LoRA constraints
- The peak at the interpolation threshold is real — the worst-performing model size is often right at the capacity-to-data boundary, not the largest model
What a strong candidate admits#
The theory explaining why overparameterized models generalize is incomplete. Implicit regularization, flat minima, and minimum norm are useful frameworks but don't fully explain every observation. The field has open questions, and honest candidates say so.
The key takeaway unlocks after you reveal an expert answer.
Key Takeaway
Classical bias-variance predicts overfitting past the interpolation threshold. Empirically, double descent shows test error improves again in the overparameterized regime. Why: (1) SGD has implicit bias toward flat minima / minimum-norm solutions — forms of implicit regularization; (2) high-dimensional loss surfaces have few sharp local minima; (3) architectures encode inductive biases that constrain learned functions to smooth, structured representations. Scaling laws show loss decreases predictably with scale. Classical overfitting still occurs with small fine-tuning sets or insufficient data relative to model size.
Follow-up Questions to Test Yourself
Interviewers often pivot here once you cover the core concept.
- What is the minimum norm solution and why does gradient descent implicitly favor it for overparameterized linear models?
- How do Chinchilla scaling laws change how you'd allocate compute budget between model size and training tokens?
- You're fine-tuning a 7B model on 500 labeled examples. Do you expect classical overfitting or modern generalization behavior? What does that imply for your training approach?
How confident do you feel explaining this?
Track your understanding or flag it to revisit before your next loop.
Related Questions