When do spectral gradient updates help in deep learning?
Damek Davis, Dmitriy Drusvyatskiy
TL;DR
The paper explains when spectral gradient updates (like SpecGD and MuON) outperform Euclidean gradient descent in training deep nets and transformers by introducing a layerwise condition nr(G) ≥ st(A), linking gradient structure to activation degeneracy. It shows post-activation matrices generically have low stable rank under Gaussian initialization, and that in random-feature models the gradient’s nuclear rank grows with dimension after a short burn-in, creating a regime where spectral updates yield larger one-step loss decreases. The authors extend the analysis to a general layered model and transformer blocks, providing a Hessian-based, layerwise bound that translates into a practical descent comparison; they validate the theory with synthetic experiments and NanoGPT-scale training, where internal activations exhibit low stable rank and gradients maintain large nuclear rank. The results offer a concrete, data-driven explanation for the regimes where spectral gradient methods are advantageous, particularly in internal transformer and MLP blocks, while noting exceptions (e.g., gated activations) where the benefit may diminish. Overall, the work connects activation degeneracy, gradient spectral structure, and geometry-aware optimization to explain and predict when spectral methods yield tangible gains in deep learning practice.
Abstract
Spectral gradient methods, such as the recently popularized Muon optimizer, are a promising alternative to standard Euclidean gradient descent for training deep neural networks and transformers, but it is still unclear in which regimes they are expected to perform better. We propose a simple layerwise condition that predicts when a spectral update yields a larger decrease in the loss than a Euclidean gradient step. This condition compares, for each parameter block, the squared nuclear-to-Frobenius ratio of the gradient to the stable rank of the incoming activations. To understand when this condition may be satisfied, we first prove that post-activation matrices have low stable rank at Gaussian initialization in random feature regression, feedforward networks, and transformer blocks. In spiked random feature models we then show that, after a short burn-in, the Euclidean gradient's nuclear-to-Frobenius ratio grows with the data dimension while the stable rank of the activations remains bounded, so the predicted advantage of spectral updates scales with dimension. We validate these predictions in synthetic regression experiments and in NanoGPT-scale language model training, where we find that intermediate activations have low-stable-rank throughout training and the corresponding gradients maintain large nuclear-to-Frobenius ratios. Together, these results identify conditions for spectral gradient methods, such as Muon, to be effective in training deep networks and transformers.
