A Geometric Invariant of Attention Predicts Head Specialization from Weights Alone
Not on the map. Why?
Abstract (arXiv)
Transformers are built with continuous symmetries in the attention mechanism. We derive ρ, a scalar invariant that measures each head's capacity to couple to rotary positional encodings. This framework allows us to analyze heads without forward passes, opening a new research direction into data-independent analysis of modern LLMs. Empirically, we find that ρ predicts induction heads, the most-studied circuit type in mechanistic interpretability, with Spearman correlation between -0.55 and -0.74 across four bias-free RoPE models spanning 135M to 7B parameters. As a preliminary proof of concept, we use ρ to apply YaRN to only the top-50% positional heads, which degrades perplexity less than uniform application. Code is available at https://github.com/MPedraBento/rho-invariant.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 6 of its 7 references that are in the map. Submitted 9 Nov 2026.
Builds on
6 of 7 references.
References · 6
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,132
- 2022In-context Learning and Induction Headscited by 1,085
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 794
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 787
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 672
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 128
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization
- 2026Two Principles for Autoregressive Language Modeling
- 2026Quantifying LLM Attention-Head Stability: Implications for Circuit Universality
- 2026Spectral Probe-Circuits: A Three-Step Recipe for Identifying Attention-Head Circuits in Pretrained Transformers
- 2026Formally Verified Autoresearch for Analyzing the Expressivity of Multi-Head Attention
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks
- 2025Single-Head Attention in High Dimensions: A Theory of Generalization, Weights Spectra, and Scaling Laws
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers