Chapter I
Machines That Learn
In 1958 Frank Rosenblatt announced the perceptron, a machine that learned to classify patterns by adjusting the weights on its inputs after each mistake. The press predicted machines that would walk, talk and be conscious. In 1969 Marvin Minsky and Seymour Papert proved what a single perceptron cannot do. It cannot tell whether two inputs differ, because no single straight boundary separates the cases. Multi-layer networks might, but nobody knew how to train them. Interest in neural networks collapsed for more than a decade. In 1986 David Rumelhart, Geoffrey Hinton and Ronald Williams showed that backpropagation, sending the error backwards through the layers, trains them.
Chapter II
The Mathematics of Generalisation
Meanwhile a theory of why learning works had been built in Moscow. Fitting examples is the problem of statistical inference, but with a twist: the learner chooses its rule from a huge family after seeing the data, so the usual error bars do not apply. In 1971 Vladimir Vapnik and Alexey Chervonenkis found the condition under which training error is a reliable guide to future error for every rule in the family at once. It depends on one number, the largest set of points the family can label in all possible ways.
In 1984 Leslie Valiant, a computer scientist at Harvard, asked a different question. Which concepts can be learned efficiently, with polynomially many examples and polynomial computation? His PAC model brought learning into computational complexity, and it turned out that some concepts are learnable from few examples yet impossible to learn efficiently if cryptography is secure. Five years later it was shown that the number of examples needed is set by the VC dimension, joining the two theories. At Bell Labs, Vapnik and Corinna Cortes turned the theory into the support vector machine in 1995, and for a decade it outperformed neural networks on many tasks.
Chapter III
A Closer Look: How Many Ways Can a Line Divide Points?
Take the simplest learner: it draws a straight line across the plane and labels points on one side "yes" and on the other "no". How flexible is this family?
Three points not on one line can be labelled in ways, and a line achieves every one of them. All three "yes", or all "no": put the line off to one side. One point different from the other two: a line cuts that corner of the triangle off. So lines shatter three points. Four points never. If the four form a convex quadrilateral, the labelling that gives "yes" to one pair of opposite corners and "no" to the other pair cannot be made by a line, because the two diagonals cross. If one point lies inside the triangle of the other three, labelling it differently from all three is impossible. So the VC dimension of lines in the plane is 3.
The payoff is in counting. With points there are labellings, but a family of VC dimension can produce at most of them, a polynomial in , not an exponential. For lines, the exact count for points in general position is , a result of Thomas Cover's from 1965:
| Points | All labellings | Bound with | Achieved by lines |
|---|---|---|---|
| 3 | 8 | 8 | 8 |
| 4 | 16 | 15 | 14 |
| 5 | 32 | 26 | 22 |
| 10 | 1,024 | 176 | 92 |
With ten points, lines can produce only 92 of the 1,024 labellings. If a line fits ten points labelled at random, that would be a coincidence, and so a line that fits real data is probably capturing a real pattern. Vapnik and Chervonenkis turned this into a guarantee: once the number of examples is large compared with , training error and future error are close for every rule in the family. The same argument fails for a family that can fit every labelling. It can fit anything, so fitting proves nothing.
Chapter IV
The Deep Learning Puzzle
From 2012, deep neural networks trained by backpropagation on large data sets and fast hardware began to beat every other method at recognising images and speech, translating languages and, in 2020, predicting protein structures. They have millions or billions of parameters, far more than their training examples. In 2016 a team including Chiyuan Zhang showed that such networks can memorise pictures whose labels have been randomly shuffled, so by Vapnik's measure they can fit anything. Yet on real labels they generalise well. In 2019 Mikhail Belkin and colleagues showed that past the point of perfect fit, test error can fall a second time.
The classical theory is not wrong, but its bounds say nothing useful about these networks. Explanations under study involve the implicit preferences of the training algorithm, the margins and compressibility of the learned networks, links to information theory, and the structure of natural data. Why overparameterised networks generalise is the central open question of the field, and it matters, because such systems are now trusted with decisions far beyond recognising handwriting.