Lost in Latent Space

Memo: On the Specialization of Attention Heads

Background

Mechanistic interpretability has produced a catalog of named attention heads: induction heads, previous-token heads, name-mover heads, duplicate-token heads, and so on. The catalog implies a tidy picture in which each head learns one job. The empirical picture is messier: most heads in a trained transformer do not admit a single clean description, and the well-named heads are a minority of a model’s compute. This memo collects what is and isn’t known about why specialization happens at all.

What is observed

What plausibly causes specialization

We believe — with varying confidence — that the following forces shape the head landscape:

  1. Architectural bottlenecks. A single attention head has a low-rank structure (rank ≤ head_dim). A function that needs more rank than the head provides cannot live in one head. This pushes the model toward either splitting the function across heads or compressing many partial functions into one. Evidence: induction heads need two heads in series (previous-token + induction), because no rank-d head can do both jobs alone.
  2. Gradient interference. When two functions both want a head, SGD tends to either pick one and saturate it (specialization) or smear both into a polysemantic mix. Which outcome obtains seems to depend on how decorrelated the two functions’ input distributions are. We do not have a good predictive theory here.
  3. Width vs depth pressure. Adding heads (width) increases capacity for parallel specialization. Adding layers (depth) increases capacity for serial composition. Empirically, width has diminishing returns past a point — likely because there is a finite number of “natural primitive operations” that benefit from being on their own head.

What is not known

Tradeoffs for downstream work

Open questions

What’s next

The strongest direction is the sparse-autoencoder line: decompose head outputs into a learned dictionary of features and ask whether the dictionary is sparser, more stable, and more semantically interpretable than the head basis itself. If yes, “heads” stop being the right unit of analysis. That conclusion, if it holds, will quietly invalidate a lot of the current mech-interp vocabulary — which is what makes it the most interesting bet on the table.