[Paper Review] On the training dynamics of deep networks with $L_2$ regularization
This paper reveals that in overparameterized deep networks, the time to peak performance scales inversely with the $L_2$ regularization coefficient $\lambda$, and peak performance becomes independent of $\lambda$ when training time is scaled as $\lambda^{-1}$. Based on this, the authors propose Auto $L_2$, a dynamic $L_2$ schedule that improves training speed and accuracy, and a method to predict optimal $\lambda$ with minimal computation, validated on CIFAR-10 and ImageNet.
We study the role of $L_2$ regularization in deep learning, and uncover simple relations between the performance of the model, the $L_2$ coefficient, the learning rate, and the number of training steps. These empirical relations hold when the network is overparameterized. They can be used to predict the optimal regularization parameter of a given model. In addition, based on these observations we propose a dynamical schedule for the regularization parameter that improves performance and speeds up training. We test these proposals in modern image classification settings. Finally, we show that these empirical relations can be understood theoretically in the context of infinitely wide networks. We derive the gradient flow dynamics of such networks, and compare the role of $L_2$ regularization in this context with that of linear models.
Motivation & Objective
- To understand the role of $L_2$ regularization in overparameterized deep networks, where classical bias-variance intuition breaks down.
- To identify empirical scaling laws linking $L_2$ regularization, learning rate, training steps, and model performance.
- To develop practical tools—$L_2$ prediction and dynamic scheduling—that improve training efficiency and test accuracy.
- To theoretically explain the observed dynamics using infinite-width network analysis and gradient flow equations.
Proposed method
- Empirically observe that peak performance occurs at $t_* \approx c / \lambda$, where $c$ depends on data, architecture, and hyperparameters.
- Propose a method to predict optimal $\lambda$ by estimating the coefficient $c$ from a single short training run.
- Introduce Auto $L_2$, a dynamic schedule that starts with high $\lambda$ for fast early convergence and decays during training.
- Derive gradient flow dynamics for infinitely wide networks with $L_2$ regularization, showing kernel decay due to $\lambda$.
- Solve the resulting differential equations for MSE loss, confirming the $\lambda^{-1}$ scaling of peak training time.
- Theoretical analysis shows that $L_2$ regularization in deep networks induces kernel decay, unlike in linear models, leading to distinct training dynamics.
Experimental results
Research questions
- RQ1How does $L_2$ regularization affect the timing and magnitude of peak test accuracy in overparameterized deep networks?
- RQ2Can the optimal $L_2$ regularization coefficient be predicted from a single short training run?
- RQ3Does a dynamic $L_2$ schedule that decays during training improve both speed and performance compared to constant $\lambda$?
- RQ4How does $L_2$ regularization alter the training dynamics of infinitely wide networks compared to linear models?
- RQ5What is the theoretical basis for the observed $\lambda^{-1}$ scaling of peak performance time in deep networks?
Key findings
- The number of steps to peak performance scales as $t_* \approx c / \lambda$, with $c$ independent of learning rate $\eta$ when using vanilla SGD.
- When training time is scaled as $\lambda^{-1}$, model performance plateaus and becomes independent of $\lambda$ for small $\lambda$, with performance often exceeding that of $\lambda = 0$.
- The proposed $L_2$ prediction method achieves test accuracy within 0.4% of the tuned $\lambda$ value, using only a single short training run.
- Auto $L_2$, a dynamically decaying $L_2$ schedule, outperforms models trained with a tuned constant $\lambda$ in both test accuracy and training speed.
- Theoretical analysis of infinitely wide networks shows that $L_2$ regularization causes the neural tangent kernel to decay exponentially, leading to a $\lambda^{-1}$ scaling of peak performance time.
- In contrast to linear models, deep networks with $L_2$ regularization exhibit kernel decay during training, which explains the distinct $\lambda$-dependence of training dynamics.
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.