← Tous les articles

aiNov 16, 20261 min de lecture

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.

Animated explainer: lines connect the word 'it' to every other word in a sentence; with 'tired' the thickest line goes to 'animal', and when the word changes to 'wide' the thickest line moves to 'street'
Animation: generated entirely by code to illustrate the idea; the attention weights are illustrative, not taken from a real model.

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.

Commenter

Commentaires

Soyez le premier à commenter

Votre e-mail ne sera jamais affiché. Les commentaires apparaissent après modération.