ContentsThe library

Models That Carry a Memory

A Thousand Waits That Did Not Have to Happen

Last timeLetting Things Through Unchanged

A recurrence insists on walking a known sequence in order, which wastes almost all available hardware. Removing the nonlinearity from inside the loop makes the same computation reorderable.

Gates fixed the reach. They did nothing about the other problem, and by the time

sequence models became something people trained on very large amounts of data,

the other problem was the one that mattered.

Where the time goes

During training the entire sequence is known in advance. Every input is sitting

in memory. There is no reason in principle to process position four hundred

after position three hundred and ninety nine rather than at the same time, and

the hardware would very much prefer to do them together.

FIG 1Two ways of spending the same training step
The recurrence is not doing more arithmetic. It is doing the same arithmetic in an order that prevents it being spread out, and on hardware whose entire advantage is spreading work out, that is close to total loss of the advantage.

A second cost hides inside the first. Each ordered stage has a fixed overhead

that has nothing to do with the arithmetic: launching the work, reading the

previous state out of memory, writing the new one back. When the arithmetic in a

stage is tiny, as it is for one position of one sequence, that overhead is most

of the stage. So the ordered walk is not merely underusing the machine, it is

paying a setup charge thousands of times for work that would have fitted in one

setup. This is why the measured gap is often far larger than a count of

arithmetic operations predicts.

The lesson stops here

6 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 contents

This 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

The rest of this course

  1. 01Everything You Remember Has to Fit in the Same Box
  2. 02The Same Small Rule, Run a Thousand Timesopening only
  3. 03Almost Right, Four Hundred Times in a Rowopening only
  4. 04Add Instead of Multiply, and Decide How Muchopening only
  5. 05A Thousand Waits That Did Not Have to Happenyou are here
  6. 06Slots That Forget at Rates You Choseopening only
  7. 07A Rule That Reads What Arrived Before Decidingopening only
  8. 08The Bill That Grows and the Bill That Does Notopening only

Read alongside