[Paper Review] Markovian Score Climbing: Variational Inference with KL(p||q)
This paper introduces Markovian Score Climbing (MSC), a novel variational inference algorithm that reliably minimizes the inclusive KL divergence $\mathrm{KL}(p \| q)$ using unbiased stochastic gradients with vanishing bias. By combining MCMC sampling with score function updates, MSC converges to a local optimum without the systematic bias plaguing prior methods like Reweighted Wake-Sleep and Neural Adaptive SMC.
Modern variational inference (VI) uses stochastic gradients to avoid intractable expectations, enabling large-scale probabilistic inference in complex models. VI posits a family of approximating distributions q and then finds the member of that family that is closest to the exact posterior p. Traditionally, VI algorithms minimize the "exclusive Kullback-Leibler (KL)" KL(q || p), often for computational convenience. Recent research, however, has also focused on the "inclusive KL" KL(p || q), which has good statistical properties that makes it more appropriate for certain inference problems. This paper develops a simple algorithm for reliably minimizing the inclusive KL using stochastic gradients with vanishing bias. This method, which we call Markovian score climbing (MSC), converges to a local optimum of the inclusive KL. It does not suffer from the systematic errors inherent in existing methods, such as Reweighted Wake-Sleep and Neural Adaptive Sequential Monte Carlo, which lead to bias in their final estimates. We illustrate convergence on a toy model and demonstrate the utility of MSC on Bayesian probit regression for classification as well as a stochastic volatility model for financial data.
Motivation & Objective
- Address the limitations of traditional variational inference that minimizes exclusive KL divergence $\mathrm{KL}(q \| p)$, which underestimates posterior uncertainty.
- Overcome systematic bias in existing methods targeting inclusive KL divergence $\mathrm{KL}(p \| q)$, such as Reweighted Wake-Sleep and Neural Adaptive SMC, which use biased gradients.
- Develop a reliable, convergent algorithm for minimizing $\mathrm{KL}(p \| q)$ using unbiased stochastic gradients with minimal computational overhead.
- Demonstrate the superiority of MSC in terms of convergence and posterior approximation quality on both synthetic and real-world models.
Proposed method
- Propose Markovian Score Climbing (MSC), a stochastic optimization method that uses samples from a Markov chain with stationary distribution $p$ to estimate gradients.
- Use a Robbins-Monro step-size schedule to update the variational parameters based on the score function $\nabla_\lambda \log q(\mathbf{z}[k])$.
- Allow the MCMC kernel to adaptively depend on the current variational approximation, enabling progressive improvement of MCMC as VI converges.
- Leverage conditional importance sampling (CIS) or conditional sequential Monte Carlo (CSMC) as MCMC kernels to generate samples for gradient estimation.
- Ensure gradient estimates are unbiased by using the score function of the variational proposal, avoiding the bias introduced by importance sampling in prior methods.
- Integrate the method into a stochastic optimization framework that provably converges to a local optimum of $\mathrm{KL}(p \| q)$.
Experimental results
Research questions
- RQ1Can a variational inference algorithm minimize the inclusive KL divergence $\mathrm{KL}(p \| q)$ with unbiased gradients and provable convergence?
- RQ2Why do existing methods like Reweighted Wake-Sleep and Neural Adaptive SMC produce biased posterior approximations despite targeting $\mathrm{KL}(p \| q)$?
- RQ3How does MSC compare to IS-based and SMC-based methods in terms of convergence and marginal likelihood estimation?
- RQ4Can MSC provide more robust posterior approximations in models where uncertainty underestimation is a known issue?
- RQ5Does MSC outperform SMC-based optimization in real-world applications like financial time series modeling?
Key findings
- MSC converges to a local optimum of the inclusive KL divergence $\mathrm{KL}(p \| q)$, unlike biased methods that converge to suboptimal solutions.
- On a toy skew-normal model, MSC avoids the systematic bias observed in Reweighted Wake-Sleep and Neural Adaptive SMC, which consistently underestimate posterior variance.
- In Bayesian probit regression, MSC achieves better marginal likelihood estimates than IS-based optimization and matches or exceeds EP performance on benchmark datasets.
- On 18 foreign exchange rate datasets, MSC achieved significantly higher log-marginal likelihood than the SMC-based method [22], with $S=10$ particles and $S=10,000$ for evaluation.
- MSC is robust to the choice of number of particles $S$, converging to similar mean values across different $S$ on the Heart and Ionos datasets, unlike IS which shows strong bias for low $S$.
- The method demonstrates consistent performance across multiple models, including a stochastic volatility model, where MSC outperforms SMC-based optimization in marginal likelihood estimation.
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.