Abstract
Wasserstein Autoencoders (WAEs) are valued for their simplicity in generative modeling but face challenges in conditional sampling—generating specific data $X_1$ given an observation $X_2$. This paper introduces Paired Wasserstein Autoencoders, a framework that couples two autoencoders through a shared Gaussian latent space. By enforcing independence in the latent dimensions, the model facilitates robust conditional generation and uncertainty quantification for tasks like denoising and inpainting.
Introduction
In high-stakes fields such as medical imaging and scientific computing, simple reconstruction is often insufficient. Practitioners require uncertainty quantification to understand how confident a model is in its predictions. While conditional generative models like GANs or Diffusion models are widely used, adapting the mathematically elegant Wasserstein Autoencoder to the conditional case ($P(X_1 | X_2)$) has been theoretically difficult.
The primary challenge is that even if the unconditional latent distribution is regularized to be Gaussian, there is no guarantee that the conditional latent distribution remains well-behaved. Without this theoretical "anchor," sampling becomes unreliable. This work bridges the gap by providing a grounded method for conditional sampling using WAEs.
The Paired WAE Framework
The proposed architecture consists of two encoders ($E_1, E_2$) and two decoders ($D_1, D_2$) linked by a structured latent space.
Shared Latent Space and the Independence Trick
The latent variable $Z$ is partitioned into three components: $Z = (Z_1, Z_2, Z_3)$.
- Encoder 1 maps data $X_1$ to $(Z_1, Z_2)$.
- Encoder 2 maps data $X_2$ to $(Z_2, Z_3)$.
- $Z_2$ represents the shared information between the two domains.
By regularizing the joint latent space to follow an isotropic Gaussian distribution, the authors leverage the property that components of a multivariate Gaussian are independent. This allows for seamless conditional sampling: to generate $X_1$ from $x_2$, the model encodes $x_2$ to find $z_2$, samples a random $Z_1$ from a standard Gaussian, and passes the pair $(Z_1, z_2)$ through Decoder 1.
Training Objective
The training loss combines standard reconstruction errors with a regularization term (using Maximum Mean Discrepancy or Wasserstein-2 distance) to enforce the Gaussian structure. Additionally, a task-specific "data fidelity" term ensures reconstructions respect the underlying physics of the problem, such as noise models or inpainting masks.
Experimental Results
The researchers evaluated the model on MNIST for inverse problems and CelebA for image translation.
Uncertainty Visualization
As shown in the MNIST experiments, the model produces a distribution of possible results rather than a single point estimate. By sampling $Z_1$ multiple times, the authors generate a range of valid reconstructions. The pixel-wise standard deviation (SD) maps highlight areas of high uncertainty—for instance, the edges of a reconstructed '4' that could potentially be a '9'. In the inpainting task, while the mean estimate provides a clean digit, individual samples demonstrate the variety of ways to logically complete a partial image.
Image Translation
On the CelebA dataset, the model successfully performed unsupervised image translation (e.g., adding a smile or changing gender). The authors noted that the model approximates the Monge map—the most efficient transformation between two probability distributions under optimal transport theory—ensuring that the identity of the subject is largely preserved during the translation.
Discussion and Limitations
While Paired WAEs provide a firm mathematical footing for conditional sampling, they share common limitations with standard autoencoders. The latent "bottleneck" can lead to blurry reconstructions compared to state-of-the-art Diffusion models. Future work may involve moving toward hierarchical or overcomplete autoencoder architectures to improve image sharpness. Additionally, while this work establishes a bound for the unconditional case, a rigorous theoretical bound for the estimated conditional distribution remains an open research challenge.
Summary updated