Double Descent: When More Parameters Beat the Bias-Variance Tradeoff
A real random-features regression fit live in your browser: watch test error rise then fall a second time as model capacity grows past the number of training points — the double-descent curve that classical bias-variance theory doesn't predict.
This simulator runs a genuine random-features ridge regression in your browser — not a canned animation. On the left, a fixed set of noisy training points is fit by a model whose capacity (number of random Fourier features) you control; on the right, the actual computed train and test error are plotted against that capacity as a 3D curve. Slide capacity up and classical statistics shows up first: error falls, then rises as the model starts to overfit. But keep going past the interpolation threshold — where the number of features equals the number of training samples — and, after a sharp spike, test error falls a second time. That non-monotonic "double descent" shape, discovered in modern over-parameterized machine learning, is why today's neural networks with vastly more weights than training examples often generalize better, not worse.
A real random-features ridge regression fit live in your browser: watch test error rise then fall a second time as model capacity grows past the number of training points, tracing the double-descent curve that classical bias-variance theory doesn't predict.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install