Capacity: when a smaller network generalizes better, and when a bigger one does again

Homework 2.1 shrinks a network’s hidden layers from 128 to 16 and watches its validation accuracy. Here is that experiment in miniature, then the curve that comes after it.

1. Width — seven networks, one small noisy dataset

Decision regions of seven networks of different widths, and their accuracy against width Seven small panels show the decision regions of networks with 2 to 128 hidden units per layer, trained on the same 60 points, a fifth of whose labels were flipped. On the right, training and validation accuracy against width.
hidden layers
labels flipped
show

2. Double descent — past the point where the model can fit every training point

A regression with p features fit to n noisy points, and test error against p Left, a true curve, n noisy samples of it, and the minimum-norm least-squares fit with p sine and cosine features. Right, test error against p on a log scale, rising to a spike at p equal to n and falling again beyond it.
features p ridge λ points n