Almost Right, Four Hundred Times in a Row
Last timeOne Step, Applied Over and Over
Repeating one update rule means multiplying by roughly the same thing over and over, and the result either fades to nothing or grows past what can be represented. There is almost no middle.
The previous lesson ended with an uncomfortable observation: a recurrence applies one rule hundreds of times in a row, and nothing corrects it between applications. This lesson works out what that does.
Powers, not sums
Suppose each application of the rule leaves a fraction of whatever was carried forward. Call that fraction the factor. After two steps the surviving amount has been multiplied by the factor twice, after ten steps ten times, after four hundred steps four hundred times. The quantity is a power, and powers do not behave like the intuition people carry from addition.
| after 10 steps | after 50 | after 200 | after 1000 | |
|---|---|---|---|---|
| a rule keeping 99 per cent per step | 90.4 | 60.5 | 13.4 | 0.0 |
| keeping 95 per cent | 59.9 | 7.7 | 0.0 | 0.0 |
| keeping 90 per cent | 34.9 | 0.5 | 0.0 | 0.0 |
| keeping 70 per cent | 2.8 | 0.0 | 0.0 | 0.0 |
It is worth being precise about what the factor is, because in a real model it is not one number. The rule is a matrix, and what matters is how much it stretches or shrinks the directions that carry the information you care about. Some directions may be preserved while others fade. But the argument survives the generalisation intact: whatever a direction's factor is, it gets raised to the power of the number of steps, and the only factor that neither fades nor grows is exactly one. A matrix that preserves every direction exactly is a very particular kind of matrix, and gradient descent wandering through weight space has no reason to find one and no reason to stay there once it has.
The lesson stops here
4 more paragraphs to go
You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.
The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.
See the planThe contentsThis is the reading half
Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.
The contents