Abstract
This paper introduces a novel approach for training deep latent variable models by integrating short-run Markov Chain Monte Carlo (MCMC) inference with Optimal Transport (OT). Traditional methods often struggle with the slow convergence of MCMC or the approximation errors (amortization gap) of Variational Auto-encoders (VAEs). By employing OT to correct the distributional bias inherent in non-convergent, fast MCMC samples, the proposed method achieves high-quality image generation and reconstruction without requiring an auxiliary encoder network. Evaluations on MNIST, SVHN, and CelebA demonstrate that this approach outperforms standard VAEs in reconstruction accuracy, generative quality, and anomaly detection.
Introduction
Deep generative modeling typically assumes that high-dimensional data is generated from low-dimensional latent vectors. A central challenge in training these models is the inference problem: determining the latent vector responsible for a given data point.
Historically, two main paradigms have dominated. Markov Chain Monte Carlo (MCMC) methods provide high accuracy but are computationally expensive due to the many iterations required for convergence. Conversely, Variational Inference, exemplified by VAEs, offers speed by using a secondary "encoder" network to approximate the posterior. However, this introduces an "amortization gap" where the encoder's approximation limits the generative model's potential. This paper proposes a middle ground: using a fast, "short-run" MCMC and mathematically correcting its bias using Optimal Transport.
Methods
The proposed training loop consists of three iterative steps:
- Inference Step: Latent vectors are estimated using short-run Langevin dynamics. This gradient-based MCMC process is restricted to a small number of steps ($K$), making it fast but resulting in a biased distribution that has not yet converged to the target posterior.
- Correction Step: The core innovation involves treating the biased latent variables as a source distribution and the model's prior (typically a Gaussian) as the target. Optimal Transport (OT) is used to find a mapping that "pushes" the biased samples toward the prior, effectively correcting the inference error.
- Learning Step: The generator network's parameters are updated via back-propagation using these OT-corrected latent vectors.
To maintain efficiency, the authors utilize a semi-discrete OT algorithm and a "warm-start" strategy (persistent MCMC), ensuring that the computational cost of the OT correction remains manageable. A mixing hyperparameter, $\alpha$, is also introduced to smoothly transition the inferred distribution toward the prior, enhancing training stability.
Experimental Results
The model was evaluated on three standard benchmarks: MNIST (handwritten digits), SVHN (Street View House Numbers), and CelebA (human faces).
Reconstruction and Generation
The proposed method demonstrated significant improvements in reconstruction accuracy. On MNIST, it achieved a Mean Squared Error (MSE) of 0.0008, a substantial improvement over the VAE's 0.023. In terms of generative quality, measured by the Fréchet Inception Distance (FID), the model consistently outperformed VAEs. For the complex CelebA dataset, it reached an FID of 29.75, compared to 65.75 for the VAE.
Anomaly Detection
The model also proved highly effective at identifying out-of-distribution data. Using the joint log-likelihood as a decision function, it achieved a significantly higher Area Under the Precision-Recall Curve (AUPRC) on MNIST held-out digit tests compared to VAE and BiGAN-σ.
Discussion and Conclusion
While the method offers a compelling alternative to VAEs and traditional MCMC, it is sensitive to hyperparameters such as the Langevin step size and the number of MCMC steps. Additionally, while the OT optimization is efficient, it adds complexity to the training pipeline. Future work may focus on scaling this approach to higher-resolution images and further optimizing the OT correction step.
In conclusion, by bridging the gap between MCMC accuracy and variational speed through Optimal Transport, this work provides a robust framework for learning deep latent variable models that are both high-performing and mathematically grounded.
Summary updated