For a deeper understanding of ELR, I recommend the Hunyuan team’s From LR to ELR, which is full of concrete, interesting derivations.

The starting point

Take a scale-invariant block of weights: doubling it leaves every prediction unchanged. Now take one SGD step from each copy, using the same learning rate. The two models can immediately part ways.

That is the puzzle behind effective learning rate: the number in the optimizer config doesn’t tell us how far the model actually moves.

Defining scale invariance of the loss

Let Fw(x)F_w(x) be a model with input xx and weight block ww, keeping all other parameters fixed. Its training loss is

L(w)=E(x,y)[ℓ(Fw(x),y)],(1)L(w)=\mathbb E_{(x,y)}\bigl[\ell(F_w(x),y)\bigr], \tag{1}

where yy is the target and ℓ\ell measures prediction error. Backpropagation gives the gradient g(w)=∇L(w)g(w)=\nabla L(w); the optimizer uses it to move from ww to w+w^+.

A block is scale-invariant when multiplying its weights by any positive number leaves the model unchanged. Its loss satisfies:[1]

L(cw)=L(w),c>0.(2)L(cw)=L(w),\qquad c>0. \tag{2}

Normalization gives a simple example. If a projection produces qq and the next operation is q/∥q∥q/\|q\|, multiplying the projection weights by c>0c>0 has no effect on the normalized output.

For a block with this property, length is redundant. Direction carries the information. But equal predictions today don’t guarantee equal predictions after the next update.

Representing equivalent weights as rays

Write a nonzero weight vector as its length times its unit direction:

w=rw^,r=∥w∥,∥w^∥=1.(3)w=r\widehat w,\qquad r=\|w\|,\qquad \|\widehat w\|=1. \tag{3}

The points w,2w,3w,…w,2w,3w,\ldots lie on the same ray and represent the same function. Choose a radius R>0R>0, perhaps the initial weight norm, and keep just Rw^R\widehat w. Every ray meets this sphere once. We have removed redundant copies without losing any functions the block can represent.

Training can now be pictured as moving around a sphere. The useful step size is how much we turn.

Deriving how gradients change with weight scale

Scale invariance gives us two facts about the gradient. First, differentiate L(cw)=L(w)L(cw)=L(w) with respect to cc at c=1c=1:

ddcL(cw)∣c=1=⟨w,g(w)⟩=0.(4)\left.\frac{d}{dc}L(cw)\right|_{c=1} =\langle w,g(w)\rangle=0. \tag{4}

The gradient is perpendicular to the weights: it points along the sphere’s tangent plane.

Next, differentiate with respect to ww. The chain rule contributes a factor of cc on the left:

c g(cw)=g(w),g(cw)=c−1g(w).(5)c\,g(cw)=g(w),\qquad \boxed{g(cw)=c^{-1}g(w).} \tag{5}

Double the weights, halve the gradient. Now take an SGD step with learning rate α\alpha from each copy, writing g=g(w)g=g(w):

w+=w−αg,w~+=cw−αcg.w^+=w-\alpha g,\qquad \widetilde w^+=cw-\frac{\alpha}{c}g.

To stay in sync, the second update would need to land at cw+=cw−cαgcw^+=cw-c\alpha g. Instead, it moves by −αg/c-\alpha g/c. Matching the two requires a learning rate of c2αc^2\alpha for the scaled copy.

Doubling the weights requires four times the learning rate to reproduce the same change in direction. The starting predictions are identical; the training steps are not.

Defining scale-equivariant updates

Let Φ(w,g)\Phi(w,g) denote the updated weights. A rule that respects the scaling symmetry should satisfy[2]

Φ(cw,c−1g)=c Φ(w,g).(6)\boxed{\Phi(cw,c^{-1}g)=c\,\Phi(w,g).} \tag{6}

This is scale equivariance: scaling before the update gives the same result as scaling afterward. With the same batches and step-size schedule, applying this relation at every step keeps the two runs on the same path through model functions.

Geometrically, put the two copies on spheres of radius RR and cRcR. Turn both in the same direction through the same angle. They stay on the same ray, so they still represent the same model.

Hand-drawn comparison: equal-learning-rate SGD steps turn w and 2w by different angles, while fixed-norm updates with a shared effective learning rate turn both by the same angle.
Left: the same SGD learning rate gives scaled copies different turns. Right: a shared effective learning rate keeps their directions aligned. For the tangential update derived below, tan θ = E.

Constructing a fixed-norm update

For a nonzero gradient, define g^=g/∥g∥\widehat g=g/\|g\|. Rescaling changes neither w^\widehat w nor g^\widehat g. We can therefore build an update using just these two directions.

Write N(v)=v/∥v∥\mathrm N(v)=v/\|v\| and choose a shared, nonnegative step size EE:

w^+=N(w^−Eg^),w+=Rw^+.(7)\widehat w^+=\mathrm N(\widehat w-E\widehat g), \qquad w^+=R\widehat w^+. \tag{7}

Take a step in the negative gradient direction, normalize, and restore the radius. Both copies compute exactly the same new unit direction, so

w~+=cRw^+=c w+.(8)\widetilde w^+=cR\widehat w^+=c\,w^+. \tag{8}

The update satisfies (6) by construction.

Replacing the raw gradient with an optimizer direction utu_t gives the fixed-norm form discussed in the ELR work:[1]

wt+1=R N ⁣(wt−EtR N(ut)),∥wt∥=R.(9)\boxed{ w_{t+1} =R\,\mathrm N\!\left(w_t-E_tR\,\mathrm N(u_t)\right), \qquad \|w_t\|=R. } \tag{9}

Here tt indexes training steps. The same scaling argument holds when the two runs produce matching normalized directions N(ut)\mathrm N(u_t), including any effect of optimizer state. A zero update direction simply leaves the weights unchanged.

Relating effective learning rate to the rotation angle

Before projecting back onto the sphere, the step in (9) has length EtRE_tR. Relative to the weight norm RR, its size is exactly EtE_t.

When utu_t is perpendicular to wtw_t, the turn angle θt\theta_t obeys tan⁡θt=Et\tan\theta_t=E_t. The angular update size (AUS) measures the distance between the old and new unit directions:

AUSt=∥w^t+1−w^t∥=2sin⁡θt2,θt=arctan⁡Et.(10)\mathrm{AUS}_t =\|\widehat w_{t+1}-\widehat w_t\| =2\sin\frac{\theta_t}{2}, \qquad \theta_t=\arctan E_t. \tag{10}

For small steps, AUSt≈θt≈Et\mathrm{AUS}_t\approx\theta_t\approx E_t. A raw gradient meets the perpendicularity condition by (4); momentum or preconditioning need not preserve it.

This gives the step-size knob a geometric meaning: EtE_t controls the relative step, and for a tangential direction, the turn itself. Changing the radius no longer changes what that knob does.

References

  1. Zhanpeng Zhou, Wenjie Zhou, Yufei Gu, Juqiu Wang, Guanwei Zhang, Ruobing Xie, Xianbiao Qi, Yushi Bai, Kaifeng Lyu, and Shunyu Yao. From LR to ELR: A Better Heuristic for Pretraining Dynamics. 2026.

  2. Su Jianlin (苏剑林). 从参数对称性到有效学习率. October 2026.