[Paper Review] Conjugate-Computation Variational Inference : Converting Variational Inference in Non-Conjugate Models to Inferences in Conjugate Models
This paper introduces Conjugate-Computation Variational Inference (CVI), a novel variational inference algorithm that combines stochastic gradient updates for non-conjugate terms with efficient conjugate computations for conjugate terms. By formulating updates via stochastic mirror descent in the mean-parameter space, CVI enables conjugate computations to implement each gradient step, resulting in significantly faster convergence than methods ignoring conjugate structure, as demonstrated on multiple models including Gaussian process classification and matrix factorization.
Variational inference is computationally challenging in models that contain both conjugate and non-conjugate terms. Methods specifically designed for conjugate models, even though computationally efficient, find it difficult to deal with non-conjugate terms. On the other hand, stochastic-gradient methods can handle the non-conjugate terms but they usually ignore the conjugate structure of the model which might result in slow convergence. In this paper, we propose a new algorithm called Conjugate-computation Variational Inference (CVI) which brings the best of the two worlds together -- it uses conjugate computations for the conjugate terms and employs stochastic gradients for the rest. We derive this algorithm by using a stochastic mirror-descent method in the mean-parameter space, and then expressing each gradient step as a variational inference in a conjugate model. We demonstrate our algorithm's applicability to a large class of models and establish its convergence. Our experimental results show that our method converges much faster than the methods that ignore the conjugate structure of the model.
Motivation & Objective
- To address the computational inefficiency of variational inference in models with both conjugate and non-conjugate terms.
- To overcome the limitations of existing methods that either ignore conjugate structure (leading to slow convergence) or require complex approximations for non-conjugate terms.
- To unify the computational efficiency of conjugate models with the flexibility of stochastic gradient methods for non-conjugate components.
- To develop a general-purpose inference algorithm that reduces to standard VMP in conjugate settings and maintains convergence guarantees.
Proposed method
- Proposes a stochastic mirror-descent method in the mean-parameter space, enabling gradient steps to be implemented via conjugate computations.
- Expresses each gradient update as a variational inference problem in a conjugate model, leveraging closed-form posterior updates.
- Applies the method to models split into conjugate and non-conjugate parts, and extends it to conditionally conjugate models using message-passing.
- Uses mean-field variational approximation and formulates updates such that conjugate structure is preserved and exploited.
- Derives the algorithm by transforming stochastic gradient steps into Bayesian inference in conjugate exponential families.
- Establishes convergence under mild regularity conditions and connects CVI to existing methods like VMP and SVI.
Experimental results
Research questions
- RQ1Can we design a variational inference algorithm that retains the computational efficiency of conjugate models while handling non-conjugate likelihoods?
- RQ2How can stochastic gradient updates be reformulated to leverage conjugate computations, improving convergence speed?
- RQ3Can the proposed method be generalized to models with both conjugate and non-conjugate components, including conditionally conjugate structures?
- RQ4Does the integration of conjugate computations into stochastic gradient updates lead to faster convergence than black-box stochastic methods?
- RQ5What is the theoretical convergence behavior of the proposed algorithm in non-conjugate settings?
Key findings
- CVI converges significantly faster than methods that ignore conjugate structure, as shown on Gaussian process classification and multi-class logistic regression.
- On the a7a dataset, CVI achieved convergence in 0.95s, outperforming S&K Alg2 (0.74s) and S&K FG (1.19s), with comparable log-likelihood.
- In the Gamma factor model, CVI reduced training time from 210.03s (Knowles) to 50.91s while maintaining competitive log-likelihood.
- On MNIST with Gamma matrix factorization, CVI achieved a test loss of 0.000119 in 1692.64s, outperforming ADAM (0.000125 in 1776.83s).
- CVI achieved near-optimal performance on all benchmark datasets, including colon-cancer and Covtype-scale, with minimal time overhead.
- The algorithm converges to a solution close to the exact posterior, with log-likelihood values within 0.01 of the best-performing baseline across all datasets.
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.