TL;DR
Standard optimizers like AdamW treat every parameter in a neural network as an isolated number in one giant flat list, completely ignoring the rich mathematical symmetries of different architectural layers. This paper introduces a "symmetry-compatible principle": by tailoring gradient updates to match the exact geometry of each layer type—from embeddings to Mixture-of-Experts (MoE) routers—we get faster convergence, cleaner training dynamics, and lower validation losses.
What Problem Does This Paper Address?
Picture a neural network. It isn't just a soup of numbers; it’s an intricate machine made of distinct parts—embeddings, attention projections, SwiGLU MLPs, and MoE routers. Each of these matrix blocks has its own natural symmetries. For instance, you can rotate the continuous hidden features of a linear layer, or swap the order of vocabulary words in an embedding table, without fundamentally changing what the network represents.
Yet, when we train these networks, we almost universally reach for coordinate-wise adaptive optimizers like Adam or AdamW. These methods flatten all those structured matrices into a single vector and update every weight independently. Even newer matrix-aware optimizers like Muon typically fall back on AdamW to handle input embeddings and output Language Model (LM) heads. This creates a fundamental geometric mismatch: the optimizer's updates depend on arbitrary coordinate choices that the underlying architecture doesn't actually care about, leading to training instabilities and suboptimal performance.
Methods
The authors propose an end-to-end, layerwise optimizer stack built on equivariance: if a layer's representation transforms under a specific symmetry group (like a rotation or permutation), the optimizer's update rule should commute with that exact transformation. Furthermore, if a transformation leaves the output completely unchanged, the optimizer should project out those redundant directions.
- What is unified (Standard Matrix Layers): For standard dense and attention layers, both input and output spaces allow continuous orthogonal rotations (bi-orthogonal equivariance). The authors prove mathematically that any direction-wise update respecting this must act purely on singular values while preserving singular vectors—neatly unifying existing "spectral optimizers" like Muon, Scion, and PolarGrad.
- What is new (Specialized Layers): Moving beyond pure rotations, the authors derive novel optimizer classes for non-standard blocks:
- Embeddings & LM Heads: Rows represent discrete vocabulary tokens (which can be permuted) while columns represent continuous hidden features (which can be rotated). This left-permutation, right-orthogonal (LPRO) symmetry yields lightweight row-norm (
RowNormM), right-spectral (RightPolarGradM), and hybrid (HybridPolarGradM) updates. Because softmax probabilities don't change if you add the same constant to every logit, LM head updates are also centered and projected to remove this shared-shift redundancy. - SwiGLU MLPs: Because intermediate neurons can be freely permuted, updates become row-aware for gate/up projections and column-aware for down projections.
- MoE Routers: Combining expert-permutation symmetry with softmax shift-invariance leads to centered row-norm and left-spectral (
LeftPolarGradM) updates.
Datasets
All models were pre-trained on the 10B-token subset of FineWeb-Edu. No new benchmarks were introduced, as the authors focused on isolating optimizer dynamics rather than chasing scaling-law-optimal token budgets.
Key Insights and Ideas
- Bi-orthogonal equivariance is spectral optimization: Requiring an update map to respect left and right orthogonal rotations isn't just a nice heuristic; it completely characterizes spectral operators. This explains why methods like Muon work so well on hidden linear layers from first principles.
- Discrete symmetries unlock cheap local updates: Because vocabulary rows only permit discrete permutations rather than full rotations, you don't have to compute expensive polar decompositions on massive vocabulary matrices. Simple row-norm scaling (
RowNormM) respects the exact same symmetry at practically zero extra compute cost over AdamW. - Fixing geometry fixes downstream pathologies: Many annoying quirks of LLM training—like runaway vocabulary logits or lopsided expert routing in MoEs—appear to be side effects of geometrically mismatched coordinate-wise updates. Respecting quotient symmetries (like softmax shift invariance) tames them naturally.
Key Results
The authors tested their layerwise optimizer stack across dense (Qwen3-0.6B-style, Gemma 3 1B-style) and sparse MoE (OLMoE-1B-7B-style, downsized 3.47B-parameter gpt-oss) architectures, using Muon for hidden/attention matrices across all runs.
- Consistent validation loss drops: Swapping out AdamW on embeddings and LM heads for
RowNormMorHybridPolarGradMimproved validation loss across the board, with clear gains on Gemma 3 1B (see Figure 1 above). - MoE improvements (
gpt-oss3.47B): Even without auxiliary load-balancing or router z-losses, replacing AdamW on embeddings, LM heads, and routers dropped final validation loss from 2.9238 (all AdamW) to 2.8862 (RowNormMon vocab + AdamW router), 2.8665 (RowNormMvocab +LeftPolarGradMrouter), and 2.8617 (RowNormMfor all three). - Better stability without band-aids: Symmetry-compatible updates curbed final vocabulary-logit growth in Gemma 3 1B, reduced training loss spikes, and organically lowered expert load imbalance and router z-loss in MoE models.
Limitations and Future Work
- Computational overhead on spectral variants:
RightPolarGradMandHybridPolarGradMrequire numerical polar decompositions, which are computationally heavy and can demand higher numerical precision on giant vocabulary matrices (gpt-osshas 201,088 tokens). Consequently, the authors relied on the cheaperRowNormMfor their largest MoE runs and left broader ablations to future work. - Memoryless scope: The theoretical characterization of spectral optimizers focuses on direction-wise (memoryless) maps acting on a single gradient or momentum buffer, leaving out broader stateful matrix preconditioners like Shampoo.
- Pre-training horizon: Models were trained on 10B tokens rather than full scaling-law-optimal budgets; testing these principles at massive token horizons remains an open next step.
Summary updated