[Paper Review] Langevin Markov Chain Monte Carlo with stochastic gradients
This paper proposes NOGIN, a novel Langevin MCMC algorithm that uses stochastic gradients with estimated covariance to reduce bias and improve sampling efficiency. It achieves second-order bias in stepsize and maintains stability with small mini-batches, outperforming existing methods in both Gaussian and Bayesian logistic regression tasks.
Monte Carlo sampling techniques have broad applications in machine learning, Bayesian posterior inference, and parameter estimation. Often the target distribution takes the form of a product distribution over a dataset with a large number of entries. For sampling schemes utilizing gradient information it is cheaper for the derivative to be approximated using a random small subset of the data, introducing extra noise into the system. We present a new discretization scheme for underdamped Langevin dynamics when utilizing a stochastic (noisy) gradient. This scheme is shown to bias computed averages to second order in the stepsize while giving exact results in the special case of sampling a Gaussian distribution with a normally distributed stochastic gradient.
Motivation & Objective
- Address the challenge of high computational cost in MCMC sampling for large datasets by using stochastic gradients instead of full-data gradients.
- Reduce bias in MCMC averages caused by noisy gradient estimators in underdamped Langevin dynamics.
- Improve sampling efficiency and stability when using small mini-batch sizes for gradient approximation.
- Develop a method that preserves exact sampling in the special case of Gaussian targets with normally distributed noise.
- Provide a practical algorithm that accounts for gradient covariance to maintain fluctuation-dissipation balance and avoid instability.
Proposed method
- Proposes a new discretization scheme for underdamped Langevin dynamics using a noisy gradient estimator with known covariance.
- Introduces a modified velocity update that incorporates a damping term dependent on the gradient covariance matrix to stabilize the dynamics.
- Uses a symmetric splitting integrator with two half-step position updates and a central velocity update to improve numerical stability.
- Employs a noise term with a scaling factor derived from the hyperbolic tangent of the friction and stepsize to preserve the invariant measure.
- Estimates the gradient covariance matrix from a finite history of force evaluations to adaptively adjust damping.
- Applies a preconditioning-like correction in the velocity update to balance the fluctuation-dissipation relation in the presence of noise.
Experimental results
Research questions
- RQ1Can a stochastic gradient MCMC method achieve second-order bias in the stepsize while remaining stable with small mini-batches?
- RQ2How does accounting for gradient covariance affect the accuracy and mixing time of Langevin-based MCMC samplers?
- RQ3What is the impact of gradient noise variance on sampling efficiency and required damping in stochastic gradient MCMC?
- RQ4Does the proposed method preserve the correct invariant distribution when sampling from a Gaussian target with normally distributed gradient noise?
- RQ5How does the NOGIN algorithm compare in performance and stability to SGLD, SGNHT, SGHMC, and mSGLD on real-world Bayesian inference tasks?
Key findings
- NOGIN achieves second-order bias in the stepsize for computed averages, significantly reducing systematic error compared to first-order methods.
- The algorithm remains stable and accurate even with small mini-batch sizes (e.g., n=100), while other methods like SGNHT become unstable due to position-dependent covariance.
- In Bayesian logistic regression on MNIST, NOGIN achieves ~1% error in variance estimation after 200 dataset passes, outperforming SGLD, SGHMC, and mSGLD.
- The method maintains consistent sampling efficiency across different mini-batch sizes because the increased damping required for noise is offset by reduced computational cost per step.
- When the gradient noise is normally distributed, NOGIN exactly samples from the target distribution for quadratic log-posteriors, confirming theoretical consistency.
- The performance plateau observed in high-noise regimes is due to excessive damping, which slows mixing but is counterbalanced by reduced force evaluation cost, preserving overall efficiency.
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.