An explainer of our paper Symmetry-Compatible Principle for Optimizer Design: Embeddings, LM Heads, SwiGLU MLPs, and MoE Routers (Tim Tsz-Kit Lau and Weijie Su). The code is available on GitHub.
A geometric disparity hiding in plain sight
Modern neural networks are built around symmetry. Convolutions are translation-equivariant, attention is permutation-equivariant in its tokens, and the parameter space itself has rich internal structure: you can permute the hidden neurons of an MLP, rotate an embedding basis, or relabel the experts of a mixture-of-experts (MoE) layer, and the function the network computes does not change.
Optimizers, by contrast, have stayed almost entirely geometry-blind. Adam, AdamW, RMSprop, Adafactor, and AdaGrad all belong to the family of coordinate-wise adaptive gradient methods. They flatten every parameter tensor into one long vector and update each scalar entry on its own, with its own running statistics. That design quietly assumes that every entry of a weight matrix is an independent coordinate in a featureless high-dimensional space.
That assumption is rarely questioned, but it is wrong in a way that matters. A weight matrix is usually not an arbitrary array of numbers; it is a linear map between two structured spaces. Treating it as a bag of scalars throws away its row, column, permutation, and spectral structure, and it makes the optimizer behave differently depending on an arbitrary choice of basis. The central message of our paper is simple: neural network weight matrices live in geometries that coordinate-wise optimizers do not see, and optimizer design should be layerwise and symmetry-compatible rather than one-size-fits-all.
What “geometry-blind” actually costs you
Here is the concrete problem. Suppose a weight matrix represents a linear map, and we change coordinates in the output and input spaces by invertible matrices and . The same underlying map is now represented by , and a short calculation shows the gradient transforms as
A sensible optimizer should respect this. If we relabel the coordinates, the update should be the same step, just expressed in the new coordinates. Formally, an update map is equivariant under a symmetry group if, for every group element ,
where is the update direction (a gradient or a momentum buffer). Coordinate-wise methods generally fail this test. Sign-style and entrywise-normalized updates depend on the basis: rotate the embedding space and Adam takes a genuinely different step, because dividing each coordinate by its own second moment is not a basis-independent operation. The optimizer's notion of “geometry” is an accident of how the tensor happened to be laid out in memory.
The symmetry-compatible principle
This suggests a clean design rule, which is the organizing idea of the paper.
Symmetry-compatible principle. The update rule for a weight block should be equivariant under the symmetry group that acts on that block.
The important word is layerwise. Different parameter classes have different symmetry groups, so they should get different optimizers. A dense linear layer is not an embedding table, an embedding table is not a SwiGLU projection, and none of them is an MoE router. Once you take the symmetry group of each block seriously, a whole family of optimizers falls out, each one matched to the block it acts on. We call this architecture-optimizer co-design.
Spectral optimizers are exactly the bi-orthogonally equivariant class
Start with an ordinary matrix layer, such as a dense linear layer or an attention projection. Both its input and output spaces are generic vector spaces with no distinguished basis, so the natural symmetry group is bi-orthogonal: and can be any orthogonal matrices.
Which update maps are equivariant under this group? The answer is the class of spectral optimizers. Given the singular value decomposition , a spectral update keeps the singular vectors and only reshapes the singular values. The cleanest example is the polar factor,
which replaces every singular value by . This is precisely what Muon computes (approximately, via Newton-Schulz iterations), and what stochastic spectral descent, Scion, and the polar gradient method (PolarGrad) compute exactly or approximately. The paper makes the connection sharp: spectral optimizers are not just a normalization heuristic, they are exactly the direction-wise update maps compatible with bi-orthogonal equivariance. Because the spectral norm is unitarily invariant, its steepest-descent direction is the polar factor, so Muon was bi-orthogonally equivariant all along; we are simply naming the principle that explains why.
So for ordinary matrix layers, the symmetry-compatible answer is a full spectral (polar) update. The interesting part is what happens when the symmetry group is not bi-orthogonal.
Beyond ordinary matrix layers
Most of the parameters in a real language model do not sit in ordinary matrix layers. Embeddings, LM heads, SwiGLU MLP projections, and MoE routers each have a distinctive symmetry, and each one calls for a different update.
Embeddings and LM heads: permutation on one side, orthogonal on the other
An embedding matrix has one row per vocabulary token. You can freely permute the rows, since relabeling token indices is a symmetry, but you cannot rotate them, because the rows are not interchangeable along a continuous group; each row is tied to a specific token. The columns, on the other hand, live in the model's representation space, which does admit an orthogonal change of basis. The symmetry group is therefore left-permutation, right-orthogonal (LPRO): is a permutation matrix and is orthogonal.
Matching the optimizer to this group gives a different toolkit:
Right-spectral (one-sided spectral) updates orthogonalize only on the column side, respecting the orthogonal symmetry of the representation space while leaving the row (vocabulary) side alone.
Row-norm updates normalize each row separately. Per-row normalization commutes with row permutations, so it is exactly compatible with the permutation symmetry, and unlike a full polar factor it does not impose a continuous symmetry the layer does not actually have.
Hybrid updates combine the two: spectral structure on the column side, row-norm structure on the row side.
The takeaway is that a full bi-orthogonal (Muon-style) update is the wrong equivariance for an embedding table, because it assumes a symmetry the vocabulary axis does not possess.
SwiGLU MLP projections: intermediate-neuron permutation symmetry
A SwiGLU MLP has gate, up, and down projections that share an intermediate hidden dimension. The neurons of that hidden dimension can be permuted, as long as you permute them consistently across all three matrices; the network computes the same function. This intermediate-neuron permutation symmetry hits the gate and up projections along their rows and the down projection along its columns. That asymmetry motivates row-aware updates for the gate and up projections and column-aware updates for the down projection, so each matrix is treated according to which of its axes carries the permutation symmetry.
MoE routers: expert permutation plus a shared-shift invariance
An MoE router maps a hidden state to a vector of expert logits. It carries two symmetries at once. First, the experts can be permuted, so the router has expert-permutation symmetry along its rows. Second, the routing decision is made by a softmax over experts, and a softmax is invariant to adding the same constant to every logit, a shared-logit-shift invariance. A symmetry-compatible router update has to respect both. This leads to centered row-norm updates, which subtract the shared component so the optimizer never wastes a step moving along a direction the softmax ignores, and to left-spectral updates, the mirror image of the right-spectral updates used for embeddings.
An end-to-end layerwise optimizer stack
Putting the pieces together yields what is, to our knowledge, the first end-to-end pre-training optimizer stack in which every major matrix-valued parameter class is assigned an update according to its own layerwise symmetry:
ordinary matrix layers (dense and attention projections) get full spectral (polar) updates;
embeddings and LM heads get one-sided spectral, row-norm, or hybrid updates;
SwiGLU gate, up, and down projections get row-aware or column-aware updates;
MoE routers get centered row-norm or left-spectral updates.
In code, the practical momentum variants are named RightPolarGradM, LeftPolarGradM, RowNormM, and HybridPolarGradM. Each is a small, well-defined modification of a familiar matrix-gradient update; the contribution is knowing which one to apply where, and why.
What the experiments show
We test the principle with dense and sparse-MoE language model pre-training: Qwen3-0.6B-style and Gemma 3 1B-style dense models, and OLMoE-1B-7B-style and downsized gpt-oss MoE models. A few consistent patterns emerge:
Replacing AdamW on the large vocabulary-indexed matrices (embeddings and LM heads) with row-norm or hybrid equivariant updates consistently improves final validation loss. The gains are modest but visible on the smaller Qwen3-0.6B-style model and become more pronounced on the larger Gemma 3 1B-style model.
In dense models, using hybrid updates for the SwiGLU MLP projections improves validation loss further.
In the MoE setting, symmetry-compatible router updates beat coordinate-wise router updates and can reduce training loss spikes, so the principle helps with stability, not only final loss.
A fair caveat: the goal is not to claim that equivariant optimizers dominate coordinate-wise methods in every regime. These experiments are evidence that the principle is useful and practical, not an exhaustive large-scale optimizer benchmark.
Takeaways
The one-line summary: stop treating every weight matrix the same way. A weight block is a linear map with a symmetry group, and the optimizer that updates it should be equivariant under that group. For generic matrix layers, that recovers spectral methods like Muon and explains them. For the parameter classes that make up most of a modern language model, namely embeddings, LM heads, SwiGLU MLPs, and MoE routers, it produces genuinely new updates, because those layers have permutation and shared-shift symmetries that a bi-orthogonal update gets wrong. Matching the update to the symmetry is a small change per layer, and across our pre-training experiments it consistently helps.
If you want the details, derivations, convergence analysis, and full experimental setup, the paper is on arXiv and the implementation is on GitHub.