TL;DR
Researchers have introduced Lorsa (Low-Rank Sparse Attention), a novel method designed to "un-smush" the complex, multi-tasking attention heads in Transformers into thousands of simple, single-purpose components. By decomposing attention into sparse, rank-1 units, the authors discovered fascinating internal mechanisms like "subtoken induction heads" that fix tokenization errors and "theme anchors" that track topics across long distances. This approach provides a significantly clearer map of how models actually process information.
The Challenge: Attention Superposition
In the realm of Mechanistic Interpretability, researchers often try to understand Transformers by analyzing individual attention heads. However, most heads are "polysemantic"—they perform multiple, unrelated functions simultaneously. This phenomenon is known as attention superposition, where multiple interpretable "attention units" are crammed into a single head to conserve parameters, much like a single neuron responding to both "cats" and "knitting."
Because these distinct functions are tangled together, it becomes incredibly difficult to perform "circuit discovery"—the process of tracing how specific information flows from one part of the model to another. If an attention head is doing three things at once, isolating which specific sub-function contributes to a model's final output is nearly impossible.
Introducing Lorsa: Low-Rank Sparse Attention
To untangle these polysemantic heads, the authors propose Lorsa, a sparse replacement model for standard Multi-Head Self-Attention (MHSA) layers.
Lorsa operates on several key principles:
- Massive Expansion: Instead of relying on a few dozen attention heads, Lorsa expands the architecture to use thousands (e.g., 32,000 for Llama-3.1-8B).
- Top-K Sparsity: For any given token, only a small number of these heads (the "Top-K") are allowed to activate. This forces the model to learn highly "monosemantic" (single-purpose) directions.
- Rank-1 OV Circuits: Each Lorsa head is restricted to a rank-1 Output-Value (OV) circuit. This means each head can only "write" information in one specific linear direction within the model's internal state, making its exact function much easier to identify.
- QK Parameter Sharing: To keep the model computationally feasible despite the massive expansion, groups of Lorsa heads share the same Query-Key (QK) weights. This focuses the sparsity on what is being moved (the OV circuit) rather than just where to look (the QK circuit).
Lorsa is trained as a "transcoder," learning to reconstruct the output of a frozen, pre-trained Transformer layer using these sparse, interpretable components. The researchers trained and evaluated Lorsa on Pythia-160M and Llama-3.1-8B using 800 million tokens from the SlimPajama dataset.
Key Insights and Discoveries
By breaking down attention into these granular components, Lorsa revealed several hidden mechanisms within the models:
- Subtoken Induction: The most surprising discovery was a new type of head that operates at the character level. Standard induction heads often fail when words are split inconsistently by a tokenizer (e.g., "[ Marion]" vs "[M][arion]"). Subtoken heads successfully bridge these gaps, proving the model has internal mechanisms to "patch" tokenization flaws.
- Arithmetic Heuristics: Lorsa uncovered a family of heads dedicated to simple math. Rather than strictly "calculating," these heads use learned heuristics to find operands—for example, a head might specifically look for numbers "ending in 2" to help solve a problem like
36 + 62. - Theme Anchors: Certain heads act as long-range anchors, maintaining a specific topic (like "presidency" or "alcohol addiction") across an entire text sequence to bias the model's subsequent token predictions.
- Quantifying Superposition: The authors found that about 25% of their learned attention units were spread across multiple original MHSA heads, providing concrete evidence that the traditional "one head, one function" assumption is frequently incorrect.
Performance and Interpretability Parity
When using GPT-4o to automatically score how understandable these new heads are, Lorsa achieved interpretability results comparable to Sparse Autoencoders (SAEs), which are currently considered the gold standard for neuron interpretability.
While Lorsa exhibits a slightly higher "Fraction of Variance Unexplained" (FVU) than SAEs for the same parameter count, it is significantly better at revealing the actual circuits of the model. In a toy 2-layer Transformer experiment, the authors successfully sparsified the entire model, revealing a clean, global circuit for induction behavior that was previously obscured by noise.
Limitations and Future Directions
- Shared QK Weights: While necessary for scaling, sharing Query-Key weights across heads might prevent the model from discovering units that have truly unique attention patterns.
- The "Dark Matter" of Variance: Similar to SAEs, Lorsa retains a small percentage of unexplained variance that doesn't disappear with more parameters. This suggests the presence of non-linear or extremely rare features that current linear decomposition methods cannot capture.
- Cross-Layer Superposition: Currently, Lorsa analyzes one layer at a time. The authors note that "cross-layer" versions of Lorsa will likely be necessary to fully understand complex interactions that span multiple steps of the Transformer's forward pass.
Summary updated