[Paper Review] Why Do We Need Weight Decay in Modern Deep Learning?
This paper reveals that weight decay in modern deep learning primarily alters optimization dynamics rather than acting as a direct regularizer. It stabilizes training by balancing bias-variance in stochastic optimization, enhancing generalization in overparameterized models, and preventing loss divergences in bfloat16 mixed-precision training—making it essential for efficient and stable large language model training despite its limited role in explicit regularization.
Weight decay is a broadly used technique for training state-of-the-art deep networks from image classification to large language models. Despite its widespread usage and being extensively studied in the classical literature, its role remains poorly understood for deep learning. In this work, we highlight that the role of weight decay in modern deep learning is different from its regularization effect studied in classical learning theory. For deep networks on vision tasks trained with multipass SGD, we show how weight decay modifies the optimization dynamics enhancing the ever-present implicit regularization of SGD via the loss stabilization mechanism. In contrast, for large language models trained with nearly one-epoch training, we describe how weight decay balances the bias-variance tradeoff in stochastic optimization leading to lower training loss and improved training stability. Overall, we present a unifying perspective from ResNets on vision tasks to LLMs: weight decay is never useful as an explicit regularizer but instead changes the training dynamics in a desirable way. The code is available at https://github.com/tml-epfl/why-weight-decay
Motivation & Objective
- To clarify the true role of weight decay in modern deep learning, especially in overparameterized and large language models (LLMs).
- To investigate why weight decay is indispensable despite its limited impact as an explicit regularizer in modern settings.
- To explain how weight decay stabilizes training in bfloat16 mixed-precision scenarios, a critical requirement for scaling LLM training.
- To distinguish between weight decay's effects on implicit regularization, optimization dynamics, and numerical stability.
Proposed method
- Analyzes overparameterized ResNets to show weight decay enhances implicit regularization via loss stabilization and Hessian trace regularization.
- Studies LLMs trained with nearly one-pass SGD to demonstrate weight decay's role in balancing the bias-variance tradeoff and reducing training loss.
- Employs empirical ablation studies across vision and language models to isolate the effects of weight decay on training dynamics and loss stability.
- Uses bfloat16 training experiments to show that weight decay prevents late-training loss divergences not caused by gradient explosion but by numerical precision limitations.
- Compares weight decay with learning rate scheduling and weight averaging to evaluate its impact on convergence and generalization.
- Introduces a unifying perspective that frames weight decay as a dynamic optimizer modifier rather than a regularizer, validated across vision and language tasks.

Experimental results
Research questions
- RQ1Why is weight decay widely used in modern deep learning despite its limited role as an explicit regularizer?
- RQ2How does weight decay influence optimization dynamics in overparameterized deep networks beyond regularization?
- RQ3In what way does weight decay improve training stability in bfloat16 mixed-precision training for large language models?
- RQ4Does weight decay primarily affect generalization or training loss minimization in modern LLMs?
- RQ5Can weight decay be understood as a mechanism that balances the bias-variance tradeoff in stochastic optimization?
Key findings
- Weight decay stabilizes training loss in bfloat16 mixed-precision training by preventing late-training divergences caused by limited numerical precision, even when float32 training remains stable.
- For overparameterized ResNets, weight decay enhances implicit regularization by stabilizing the loss trajectory through Hessian trace regularization, improving generalization.
- In large language models trained with nearly one-pass SGD, weight decay reduces training loss by better balancing the bias-variance tradeoff in stochastic optimization, rather than through explicit regularization.
- Weight decay enables stable training at higher learning rates (e.g., 0.001) in bfloat16, whereas lowering the learning rate is less effective and slower, making weight decay a more efficient solution.
- Weight decay is not a primary regularizer in modern deep learning; instead, its widespread use stems from its ability to shape optimization dynamics in a way that improves convergence and stability.
- Empirical results show that weight decay with a constant learning rate performs nearly as well as learning rate decay in combination with weight averaging, suggesting its role is more about dynamic control than hyperparameter tuning.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.