Rates of convergence for density estimation with generative adversarial networks

Denis Belomestny, Éric Moulines, Naumov Alexey, Nikita Puchkin, Sergey Samsonov · DOI

Abstract

In this work, we undertake a thorough study of the non-asymptotic properties of vanilla generative adversarial networks (GANs). We prove an oracle inequality for the Jensen-Shannon (JS) divergence between the underlying density $\mathsf{p}^*$ and the GAN estimate, achieving a significantly better statistical error term compared to previously known results. The advantage of our bound is particularly evident in nonparametric density estimation. We demonstrate that the JS divergence between the GAN estimate and $\mathsf{p}^*$ decays as fast as $(\log{n}/n)^{2\beta/(2\beta+ d)}$, where $n$ is the sample size and $\beta$ determines the smoothness of $\mathsf{p}^*$. This rate of convergence coincides, up to logarithmic factors, with the minimax optimal rate for the considered class of densities.

Introduction

Generative Adversarial Networks (GANs) have fundamentally changed the landscape of generative modeling, demonstrating an uncanny ability to sample from complex, high-dimensional distributions. However, the theoretical justification for this success has historically lagged behind empirical performance. Specifically, in the context of nonparametric density estimation—where the goal is to learn a distribution without assuming a rigid parametric form—previous theoretical bounds often suggested that GANs were statistically suboptimal. These earlier studies indicated that GANs might learn much slower than classical statistical methods.

This paper addresses this gap by providing a rigorous theoretical foundation for "vanilla" GANs. The authors establish that GANs are not merely powerful heuristics but are mathematically optimal estimators capable of reaching the theoretical speed limit of learning, known as the minimax rate.

Methodological Innovations

The researchers focused on the vanilla GAN objective, characterized by a minimax game between a generator and a discriminator using a cross-entropy (logarithmic) loss. To achieve sharper convergence rates, the study introduces several key technical insights:

1. The Quadratic Curvature of JS Divergence

A primary technical breakthrough is the discovery that the GAN loss function exhibits "quadratic behavior" near the optimum. The authors proved that the gap between the GAN objective and the Jensen-Shannon (JS) divergence behaves similarly to a squared error loss. This curvature allows for the application of powerful Bernstein-type concentration inequalities, which are essential for proving faster convergence than the standard $1/\sqrt{n}$ rates found in prior literature.

2. Specialized Neural Architectures

For the nonparametric analysis, the authors utilized sparse neural networks with Rectified Quadratic Unit (ReQU) activation functions, defined as $\sigma(x) = (x \vee 0)^2$. While ReLU is more common in practice, ReQU's increased smoothness is a critical mathematical requirement to maintain the differentiability necessary to achieve minimax optimal rates.

3. Sharp Oracle Inequalities

The study derives a new oracle inequality (Theorem 1) that bounds the error of the GAN estimate by the best possible approximation error within the model class, plus a statistical noise term. This noise term is significantly smaller than those in previous state-of-the-art results, such as those by Biau et al. (2020), which were often hampered by slower-decaying terms.

Key Results

Minimax Optimality

The central result of the paper (Theorem 2) establishes the convergence rate for a density with smoothness $\beta$ in $d$ dimensions. The JS divergence between the GAN estimate $\mathsf{p}_{\hat{w}}$ and the true density $\mathsf{p}^*$ decays at the following rate:

$$\text{JS}(\mathsf{p}_{\hat{w}}, \mathsf{p}^*) \lesssim \left( \frac{\log n}{n} \right)^{\frac{2\beta}{2\beta + d}}$$

This rate matches the known lower bounds for any possible estimator in this density class. Consequently, GANs are shown to be (up to logarithmic factors) as efficient as any algorithm can theoretically be.

Overcoming Suboptimality

By proving a matching lower bound in Theorem 3, the authors confirm that no other estimation method can fundamentally outperform the GAN in this setting. This result effectively reconciles GAN theory with the empirical reality of their high performance, showing that they perfectly adapt to the smoothness of the target distribution by leveraging the expressive power of deep networks.

Discussion and Limitations

While this work provides a landmark theoretical result, it focuses on the properties of the global solution to the GAN optimization problem. In practice, GAN training involves non-convex optimization via Stochastic Gradient Descent (SGD), which may encounter local optima or mode collapse—phenomena not covered by this global analysis.

Furthermore, the optimal rates were derived using specific ReQU activations and sparsity constraints. Whether these optimal rates hold for standard ReLU networks or more complex architectures remains an open question for future research. Finally, while the study focuses on vanilla GANs, the authors suggest that this "fast rate" analysis framework could be extended to other popular variants, such as Wasserstein GANs (WGANs) or f-GANs, potentially providing a unified statistical theory for the entire GAN family.

Summary updated

Abstract

In this work we undertake a thorough study of the non-asymptotic properties of the vanilla generative adversarial networks (GANs). We prove an oracle inequality for the Jensen-Shannon (JS) divergence between the underlying density $\mathsf{p}^*$ and the GAN estimate with a significantly better statistical error term compared to the previously known results. The advantage of our bound becomes clear in application to nonparametric density estimation. We show that the JS-divergence between the GAN estimate and $\mathsf{p}^*$ decays as fast as $(\log{n}/n)^{2β/(2β+ d)}$, where $n$ is the sample size and $β$ determines the smoothness of $\mathsf{p}^*$. This rate of convergence coincides (up to logarithmic factors) with minimax optimal for the considered class of densities.
BibTeX
@article{belomestny2025rates,
  author = {Denis Belomestny and Éric Moulines and Naumov Alexey and Nikita Puchkin and Sergey Samsonov},
  title = {{Rates of convergence for density estimation with generative adversarial networks}},
  journal = {JMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=yx5g5xpIFi},
}
Figure