[Paper Review] Logarithmic landscape and power-law escape rate of SGD.
This paper derives a stochastic differential equation (SDE) for stochastic gradient descent (SGD) by transforming the time variable to convert multiplicative noise into additive noise, revealing that the stationary distribution of network parameters follows a power-law with respect to the logarithmized loss. The escape rate from local minima depends on the logarithmic loss barrier height, explaining why SGD favors flat minima with low effective dimensionality.
Stochastic gradient descent (SGD) undergoes complicated multiplicative noise for the mean-square loss. We use this property of the SGD noise to derive a stochastic differential equation (SDE) with simpler additive noise by performing a non-uniform transformation of the time variable. In the SDE, the gradient of the loss is replaced by that of the logarithmized loss. Consequently, we show that, near a local or global minimum, the stationary distribution $P_\mathrm{ss}( heta)$ of the network parameters $ heta$ follows a power-law with respect to the loss function $L( heta)$, i.e. $P_\mathrm{ss}( heta)\propto L( heta)^{-\phi}$ with the exponent $\phi$ specified by the mini-batch size, the learning rate, and the Hessian at the minimum. We obtain the escape rate formula from a local minimum, which is determined not by the loss barrier height $\Delta L=L( heta^s)-L( heta^*)$ between a minimum $ heta^*$ and a saddle $ heta^s$ but by the logarithmized loss barrier height $\Delta\log L=\log[L( heta^s)/L( heta^*)]$. Our escape-rate formula explains an empirical fact that SGD prefers flat minima with low effective dimensions.
Motivation & Objective
- To understand the statistical behavior of SGD near minima by modeling its noise properties.
- To address the challenge of multiplicative noise in SGD for mean-square loss, which complicates analysis.
- To derive a simplified SDE with additive noise via a non-uniform time transformation.
- To characterize the stationary distribution of network parameters in terms of the logarithmized loss.
- To explain why SGD favors flat minima with low effective dimensionality through an escape rate formula.
Proposed method
- Apply a non-uniform time transformation to convert the multiplicative noise in SGD into additive noise.
- Derive an SDE where the gradient of the loss is replaced by the gradient of the logarithmized loss.
- Use the Hessian at the minimum and the mini-batch size to determine the exponent φ in the power-law stationary distribution.
- Model the escape rate from a local minimum using the logarithmic loss barrier height ΔlogL = log[L(θs)/L(θ*)].
- Show that the stationary distribution P_ss(θ) ∝ L(θ)^{-φ} near minima, with φ dependent on learning rate, mini-batch size, and Hessian.
- Establish that escape is governed by log-loss differences, not raw loss differences, leading to preference for flatter minima.
Experimental results
Research questions
- RQ1How does the multiplicative noise in SGD affect the stationary distribution of network parameters near minima?
- RQ2What transformation simplifies the SDE of SGD by converting multiplicative noise into additive noise?
- RQ3How is the escape rate from a local minimum determined in terms of loss values?
- RQ4Why does SGD prefer flat minima with low effective dimensionality?
- RQ5What is the functional form of the stationary distribution of parameters under SGD, and how does it depend on the loss landscape?
Key findings
- The stationary distribution of SGD parameters near a minimum follows a power-law: P_ss(θ) ∝ L(θ)^{-φ}, where φ depends on the learning rate, mini-batch size, and Hessian at the minimum.
- The escape rate from a local minimum is determined by the logarithmic loss barrier height ΔlogL = log[L(θs)/L(θ*)], not the raw loss difference ΔL.
- SGD exhibits a preference for flat minima because the logarithmic barrier height penalizes sharp minima more strongly, especially when the loss is small.
- The transformation to a non-uniform time variable enables an exact SDE with additive noise, simplifying the analysis of SGD dynamics.
- The derived escape rate formula explains empirical observations that SGD generalizes better when it converges to minima with low effective dimensionality.
- The power-law behavior of the stationary distribution implies that low-loss regions are more probable, but only when weighted by the logarithmic loss scale.
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.