[Paper Review] Dynamic of Stochastic Gradient Descent with State-Dependent Noise
This paper proposes a power-law stochastic differential equation with state-dependent diffusion to model stochastic gradient descent (SGD), showing that the resulting stationary distribution is heavy-tailed and matches empirical observations. It proves that escaping from sharp minima occurs in polynomial time, significantly faster than exponential times in constant-diffusion models, explaining SGD's preference for flat minima with better generalization.
Stochastic gradient descent (SGD) and its variants are mainstream methods to train deep neural networks. Since neural networks are non-convex, more and more works study the dynamic behavior of SGD and the impact to its generalization, especially the escaping efficiency from local minima. However, these works take the over-simplified assumption that the covariance of the noise in SGD is (or can be upper bounded by) constant, although it is actually state-dependent. In this work, we conduct a formal study on the dynamic behavior of SGD with state-dependent noise. Specifically, we show that the covariance of the noise of SGD in the local region of the local minima is a quadratic function of the state. Thus, we propose a novel power-law dynamic with state-dependent diffusion to approximate the dynamic of SGD. We prove that, power-law dynamic can escape from sharp minima exponentially faster than flat minima, while the previous dynamics can only escape sharp minima polynomially faster than flat minima. Our experiments well verified our theoretical results. Inspired by our theory, we propose to add additional state-dependent noise into (large-batch) SGD to further improve its generalization ability. Experiments verify that our method is effective.
Motivation & Objective
- To address the limitation of existing SGD dynamics that assume state-independent gradient noise, which fails to explain heavy-tailed parameter distributions observed in practice.
- To develop a theoretically grounded dynamic model that captures the true state-dependent nature of SGD noise near local minima.
- To analyze the escaping efficiency of this new dynamic from local minima and link it to generalization performance.
- To provide a PAC-Bayes generalization bound that demonstrates improved generalization over constant-diffusion dynamics.
- To validate the theoretical findings through experiments on deep neural networks, showing good fit of parameter distributions to the proposed power-law model.
Proposed method
- Derives the covariance of gradient noise in a quadratic basin around a local minimum as a quadratic function of the model parameters, justifying state-dependent diffusion.
- Proposes a stochastic differential equation (SDE) with diffusion coefficient proportional to the square of the state, termed the power-law dynamic.
- Proves that the stationary distribution of the power-law dynamic is a power-law κ distribution with tail index κ, matching empirical heavy-tailed observations.
- Applies random perturbation theory to compute the mean escaping time from local minima under the power-law dynamic.
- Derives a PAC-Bayes generalization bound for the power-law dynamic, showing improved generalization compared to constant-diffusion models.
- Validates the model by fitting parameter distributions from trained deep networks (LeNet-5, ResNet-18, VGG-16, etc.) to the power-law κ distribution and comparing escaping dynamics with SGD.
Experimental results
Research questions
- RQ1How does state-dependent noise in SGD affect the stationary distribution of model parameters?
- RQ2Can a power-law dynamic with state-dependent diffusion explain the empirically observed heavy-tailed distributions of trained parameters without assuming infinite variance?
- RQ3How does the escaping time from local minima under the power-law dynamic compare to that of constant-diffusion dynamics?
- RQ4What is the relationship between escaping efficiency and generalization performance in the proposed dynamic?
- RQ5To what extent does the power-law dynamic replicate the behavior of actual SGD in training deep neural networks?
Key findings
- The stationary distribution of the proposed power-law dynamic is a heavy-tailed power-law κ distribution with tail index κ, matching empirical observations of parameter distributions in trained deep networks.
- The mean escaping time from a local minimum under the power-law dynamic is in polynomial order of the barrier height, significantly faster than the exponential order seen in dynamics with constant diffusion.
- The power-law dynamic escapes sharp minima more efficiently than flat minima, indicating a mechanism by which SGD avoids sharp minima.
- The PAC-Bayes generalization bound for the power-law dynamic is tighter than that for constant-diffusion dynamics, suggesting better generalization performance.
- Experiments show that parameter distributions from SGD-trained models (on MNIST, CIFAR-10, ImageNet) are well-fitted by the power-law κ distribution.
- Comparisons of escaping dynamics show that the power-law dynamic more closely replicates the behavior of SGD than constant-diffusion 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.