Sliced Wasserstein Generative Models

Jiqing Wu, Zhiwu Huang, Dinesh Acharya, Wen Li, Janine Thoma, Danda Pani Paudel, Luc Van Gool

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

The Wasserstein Distance (WD) is a powerful tool in generative modeling, providing smooth gradients that facilitate stable training of models like Generative Adversarial Networks (GANs) and Variational Auto-Encoders (VAEs). However, calculating WD directly in high-dimensional spaces is computationally intractable. To address this, researchers often turn to the Sliced Wasserstein Distance (SWD), which decomposes the high-dimensional problem into multiple one-dimensional projections.

Traditional SWD methods rely on a large number of random projections (often exceeding 10,000) to achieve a reliable estimate. This approach is computationally expensive and may fail to capture the most informative directions of the data distribution. This paper proposes a more efficient alternative: replacing thousands of random projections with a small set of learnable orthogonal projections.

Methodology

The core innovation lies in treating the projection directions as learnable parameters optimized during training. By using orthogonal matrices, the model can span the data space more effectively with fewer slices.

Conceptual overview of the Sliced Wasserstein Distance (SWD) process, projecting high-dimensional distributions into 1D marginals for easier matching.

The authors introduce two primary components:

  1. Primal SWD Blocks (SWAE): These blocks are integrated into Auto-Encoders, allowing them to map data to a target distribution (e.g., Gaussian) implicitly. This removes the need for complex regularizers like the KL-divergence term in VAEs.
  2. Dual SWD Blocks (SWGAN): Applied to the GAN discriminator, these blocks use non-linear layers to approximate optimal 1D functions, enhancing the discriminator's ability to distinguish distributions.

To maintain the orthogonality of the projection matrices, the authors utilize Stiefel manifold optimization. This technique uses a retraction operation (such as QR decomposition) to ensure that weight updates remain on the manifold of orthogonal matrices, preserving the mathematical properties required for efficient slicing.

Experimental Results

The proposed models, SWAE and SWGAN, were evaluated across a variety of datasets, ranging from toy distributions (Swiss Roll, 8/25 Gaussians) to high-resolution images (CelebA-HQ 1024x1024) and a new video dataset, TrailerFaces, containing ~200,000 clips from movie trailers.

Quantitative evaluation showing FID scores over training iterations, ablation studies on model parameters, and human preference scores.

Key Findings

  • Efficiency and Quality: A key insight is that just 4 learnable orthogonal projections can outperform 10,000 random projections. This suggests that the model successfully identifies the most critical geometric features of the data distribution.
  • Image Synthesis: On CIFAR-10, SWGAN achieved a Frechet Inception Distance (FID) of 17.0, significantly better than SNGAN (21.5) and WGAN-GP (19.0).
  • High-Resolution and Video: The model demonstrated superior performance in high-resolution image generation and unsupervised video synthesis. On the TrailerFaces dataset, the PG-SWGAN-3D model reached an FID of 404.1, compared to the baseline's 462.6.
  • Human Preference: Human studies consistently favored the outputs of SWD-based models over traditional GAN and VAE baselines, as shown in the preference scores in Figure 3.

Conclusion

By introducing learnable orthogonal projections, this work makes the Sliced Wasserstein Distance a more practical and powerful tool for generative modeling. The resulting SWAE and SWGAN architectures offer improved stability and state-of-the-art performance in high-dimensional synthesis tasks. Future work may involve integrating these SWD blocks into other generative frameworks and addressing the computational complexity of the retraction operation for extremely large latent spaces.

Summary updated

BibTeX
@inproceedings{wu2019sliced,
  author = {Jiqing Wu and Zhiwu Huang and Dinesh Acharya and Wen Li and Janine Thoma and Danda Pani Paudel and Luc Van Gool},
  title = {{Sliced Wasserstein Generative Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=LjEoCFDbUew},
}
Figure