Loading slide

The Problem with Sequences

  1. 01The Problem with Sequences
  2. 02Memory card
  3. 03Reading through a keyhole
  4. 04The running summary
  5. 05The bottleneck
  6. 06Take a breath
  7. 07The distance problem
  8. 08Memory card
  9. 09The same problem, wearing a new coat
  10. 10What a solution would have to do
  11. 11Reinforce your understanding
  12. 12Question: The hidden state
  13. 13Question: Long-range dependencies
  14. 14Question: The same problem twice
  15. 15Quiz: answer
  16. 16What to carry out of this chapter
  17. 17Want to go deeper?
1 / 16
BackNext

Module VII

Paying Attention

Chapter I

The Problem with Sequences

In this chapter

  • Reading through a keyholehow machines processed language one word at a time
  • The bottleneckwhy squeezing a whole sentence into one running summary went wrong
  • The distance problemwhy connecting two far-apart words was so hard
  • What a real solution would have to look like

The last module ended on a promise. To handle a word like "bank," a model has to look at the whole sentence around it and weigh every other word before deciding what that word means here. We said that took a machine built specifically for the job, and we even named it: the transformer. This module is that machine, built up from nothing.

But you cannot feel why the transformer was such a leap until you feel the wall it broke through. So this first chapter is not about the transformer at all. It is about how machines handled language before it, and the single problem that older approach could never shake.

The problem is distance. To understand a sentence, you are forever connecting words that sit far apart. An "it" near the end points back to a noun near the start. A conclusion leans on a condition set out sentences ago. The older approach read text the way you might read through a keyhole: one word at a time, left to right, with everything before it slowly fading as new words arrived. The further back something was, the harder it was to hold on to.

That was not a bug someone forgot to fix. It was the shape of the whole approach, and it put a hard ceiling on what these systems could do.

Citations