Verba/Rapida

Explainers

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.

EXAttentionillustrative

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

See it in the atlas

Want to see what these experiments produced? Lesto, the Gemma 4 inference engine for Apple silicon Macs, is on lestoengine.com

Made by Federico Andrioli, @fedeandri on X A research lab's own measurements, generated from its files. Data built