[Paper Review] (Non-) asymptotic properties of Stochastic Gradient Langevin Dynamics
This paper analyzes the non-asymptotic bias and variance of Stochastic Gradient Langevin Dynamics (SGLD) with fixed step sizes, deriving an explicit asymptotic bias expansion and proposing a modified SGLD (mSGLD) that removes leading-order bias from stochastic gradient variance. It establishes finite-time bounds on bias, variance, and mean squared error (MSE), showing that mSGLD outperforms standard SGLD in high-accuracy regimes and achieves the same MSE decay rate as decreasing-step-size SGLD, with analytical validation on a Gaussian toy model.
Applying standard Markov chain Monte Carlo (MCMC) algorithms to large data sets is computationally infeasible. The recently proposed stochastic gradient Langevin dynamics (SGLD) method circumvents this problem in three ways: it generates proposed moves using only a subset of the data, it skips the Metropolis-Hastings accept-reject step, and it uses sequences of decreasing step sizes. In \cite{TehThierryVollmerSGLD2014}, we provided the mathematical foundations for the decreasing step size SGLD, including consistency and a central limit theorem. However, in practice the SGLD is run for a relatively small number of iterations, and its step size is not decreased to zero. The present article investigates the behaviour of the SGLD with fixed step size. In particular we characterise the asymptotic bias explicitly, along with its dependence on the step size and the variance of the stochastic gradient. On that basis a modified SGLD which removes the asymptotic bias due to the variance of the stochastic gradients up to first order in the step size is derived. Moreover, we are able to obtain bounds on the finite-time bias, variance and mean squared error (MSE). The theory is illustrated with a Gaussian toy model for which the bias and the MSE for the estimation of moments can be obtained explicitly. For this toy model we study the gain of the SGLD over the standard Euler method in the limit of large data sets.
Motivation & Objective
- To understand the non-asymptotic behavior of SGLD with fixed step sizes, which is common in practice despite theoretical foundations relying on decreasing steps.
- To characterize the asymptotic bias of SGLD explicitly in terms of step size and stochastic gradient variance.
- To derive a modified SGLD (mSGLD) that removes the leading-order bias due to gradient variance up to first order in step size.
- To establish finite-time upper bounds on bias, variance, and mean squared error (MSE) for SGLD and mSGLD.
- To validate theoretical findings through analytical computation in a Gaussian toy model and numerical simulations in logistic regression.
Proposed method
- Derives an asymptotic expansion of the bias in SGLD up to first order in step size, identifying the dependence on the variance of the stochastic gradient estimator.
- Proposes a modified SGLD (mSGLD) that corrects the leading-order bias by adjusting the gradient estimator using a control variate approach.
- Establishes finite-time upper bounds on bias, variance, and MSE for both SGLD and mSGLD using coupling and martingale techniques.
- Analyzes a one-dimensional Gaussian location model to compute exact expressions for the sample mean and its moments, enabling analytical validation of bias and MSE.
- Performs numerical simulations on Bayesian logistic regression with fixed step size, comparing MSE of SGLD and mSGLD across different batch sizes and iterations.
Experimental results
Research questions
- RQ1What is the explicit form of the asymptotic bias in SGLD with fixed step size, and how does it depend on the step size and gradient variance?
- RQ2Can a modified SGLD be constructed to eliminate the leading-order bias due to stochastic gradient variance?
- RQ3What are the finite-time bounds on bias, variance, and mean squared error (MSE) for SGLD and mSGLD?
- RQ4How does the performance of mSGLD compare to standard SGLD in terms of MSE, especially in high-accuracy regimes and with small data batches?
- RQ5Does the mSGLD achieve the same MSE decay rate as the decreasing-step-size SGLD in the large-data limit?
Key findings
- The asymptotic bias of SGLD is explicitly characterized as proportional to the variance of the stochastic gradient estimator, with a coefficient depending on the step size.
- The proposed mSGLD removes the leading-order bias from gradient variance up to first order in the step size, improving accuracy in high-accuracy regimes.
- Finite-time bounds on bias, variance, and MSE are derived, showing that the MSE decays at a rate matching the optimal $ K^{-1/3} $ rate of decreasing-step-size SGLD.
- In the Gaussian toy model, exact expressions for the bias and MSE of the time-averaged estimator are derived, confirming the theoretical bias expansion and MSE decay.
- Numerical results on logistic regression show that mSGLD outperforms SGLD in MSE when batch size is moderate ($ n=150 $), but performs worse for very small batches ($ n=10, 50 $), indicating a trade-off between bias and variance.
- In the large-data limit, SGLD reduces the computational complexity of estimating second moments with vanishing MSE by one power of $ N $, suggesting computational gains for large-scale Bayesian inference.
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.