skip to content
← Scientific Spaces English

From Parameter Symmetry to Effective Learning Rates

Recently, more and more papers and blog posts have been using parameter symmetries to analyze and guide model optimization. Examples include Hyperball, HyperTransfer, and ELR. Broadly speaking, they explore the symmetry assumption . Designing optimizers to respect the corresponding symmetries can often make training more robust and reduce the mental effort of tuning hyperparameters.

Yet the symmetry assumption itself has some contentious aspects. How can we give this approach a more reliable foundation so that it can go further on firmer ground? Here I share some thoughts.

Reviewing the Results #

Let us first trace the reasoning in the three articles mentioned at the start.

First, they all share a central assumption: the model always satisfies , where is a model parameter, is any positive number, and is the loss function. Clearly, this assumption means that the model's performance is independent of the norm of . Accordingly, Hyperball advocates renormalizing the norm of to a chosen value after every update:

The other two articles suggest leaving the update rule unchanged. Since performance is independent of the norm, however, the rate of change of 's direction vector is more fundamental during training. They therefore advocate monitoring and aligning the Angular Update Size (AUS):

Furthermore, since holds identically, differentiating both sides with respect to and then setting gives : the gradient of is always perpendicular to . Since the update is constructed from the gradient, we simply assume, approximately, that this perpendicularity extends to the update. Then , giving

Compared with , this expression has an additional division by and represents the relative update size. We regard this as the more fundamental learning rate and call it the Effective Learning Rate (ELR). Different optimizers can achieve similar performance by aligning it; even learning-rate-related scaling laws should be expressed in terms of it.

Examining the Assumption #

The most fundamental problem with all this, however, is that in today's mainstream architectures, the assumption that “ always holds” almost never holds at all!

Notice that mainstream models now use an In-Norm architecture. Whether paired with ordinary residual connections, MHC, or AttnRes, each sublayer has the form , where

can remove the effect of the input scale, but cannot remove the effect of the scale of that layer's parameters. So there is no basis for . In fact, almost no individual parameter in a mainstream Transformer architecture satisfies this scale invariance.

The only exception is models with QK-Norm: their have this property. Also, since the input to the LM head has RMS Norm, multiplying the embedding layer and the output matrices of all layers by the same number leaves the output unchanged. But these are isolated, conditional invariances, rather than a general property. This is why we say that is a difficult assumption to justify—not even an approximate one in general.

On the other hand, the conclusions of Hyperball, ELR, and HyperTransfer do show some effectiveness in practice. This amounts to saying that “the result is right, but the reasoning is flawed.” How can we repair the argument and arrive at similar conclusions?

Joint Symmetry #

Fortunately, although a symmetry of the form does not hold, current model architectures generally possess a joint symmetry: for certain parameter pairs , we always have .

These parameter pairs include:

1. and in an Attention layer, as well as in a GLU layer;

2. If the GLU gate uses ReLU, and also form such a pair (with Swish, the property can be regarded as approximate);

3. Treating as one large parameter, it forms a pair with of the current layer's RMS Norm;

4. Similarly, treating as one large parameter, it forms a pair with of the current layer's RMS Norm;

5. The parameter of the LM head's RMS Norm and the LM head's parameter matrix form such a pair.

Points 3 and 4 deserve particular attention: the entire group of input matrices must be scaled together. Scaling only one matrix may cancel the scale change within that parameter pair, but it introduces an extra scaling factor for other parameters in the group, so the forward computation will generally still change. Some joint symmetries can also be refined to individual vectors or even channels. Scale redundancy is thus quite common in modern models; it usually depends on parameters acting together.

Trying a Replacement #

Can the widespread symmetry described above replace the problematic assumption and provide renewed support for the conclusions of Hyperball, ELR, and related work?

First, means that we can fix the norm of one of the parameters without losing expressive power. Most matrix parameters in Attention and GLU layers have this joint symmetry with their corresponding parameters. We can therefore consider fixing the norms of the matrix parameters while keeping the norms of trainable. This is what Hyperball advocates.

There is another detail to watch, though. In an Attention layer, for example, the joint symmetry of requires treating as a whole, and does not involve . Hyperball, however, fixes each parameter's norm separately in practice. In theory, then, it still sacrifices expressive power. Its effectiveness cannot be fully explained by joint symmetry; it suggests, rather, that models are much more tolerant of such constraints than we might imagine.

Next, differentiating both sides of with respect to and substituting gives

This shows that if we treat as a single vector, it is always perpendicular to the gradient . When there are sufficiently many joint symmetries (for example, is jointly symmetric with both and ), we assume that this perpendicularity can be decomposed into perpendicularity for each vector, namely

We can then reproduce the earlier AUS and ELR analysis. Of course, this involves a long chain of assumptions: from global to local perpendicularity, and from perpendicular gradients to perpendicular updates. Accuracy is not guaranteed. Thus, “Hyperball May Not Be a Free Lunch” explicitly retains the inner product between the parameter and the update in its definition of the effective learning rate, which is also a more reasonable choice.

Rethinking the Derivation #

Looking back over the derivation, we have mainly tried to argue that norms do not matter, that AUS is more fundamental, and that AUS and ELR are equivalent. But if we probe further, choosing norms or AUS as the quantities to observe is itself quite subjective. It does not explain the more fundamental objective behind these choices.

