Approximation Capabilities of Wasserstein Generative Adversarial Networks

Yihang Gao, Mingjie Zhou, Michael K. Ng

Abstract

In this paper, we study Wasserstein Generative Adversarial Networks (WGANs) using GroupSort neural networks as discriminators. We show that the error bound for the approximation of target distribution depends on both the width/depth (capacity) of generators and discriminators, as well as the number of samples in training. A quantified generalization bound is established for Wasserstein distance between the generated distribution and the target distribution. According to our theoretical results, WGANs have higher requirement for the capacity of discriminators than that of generators, which is consistent with some existing theories. More importantly, overly deep and wide (high capacity) generators may cause worse results (after training) than low capacity generators if discriminators are not strong enough. Numerical results on the synthetic data (swiss roll) and MNIST data confirm our theoretical results, and demonstrate that the performance by using GroupSort neural networks as discriminators is better than that of the original WGAN.

Introduction

Generative Adversarial Networks (GANs) are powerful generative models but remain notoriously difficult to analyze theoretically. A major hurdle in their stability is the choice of distance metric. Traditional GANs often minimize the Kullback–Leibler (KL) divergence, which fails when the generated and target distributions do not overlap perfectly—a common occurrence when data lies on low-dimensional manifolds.

Wasserstein GANs (WGANs) address this by using the Wasserstein distance, which requires the discriminator to be a 1-Lipschitz function. However, enforcing this constraint in practice (e.g., via weight clipping in ReLU networks) often cripples the discriminator's ability to learn. This paper investigates how the architecture (width and depth) of both the generator and discriminator, along with the number of training samples, dictates the final approximation error.

Methodology: GroupSort and Dual Bounds

The authors introduce two major theoretical and practical shifts to improve WGAN performance and analysis:

  1. GroupSort Discriminators: Instead of standard ReLU networks with weight clipping, the authors utilize GroupSort neural networks. GroupSort is a norm-preserving activation function that allows the network to approximate any 1-Lipschitz function much more efficiently than ReLU networks, which struggle to represent even simple functions like the absolute value when weights are constrained.
  2. Dual Generalization Bounds: The authors derive two types of error bounds for the Wasserstein-1 distance to provide a comprehensive view of the learning process.

Theoretical Framework

The core contribution of this work is the establishment of quantified error bounds that depend on the width ($W_g, W_f$) and depth ($D_g, D_f$) of the networks. Specifically, the error decays exponentially and polynomially with the discriminator's depth and width, respectively.

Comparison of generalization error upper bounds for different WGAN analysis methods.

As shown in the comparison above, the proposed analysis provides a dual-bound approach:

  • An Optimal Transport-based bound that accounts for the "curse of dimensionality" ($O(m^{-1/r} + n^{-1/d})$).
  • A Rademacher Complexity-based bound that utilizes the "pseudo-dimension" (Pdim) of the network architectures, scaling more favorably with sample size ($O(m^{-1/2} + n^{-1/2})$).

The Discriminator Capacity Bottleneck

A striking insight from this research is the "Strong Discriminator" requirement. WGANs have a much higher requirement for discriminator capacity than generator capacity. The discriminator acts as the "teacher"; if the teacher isn't sophisticated enough to distinguish subtle differences, a high-capacity generator (the "student") will simply learn to "fool" the weak teacher with low-quality data.

This leads to a paradox: if your discriminator is insufficiently strong, making your generator deeper or wider will actually increase the error. This explains why simply increasing model size in GANs often leads to training instability or poor results.

Numerical Validation

The theoretical results were validated using two primary benchmarks:

  • Swiss Roll: A synthetic 2D dataset where data points lie on a 1D manifold. The Wasserstein distance decreased as training samples increased from 1,000 to 6,000. Experiments confirmed that with a "weak" discriminator, the Wasserstein distance actually rose as the generator width increased beyond a certain point (e.g., width 40).
  • MNIST: Handwritten digit images reduced to 50 dimensions via PCA. The best results (lowest $Wass_1$ distance of 7.58) were achieved with a very high-capacity discriminator ($D_f=5, W_f=300$) relative to the generator, confirming that GroupSort NNs outperform ReLU NNs in maintaining expressive power under Lipschitz constraints.

Conclusion

This work provides a rigorous framework for understanding the interplay between network capacity and generalization in WGANs. By using GroupSort discriminators, the authors demonstrate that the performance bottleneck often lies in the discriminator's inability to guide the generator. Future work may involve refining these bounds further to find the "golden ratio" of generator-to-discriminator capacity and exploring the impact of various regularization techniques like spectral normalization.

Summary updated

BibTeX
@article{gao2021approximation,
  author = {Yihang Gao and Mingjie Zhou and Michael K. Ng},
  title = {{Approximation Capabilities of Wasserstein Generative Adversarial Networks}},
  journal = {SIAM J. Math. Data Sci.},
  year = {2021},
}
Figure