One head, one habit — the spotlight that only looks back
An attention head is a rule for pointing: for each word (the query), it spreads a fixed budget of attention over the words before it. Meet the simplest specialist found in every real transformer — the previous-token head. Click any word below: whatever you pick, ~85% of its attention snaps to the word immediately to the left. Then click the first word.
Four heads, four jobs — switch the spotlight
Same sentence, four different heads. Pick a head, then click words to move the query. The syntax head leaps six tokens from “slept” back to “fox” (the thing that slept), the rare-token head stays locked on “hounds” from anywhere, and the dead head… see for yourself.
The merge — why a committee beats any single head
The model doesn't use heads one at a time — it adds all their outputs together. Below, every arc is a relationship this sentence needs (each next-word link, two long-range syntax links, one rare-word link). Toggle heads in and out of the committee and watch which relationships the merged attention still captures (green) and which go dark (red). Then try the killer experiment: replace all four heads with four copies of the same head.
Dead weight — find the heads you can delete
Here is a 12-head mini-model and a battery of 24 live queries (next-word, syntax, rare-word recall). Each tile shows a head's attention fingerprint and how much accuracy drops if you remove it — computed by actually re-running the battery without it. Drag the slider to prune the weakest heads first, or click any tile to cut that head yourself. Watch how far you can go before anything breaks.
Head behaviors are hand-scripted to mirror what interpretability studies find in trained transformers; the accuracy numbers are computed live from this page's 24-query battery, not quoted from a paper.
Ablation surgery — break grammar by removing one head
“The keys to the cabinet ___” — is it is or are? The verb must agree with keys (far away, plural), not cabinet (nearby, singular). A syntax head solves this by attending straight past the distractor to the true subject. Run the model, then ablate that one head and watch the prediction — computed live from the attention mass on each noun — flip to the wrong answer.