[Paper Review] A Convergence Analysis for A Class of Practical Variance-Reduction Stochastic Gradient MCMC
This paper proposes a variance-reduction stochastic gradient MCMC (vrSG-MCMC) method that improves convergence speed in Bayesian learning by reducing stochastic gradient noise. By using a practical, computationally efficient variance-reduction scheme, the method achieves faster mean squared error decay than standard SG-MCMC, especially under limited computational budgets, with empirical validation across logistic regression, deep neural networks, and sequence models.
Stochastic gradient Markov Chain Monte Carlo (SG-MCMC) has been developed as a flexible family of scalable Bayesian sampling algorithms. However, there has been little theoretical analysis of the impact of minibatch size to the algorithm's convergence rate. In this paper, we prove that under a limited computational budget/time, a larger minibatch size leads to a faster decrease of the mean squared error bound (thus the fastest one corresponds to using full gradients), which motivates the necessity of variance reduction in SG-MCMC. Consequently, by borrowing ideas from stochastic optimization, we propose a practical variance-reduction technique for SG-MCMC, that is efficient in both computation and storage. We develop theory to prove that our algorithm induces a faster convergence rate than standard SG-MCMC. A number of large-scale experiments, ranging from Bayesian learning of logistic regression to deep neural networks, validate the theory and demonstrate the superiority of the proposed variance-reduction SG-MCMC framework.
Motivation & Objective
- To theoretically analyze how minibatch size affects the convergence rate of standard SG-MCMC algorithms.
- To address the lack of theoretical understanding of stochastic gradient noise in SG-MCMC and its impact on convergence.
- To develop a practical variance-reduction technique for SG-MCMC that is efficient in computation and storage.
- To establish theoretical guarantees showing faster convergence rates for the proposed vrSG-MCMC compared to standard SG-MCMC.
- To empirically validate the superiority of vrSG-MCMC over standard SG-MCMC across diverse models and datasets.
Proposed method
- The method introduces a variance-reduction scheme that uses a periodically updated full-gradient estimate to reduce noise in stochastic gradients.
- It employs a minibatch of size $ n_1 $ to compute the old gradient $ \tilde{g} $, balancing computational cost and variance reduction.
- The algorithm maintains an unbiased estimator of the full gradient, preserving the same bias bound as standard SG-MCMC.
- Theoretical analysis shows that vrSG-MCMC achieves a faster convergence rate than standard SG-MCMC, particularly under limited computational budgets.
- The method is applied to various SG-MCMC variants, including SGLD, by modifying the gradient update rule to incorporate the variance-reduced gradient estimate.
- The framework is implemented with a step-size decay schedule and gradient clipping for stable training on deep models.
Experimental results
Research questions
- RQ1How does the minibatch size affect the mean squared error (MSE) convergence rate of standard SG-MCMC under a limited computational budget?
- RQ2Can variance reduction in SG-MCMC lead to a provably faster convergence rate compared to standard SG-MCMC?
- RQ3What is the optimal trade-off between computational cost and variance reduction in SG-MCMC, particularly in terms of minibatch size for gradient estimation?
- RQ4How does the proposed vrSG-MCMC perform empirically across different model architectures, including MLPs, CNNs, and RNNs, in Bayesian learning tasks?
- RQ5Does the variance-reduction scheme lead to smoother learning curves and lower test error or loss compared to standard SG-MCMC?
Key findings
- Under a limited computational budget, the optimal MSE bound for SG-MCMC is achieved when using full gradients, indicating that stochastic gradient noise slows convergence at the start.
- For large computational budgets, minibatches of size one are preferable in the long run, suggesting that noise can be beneficial in later stages.
- The proposed vrSG-MCMC achieves significantly faster convergence than standard SGLD on MNIST and CIFAR-10, with lower test errors and loss after fewer data passes.
- On the PTB and WikiText-2 datasets, vrSG-MCMC converges faster and produces smoother learning curves in terms of perplexity compared to SGLD.
- The method is robust to the choice of $ n_1 $, with performance close to full-batch gradient when $ n_1 = 200 $, indicating that large minibatches are not necessary for good performance.
- The learning curves of vrSG-MCMC are significantly less noisy than those of SGLD, especially in deeper models like ResNet, due to reduced gradient variance.
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.