mlsanityData to 14 Oct 2026

Directions That Don't Drift: Stiefel Manifold Routing for Transformer Attention

arXiv 2609.19363 ↗First posted 16 Sep 2026cs.LG cs.NA math.NAcited by 0

Not on the map. Why?

Abstract (arXiv)

The query and key projections WQ,WK in attention are almost always trained by Euclidean optimizers with no geometric constraint. We constrain them to the Stiefel manifold and optimize with a Riemannian Adam carrying one scalar second moment per frame---the form of citetbecigneul2019, here extended to the compact, non-Hadamard St(d,r) with a tangent projector, step-norm cap, and polar retraction. Four propositions prove steepest descent in the embedded metric, gradient-scale independence, well-conditioning, and exact O(d)-equivariance. A fifth records that weight decay has identically zero Riemannian gradient on St(d,r) (W=WIr lies in the normal space), so decay cannot act on the constrained frames. On a CIFAR-10 patch benchmark at n=10k this rule gains +6.79,pp over AdamW across 12 paired starts (t=38.33, 12/12); earlier fixed-step Riemannian SGD gains +1.97,pp, of which +1.69,pp comes from frozen orthonormal initialization alone. The corrected Adam's lead grows with data: +1.9,pp at n=1k to +6.7,pp at n=50k. A 12-seed ablation credits all gain to the scale-free step (+4.63,pp, 12/12), nothing to the projector or equivariance; a targeted varepsilon-sweep causally confirms the mechanism (-2.6,pp at varepsilon=0.1, p<0.001). Two five-seed grokking studies confirm the constrained arm does not grok better than the baseline (p=0.019, A2 wins): the weight-decay exemption has no grokking consequence. A single-seed pilot exploiting this localization achieves the first stable grokking under slingshot conditions---Stiefel + targeted circuit regularization keeps routing-frame isometry error 106× lower than the unconstrained ablation through every collapse.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 23 references that are in the map. First posted on arXiv 16 Sep 2026.

Builds on

14 of 23 references.

References · 14

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  3. 2019Are Sixteen Heads Really Better than One?cited by 816
  4. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
  5. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
  6. 2015Unitary Evolution Recurrent Neural Networkscited by 294
  7. 2020Query-Key Normalization for Transformerscited by 280
  8. 2018Riemannian Adaptive Optimization Methodscited by 194
  9. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
  10. 2022Omnigrok: Grokking Beyond Algorithmic Datacited by 146
  11. 2016Full-Capacity Unitary Recurrent Neural Networkscited by 94
  12. 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 94
2 more
  1. 2017Orthogonal Weight Normalization: Solution to Optimization over Multiple Dependent Stiefel Manifolds in Deep Neural Networkscited by 92
  2. 2020Efficient Riemannian Optimization on the Stiefel Manifold via the Cayley Transformcited by 80

Built on by

Not cited yet.