A Geometric Invariant of Attention Predicts Head Specialization from Weights Alone
Abstract
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 and across four bias-free RoPE models spanning M to B 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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
- Comments
- Accepted as an extended abstract at the Symmetry and Geometry in Neural Representations Workshop (NeurReps), NeurIPS 2026
Related papers
Eliciting sandbagged LLM capability via structural interventions on attention-head functional networks
Shared title terminologycs.LGManzi Fabrice Niyigaba, Ishan Verma Prasad, Sansheng Cao et al.
Toward a Theoretical Understanding of Transformer Attention: Bayesian Estimation and Predictive Sufficiency
Shared title terminologycs.LGFouad B. Chedid
Trust-Region Optimization for Performative Prediction without Response Modeling
Shared title terminologycs.LGSiqi Du, Miaolan Xie, Roy Dong
Fusion Gains Depend on the Implementation and the Calibration Target: An 18-Task Study of Prediction Intervals with a Single-Source Fallback
Shared title terminologycs.LGLiwei Deng, Lu Wang
Layer-Readout Interfaces in EEG Foundation Models: Predictive Accessibility and Cross-Dataset Transfer
Shared title terminologycs.LGYanlin Fu, Wei Liu, Liming Zhao
Attention Latent Feedback
Shared title terminologycs.LGXuyuan Xiong, Siyu Chen, Mengzhao Chen et al.