Which Word Does It Mean? How AI Uses Attention
Read this sentence: “The animal didn’t cross the street because it was too tired.” You know instantly that “it” is the animal. Now change one word: “…because it was too wide.” Suddenly “it” is the street. A language model has to solve this puzzle millions of times a day, and the tool it uses is called attention.

For every word, attention asks: which other words in this sentence matter most for understanding me? It gives each pair a score, and the model blends the meanings of the high-scoring words into the current one. In the animation, thicker lines mean more attention. When “tired” becomes “wide”, the strongest line jumps from “animal” to “street”. Nobody wrote a rule for this; the model learned which connections matter from billions of examples.
This one idea, from the 2017 paper “Attention Is All You Need”, is the engine inside ChatGPT, Claude and almost every modern AI model. It is also why these models can follow long, complicated text: every word can look directly at every other word, no matter how far apart they are.

Commentaires