NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Cautious Weight Decay

Lizhang Chen, Jonathan Li, Kaizhao Liang, Baiyu Su, Cong Xie, Chen Liang, Ni Lao, qiang liu

TL;DR

Cautious Weight Decay (CWD) is a simple, one-line fix for modern neural network optimizers that only applies weight decay when it aligns with the optimizer's update direction. By preventing weight decay from fighting beneficial parameter updates, CWD improves training stability, lowers validation loss, and boosts accuracy across language modeling and vision tasks—all without needing any hyperparameter retuning.

What Problem Does This Paper Address?

In modern deep learning, decoupled weight decay (the "W" in AdamW) is a standard technique used to improve training stability and generalization. It works by constantly applying a small penalty that shrinks model weights toward zero.

However, standard weight decay is "blind." It shrinks weights regardless of what the actual gradient update is trying to do. If the optimizer determines that a specific weight needs to grow in magnitude to minimize the loss, weight decay actively fights against it.

Furthermore, theoretical analysis shows that optimizers like AdamW and Lion don't actually optimize your original loss function. Because of this constant tug-of-war, they implicitly optimize a regularized surrogate—essentially solving a constrained optimization problem rather than finding the true minimum of your original objective.

Methods

The authors introduce Cautious Weight Decay (CWD), an optimizer-agnostic modification that can be dropped into AdamW, Lion, Muon, or SGD.

Optimization trajectories showing CWD reaching the true minimum compared to AdamW.

The method is remarkably simple: apply weight decay only to parameter coordinates where the optimizer update and the parameter itself share the same sign. * If the optimizer wants to shrink a weight's magnitude (moving it toward zero), CWD allows weight decay to help. * If the optimizer wants to grow a weight's magnitude (moving it away from zero), CWD turns weight decay off for that specific parameter in that specific step.

Mathematically, this is achieved by multiplying the weight decay term by an indicator function: I(update * parameter >= 0).

Unlike standard weight decay, CWD acts as a bilevel optimizer. First, it optimizes the unmodified original loss function until it reaches the "stationary manifold" (the flat valley of minimum loss). Then, it exhibits "sliding mode dynamics"—it slides along that valley, shrinking parameter magnitudes only where possible without increasing the loss, eventually settling on a locally Pareto-optimal point.

Datasets

The authors evaluated CWD across a variety of scales and domains:

  • Language Model Pre-training: C4 dataset (for models ranging from 111M to 2B parameters) and the Dolma dataset (for an OLMo-1B model trained on 100B tokens).
  • Instruction Fine-tuning: Alpaca GPT-4 dataset.
  • Downstream Language Evaluation: MMLU, AGIEval, WinoGrande, Hellaswag, ARC (Easy/Challenge), PIQA, and CommonsenseQA.
  • Computer Vision: ImageNet (using ViT and ResNet architectures).

Key Insights and Ideas

  • No More Tug-of-War: By making weight decay "cautious," the optimizer no longer wastes compute fighting its own regularization penalty.
  • Unbiased Optimization: CWD mathematically guarantees that the optimizer is searching for the stationary points of the actual loss function you defined, rather than a mathematically distorted surrogate.
  • Plug-and-Play: You do not need to run expensive hyperparameter sweeps to use CWD. The authors found that the optimal weight decay coefficient ($\lambda$) for a baseline optimizer (like AdamW) is exactly the same optimal $\lambda$ for its CWD counterpart.
  • Smarter Sparsity: Ablation studies showed that simply applying weight decay randomly (to match the frequency of CWD) degrades performance. The structure of CWD—specifically aligning with the update direction—is what unlocks the performance gains.

Key Results

Validation loss across different weight decay values for AdamW, Muon, and Lion compared to CWD.
  • Consistent Loss Reduction: Across all tested scales (111M, 338M, 986M, and 2B parameters) and optimizers (AdamW, Lion, Muon), swapping to CWD consistently resulted in lower final validation loss across a wide range of weight decay values.
  • Better Downstream Accuracy: On the OLMo-1B model, AdamW+CWD improved zero-shot accuracy across the board compared to baseline AdamW (e.g., MMLU increased from 0.23 to 0.25; CommonsenseQA from 0.29 to 0.31).
  • Vision Improvements: On ImageNet, CWD boosted accuracy without any extra tuning. For example, a ViT-B/16 trained with AdamW improved from 80.15% to 80.71% accuracy just by adding the CWD mask.
  • Healthier Training Dynamics: Models trained with CWD exhibited lower gradient norms at the end of training, indicating that the models converged more cleanly to a true minimum rather than thrashing around a constrained boundary.

Limitations and Future Work

While the theoretical guarantees are robust, the authors note that because CWD converges to a "Pareto front" of optimal points (a set of equally valid solutions) rather than a single unique point, the exact final model weights depend intricately on initialization and the specific discretization of the training steps.

Additionally, while the paper provides a discrete-time convergence proof for Adam, much of the broader theoretical framework relies on continuous-time differential equations (Filippov inclusions). Future work could explore how CWD interacts with more exotic learning rate schedules, its impact on phenomena like neural collapse, and its behavior in extreme low-precision training regimes.

Summary updated

BibTeX
@inproceedings{chen2026cautious,
  author = {Lizhang Chen and Jonathan Li and Kaizhao Liang and Baiyu Su and Cong Xie and Chen Liang and Ni Lao and qiang liu},
  title = {{Cautious Weight Decay}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Gwe6gbGng5},
}
Figure