Abstract
This paper studies the fundamental problem of learning deep generative models that consist of multiple layers of latent variables organized in top-down architectures. Such models have high expressivity and allow for learning hierarchical representations. Learning such a generative model requires inferring the latent variables for each training example based on the posterior distribution of these latent variables. The inference typically requires Markov chain Monte Carlo (MCMC) that can be time-consuming. In this paper, we propose to use noise-initialized non-persistent short-run MCMC, such as finite-step Langevin dynamics initialized from the prior distribution of the latent variables, as an approximate inference engine. The step size of the Langevin dynamics is variationally optimized by minimizing the Kullback-Leibler divergence between the distribution produced by the short-run MCMC and the posterior distribution. Our experiments show that the proposed method outperforms variational auto-encoders (VAE) in terms of reconstruction error and synthesis quality. The advantage of the proposed method is that it is simple and automatic without the need to design an inference model.
Introduction
Deep generative models with top-down architectures are highly effective at learning hierarchical representations of data. By organizing latent variables in multiple layers, these models can capture complex structures, from high-level semantics to low-level textures. However, the primary challenge in training these models lies in inference: determining the latent variables that correspond to a specific observed data point.
Traditionally, researchers have relied on two main approaches:
- Markov Chain Monte Carlo (MCMC): While theoretically accurate, MCMC is often too slow for large-scale training because it requires many iterations to converge to the posterior distribution.
- Variational Auto-encoders (VAEs): VAEs use an "encoder" (an inference network) to approximate the posterior. While fast, designing an encoder that accurately captures the dependencies between layers—such as the "explaining-away" effect—is difficult and often leads to a mismatch between the generator and the inference model.
This paper proposes a "middle ground" that eliminates the need for a separate encoder by utilizing a variationally optimized, short-run MCMC as the inference engine.
The Proposed Method: Short-Run MCMC as Inference
The core innovation of this work is the replacement of the traditional inference network with a fixed, small number of Langevin dynamics steps (e.g., $K=25$).
Non-Persistent Initialization
Unlike persistent MCMC, which starts from the previous state of the chain, this method uses non-persistent initialization. For every training example, the MCMC process begins fresh, initialized from the prior distribution (typically Gaussian noise). This ensures stability and prevents the model from becoming trapped in local modes across training iterations.
Variational Optimization of Step Size
Rather than treating the MCMC step size as a static hyperparameter, the authors treat it as a variational parameter. By minimizing the Kullback-Leibler (KL) divergence between the distribution produced by the short-run MCMC and the true posterior, the step size is optimized automatically during training. This ensures that the inference process is as efficient as possible within the limited number of steps allowed.
Intrinsic Gradient-Based Inference
Because the inference engine uses Langevin dynamics, it relies on the gradient of the generative model itself. This "intrinsic" approach ensures that the inference process is always perfectly synchronized with the generator. It naturally accounts for complex interactions between latent variables without requiring the researcher to manually design those interactions into a separate encoder architecture.
Experimental Evaluation
The model was evaluated against the Ladder-VAE, a strong multi-layer baseline, across several standard image benchmarks including MNIST, SVHN, and CelebA.
Synthesis and Reconstruction
The proposed method demonstrated significant improvements in both image synthesis and reconstruction accuracy:
- CelebA ($64 \times 64$): The method achieved a Fréchet Inception Distance (FID) of 36.84, compared to 53.40 for the Ladder-VAE.
- Reconstruction Error: On the same dataset, the Mean Squared Error (MSE) was reduced to 0.011, whereas the Ladder-VAE achieved 0.028.
Hierarchical Representation
By analyzing the different layers of the latent variables, the authors confirmed that the model successfully learns a hierarchy of features. In digit datasets, the top layer typically captures the general structure, the middle layer captures the identity of the digit, and the bottom layer captures background details and stroke styles.
Discussion and Insights
One of the most compelling aspects of this approach is its simplicity. The "inference engine" is essentially a few lines of code implementing Langevin updates. This allows for the exploration of very deep, hierarchical structures without the architectural overhead of designing corresponding deep encoders.
Furthermore, the model excels at tasks like inpainting. By running the same short-run MCMC on missing pixels while keeping the observed pixels fixed, the model can effectively fill in occluded parts of an image, demonstrating a robust understanding of the underlying data distribution.
Limitations and Future Work
While the method simplifies model design, it introduces new computational challenges. Optimizing the step size requires calculating the entropy of the MCMC distribution, which involves the Jacobian of the MCMC transformation. This can be computationally intensive as the dimensionality of the latent space increases.
Future research may look into varying the step size for each individual step in the chain ($s_k$) or scaling the approach to even higher-resolution images where MCMC efficiency becomes more critical. Nevertheless, this work provides a powerful alternative to the VAE framework, proving that short-run MCMC can be a highly effective and automatic inference engine for deep generative models.
Summary updated