[Paper Review] Variational Message Passing with Structured Inference Networks
This paper proposes a variational message-passing algorithm that unifies structured inference networks, amortized inference, and natural-gradient updates for hybrid deep probabilistic models. By designing inference networks that mirror the graphical model structure, the method enables fast, scalable, and efficient inference while maintaining interpretability and outperforming prior approaches on both synthetic and real-world datasets.
Recent efforts on combining deep models with probabilistic graphical models are promising in providing flexible models that are also easy to interpret. We propose a variational message-passing algorithm for variational inference in such models. We make three contributions. First, we propose structured inference networks that incorporate the structure of the graphical model in the inference network of variational auto-encoders (VAE). Second, we establish conditions under which such inference networks enable fast amortized inference similar to VAE. Finally, we derive a variational message passing algorithm to perform efficient natural-gradient inference while retaining the efficiency of the amortized inference. By simultaneously enabling structured, amortized, and natural-gradient inference for deep structured models, our method simplifies and generalizes existing methods.
Motivation & Objective
- Address the challenge of combining deep learning and probabilistic graphical models (PGMs) to create flexible, interpretable models.
- Overcome the limitations of existing inference algorithms that rely on either stochastic gradient methods (common in deep learning) or conjugate exponential families (common in PGMs).
- Develop a unified inference framework that enables amortized, structured, and natural-gradient updates in a single algorithm.
- Simplify and generalize prior work, particularly Johnson et al. (2016), by deriving conditions under which structured inference networks support fast amortized inference.
- Enable effective inference in models with non-conjugate factors by using conjugate approximations within structured inference networks.
Proposed method
- Propose Structured Inference Networks (SINs), which embed the graphical model structure into the inference network architecture of variational autoencoders (VAEs), mimicking the generative model's conditional dependencies.
- Derive two sufficient conditions under which SINs support fast amortized inference, analogous to standard VAEs, by ensuring the variational posterior factorizes consistently with the model’s conditional independence structure.
- Integrate the recent VMP method of Khan & Lin (2017) to derive a message-passing algorithm that automatically computes stochastic gradients for deep network components and natural-gradient updates for PGM components.
- Use natural-gradient updates for the PGM part to improve convergence and stability, while maintaining the efficiency of amortized inference for the deep components.
- Apply the resulting SAN (Structured, Amortized, Natural-gradient) algorithm to hybrid models combining deep networks and PGMs, such as mixture models and state-space models.
- Demonstrate the method’s robustness to non-conjugate factors by using a conjugate Gaussian approximation to infer models with Student’s t-distributed factors.
Experimental results
Research questions
- RQ1Can structured inference networks be designed to enable amortized inference in hybrid deep-structured models, similar to standard VAEs?
- RQ2Under what conditions does the use of structured inference networks preserve the efficiency of amortized inference in models combining deep networks and PGMs?
- RQ3Can a unified variational inference algorithm simultaneously support structured, amortized, and natural-gradient updates in such hybrid models?
- RQ4How does the proposed method perform on models with non-conjugate factors, such as Student’s t-distributions, when using conjugate approximations in the inference network?
- RQ5Does the SAN algorithm achieve better or comparable performance to prior state-of-the-art methods like SVAE while simplifying the inference framework?
Key findings
- The SAN algorithm converges faster than SVAE during training on both the Pinwheel and Auto datasets, while achieving comparable performance upon convergence.
- On the Pinwheel dataset, SAN with a latent Gaussian mixture model (GMM) and latent Student’s t-mixture model (TMM) outperforms GMM and shows robustness to outliers, with TMM maintaining performance even at 70% outlier levels.
- When 70% of the Pinwheel data was corrupted with high-variance Gaussian noise, the latent TMM-based SAN model achieved significantly lower test MSE than the GMM-based SAN model trained on only 10% outliers.
- VAE fails to learn interpretable clusters due to lack of explicit clustering mechanisms, whereas SAN successfully learns meaningful, semantically coherent clusters as shown in generated samples.
- The method generalizes beyond conjugate models: even when the true model contains non-conjugate factors (e.g., Student’s t), the conjugate SIN provides effective inference with improved robustness.
- The implementation of the SAN algorithm is available on GitHub, enabling reproducibility and further extension of the framework.
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.