Forward $\chi^2$ Divergence Based Variational Importance Sampling

Chengrui Li, Yule Wang, Weihan Li, Anqi WuICLR 2024

Abstract

Variational Inference (VI) is a cornerstone of latent variable modeling but often suffers from "mode-seeking" behavior due to its reliance on reverse KL divergence. This paper introduces Variational Importance Sampling (VIS), a framework that directly maximizes marginal log-likelihood by optimizing a proposal distribution through the minimization of the forward $\chi^2$ divergence. By reformulating the objective in a numerically stable log-space, VIS achieves "mass-covering" properties, effectively capturing multi-modal posteriors. We demonstrate that VIS consistently outperforms standard VI and other state-of-the-art methods across synthetic mixture models, Variational Autoencoders (VAEs), and neural spike models, providing tighter bounds and superior parameter recovery.

Introduction

In machine learning, latent variable models are essential for capturing hidden structures in data. The primary objective in training these models is to maximize the marginal log-likelihood of the observed data. Standard Variational Inference (VI) approaches this by maximizing the Evidence Lower Bound (ELBO), which is equivalent to minimizing the reverse KL divergence between a proposal distribution $q$ and the true posterior $p$.

However, reverse KL divergence is notoriously "mode-seeking," often causing the proposal to collapse onto a single mode of a multi-modal posterior. This leads to poor parameter estimation in complex models. To address this, we propose Variational Importance Sampling (VIS), which leverages the "mass-covering" properties of the forward $\chi^2$ divergence to provide a more robust training objective.

Methodology: Variational Importance Sampling

VIS replaces the ELBO with an Importance Sampling (IS) estimator to directly approximate the marginal log-likelihood. The effectiveness of IS depends on the quality of the proposal distribution $q$. We demonstrate that the optimal proposal for minimizing the variance of the IS estimator is found by minimizing the forward $\chi^2$ divergence.

Theoretical Framework

Unlike the reverse KL divergence, the forward $\chi^2$ divergence ensures that the proposal distribution covers all significant regions of the true posterior. This prevents the model from "forgetting" secondary modes during training. Furthermore, the IS-based log-likelihood estimator $\ln \hat{p}$ provides an asymptotically tighter lower bound than the ELBO. As the number of samples $K$ increases, the VIS estimate converges to the true log-likelihood.

Theoretical framework of VIS: (a) Relationship between log-likelihood bounds; (b) Convergence of the IS estimator with increasing K; (c) Geometric view of divergence minimization.

Numerical Stability

Minimizing $\chi^2$ divergence is traditionally unstable due to high variance. VIS overcomes this by reformulating the objective in log-space using the "logsumexp" trick. The resulting two-step algorithm alternates between updating model parameters $\theta$ to maximize estimated likelihood and updating proposal parameters $\phi$ to minimize the forward $\chi^2$ divergence.

Experimental Results

We evaluated VIS against several baselines, including standard VI, CHIVI, and VBIS, across diverse benchmarks.

Parameter Recovery and Posterior Approximation

In toy mixture models designed with multi-modal posteriors, VIS was the only method capable of identifying all modes. While standard VI collapsed to a single peak, VIS maintained a mass-covering proposal that accurately reflected the true posterior structure. This superior recovery is reflected in higher Log-Likelihood (LL) and Conditional Log-Likelihood (CLL) metrics.

Performance metrics and posterior recovery: (a) Comparison of LL, CLL, and HLL; (b) Parameter convergence over epochs; (c) Posterior approximations across different methods.

High-Dimensional Applications

  • MNIST (VAEs): VAEs trained with VIS achieved significantly higher test marginal log-likelihoods compared to standard VI and IWAE, demonstrating the scalability of the log-space $\chi^2$ objective.
  • Neural Modeling: In experiments with Partially Observable Generalized Linear Models (POGLM) and real-world retinal ganglion cell (RGC) data, VIS recovered synaptic weights and predicted neural firing rates more accurately than competing methods.

Conclusion

Variational Importance Sampling offers a robust alternative to standard VI by utilizing the forward $\chi^2$ divergence. Its mass-covering nature and numerical stability make it particularly effective for models with complex, multi-modal posteriors. Future work will explore the integration of more flexible proposal distributions, such as Normalizing Flows, to further enhance VIS's performance in high-dimensional latent spaces.

Summary updated

BibTeX
@inproceedings{li2024forward,
  author = {Chengrui Li and Yule Wang and Weihan Li and Anqi Wu},
  title = {{Forward $\textbackslash\{\}chi^2$ Divergence Based Variational Importance Sampling}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=HD5Y7M8Xdk},
}
Figure