Interactive Lab ยท Why bigger models aren't smarter

When does a model stop learning and start memorizing?

A dozen noisy dots hide a smooth true pattern. Give a model just enough flexibility and it finds the shape. Give it too much and it threads a curve through every single dot, nailing the data it saw and getting everything between them wrong. Drag the complexity knob and watch the moment learning turns into memorizing.

๐ŸŽฌ Watch the 45-second explainer, then turn the knobs yourself below โ†“

โ–ถ The playground, drag complexity, watch the fit

true pattern (hidden from the model) training dots (12) test dots (8, held out) the model's fit

Training error ยท data it fit

0.000
how wrong on the 12 dots it saw

Test error ยท data it never saw

0.000
how wrong on the 8 held-out dots ยท this is what counts
1 ยท a straight linea wild squiggle ยท 14

๐Ÿงญ Where this fits

Overfitting is the central failure mode of all machine learning, the reason train/test splits, regularization, dropout, and early stopping exist. The U-shaped test curve you just traced is redrawn on a whiteboard in virtually every ML design review: it's the picture behind 'our offline metrics looked great but production degraded'.

The code that's actually running



  

๐Ÿ”ฎ Predict, then test

Slide degree from 1 up to 14 one notch at a time. Before each notch: predict what happens to training error and to test error. Find the degree where test error bottoms out, that's the sweet spot. Now hit ๐ŸŽฒ Resample a few times at degree 13: the training dots barely move, yet the curve between them flails somewhere completely different every time. If the model can't agree with itself on new noise, what has it actually learned?

The takeaway

Your new mental model of overfitting