Great question — you’ve hit on the subtle reason why people moved from plain Adam to things like AdamW and Lion. Let’s break it down.
🔹 1. Adam’s Problem
Adam does two things at once:
Momentum on the gradient (first moment mtm_tmt).
Normalization by the second moment (variance estimate vtv_tvt).
That normalization is both a blessing (adaptive per-parameter learning rates) and a curse:
If a parameter has consistently large gradients, its updates get over-damped.
If a parameter has tiny gradients, its updates get amplified.
This can slow down convergence or lead to poorer minima compared to SGD.
🔹 2. AdamW
AdamW’s main innovation is decoupled weight decay:
θt+1=θt−α⋅m^tv^t+ϵ−αλθt\theta_{t+1} = \theta_t - \alpha \cdot \frac{\hat{m}_t}{\sqrt{\hat{v}_t} + \epsilon} - \alpha \lambda \theta_tθt+1=θt−α⋅v^t+ϵm^t−αλθt
Instead of “L2 regularization through the gradient” (which gets shrunk by vt\sqrt{v_t}vt in vanilla Adam), AdamW applies weight decay directly to the parameters.
✅ Why this helps:
Keeps regularization consistent across parameters, independent of how big or small their gradient variance is.
Prevents large-gradient directions from being too heavily penalized.
Leads to behavior closer to SGD + momentum when training stabilizes, which empirically gives better generalization.
🔹 3. Lion (EvoLved Sign Momentum)
Lion is very different: instead of variance scaling, it uses sign-based momentum updates:
θt+1=θt−α⋅sign(βmt+(1−β)gt)\theta_{t+1} = \theta_t - \alpha \cdot \text{sign}(\beta m_t + (1-\beta) g_t)θt+1=θt−α⋅sign(βmt+(1−β)gt)
It drops the second-moment estimate vtv_tvt entirely.
Updates are based on the direction (sign) of momentum + gradient, not its magnitude.
✅ Why this helps:
No suppression of large-gradient directions → big corrections can still happen quickly.
Still keeps the stabilization benefits of momentum.
Updates are simpler, cheaper, and sometimes generalize better (similar to why sign-SGD was once interesting, but with stability improvements).
🔹 4. Summary of How They Mitigate
AdamW: fixes the mismatch between adaptive scaling and weight decay → keeps adaptive learning rates but avoids over-regularization of large-gradient parameters.
Lion: removes variance scaling altogether → avoids the “over-damping of large gradients” problem, while keeping momentum to stabilize updates.
👉 In other words:
AdamW = “still adaptive, but regularization is fair.”
Lion = “ditch adaptivity, just trust the momentum direction.”
Would you like me to also compare when to prefer AdamW vs Lion (like large-scale vision models vs language models)?