We know that each symmetry represents an invariance of the model: for the forward computation, the models before and after the transformation are mathematically identical functions. During training, we would like two different but forward-equivalent parameterizations to have exactly the same training trajectory. This would make hyperparameters more transferable and reduce the mental effort involved in training.

For example, suppose we have a model and introduce another model , where . Clearly, the two models are completely equivalent. Yet with the same optimizer and hyperparameters, their training trajectories are usually not equivalent. Under SGD, for instance, we have, respectively,

Thus, moving from to preserves the forward computation, but under SGD the latter amounts to scaling the learning rate by , so the optimization trajectories differ. This is inconvenient for optimization: reproducing a model's training process and performance requires not only functional equivalence but also a careful alignment of the parameterization.

The Ideal Update #

What would an ideal update look like? Write its general form as , where . As we saw above, multiplying a parameter by divides its gradient by . We would like the optimizer's update to be multiplied by as well, so that the update trajectory is theoretically unchanged. In other words, we want the following covariance:

But this is not enough. We have an even more basic expectation of an optimizer: multiplying the loss function by an arbitrary positive constant should not change the optimization trajectory, because that constant theoretically conveys no useful information. Thus, in the expression above should be replaceable by an arbitrary constant. The full covariance we want is therefore: for any , the following always holds:

Dividing both sides by and substituting gives

Notice that when already satisfy , this expression holds automatically. In other words, when , can be any bivariate function . Hence the general solution is

Analyzing the Result #

Equation gives the general structure of solutions satisfying the covariance : normalize and separately, allow any operation on the two normalized quantities, then multiply the result by . From this form, the simplest way to make SGD satisfy the covariance is

For a general optimizer, we can replace with to obtain

Since we have explicitly separated out and , here is precisely the effective learning rate defined earlier. We have thus arrived at the concept by a completely different route: it is the simplest way to reformulate an optimizer to satisfy covariance. Equivalently, aligning effective learning rates to make training trajectories transferable amounts, at its core, to making the optimizer covariant.

One detail: we write the norm as , rather than . It is therefore not inherently tied to the Euclidean norm or RMS. Any norm satisfies the desired covariance; even a non-norm will do, provided it is a positively homogeneous map from vectors to scalars. We choose the Euclidean norm or RMS mainly because they are simple to compute and have an intuitive geometric interpretation.

Finally, the freedom in Equation to choose reminds us that an optimizer satisfying covariance is not unique. Equation is merely the simplest-looking choice.

A Familiar Form #

If we revisit the “Making Model Training More Scientific” series, we find that results resembling Equation have appeared before. For example, in “Making Model Training More Scientific, Part 5: Fine-Tuning Learning Rates Based on Gradients”, we derived a classical form of the optimal learning rate when minimizing a convergence bound:

Here, is the gradient, and is an upper bound on the distance between the parameter and the optimum. Even in classical convex optimization, then, the best learning rate already points to the form

The proportionality coefficient is equivalent to the effective learning rate! So the idea has been around for some time. Previously, however, we treated the parameter-norm component as a hyperparameter to search over, rather than separating it out, leaving only the adaptive learning-rate component based on the second moment.

It is worth pointing out, though, that for analytical convenience, derivations of these convergence results usually take to be a constant—a common upper bound or an initial value, depending on the analysis. This does not quite match the dynamic definition of the effective learning rate. In principle, we could make finer assumptions and obtain dynamic results that better match the current definition. We can return to that another time.

The Schedule #

Several different perspectives point toward the effective learning rate, giving us reason to believe that aligning it may indeed be more fundamental in some sense. A natural next question is: how should we choose the effective learning rate schedule (ELR schedule)?

In articles such as “Making Model Training More Scientific, Part 6: An Ingenious Top-Down Construction” and “Making Model Training More Scientific, Part 10: Breaking Down and Repairing the Monotonicity Assumption”, we derived, under certain assumptions, that linear decay is the optimal LR schedule for SGD or adaptive learning-rate optimizers such as AdaGrad. Let us take that as our starting point. Cosine decay is also common in practice, of course, but in my experiments the two perform similarly, so we will use linear decay as our example.

For simplicity, we assume that the schedule ends at zero. Next, we focus mainly on Adam. In “Why Is Adam's Update RMS 0.2?” and “An Asymptotic Estimate of AdamW's Weight RMS, Part 2”, we derived, respectively,

where is weight decay. This gives a possible reference form for the ELR schedule:

Since we generally use a relatively small initialization, namely (corresponding to ), the norm tends to grow during training. The resulting ELR curve resembles the reference schedules in articles such as “From LR to ELR” and “Training nGPT”: it starts higher, falls faster early on, and becomes nearly linear later.

For optimizers such as Muon, the results are not exactly the same as for Adam. We generally expect similar asymptotic behavior, however, so these results can usually be extended to Muon as well.

Summary #

This article has discussed parameter symmetry and effective learning rates. We revisited the usual chain of reasoning behind the effective learning rate, introduced the more rigorous notion of joint symmetry to repair the original derivation, and added a new perspective based on covariance.