A Geometric Invariant of Attention Predicts Head Specialization from Weights Alone
Miguel P. Bento
Key points
From the paper's conclusion- We derive $\rho$, a scalar invariant that measures each head's capacity to couple to rotary positional encodings.
Abstract
Transformers are built with continuous symmetries in the attention mechanism. We derive $\rho$, 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 $\rho$ 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 $135$M to $7$B parameters. As a preliminary proof of concept, we use $\rho$ 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Multi-Head Self Attention is a Parameter Identification MechanismarXiv · 2026
- LayerRoPE: Dynamic Depth-wise Magnitude & Angular SuperpositionarXiv · 2026
- HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMsarXiv · 2026
- Disentangling the Expressivity of RoPEarXiv · 2026
- Geometric knowledge spaces, Attention pairing and ArchitecturesarXiv · 2026
- Scaled Idempotence in Transformer Attention: Paired OV Geometry and Shared-Value AlgebrasarXiv · 2026