Differentiable Annealed Importance Sampling and the Perils of Gradient Noise
arXiv:2107.10211
Abstract
Annealed importance sampling (AIS) and related algorithms are highly effective tools for marginal likelihood estimation, but are not fully differentiable due to the use of Metropolis-Hastings correction steps. Differentiability is a desirable property as it would admit the possibility of optimizing marginal likelihood as an objective using gradient-based methods. To this end, we propose Differentiable AIS (DAIS), a variant of AIS which ensures differentiability by abandoning the Metropolis-Hastings corrections. As a further advantage, DAIS allows for mini-batch gradients. We provide a detailed convergence analysis for Bayesian linear regression which goes beyond previous analyses by explicitly accounting for the sampler not having reached equilibrium. Using this analysis, we prove that DAIS is consistent in the full-batch setting and provide a sublinear convergence rate. Furthermore, motivated by the problem of learning from large-scale datasets, we study a stochastic variant of DAIS that uses mini-batch gradients. Surprisingly, stochastic DAIS can be arbitrarily bad due to a fundamental incompatibility between the goals of last-iterate convergence to the posterior and elimination of the accumulated stochastic error. This is in stark contrast with other settings such as gradient-based optimization and Langevin dynamics, where the effect of gradient noise can be washed out by taking smaller steps. This indicates that annealing-based marginal likelihood estimation with stochastic gradients may require new ideas.
arXiv comment23 pages, NeurIPS 2021
References in corpus (12)
- Stochastic Gradient Hamiltonian Monte Carlo
- Markov Chain Monte Carlo and Variational Inference: Bridging the Gap
- On the Convergence of Stochastic Gradient MCMC Algorithms with High-Order Integrators
- Auto-Encoding Sequential Monte Carlo
- Sandwiching the marginal likelihood using bidirectional Monte Carlo
- Hamiltonian Annealed Importance Sampling for partition function estimation
- Evaluating Lossy Compression Rates of Deep Generative Models
- Monte Carlo Variational Auto-Encoders
- SUMO: Unbiased Estimation of Log Marginal Probability for Latent Variable Models
- Faster Convergence of Stochastic Gradient Langevin Dynamics for Non-Log-Concave Sampling
- The Thermodynamic Variational Objective
- Improving Lossless Compression Rates via Monte Carlo Bits-Back Coding