Attention
When a model writes the next word, it does not remember the sentence like a person. For every word it looks back at the earlier words and decides how much each one matters. That look-back is attention.
Hover, focus or tap a word to see which earlier words it looks at. The weights are illustrative.
This word looks back at 5 earlier words; a thicker arc means more attention.
The picture and its numbers are illustrative.
The takeaway
Attention is why long prompts cost so much: every new word looks at every earlier word, so the work and the memory it needs grow with the length of the conversation.
What the lab knows
Gemma 4 mixes layers that look only at a recent window with a few that look at everything; converting some of the global layers to windowed ones (7 of 42 in E4B) is one idea the lab tracks. reported