Trained heads visibly specialize (syntactic, positional, induction, rare token), but many are post hoc prunable, specialization and redundancy both hold.
Imagine handing one murder case to twelve detectives. They don't all duplicate each other's notes. One focuses on fingerprints, another on alibis, another on motive. Once the case is solved, you could have done it with fewer detectives, but during the investigation, you needed the whole team so the right specialization could emerge naturally. Attention heads work the same way: during training, they each gravitate toward a different relationship type in the data. After training, many of them are doing similar enough work that you can drop a chunk without losing much quality.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Walk through Voita 2019 and Clark 2019 specialization findings, Olsson 2022 induction heads with their emergence pattern and ICL connection, Michel 2019 pruning evidence, and reconcile specialization with redundancy via the training vs inference distinction.
Real products, models, and research that use this idea.
- Voita et al. 2019 identified 'positional', 'syntactic', and 'rare token' head types in Transformer NMT encoders.
- Clark et al. 2019 found BERT heads tracking dependency relations like direct-object and prepositional-object without explicit parse supervision.
- Olsson et al. 2022 traced induction heads in GPT-2 and Anthropic models, showing they emerge during training and correlate with the onset of in context learning.
- Michel et al. 2019 pruned 60-80% of attention heads from a translation transformer with negligible BLEU loss.
- Anthropic's Transformer Circuits Thread has extended mechanistic interpretability to specific algorithmic primitives implemented by head combinations.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy do induction heads emerge sharply during training rather than gradually?
QHow does head pruning evidence interact with the multi-head structural argument?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Asserting either that all heads are identical (wrong) or that no heads are redundant (also wrong). The interesting truth is both specialization and redundancy coexist.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.