Sliced Wasserstein Generative Models

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

TL;DR

This paper introduces novel, efficient approximations for the Sliced Wasserstein Distance (SWD) using parameterized orthogonal projections within deep learning frameworks. These approximations enable the development of Sliced Wasserstein Auto-Encoders (SWAE) and Sliced Wasserstein GANs (SWGAN), achieving state-of-the-art results in unsupervised image and video generation.

What Problem Does This Paper Address?

Generative models aim to learn a data distribution and generate new samples from it. The Wasserstein distance (WD) is a powerful metric for measuring the difference between two probability distributions, making it ideal for evaluating generative models. However, computing the WD for high-dimensional data, like images, is computationally intractable. While the Sliced Wasserstein Distance (SWD) offers a more tractable alternative by decomposing the problem into simpler one-dimensional estimations, existing methods for approximating SWD require a large number of random projections, limiting their practical application and full potential in generative modeling.

Methods

The core contribution of this paper is the development of novel, efficient approximations for both the primal and dual SWD. Instead of relying on numerous random projections, the authors propose using a small set of parameterized orthogonal projections. These projections are learned end-to-end within deep neural networks.

  • Primal SWD Approximation: They introduce differentiable "SWD blocks" that use parameterized orthogonal matrices to iteratively transform latent distributions. This approach effectively approximates the primal SWD without needing a large number of projections, making it suitable for Auto-Encoders (AEs).
  • Dual SWD Approximation: Similarly, they propose parameterized orthogonal projections for approximating the dual SWD. This is integrated into the discriminator of Generative Adversarial Networks (GANs).
  • Orthogonality Constraint: To ensure the projection matrices remain orthogonal during training, they employ a non-Euclidean optimization algorithm on Stiefel manifolds.
  • SWAE and SWGAN: These novel SWD approximations are then used to build two new generative models:
  • Sliced Wasserstein Auto-Encoder (SWAE): By stacking primal SWD blocks on top of a standard encoder, SWAE implicitly matches the encoder's output distribution to a prior distribution (e.g., Gaussian) without requiring explicit regularization terms.
  • Sliced Wasserstein GAN (SWGAN): The dual SWD approximation is incorporated into the discriminator of a GAN, allowing for stable training and improved generation without the need for complex k-Lipschitz constraints.

Datasets

The paper evaluates their models on several standard datasets:

  • Toy Datasets: Swiss Roll, 8 Gaussians, and 25 Gaussians.
  • Standard Benchmarks: CIFAR-10, CelebA, and LSUN.
  • High Resolution Datasets: CelebA-HQ and LSUN (for high-resolution image generation).
  • New Benchmark: A custom facial expression video dataset named "TrailerFaces," derived from Hollywood movie trailers.

Key Insights and Ideas

  • Efficiency through Orthogonal Projections: The key insight is that parameterized orthogonal projections are more efficient than random projections for spanning a space and approximating SWD. This allows for a much smaller number of learned projections to achieve good results.
  • End-to-End Learnable SWD: By making SWD approximations differentiable and learnable within deep networks, the authors unlock the full potential of SWD for generative modeling, enabling seamless integration into existing AE and GAN architectures.
  • Implicit Prior Matching in SWAE: SWAE elegantly handles the prior matching requirement of AEs by using learned SWD blocks, simplifying the model architecture and training process.
  • Stable GAN Training with Dual SWD: The dual SWD approximation provides a stable alternative to traditional GAN training methods that struggle with k-Lipschitz constraints in high dimensions.
  • State-of-the-Art Performance: The paper demonstrates that their SWD-based models achieve competitive or superior results compared to existing methods, particularly in challenging tasks like high-resolution image and video generation.

Key Results

  • Toy Datasets: SWAE and SWGAN show superior visual results and lower FID scores compared to WD-based models (WAE, CTGAN) and other SWD-based methods (SWG).
  • Standard Benchmarks: SWAE outperforms VAE and WAE-MMD, and is competitive with AAE (WAE-GAN) while offering more stable training. SWGAN achieves state-of-the-art FID scores on CIFAR-10, CelebA, and LSUN, outperforming WGAN-GP, SNGAN, CTGAN, and SWG.
  • High Resolution Image Generation: PG-SWGAN (their progressive growing GAN with SWGAN objective) outperforms PG-WGAN on CelebA-HQ and LSUN datasets.
  • High Resolution Video Generation: PG-SWGAN-3D shows improved qualitative and quantitative results on the TrailerFaces dataset compared to PG-WGAN-3D.
  • Efficiency: SWAE with a single SWD block is shown to be more effective than AE+100 IDT blocks. SWGAN with only 4 dual SWD blocks (128 orthogonal vectors) is more successful than SWG using 10000 random unit vectors.

Limitations and Future Work

  • AE Extension to High Resolution: The authors acknowledge that extending AE-based models like SWAE to high-resolution image and video synthesis is non-trivial and remains a challenge. They plan to address this performance gap in future research.
  • Computational Cost of Retraction: While efficient, the retraction operation for maintaining orthogonality on Stiefel manifolds adds computational complexity, especially for high-dimensional latent spaces. The paper mitigates this by encoding data into lower-dimensional latent codes.
  • Future Work: The paper suggests that their SWD approximations can be applied to other generative models, such as enhancing AE-based models with adversarial training or regularizing GANs with primal SWD. They also mention the possibility of using sorting algorithms to incorporate primal SWD loss into GANs.

Summary updated

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.
BibTeX
@inproceedings{wu2019sliced,
  author = {Jiqing Wu and Zhiwu Huang and U. 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