Abstract
In generative modeling, the Wasserstein distance (WD) has emerged as a useful metric to measure the discrepancy between generated and real data distributions. Unfortunately, it is challenging to approximate the WD of high-dimensional distributions. In contrast, the sliced Wasserstein distance (SWD) factorizes high-dimensional distributions into their multiple one-dimensional marginal distributions and is thus easier to approximate. In this paper, we introduce novel approximations of the primal and dual SWD. Instead of using a large number of random projections, as it is done by conventional SWD approximation methods, we propose to approximate SWDs with a small number of parameterized orthogonal projections in an end-to-end deep learning fashion. As concrete applications of our SWD approximations, we design two types of differentiable SWD blocks to equip modern generative frameworks—Auto-Encoders (AE) and Generative Adversarial Networks (GAN). In the experiments, we not only show the superiority of the proposed generative models on standard image synthesis benchmarks, but also demonstrate the state-of-the-art performance on challenging high resolution image and video generation in an unsupervised manner.
Introduction
Generative modeling aims to align the distribution of synthesized data with that of real-world data. The Wasserstein Distance (WD) is a favored metric for this task due to its ability to provide smooth gradients even when distributions are disjoint. However, computing WD in high-dimensional spaces is computationally prohibitive. The "primal" form is intractable, while the "dual" form requires enforcing a strict k-Lipschitz constraint on the discriminator, a task that remains difficult in practice.
The Sliced Wasserstein Distance (SWD) provides a solution by decomposing high-dimensional problems into multiple 1D problems via projections. While 1D Wasserstein distance has a simple closed-form solution, traditional methods rely on a vast number of random projections to achieve accuracy. This research introduces a more efficient approach by utilizing a small set of learned orthogonal projections.
Methods
The core innovation lies in "learnable" SWD. Rather than using thousands of fixed random directions, the authors employ a small number of parameterized orthogonal projections.
- Orthogonal SWD Blocks: These differentiable layers learn optimal projection directions. To maintain orthogonality—which ensures the space is spanned efficiently—weights are optimized on Stiefel manifolds using non-Euclidean optimization.
- Sliced Wasserstein Auto-Encoder (SWAE): By integrating primal SWD blocks into an encoder, the model matches the latent distribution to a prior (e.g., Gaussian) without requiring complex regularizers like MMD or adversarial losses.
- Sliced Wasserstein GAN (SWGAN): Dual SWD blocks are applied to the discriminator, allowing for more accurate estimation of the dual Wasserstein distance through non-linear neural layers solving 1D optimal transport.
- Progressive Training: For high-resolution synthesis, the SWD approach is combined with a progressive growing scheme, gradually increasing image resolution during training.
Experimental Setup
The models were evaluated across diverse benchmarks:
- Toy Datasets: Swiss Roll, 8 Gaussians, and 25 Gaussians for distribution matching visualization.
- Image Benchmarks: CIFAR-10, CelebA, and LSUN (bedrooms/churches).
- High-Resolution: CelebA-HQ (1024x1024).
- Video: TrailerFaces, a new dataset of ~200,000 facial expression clips from movie trailers.
Key Results and Discussion
The proposed methods demonstrate significant improvements in both training stability and synthesis quality.
- Quantitative Performance: On CIFAR-10, SWGAN achieved an FID of 17.4, surpassing SNGAN (17.5) and other competitive unsupervised models.
- High-Resolution and Human Evaluation: In CelebA-HQ tasks, PG-SWGAN outperformed standard PG-WGAN. MTurk user studies consistently favored SWAE and SWGAN over traditional Wasserstein counterparts like VAE, WAE-MMD, and WGAN-GP.
- Stability and Efficiency: Learning a few orthogonal projections proved more effective than using many random ones. The 1D Wasserstein solution provides stable gradients, mitigating common GAN issues like mode collapse.
Conclusion and Future Work
While SWAE significantly improves upon standard VAEs, a gap remains between Auto-Encoder and GAN performance in high-resolution synthesis. Additionally, the manifold optimization step introduces complexity relative to the latent dimension, though this is manageable for typical latent spaces. Future research will focus on closing the performance gap for high-resolution tasks and further optimizing computational efficiency.
Summary updated