Neural Ninjas ยท Agentic AI Lab

Self-Attention: Theatre Stage & Solar System

Sentence: "The cat sat on the mat" โ€” pick a word, pick a head, watch attention move.

๐ŸŽญ Spotlights follow attention
Brighter spotlight = higher attention weight from the token in the gold box
Focus on:
Head:
Head 0 โ€” local (looks at neighbor) Head 1 โ€” subject tracking ("cat") Head 2 โ€” broad / diffuse
What this shows

Each actor's spotlight brightness is that word's attention weight โ€” the floor grid marks fixed positions, same idea as positional encoding.