Cautious Weight Decay
Lizhang Chen, Jonathan Li, Kaizhao Liang, Baiyu Su, Cong Xie, Nuo Wang Pierse, Chen Liang, Ni Lao, Qiang Liu
TL;DR
Addresses the mismatch between gradient-driven updates and weight decay by proposing cautious weight decay, a sign-aligned, optimizer-agnostic modification. Theoretical contributions include Lyapunov-based stability showing unbiased optimization toward the stationary manifold and a sliding-mode interpretation that yields a locally Pareto-optimal frontier; discrete-time analysis provides a standard $O(T^{-1/2})$ convergence rate for Adam with CWD. Empirically, CWD improves final loss and zero-shot accuracy on large-scale language models and ImageNet across multiple optimizers without additional tuning. The method is simple to implement and broadly applicable, offering practical gains for large-scale training with minimal overhead.
Abstract
We introduce Cautious Weight Decay (CWD), a one-line, optimizer-agnostic modification that applies weight decay only to parameter coordinates whose signs align with the optimizer update. Unlike standard decoupled decay, which implicitly optimizes a regularized or constrained objective, CWD preserves the original loss and admits a bilevel interpretation: it induces sliding-mode behavior upon reaching the stationary manifold, allowing it to search for locally Pareto-optimal stationary points of the unmodified objective. In practice, CWD is a drop-in change for optimizers such as AdamW, Lion, and Muon, requiring no new hyperparameters or additional tuning. For language model pre-training and ImageNet classification, CWD consistently improves final loss and accuracy at million- to billion-parameter scales.
