[Paper Review] Monte Carlo Structured SVI for Two-Level Non-Conjugate Models
This paper introduces Monte Carlo Structured Stochastic Variational Inference (MC-SSVI) for two-level latent variable models without conjugacy assumptions, leveraging structured variational approximations and natural gradients to enable scalable inference. It extends SVI to non-conjugate models by showing applicability when prior and variational distributions share the same exponential family form, with hybrid gradient methods improving convergence in Gaussian models.
The stochastic variational inference (SVI) paradigm, which combines variational inference, natural gradients, and stochastic updates, was recently proposed for large-scale data analysis in conjugate Bayesian models and demonstrated to be effective in several problems. This paper studies a family of Bayesian latent variable models with two levels of hidden variables but without any conjugacy requirements, making several contributions in this context. The first is observing that SVI, with an improved structured variational approximation, is applicable under more general conditions than previously thought with the only requirement being that the approximating variational distribution be in the same family as the prior. The resulting approach, Monte Carlo Structured SVI (MC-SSVI), significantly extends the scope of SVI, enabling large-scale learning in non-conjugate models. For models with latent Gaussian variables we propose a hybrid algorithm, using both standard and natural gradients, which is shown to improve stability and convergence. Applications in mixed effects models, sparse Gaussian processes, probabilistic matrix factorization and correlated topic models demonstrate the generality of the approach and the advantages of the proposed algorithms.
Motivation & Objective
- Address the limitation of stochastic variational inference (SVI) in non-conjugate Bayesian models with two levels of latent variables.
- Extend MC-SSVI to general two-level latent variable models (2L-LVM) without conjugacy, broadening its applicability beyond exponential family conjugate models.
- Develop a hybrid algorithm (H-MC-SSVI) that combines natural gradients for covariance and standard gradients for means in models with latent Gaussians to improve convergence and stability.
- Demonstrate the effectiveness of MC-SSVI across diverse models including mixed effects models, sparse Gaussian processes, probabilistic matrix factorization, and correlated topic models.
- Provide a unified framework that clarifies relationships between existing variational approximations and identifies optimal structured approximations in the 2L-LVM family.
Proposed method
- Propose MC-SSVI as a generalization of structured SVI to 2L-LVMs, using mini-batch data sampling and Monte Carlo estimates to handle intractable expectations.
- Apply fixed-point updates derived from natural gradient relationships to enable optimization when prior and variational distributions are in the same exponential family.
- Introduce H-MC-SSVI for models with latent Gaussian variables, combining natural gradients on covariance and standard gradients on mean for improved convergence.
- Use importance sampling and posterior sampling schemes to estimate test set normalized negative log likelihood (NLL) for model evaluation.
- Implement variational inference with diagonal and full covariance approximations, and compare performance using both Monte Carlo sampling and Chib-style estimation for marginal likelihoods.
- Apply the algorithm to multiple models: generalized mixed effects models (GME), sparse Gaussian processes (sGP), probabilistic matrix factorization (PMF), and correlated topic models (CTM), with empirical validation on nips and enron datasets.
Experimental results
Research questions
- RQ1Can structured variational inference be extended to non-conjugate two-level latent variable models without requiring conjugate exponential family conditionals?
- RQ2Under what conditions does the structured variational approximation remain optimal in 2L-LVMs, and how does it relate to existing approximations in models like LDA or PMF?
- RQ3How does combining natural gradients for covariance and standard gradients for mean improve convergence and stability in models with latent Gaussian variables?
- RQ4What is the performance gain of MC-SSVI over mean-field and standard SVI in large-scale non-conjugate models like CTM and PMF?
- RQ5How do different importance sampling schemes and covariance inflation strategies affect the estimation of predictive log-likelihood in CTM?
Key findings
- MC-SSVI is applicable to 2L-LVMs whenever the prior and variational distribution over latent variables are in the same exponential family, significantly broadening the scope of SVI beyond conjugate models.
- H-MC-SSVI with hybrid gradients (natural for covariance, standard for mean) achieves superior convergence and stability in models with latent Gaussians, outperforming both mean-field and standard SVI variants.
- On the nips dataset with K=50, H-MC-SSVI with optimal structured approximation achieved the lowest test set normalized NLL, outperforming mean field and S-DSVI across all evaluation schemes.
- Importance sampling schemes with posterior sampling and covariance inflation (e.g., +I) produced more accurate NLL estimates, converging to consistent values as sample size increased.
- The addition of the log prior term in NLL estimation revealed a larger performance gap between mean field and H-MC-SSVI on the optimal approximation, indicating H-MC-SSVI better captures model uncertainty.
- On the enron dataset, H-MC-SSVI with diagonal covariances located a better optimum than mean field over time, confirming improved optimization capability in large-scale settings.
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.