cs.LGSep 17, 2026

Stiefel-AdamW: Geometry-Aware AdamW for Linear Factorization Blocks

Authors: Emanuele Zangrando, Marco Sutti, Francesco Tudisco

Organizations: Gran Sasso Science Institute, L’Aquila, Italy · University of Edinburgh, Edinburgh, UK

Abstract

A pervasive structural pattern in modern deep learning is the linear factorization block: a submodule of the form W=BAW = BA in which two parameter matrices are multiplied directly, with no intervening nonlinearity. Such blocks appear in LoRA adapters, low-rank compressed layers, query-key products of self-attention, and share a common pathology: the factorization is non-unique, which can destabilize training and limit usable learning rates. Despite this, factorization blocks are typically optimized with standard Euclidean methods that ignore the underlying geometry. We introduce Stiefel-AdamW, a near drop-in replacement for AdamW for use wherever such blocks appear. By constraining one factor on the Stiefel manifold while leaving the other Euclidean, Stiefel-AdamW relaxes the full GL(Rr)\mathrm{GL}(\mathbb{R}^r) gauge symmetry to a compact orthogonal symmetry, ruling out factor blow-up while retaining the coordinate-wise diagonal preconditioning that gives AdamW its practical strength. Moment estimation is performed in the ambient Euclidean space, with geometry entering only through a tangent-space projection and a manifold retraction. The implementation overhead over AdamW is minimal, and we show that the resulting optimizer inherits both the stability benefits of Riemannian methods and standard convergence guarantees. We validate Stiefel-AdamW on LoRA-style fine-tuning of GPT2, ViT, and Mistral 7B and on full pretraining of GPT2 on OpenWebText, showing consistent improvements over strong baselines at essentially no additional cost over AdamW.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Sep 16, 2026

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

The query and key projections \WQ,\WK\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 \citet{becigneul2019}, here extended to the compact, non-Hadamard \St(d,r)\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)\mathrm{O}(d)-equivariance. A fifth records that weight decay has identically zero Riemannian gradient on \St(d,r)\St(d,r) (W=WIrW{=}WI_r lies in the normal space), so decay cannot act on the constrained frames. On a CIFAR-10 patch benchmark at n=10kn{=}10\mathrm{k} this rule gains +6.79\mathbf{+6.79},pp over AdamW across 12 paired starts (t=38.33t{=}38.33, 12/1212/12); earlier fixed-step Riemannian SGD gains +1.97+1.97,pp, of which +1.69+1.69,pp comes from frozen orthonormal initialization alone. The corrected Adam's lead grows with data: +1.9+1.9,pp at n=1kn{=}1\mathrm{k} to +6.7+6.7,pp at n=50kn{=}50\mathrm{k}. A 12-seed ablation credits all gain to the scale-free step (+4.63+4.63,pp, 12/1212/12), nothing to the projector or equivariance; a targeted ε\varepsilon-sweep causally confirms the mechanism (−2.6-2.6,pp at ε=0.1\varepsilon{=}0.1, p<0.001p{<}0.001). Two five-seed grokking studies confirm the constrained arm does not grok better than the baseline (p=0.019p{=}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×10^6\times lower than the unconstrained ablation through every collapse.
Jul 28, 2026

Retraction-Free Optimization over the Stiefel Manifold for the LoRA Fine-Tuning

Optimization over the Stiefel manifold plays a significant role in various machine learning tasks. Existing methods either use the retraction operators, requiring costly orthonormalization for large-scale matrices, or employ landing methods that rely on careful step size selection and penalty parameter tuning. To address these challenges, we propose a retraction-free and penalty parameter-free algorithm that directly lands on the manifold. By leveraging the strongly-convex-like property of the quadratic penalty function and the proximal smoothness of the Stiefel manifold, we establish global convergence guarantees with the best-known iteration complexities under both constant and diminishing step sizes. Then, we reformulate the low-rank adaptation (LoRA) fine-tuning problem for large language models as a manifold optimization problem, introducing Manifold-LoRA for geometry-accelerated adaptation. This approach employs the proposed landing technique and a carefully designed step size strategy to accelerate the training process. Numerical experiments on benchmark datasets demonstrate the efficiency and strong downstream performance of the proposed method.
Jun 1, 2026

Riemannian Gradient Descent for Low-Rank Architectures

We explore Riemannian optimization techniques for rank-factored matrix parameters, targeting contemporary deep learning applications. We examine ten points in the algorithm design space: two geometries for rank-rr matrices, three geometries for rank-rr partial isometries, and block-matrix variants of these five, where factors are shared across block-rows and block-columns. We apply our methods to the multihead attention parameters in small language models. After tuning learning rates, our methods do not conclusively outperform an AdamW baseline. Our implementations are available online.