Stage 1 · Ages 8–12 · How it guesses

Paying Attention

When it guesses, the computer weights some earlier words more than others.

Not every word in a sentence matters equally for the next guess. Attention is how the model decides what to focus on right now.

Read: "The animal didn't cross the street because it was tired." What is it? Most people say the animal. The computer has to aim at the right earlier words to make that guess.

Self-Attention
The word "it" attends most strongly to "animal" — that's how the model resolves what "it" refers to.

One step of attention: some earlier words get a bigger say in the next guess.

All lessons in Stage 1: Explorer