Overview
This paper introduces Wasserstein Variational Inference (WVI), a framework that replaces the traditional Kullback-Leibler (KL) divergence used in Bayesian inference with a broader family of "c-Wasserstein" divergences. By leveraging differentiable Sinkhorn iterations, WVI enables stable, likelihood-free training for implicit distributions, effectively bridging the gap between optimal transport and variational autoencoders (VAEs).
The Problem with Standard Variational Inference
Standard Variational Inference (VI) relies heavily on the KL divergence. While mathematically convenient, the KL divergence has a major blind spot: it is often infinite or undefined when comparing distributions that do not share the same support. This frequently occurs in image generation, where data lives on a low-dimensional manifold within a high-dimensional space.
To circumvent this, researchers often turn to "implicit" models like Generative Adversarial Networks (GANs), which do not require an explicit density function. However, GANs rely on adversarial training, which is notoriously unstable and prone to mode collapse. The authors seek a middle ground: a method as flexible as implicit models but as stable and principled as traditional VI.
Methodology: The c-Wasserstein Framework
The core contribution of this work is the introduction of the c-Wasserstein family of divergences. This generalized framework allows the "cost" of transporting mass between distributions to depend on the distributions being compared.
Key technical components include:
- Unification: The authors prove that this new family encompasses both standard f-divergences (like KL) and the traditional Wasserstein distance as special cases.
- Sinkhorn Iterations: To make the optimal transport problem computationally tractable and differentiable, the authors employ entropic regularization. This allows them to compute gradients by backpropagating directly through the Sinkhorn algorithm, essentially treating a numerical solver as a layer in the neural network.
- Likelihood-Free Training: Because the method compares samples rather than evaluating densities, it can be used with implicit distributions where the likelihood is intractable or unknown.
- Bias Correction: A modified loss function is introduced to ensure the estimator remains unbiased when the model perfectly matches the data distribution.
Key Insights and the "1111" Model
- Geometry Matters: The authors suggest that the distance in the "latent space" (the hidden representation) should be "pulled back" from the distance in the "observable space" (the pixels). This ensures the latent geometry reflects meaningful differences in the data.
- Stability over Adversaries: Unlike GANs, which use a constantly shifting discriminator, WVI uses a fixed geometric cost function. This leads to much more stable training dynamics without delicate hyperparameter balancing.
- The "1111" Model: The authors tested a specific version of their autoencoder (dubbed "1111") that combines four different cost components: latent and observable metrics, alongside latent and observable residuals. This multi-faceted approach proved highly robust.
Experimental Results
The authors evaluated their approach on standard computer vision benchmarks, including MNIST, Fashion-MNIST, and Quick Sketches, comparing the proposed Wasserstein Variational Autoencoder against standard VAEs, Adversarially Learned Inference (ALI), and the original Wasserstein Autoencoder (WAE).
Quantitative Performance
On the MNIST dataset, the WVI model (specifically the 1111 variant) demonstrated superior performance across multiple metrics. It consistently outperformed both standard VAEs and ALI in minimizing latent space error, observable reconstruction error, and sample generation error.
Qualitative Performance
Qualitatively, the reconstructions and generated samples from WVI are sharper and more faithful to the original data compared to the often-blurry outputs of standard VAEs or the noisy outputs of ALI. The authors emphasize that WVI works "off-the-shelf" with minimal tuning, whereas competing methods often require significant architectural tricks to converge.
Limitations and Future Work
While WVI offers significant advantages, it comes with a few limitations:
- Computational Overhead: Although Sinkhorn iterations are faster than traditional optimal transport solvers, they still add computational cost to every training step compared to a simple KL-divergence calculation.
- Regularization Sensitivity: The Sinkhorn algorithm depends on a regularization parameter ($\epsilon$). If $\epsilon$ is too small, the algorithm becomes numerically unstable; if too large, the "Wasserstein-ness" of the distance is blurred.
- Scaling to High Dimensions: While successful on MNIST-sized images, scaling optimal transport to very high-resolution images remains a challenge due to the memory requirements of the cost matrix.
Future Direction: The authors suggest applying this framework to probabilistic programming, where the goal is to perform inference on complex, declarative models where traditional gradients are difficult to obtain.
Summary updated