Introduction
Deep Generative Models (DGMs), such as Sigmoid Belief Networks and Variational Autoencoders, are powerful tools for capturing high-level abstractions in complex data. However, training these models using a Bayesian approach—where model parameters are treated as distributions rather than fixed points—is notoriously difficult.
Standard training often relies on Variational Inference (VI), which approximates the complex posterior distribution with a simpler one. While fast, VI frequently employs "mean-field" assumptions that can lead to inaccurate models. The alternative, Markov Chain Monte Carlo (MCMC), is theoretically more accurate but traditionally fails to scale to large datasets or high-dimensional hidden spaces due to "slow mixing" and the requirement to process the entire dataset at every step.
Methodology: Doubly Stochastic MCMC
The authors propose a "doubly stochastic" framework to make MCMC viable for deep learning by introducing two layers of stochasticity:
- Stochasticity 1 (Data): They utilize Stochastic Gradient MCMC (specifically the Nose-Hoover Thermostat, or SGNHT). Similar to Stochastic Gradient Descent, this uses mini-batches of data to estimate gradients, allowing the Bayesian approach to scale to massive datasets.
- Stochasticity 2 (Hidden Variables): To handle intractable integrals over hidden variables ($z$), the authors introduce the Neural Adaptive Importance Sampler (NAIS). Instead of slow Gibbs sampling, they train a separate "recognition network" to act as a proposal distribution.
Crucially, they optimize this proposal using the inclusive KL-divergence. Unlike the exclusive KL used in standard VAEs (which tends to underestimate variance), the inclusive KL ensures the proposal covers the entire support of the true posterior—a vital property for effective importance sampling.
Key Insights and Ideas
- Inclusive vs. Exclusive KL: Standard VAEs minimize $KL(q||p)$, resulting in "mode-seeking" behavior. This paper minimizes $KL(p||q)$, which is "mass-covering," making the recognition network a much better "scout" for the MCMC sampler.
- MCMC as a Refiner: While variational methods provide a quick approximation, the MCMC approach allows the model to asymptotically approach the true posterior. As shown in the performance plots, increasing the number of posterior samples significantly improves the estimated log-likelihood.
- Handling Discrete Variables: Because this method uses importance sampling rather than the "reparameterization trick," it handles discrete and continuous hidden variables within the same generic framework.
Experimental Results
The proposed method, DSGNHT-NAIS, was evaluated on benchmarks including Binarized MNIST, Caltech 101 Silhouettes, and Omniglot. It consistently outperformed competitors across various architectures.
On the MNIST dataset, the model achieved a test log-likelihood of -83.67, outperforming VAEs (-88.83) and Reweighted Wake-Sleep (-85.23). On Caltech 101 Silhouettes, it reached -100.0, a significant improvement over the previous best of -104.3. The model also demonstrated a strong ability to perform missing data imputation, accurately "filling in" images based on learned underlying structures.
Conclusion
Doubly Stochastic Gradient MCMC provides a scalable and accurate alternative to variational methods for training DGMs. By combining mini-batch sampling with a mass-covering neural importance sampler, the framework achieves state-of-the-art results on standard image benchmarks. Future work may explore applying this framework to sparse Bayesian models and nonparametric DGMs.
Summary updated