From data whitening preprocessing in the machine learning era to the dazzling array of normalization methods in the deep learning era—such as BatchNorm, InstanceNorm, LayerNorm, and RMSNorm—at their core, they all reflect our preference for "isotropy". Why do we favor isotropic features? What practical benefits does it bring? Many answers can be found for this question, such as aligning scales, reducing redundancy, decorrelation, and so on, but most feel rather superficial.
Recently, while reading the paper 《The Affine Divergence: Aligning Activation Updates Beyond Normalisation》, I gained a new understanding of this question from an optimization perspective. Personally, I think it gets relatively close to the essence of the matter, so I am writing it down to share and discuss it with everyone.
Steepest Descent #
We start with the simplest linear layer:
where
Taking gradient descent as an example, the update rule is
The fundamental principle of gradient descent is the widely known statement that "the negative gradient direction is the direction of steepest descent for the loss," but this conclusion relies on premises. The most crucial premise is that the metric chosen is the Euclidean norm; if we switch to a different norm, the direction of steepest descent changes as well. We have already discussed this in articles such as "Muon Sequel: Why Did We Choose to Try Muon?", Steepest Descent on Manifolds, Part 1: SGD + Hypersphere, among others.
Switching Perspectives #
This article mainly focuses on another premise that is not as easily noticed: perspective, or standpoint.
Suppose we agree that "the negative gradient direction is the direction of steepest descent for the loss." The question then is: "whose" gradient? Some readers might say, naturally, it is the gradient with respect to the parameters. This is indeed the standard answer, but not necessarily the best one. Parameters are essentially a byproduct of the model; we do not actually care about what the parameters look like. What we care about is whether the model's inputs and outputs form the desired mapping.
Therefore, the changes in the input and output features are what we care more about. If we proceed from the perspective of features, the conclusion turns out differently. Specifically, when the parameters change from
According to "the negative gradient direction is the direction of steepest descent for the loss," looking from the standpoint of
Isotropy #
A naive thought is: if only
In this case, we can only hope that these
If the input features satisfy isotropy, then steepest descent on the parameters can simultaneously be approximately equal to steepest descent on the features, "attacking on both fronts" to fully boost the model's learning efficiency.
We can also prove that if a random variable follows a
Normalization Layers #
Beyond whitening the data beforehand, we can also introduce normalization operations inside the model so that intermediate features can also approximately satisfy the desired properties. More specifically, we seek a
The solution to this problem can be expressed via the pseudoinverse:
Here we assume that
This is precisely whitening without centering. Considering that computing
Beyond SGD #
Interestingly, the conclusion that "if the input features can satisfy isotropy, then parameter-level steepest descent is simultaneously approximately equal to feature-level steepest descent " applies not only to SGD, but also to Muon. Considering Muon without momentum, the update rule is
According to
From this, it can be seen that if
We know that Muon is steepest descent under the spectral norm. The above equation implies that if the input features can satisfy isotropy, then parameter-level spectral-norm steepest descent is simultaneously approximately equal to feature-level spectral-norm steepest descent, which is truly ingenious! However, for other optimizers such as SignSGD, a similar property cannot be reproduced; this difference may be one of the reasons behind Muon's superiority.
Summary #
In this article, we discussed a question: when is steepest descent at the parameter level precisely steepest descent at the feature level? The answer is precisely the "isotropy" stated in the title. From this, we arrive at an explanation for why we favor isotropy—it can synchronize steepest descent across both levels and improve training efficiency.