[Paper Review] Three Mechanisms of Weight Decay Regularization
The paper identifies three distinct mechanisms by which weight decay regularization improves generalization across optimizers and architectures: higher effective learning rate, approximate Jacobian norm regularization, and reduced effective damping for second-order methods.
Weight decay is one of the standard tricks in the neural network toolbox, but the reasons for its regularization effect are poorly understood, and recent results have cast doubt on the traditional interpretation in terms of $L_2$ regularization. Literal weight decay has been shown to outperform $L_2$ regularization for optimizers for which they differ. We empirically investigate weight decay for three optimization algorithms (SGD, Adam, and K-FAC) and a variety of network architectures. We identify three distinct mechanisms by which weight decay exerts a regularization effect, depending on the particular optimization algorithm and architecture: (1) increasing the effective learning rate, (2) approximately regularizing the input-output Jacobian norm, and (3) reducing the effective damping coefficient for second-order optimization. Our results provide insight into how to improve the regularization of neural networks.
Motivation & Objective
- Investigate why weight decay improves generalization beyond traditional L2 interpretation.
- Compare weight decay with L2 regularization across SGD, Adam, and K-FAC on CNN architectures.
- Elucidate how weight decay interacts with Batch Normalization and different optimizers to affect training dynamics.
Proposed method
- Analyze the effect of weight decay versus L2 regularization on SGD, Adam, and K-FAC (GN and Fisher variants).
- Examine BN-influenced networks to uncouple representation constraints from weight scales.
- Derive and test interpretations: effective learning rate, Gauss-Newton / Jacobian norms, and damping in second-order updates.
- Empirically measure effective learning rate, Jacobian norms, and damping terms during training on CIFAR-10/100 with VGG and ResNet architectures.
Experimental results
Research questions
- RQ1What mechanisms explain weight decay's regularization effect across different optimizers and BN-enabled architectures?
- RQ2How does weight decay compare to L2 regularization in SGD, Adam, and K-FAC in terms of generalization performance?
- RQ3Can the three identified mechanisms (effective learning rate, Jacobian norm regularization, damping control) account for observed generalization gaps?
- RQ4What role does BN play in mediating weight decay's impact on training dynamics?
Key findings
- Weight decay consistently improves generalization and often outperforms L2 regularization when they differ.
- Weight decay reduces generalization gaps between first- and second-order optimizers and between small and large batches.
- Weight decay improves performance even for BN-enabled networks, where it does not constrain capacity in the usual sense.
- Weight decay yields a strong boost for K-FAC, especially when BN is disabled, by enhancing second-order behavior.
- Mechanism I: in BN networks with SGD/Adam, weight decay acts by increasing the effective learning rate through weight scaling, amplifying gradient noise regularization.
- Mechanism II: with K-FAC, weight decay approximately regularizes the input-output Jacobian via the Gauss-Newton norm, correlating with Jacobian norm and generalization.
- Mechanism III: in BN networks with K-FAC, weight decay reduces the effective damping, helping retain second-order properties and improve 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.