- Rating
- 4
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The authors propose DIVI, a semi-implicit variational inference (VI) algorithm that leverages denoising score matching at each step to learn the intractable marginal score of the variational distribution. This learned score then serves as a surrogate for the true score in the evidence lower bound (ELBO) to the data log likelihood. The authors’ algorithm consists of two primary steps: (1) learning the marginal score corresponding to a fixed variational distribution ( step) and (2) using the learned score of the current variational distribution to update the variational parameters ( step). The key innovation of the paper lies in the first step, wherein the authors show that by the denoising score identity (Proposition 3.1), the intractable marginal score is the minimizer of a regression objective on the (tractable) conditional score.
After proposing their algorithm, the authors provide a theoretical analysis showing monotonic increase of the ELBO (Lemma 4.3) and that the algorithm will attain an approximate stationary point (Theorem 4.4), provided that the score is learned well at each iteration i.e., is small. This analysis reduces the convergence of their algorithm to the approximation error of the learned score.
Lastly, the authors compare DIVI against ELBO-based SIVI algorithms, namely SIVI, UIVI, and AIVI, each of which differ primarily in their approximation to the intractable marginal score of the variational distribution. They also compare against KSIVI, which minimizes a kernel Stein discrepancy to the posterior. Their experiments include unnormalized toy densities, a partially observed diffusion process (double-well), and Bayesian neural network regression.
Strengths and weaknesses
Strengths:
- The paper is well written; in particular, the exposition to semi-implicit variational inference (SIVI) provides the necessary background for an unfamiliar reader.
- The authors’ algorithm DIVI is well-explained in the main text and in Algorithm 1. It could be reproduced by an interested reader.
- The authors’ theoretical assumptions are well-documented and empirically validated to hold in practice (Appendix C); however, the constants appear to be quite large (Figures 4 and 5).
- The discussion of previous SIVI algorithms is well-done (e.g., Table 1), and the baselines considered in the experiments are well-chosen.
Weaknesses
There are two main weaknesses that limit the impact of the paper. They are discussed in turn.
Theory:
The authors’ theoretical contributions successfully establish that the DIVI will converge to a stationary point of the ELBO, provided the marginal score is learned well at each -step. However, the authors do not close the loop and discuss when the practitioner should expect the score to be learned well (so that is small). This is far from obvious and remains the topic of continued research (e.g., see [1, 2]).
Specifically, using the Gaussian conditional score, the regression objective becomes where is standard normal. The conditional variance, given , of the target is , which is large when is small. In other words, the score will be hard to learn well at finite compute when the Gaussian variance is small. This setting seems relevant since the diagonal covariance is initialized to a small value in the experiments (, in Appendix B.1).
The manuscript would be improved by a theoretical discussion and empirical validation of the quality of the learned score (see weakness "Experiments" as well).
Experiments:
In the reviewer’s opinion, the experiments do not fully validate the central claims of the paper. To the reviewer’s understanding, the primary difference between the four SIVI algorithms—SIVI, UIVI, AISVI, and DIVI—is how they approximate the intractable score of the variational posterior. Specifically, in the infinite compute (and arbitrarily flexible score network) setting, all methods should learn the score exactly; therefore, discrepancies in the fidelity of the approximation are a consequence of limited computation.
However, the authors do not directly quantify the quality of the learned score at matched compute across methods, for example, in a setting where the true score is tractable. The reviewer recognizes the methods for computing the score are not directly comparable (Monte Carlo for SIVI, HMC for UIVI, importance sampling for AISVI), but the authors should propose a reasonable heuristic.
[1] Song, Y. and Kingma, D. P. How to train your energy-based models. arXiv preprint arXiv:2101.03288, 2021.
[2] De Bortoli, V., et al. Target score matching. arXiv preprint arXiv:2402.08667, 2024.
Questions
-
Have the authors considered using implicit score matching [3] or sliced score matching [4], rather than denoising score matching? This would not require regressing on the conditional score which, as mentioned, can lead to high variance when is small. It would, however, be more computationally expensive.
-
How should the practitioner choose the number of score update steps per VI step? How does the answer change depending on the batch size used for score matching?
-
When would semi-implicit VI be preferable to an expressive variational family with tractable densities? For example, one could parameterize their posterior as a normalizing flow. The motivation for implicit and semi-implicit VI in the paper is brief.
Limitations
The authors have adequately addressed the limitations of their work in the “Conclusion” section. The reviewer encourages the authors to address the weaknesses discussed in review section “Weaknesses”.
Paper formatting concerns
The reviewer did not observe any major paper formatting issues.
Final justification
The authors have addressed the reviewer's concerns regarding comparisons of the learned and true scores across semi-implicit VI algorithms as well as ablations of the number of reverse steps (i.e., number of steps used to estimate the variational score) and the reverse step batch size. The reviewer believes that DIVI represents a meaningful contribution to the topic of semi-implicit VI.
Still, the reviewer believes that the theoretical contributions are weaker than presented in the manuscript and do not account for the core difficulty of DIVI (estimating the intractable score).
For these reasons, the reviewer recommends weak acceptance.
We thank the reviewer for the constructive comments. We will revise the Introduction and Background to clarify the motivation, relevant alternatives, and scope of the theoretical result.
Clarifying the variational inference setting. Our setting is the standard VI setting in which a posterior or other target distribution is available through its unnormalized differentiable density, while its normalizing constant and a direct sampling procedure are unavailable. VI trades asymptotic exactness for a one-time optimization cost that produces a reusable approximate sampler. After training, independent samples from the variational approximation can be generated in parallel through forward evaluations, which is advantageous when many posterior samples or repeated downstream expectations are required. By contrast, stochastic-gradient MCMC methods such as SGLD [1] avoid variational approximation error under appropriate asymptotic conditions, but incur transition and mixing costs and produce correlated samples. For difficult high-dimensional targets, obtaining sufficiently mixed and effectively independent MCMC samples can require many transition steps [2]. Neither approach uniformly dominates the other: MCMC may be preferable when asymptotic exactness is essential, whereas VI is attractive when fast repeated sampling is important. DIVI retains the standard ELBO objective and semi-implicit variational setting; its contribution is a new way to estimate the otherwise intractable marginal score needed for ELBO optimization. We will make this standard setting and computational tradeoff explicit in the revision.
Training a GAN or flow on MCMC samples. The suggested strategy of first obtaining many SGLD samples and then training a GAN/Flow faces two separate difficulties. First, it requires obtaining a sufficiently large number of well-mixed MCMC samples from the target distribution, which is itself computationally expensive, especially for complex high-dimensional distributions. Second, learning a global generative model from finite MCMC samples introduces an additional density modeling problem. For example, GAN-based approaches may suffer from mode coverage issues [3], while normalizing flows require architectural constraints due to invertibility and tractable Jacobian computation [4,5]. Therefore, this strategy does not eliminate the original MCMC sampling difficulty, but instead requires simultaneously addressing both the MCMC sampling problem and the global generative modeling problem. In contrast, our method directly optimizes the ELBO without relying on a pre-generated set of sufficiently mixed MCMC samples.
Comparison with Normalizing Flow VI. NFVI [4] provides explicit variational distributions through invertible transformations with tractable Jacobians. However, a normalizing flow is generally a diffeomorphic mapping of the base distribution, and this topological constraint may make it challenging for standard flows with simple base distributions to accurately represent complex multimodal targets, especially when different modes are well separated [5]. In contrast, semi-implicit variational families naturally introduce implicit mixture representations, which provide additional flexibility for capturing multimodal posterior structures [6].
We will include an NFVI baseline in the multimodal toy experiment. In particular, on the eight-Gaussian benchmark, we observe qualitatively that normalizing flow models produce bridges between mode, while DIVI achieves better mode coverage and sampling quality compared with the flow-based baseline with a smaller network and much fewer parameters. We also present the quantitative results in the table below, aggregated across 5 seeds for NFVI. We used a 4 layer RealNVP and 10,000 optimization steps with 128 batch size.
Convergence guarantee and assumptions. With finite computation and model capacity, our theorem characterizes the practical setting as an inexact stochastic optimization problem: the score approximation error induces a persistent gradient bias. As standard in stochastic optimization with biased gradients [7], convergence is then guaranteed to a neighborhood of a stationary point rather than exact stationarity, with the neighborhood size controlled by the magnitude of the gradient bias. In our case, this bias is bounded by the average score error. Assumption 1 is a standard smoothness assumption in nonconvex optimization. We agree that Assumptions 2--3, which require bounded higher-order moments, are stronger. Their roles are discussed in Lines 152--156 and examined numerically in Appendix C. We also discuss the issues in the Conclusion part, and will further emphasize these limitations in the revised manuscript.
Minor comments.
Equation (3). We will explicitly note that Ez∼qϕ[∇ϕlogqϕ(z)]=0. under the usual regularity conditions, which is why this term is omitted.
Typo before Proposition 3.1. Thank you for identifying this typo. We will correct the optimization variable.
Projection . The projection step is introduced to ensure bounded iterates. A fully rigorous treatment of projected stochastic optimization would use the projected gradient mapping as the stationarity measure rather than the vanilla gradient norm. Such an analysis follows the framework of projected stochastic nonconvex optimization [8]. Since our current theorem focuses on the effect of score approximation error under bounded iterates, we leave a refined projected-stationarity analysis to future work.
A joint objective for ϕ and ψ. Our current formulation follows the standard bilevel variational inference framework, where the score estimator update is regarded as an inner optimization problem and the variational parameter update is the outer optimization problem. Similar nested optimization structures have been studied in bilevel-learning and iterative amortized variational inference [9-11]. Reformulating the two updates as stochastic optimization of a single joint objective is an interesting direction; however, it would correspond to a different objective and requires additional analysis. In this work, we focus on the bilevel formulation and provide convergence guarantees under the corresponding score approximation error.
Notation in Section 6.2. Here, the observations correspond to D=y, and the latent diffusion path corresponds to z=x. We will make this explicit and include the discretized prior:
pprior(x)=∏i=1100(2πΔt)−1/2exp(−2Δt[xiΔt−x(i−1)Δt−10x(i−1)Δt(1−x(i−1)Δt2)Δt]2).
References
[1] M. Welling and Y. W. Teh. Bayesian Learning via Stochastic Gradient Langevin Dynamics. ICML, 2011.
[2] R. M. Neal. MCMC Using Hamiltonian Dynamics. In Handbook of Markov Chain Monte Carlo, 2011.
[3] A. Srivastava, L. Valkov, C. Russell, M. U. Gutmann, and C. Sutton. VEEGAN: Reducing Mode Collapse in GANs Using Implicit Variational Learning. NeurIPS, 2017.
[4] D. J. Rezende and S. Mohamed. Variational Inference with Normalizing Flows. ICML, 2015.
[5] R. Cornish, A. L. Caterini, G. Deligiannidis, and A. Doucet. Relaxing Bijectivity Constraints with Continuously Indexed Normalising Flows. ICML, 2020.
[6] M. Yin and M. Zhou. Semi-Implicit Variational Inference. ICML, 2018.
[7] A. Ajalloeian and S. U. Stich. On the Convergence of SGD with Biased Gradients. arXiv:2008.00051, 2020.
[8] S. Ghadimi, G. Lan, and H. Zhang. Mini-batch Stochastic Approximation Methods for Nonconvex Stochastic Composite Optimization. Mathematical Programming, 155:267–305, 2016.
[9] L. Franceschi, P. Frasconi, S. Salzo, R. Grazzi, and M. Pontil. Bilevel Programming for Hyperparameter Optimization and Meta-Learning. ICML, 2018.
[10] Y. Kim, S. Wiseman, A. C. Miller, D. Sontag, and A. M. Rush. Semi-Amortized Variational Autoencoders. ICML, 2018.
[11] J. Marino, Y. Yue, and S. Mandt. Iterative Amortized Inference. ICML, 2018.