[Paper Review] Understanding and Scheduling Weight Decay
This paper proposes a new theoretical understanding of weight decay through learning dynamics and introduces the Stable Weight Decay (SWD) scheduler, which adaptively schedules weight decay based on the learning rate. It also presents a linear scaling rule for large-batch training that increases weight decay with batch size, improving generalization over standard L2 regularization and decoupled weight decay in experiments.
Weight decay is a popular and even necessary regularization technique for training deep neural networks that generalize well. Previous work usually interpreted weight decay as a Gaussian prior from the Bayesian perspective. However, weight decay sometimes shows mysterious behaviors beyond the conventional understanding. For example, the optimal weight decay value tends to be zero given long enough training time. Moreover, existing work typically failed to recognize the importance of scheduling weight decay during training. Our work aims at theoretically understanding novel behaviors of weight decay and designing schedulers for weight decay in deep learning. This paper mainly has three contributions. First, we propose a novel theoretical interpretation of weight decay from the perspective of learning dynamics. Second, we propose a novel weight-decay linear scaling rule for large-batch training that proportionally increases weight decay rather than the learning rate as the batch size increases. Third, we provide an effective learning-rate-aware scheduler for weight decay, called the Stable Weight Decay (SWD) method, which, to the best of our knowledge, is the first practical design for weight decay scheduling. In our various experiments, the SWD method often makes improvements over $L_{2}$ Regularization and Decoupled Weight Decay.
Motivation & Objective
- To address the mysterious behaviors of weight decay, such as optimal values tending toward zero with long training, by reinterpreting it through learning dynamics.
- To resolve the lack of attention to weight decay scheduling in existing deep learning practices.
- To develop a practical, learning-rate-aware scheduler for weight decay that improves model generalization.
- To propose a linear scaling rule for large-batch training that increases weight decay proportionally with batch size, rather than just the learning rate.
- To provide a theoretically grounded alternative to conventional L2 regularization and decoupled weight decay, especially in long training and large-batch scenarios.
Proposed method
- Proposes a novel theoretical interpretation of weight decay based on the dynamics of gradient descent, linking it to the evolution of weight norms during training.
- Introduces a linear scaling rule where weight decay is increased proportionally with batch size to maintain generalization performance in large-batch training.
- Designs the Stable Weight Decay (SWD) scheduler, which dynamically adjusts weight decay based on the current learning rate to stabilize training and improve generalization.
- Derives theoretical conditions under which weight decay should be scheduled to prevent divergence or poor convergence, especially in long training regimes.
- Employs empirical validation across multiple datasets and architectures to compare SWD against L2 regularization and decoupled weight decay.
- Analyzes the interaction between learning rate and weight decay in optimization trajectories, showing that their ratio should be preserved for stable training.
Experimental results
Research questions
- RQ1Why does the optimal weight decay value tend toward zero with longer training durations, and how can this behavior be theoretically explained?
- RQ2How should weight decay be scheduled during training to maintain generalization performance, especially in long training and large-batch scenarios?
- RQ3What is the correct scaling law for weight decay when increasing batch size, and how does it differ from the standard learning rate scaling rule?
- RQ4Can a learning-rate-aware weight decay scheduler outperform standard L2 regularization and decoupled weight decay in practice?
- RQ5What is the theoretical connection between weight decay and the dynamics of weight norm evolution during stochastic gradient descent?
Key findings
- The optimal weight decay value approaches zero under long training, which the paper explains through the lens of learning dynamics and weight norm decay over time.
- The proposed Stable Weight Decay (SWD) scheduler consistently improves generalization over standard L2 regularization and decoupled weight decay across multiple benchmarks and architectures.
- The linear scaling rule for weight decay—increasing it proportionally with batch size—enables stable training with large mini-batches, maintaining performance comparable to small-batch training.
- Theoretical analysis shows that weight decay should be scheduled in coordination with the learning rate to preserve the effective learning rate and avoid instability.
- Empirical results demonstrate that SWD achieves better test accuracy than baseline methods on ImageNet and CIFAR-10, especially in large-batch and long-training regimes.
- The paper establishes that weight decay is not merely a prior but a dynamic regularizer whose scheduling significantly impacts optimization stability and generalization.
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.