Quantifying LLM Attention-Head Stability: Implications for Circuit Universality

Karan Bali, Jack Stanley, Praneet Suresh, Danilo Bzdok

Abstract In mechanistic interpretability, researchers seek to reverse-engineer Large Language Models (LLMs) into human-understandable "circuits." However, these circuits are rarely tested for stability across different training instances of the same architecture. This paper systematically quantifies "seed stability" across multiple transformer models, revealing a "stability dip" in middle layers where attention heads become idiosyncratic. The study demonstrates that while intermediate attention heads may lack universality, the residual stream remains robust, and optimization choices like weight decay can significantly restore cross-instance stability.

1. Introduction

The field of mechanistic interpretability aims to decode the "black box" of Large Language Models (LLMs) by identifying "circuits"—small, interpretable sub-computations performed by specific neurons or attention heads. A foundational assumption in much of this work is the Universality Hypothesis: the idea that different models trained on the same task will naturally converge to identical internal representational features.

However, most interpretability research is conducted on a single instance of a model. If discovered circuits are idiosyncratic—unique to one specific training run's random seed—then these findings might be stochastic artifacts rather than fundamental truths about artificial neural learning. This presents a critical vulnerability for safety-critical applications, where oversight mechanisms developed for one model must reliably transfer to another. This paper addresses this gap by systematically quantifying the "seed stability" of attention heads across independently initialized training runs.

2. Methodology and Datasets

To rigorously test circuit universality, the researchers trained 26 different transformer architectures, ranging from 2 to 12 layers. Crucially, they performed multiple "refits," training the exact same architectures multiple times using different random initializations.

The models were trained on diverse corpora: the 2-, 4-, and 8-layer models utilized a 2-billion token subset of the C4 dataset, while the 12-layer models (equivalent to GPT-2 Small) were trained on 9 billion tokens of OpenWebText. For evaluation, the authors synthesized a primary set of 100 diverse prompts to ensure a wide range of linguistic contexts, alongside a "length-sweep" set to test the impact of prompt length on stability.

Rather than comparing raw weights—which are susceptible to permutation symmetries—the authors compared attention score matrices. They developed a "Stability Score" by measuring the cosine similarity of how heads attend to tokens across different seeds. The process involved comparing a head in Model A to all heads in the same layer of Model B, finding the "best match" based on attention patterns, and averaging these scores across model pairs. Additionally, the study employed meta-SNE to visualize the geometric space of head activations and Centered Kernel Alignment (CKA) to assess the stability of the residual stream.

3. Key Findings

The "Stability Dip"

The study reveals a pronounced "stability dip" in the intermediate layers of the models. Stability is highest at the input and output layers but plummets in the middle. For instance, in an 8-layer model, stability drops from near 1.0 in Layer 1 to approximately 0.7 by Layer 5. The authors hypothesize that these intermediate layers possess the highest degrees of freedom, operating furthest from the regularizing constraints of the input embeddings and output logits.

The Paradox of Importance

Counterintuitively, in deeper layers, the least stable heads—those hardest to replicate across seeds—are often the most functionally important. Ablation studies showed that removing these unstable heads degrades model performance (measured by perplexity) more severely than removing stable heads.

The Anchor of the Residual Stream

While individual attention heads can be messy and idiosyncratic, the network's residual stream remains remarkably stable across different seeds. Acting as the primary "highway" of information, the residual stream consolidates representations and effectively filters out the noise generated by individual head variations.

Optimizer Regularization and Context Length

The choice of optimizer plays a crucial role in circuit universality. Switching from the standard Adam optimizer to AdamW (which incorporates decoupled weight decay) significantly improved head stability. By controlling norm growth during training, weight decay forces the model to converge on more canonical, universal solutions. Furthermore, the study found that stability is highly sensitive to context length; as prompts grow longer, complex token-to-token interactions increase, making it harder for different model instances to align on identical representational strategies.

Geometric Clustering

Meta-SNE visualizations demonstrated that attention heads cluster primarily by relative depth rather than absolute layer number or specific architecture. This suggests that a head's functional role is largely dictated by its relative position within the computational stack.

4. Limitations and Future Directions

The authors note that their experiments were limited to relatively small models (up to 124M parameters) and did not exhaustively sweep all hyperparameters, such as learning rate schedules or dropout rates.

Future research must determine whether these stability trends persist at the billion-parameter scale and how different data distributions (e.g., code versus natural language) might influence the "stability dip." Ultimately, these findings establish cross-instance robustness as an essential prerequisite for scalable oversight, suggesting that future circuit discovery methods should prioritize "seed-robust" regions of the network to ensure interpretability findings are genuinely universal.

Summary updated

BibTeX
@inproceedings{bali2026quantifying,
  author = {Karan Bali and Jack Stanley and Praneet Suresh and Danilo Bzdok},
  title = {{Quantifying LLM Attention-Head Stability: Implications for Circuit Universality}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=UXzfLdXrBJ},
}
Figure