What does “it” mean?
Read: “I dropped my phone and it broke.” You know at once that it is the phone. You did not think about it: you looked back at the earlier words and found the one that fits.
A language model reads text token by token and has to do the same. How does it know which earlier words matter? This lesson shows its trick, called attention.
Diagramm
Four cards with everyday sentences: I dropped my phone and it broke; the soup was hot, so I let it cool; the email had a file, but I could not open it; our dog barked because it heard a noise. Below: you always know what it means; how does a model know?