Through the derivations and calculations in the previous articles, we can see that the three stability metrics proposed in the first article, Beyond MuP, Part 1: Three Characteristics of a Good Model, can generally be divided into two parts: "parameter stability" and "increment stability". Meanwhile, in Beyond MuP, Part 2: Linear Layers and Steepest Descent and Beyond MuP, Part 3: Special Treatment for Special Cases, we demonstrated the process of combining increment stability with steepest descent to obtain new update rules (optimizers).
However, for parameter stability, we previously only stopped at initialization. The task of this article is precisely to explore how to maintain parameter stability throughout the entire training process, bringing the practical implementation of the theory to completion.
Problem Background #
Taking Beyond MuP, Part 2: Linear Layers and Steepest Descent as an example, the three stability metrics are:
where
We use the increment condition as a stability metric, deriving theoretically optimal update rules based on the steepest descent principle of "seeking speed through stability"—for instance, the linear layer corresponds to the Muon optimizer:
As for parameter stability, previously we only required that the parameter initialization satisfy
General Framework #
How can we ensure that
Initial Thoughts #
A naive idea is simply to enforce
A further step is to adjust the update rule by incorporating the idea of steepest descent, as discussed in the articles Steepest Descent on Manifolds, Part 1: SGD + Hypersphere, Steepest Descent on Manifolds, Part 4: Muon + Spectral Sphere, and the paper 《Controlled LLM Training on Spectral Sphere》. While this approach is methodologically more elegant, it is practically more complex and typically requires solving a nonlinear equation to obtain the exact update.
However, should we really strictly constrain a certain norm of a parameter to a fixed value? Intuitively, the norm of a parameter should be determined by the training process itself; at most, we should set a prior range for it. Although some work shows that, when properly configured, fixing the parameter norm to a preset value does not hurt performance, it still disrupts the original training dynamics and may require much more effort to understand and adapt to.
Therefore, the point this article proposes is that we only need to ensure
Post-Clipping #
The next question is naturally: how do we achieve
how should we modify it to ensure that
Readers familiar with convex optimization should easily recognize that this is essentially a projection operation that projects
As for
We tentatively call this scheme "Post Clip" (post-clipping). It is simple and intuitive, but it may feel somewhat "non-smooth." This is easy to understand: suppose the radius at initialization is less than
Pre Decay #
If you mind this lack of smoothness, you can consider mimicking weight decay by spreading the penalty across every update step. Still starting from the update rule
To prevent this phenomenon, before
That is to say, we first find a way to reduce the norm of
Carrying this all the way through, we have
We call this scheme "Pre Decay". The difference between it and "Post Clip" is that the threshold of the latter is a static
Basic Results #
So far, we have established a general framework for constraining parameter norms, divided into two schemes: "Post Clip" and "Pre Decay". The core operation in them is defined in Equation
A Simple Example #
In this section, we first compute a simple example where the chosen norm is
The proof is left to the reader (if you really cannot figure it out, you can ask Kimi). In particular, substituting
Then substituting into Equation
It is easy to see that this is regular Weight Decay. In other words, Pre Decay under the RMS norm is precisely our commonly used weight decay; it is the Pre Decay scheme that makes the most minimal modification to the original parameters while maintaining the RMS norm (or equivalently, the vector L2 norm or matrix Frobenius norm) constraint.
Singular Value Clipping #
We now move to the "main event" of this post—matrix parameters and Muon. Here we return to the notation
Let
The next task is to compute
The optimal solution to this problem should be familiar to some readers; it is what we referred to in "Higher-Order MuP: A Simpler yet More Ingenious Spectral Condition Scaling" as "singular value clipping (SVC)", while in "Computing Singular Value Clipping mclip via msign (Part 1)" and "Computing Singular Value Clipping mclip via msign (Part 2)", it was called
where
Derivation #
In this section, we prove conclusion
The last equality holds because orthogonal matrices do not change the Frobenius norm. Meanwhile, orthogonal matrices do not change the spectral norm either, so setting
Note that here,
Looking at it term by term,
To make all equalities hold simultaneously, we obtain
Clipping the Leading Term #
Then, how should
It requires two evaluations of
Here, we primarily consider the idea of term-by-term clipping discussed in Implementing Muon with Streaming Power Iteration, Part 5: Extensions. Specifically,
Since the leading singular value and leading singular vector can be computed efficiently via power iteration (denoted as
Among them, the "Pre Decay" version is precisely the spectral weight decay introduced in Reflections from Spectral Norm Gradients to Novel Weight Decay; after more than a year, we have arrived at the same result through another route. As for the "Post Clip" version, @_arohan_ had previously mentioned it on X, referring to it at the time as "Wion". In practice, because only one singular value is clipped at each step, there may be some rather "ambitious" matrices whose spectral norms noticeably deviate from the specified threshold; this is normal and will gradually decrease during the LR decay phase.
Other Details #
If we want more accurate clipping, we can also use power iteration to simultaneously obtain the top-
In addition to the spectral norm of linear layer matrices, in Beyond MuP, Part 3: Special Treatment for Special Cases, we encountered different norms for other layers: for example, Embedding and LM Head correspond to the maximum row and column RMS, respectively, while the gamma parameter of the RMS Norm layer corresponds to the maximum absolute value, also known as the infinity norm of a vector.
Fortunately, the clipping operator under these norms,
These conclusions are all intuitive, and their proofs are relatively simple, so we will not elaborate on them further and leave them as exercises for the reader.
A Necessary Guarantee #
Some readers might wonder: does it really have to be so complicated? Wouldn't it work to simply use ordinary weight decay as in 《Training Deep Learning Models with Norm-Constrained LMOs》? For example,
can likewise constrain the spectral norm to within
The answer is: to avoid excessive intervention. From Definition
There are two consequences of over-intervention: either, to ensure performance, we choose a smaller
Notice that we repeatedly emphasize "guarantee"—this is crucial. Suppose we use weight decay with the coefficient set to 0.01; theoretically, the spectral norm could reach up to 100, but running experiments on small models shows that it might not even reach 5, which is very common. However, being safe on small models does not mean being safe on large models. As we said before, large models are powerful—powerful enough to amplify any subtle bug. If the theoretical upper bound is 100, small models have no chance of reaching it, but large models truly might.
Therefore, having a reasonable theoretical bound on the key norms of the parameters is very necessary, which also reflects the "stability" aspect in the principle of "seeking speed from stability". Meanwhile, the clipping operator defined by Equation
Summary #
Based on the idea of minimal modification, this post proposes a general framework for maintaining parameter stability during training, encompassing two schemes: Post Clip and Pre Decay. Under the spectral norm, they can further evolve into singular value clipping and spectral weight decay. These operations aim to guarantee the boundedness of key parameter norms while minimizing intervention in training dynamics.