[Paper Review] Quasi-Monte Carlo Variational Inference
This paper proposes Quasi-Monte Carlo Variational Inference (QMCVI), which replaces i.i.d. Monte Carlo samples with low-discrepancy Quasi-Monte Carlo (QMC) sequences to reduce gradient variance in stochastic optimization for variational inference. By using randomized QMC (RQMC), the method achieves faster convergence and asymptotically better convergence rates than standard SGD, with empirical results showing orders-of-magnitude speedups on large-scale models.
Many machine learning problems involve Monte Carlo gradient estimators. As a prominent example, we focus on Monte Carlo variational inference (MCVI) in this paper. The performance of MCVI crucially depends on the variance of its stochastic gradients. We propose variance reduction by means of Quasi-Monte Carlo (QMC) sampling. QMC replaces N i.i.d. samples from a uniform probability distribution by a deterministic sequence of samples of length N. This sequence covers the underlying random variable space more evenly than i.i.d. draws, reducing the variance of the gradient estimator. With our novel approach, both the score function and the reparameterization gradient estimators lead to much faster convergence. We also propose a new algorithm for Monte Carlo objectives, where we operate with a constant learning rate and increase the number of QMC samples per iteration. We prove that this way, our algorithm can converge asymptotically at a faster rate than SGD. We furthermore provide theoretical guarantees on QMC for Monte Carlo objectives that go beyond MCVI, and support our findings by several experiments on large-scale data sets from various domains.
Motivation & Objective
- To reduce the variance of stochastic gradient estimators in Monte Carlo variational inference (MCVI), which currently relies on i.i.d. sampling and suffers from high noise.
- To investigate the theoretical and empirical benefits of using Quasi-Monte Carlo (QMC) sequences instead of i.i.d. samples for Monte Carlo objectives in Bayesian inference.
- To develop a new optimization algorithm that maintains a constant learning rate while increasing the number of QMC samples over iterations, achieving faster asymptotic convergence.
- To provide theoretical guarantees on variance reduction and convergence rates for QMC-based gradient estimators in MCVI and beyond.
- To enable practical integration of QMC into existing probabilistic programming frameworks like STAN and Edward with minimal code changes.
Proposed method
- Replace i.i.d. uniform random samples in MCVI with deterministic, low-discrepancy QMC sequences over the unit hypercube [0,1]^d to improve coverage and reduce variance.
- Use randomized QMC (RQMC) to maintain unbiasedness of the gradient estimator while achieving lower asymptotic variance than standard Monte Carlo.
- Introduce a new optimization algorithm that uses a constant learning rate but increases the number of RQMC samples per iteration, enabling faster convergence.
- Prove that under strong convexity and mild regularity assumptions, the RQMC-based algorithm converges asymptotically faster than SGD with standard Monte Carlo.
- Apply the method to both score function and reparameterization gradient estimators in variational inference, demonstrating broad applicability.
- Implement the method by replacing uniform random number generation with RQMC sequences and applying standard reparameterization techniques to sample from target distributions.
Experimental results
Research questions
- RQ1Can Quasi-Monte Carlo sampling reduce the variance of stochastic gradient estimators in Monte Carlo variational inference more effectively than i.i.d. sampling?
- RQ2Does using randomized QMC (RQMC) lead to a provably faster asymptotic convergence rate than standard SGD for Monte Carlo objectives?
- RQ3Can an optimization algorithm with a constant learning rate and increasing sample size achieve better convergence than SGD when using RQMC samples?
- RQ4How does QMCVI perform in practice on complex models such as Bayesian neural networks and large-scale datasets?
- RQ5To what extent can QMCVI be combined with existing variance reduction techniques like control variates, and what are the potential trade-offs?
Key findings
- For N=10 and N=50 samples, QMCVI achieved significantly lower gradient variance—one to three orders of magnitude lower—than standard Monte Carlo and control variate baselines.
- On a Bayesian neural network with d=653 parameters, QMCVI converged to a higher ELBO value than standard MCVI with N=10, and reached the same ELBO much faster with N=50.
- The proposed algorithm with increasing RQMC sample size and constant learning rate achieved a faster asymptotic convergence rate than SGD, as confirmed by experiments on a two-dimensional normal target distribution.
- In the absence of data subsampling noise, QMCVI outperformed SGD in terms of convergence speed, with the logarithmic difference to the optimal ELBO decreasing faster over iterations.
- Theoretical analysis shows that the stationary variance of iterates under RQMC is reduced by a factor of N compared to standard Monte Carlo, enabling closer convergence to the optimum.
- QMCVI can be easily integrated into existing probabilistic programming tools like STAN and Edward by replacing uniform random number generation with RQMC sequences.
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.