NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Functional Space Analysis of Local GAN Convergence

Valentin Khrulkov, Artem Babenko, Ivan Oseledets

TL;DR

This paper shifts the analysis of Generative Adversarial Network (GAN) convergence from the specific parameters of neural networks to the underlying functional space, modeling training dynamics as a system of partial differential equations (PDEs). By linking convergence speed to the Poincaré constant—a measure of a probability distribution's "connectivity"—the authors provide a rigorous theoretical foundation for why techniques like gradient penalty and data augmentation work, offering a practical recipe to optimize these strategies before training even begins.

What Problem Does This Paper Address?

Training GANs is famously difficult. The interplay between the generator and discriminator often leads to oscillatory behavior or extremely slow convergence. While researchers have developed numerous "tricks" to stabilize training—such as gradient penalties, spectral normalization, and specific data augmentations—the theoretical understanding of why these work has lagged behind.

Existing theories typically analyze the Jacobian of the training dynamics in parameter space (the weights of the neural networks). However, this approach makes it hard to see how the actual properties of the target data distribution (e.g., whether it has disconnected clusters) affect training. This paper addresses this gap by analyzing GANs in functional space, treating the discriminator and generator as functions rather than just sets of weights.

Methods

The authors propose a framework called the linearized GAN (lGAN). Their approach involves:

  1. Functional Linearization: They perform a second-order Taylor expansion of the GAN objective near the Nash equilibrium in functional space. This results in a saddle-point problem that approximates local training dynamics.
  2. PDE Formulation: They represent the gradient descent-ascent flow of this linearized objective as a system of PDEs.
  3. Spectral Analysis: The convergence of these PDEs is determined by the eigenvalues of a weighted Laplace operator ($\Delta_\mu$) associated with the target data distribution $\mu$.
  4. The Poincaré Constant ($\xi_{min}$): They identify the smallest non-zero eigenvalue of this operator as the critical factor. Intuitively, this constant represents the "connectivity" of the data distribution. A low $\xi_{min}$ implies a distribution with disconnected modes (like separate clusters of images), which the theory predicts will lead to slower GAN convergence.
  5. Optimization Recipe: The authors derive explicit formulas to choose optimal hyperparameters for the loss function and gradient penalty ($\gamma$) based on the estimated $\xi_{min}$ of a dataset, aiming to eliminate oscillations and maximize the convergence rate.

Datasets

The authors validate their theory using:

  • Synthetic Data: A mixture of two univariate Gaussians where the separation distance ($D$) can be varied to manually control the Poincaré constant.
  • CIFAR-10: A standard image benchmark used to test the effects of various data augmentations and instance selection techniques.

Key Insights and Ideas

  • Connectivity Matters: The "aha moment" is the formal link between the geometry of the data distribution and GAN stability. If a dataset is "disconnected" (low $\xi_{min}$), the GAN will naturally struggle to converge.
  • Augmentation as Bridge-Building: Data augmentation (like zooming or translating) effectively "fills the holes" between data points. In functional space, this increases the Poincaré constant, providing a theoretical explanation for why spatial augmentations are so effective at stabilizing GANs.
  • Visual vs. Spatial Augmentation: The theory correctly predicts that spatial augmentations (translation, zooming) generally improve connectivity/convergence, whereas visual augmentations (color shifts, brightness) often decrease it or have negligible positive effects.
Various types of augmentations commonly used in GAN training.
  • Kernel Interpretation: The "kernel" (zero-eigenvalue space) of their differential operator corresponds to "divergence-free" transformations—changes to the generator that don't actually change the resulting data density, and thus don't affect the GAN objective.

Key Results

  • Predicting Convergence: In synthetic tests, the authors showed that as the separation $D$ between Gaussian modes increases, $\xi_{min}$ drops sharply, and GAN convergence becomes significantly more oscillatory and slow.
  • Optimal Tuning: By using their derived formulas to set the gradient penalty $\gamma$ based on $\xi_{min}$, the authors achieved faster and more stable convergence on synthetic tasks compared to standard baselines like WGAN or LSGAN.
Figure 1. Numerical experiments with GAN convergence on a mix- ture of two univariate Gaussians. (Top) Estimated value of ξmin vs the mixture separating parameter D. (Bottom) Convergence plots of GANs with different loss functions and regularization strengths. Methods with parameters selected optimally according to theory present better convergence.
  • CIFAR-10 Correlation: The authors found a strong negative correlation between the estimated $\xi_{min}$ of an augmented dataset and the resulting FID score (a measure of GAN quality). Augmentations that increased $\xi_{min}$ consistently led to better (lower) FID scores.
Correlation between the Poincaré constant (top) and FID scores (bottom) for various CIFAR-10 augmentations.

Limitations and Future Work

  • Local Analysis: The theory is based on linearization near the Nash equilibrium. It describes how GANs behave once they are "close" to the solution but doesn't fully account for the global, non-linear dynamics of early-stage training.
  • Discretization Effects: While the analysis is in infinite-dimensional functional space, real GANs use finite-parameter neural networks. The authors note that different network architectures act as different "spatial discretizations" of their PDEs, and studying which architectures best approximate the continuous spectrum is a promising future direction.
  • Integration Schemes: The authors point out that the GAN training system is essentially hyperbolic, which explains why simple Euler integration (standard SGD) is often unstable and why more advanced ODE solvers (like Heun's method) are beneficial. Further research into specialized time-discretization schemes for these specific PDEs is suggested.

Summary updated

BibTeX
@inproceedings{khrulkov2021functional,
  author = {Valentin Khrulkov and Artem Babenko and Ivan Oseledets},
  title = {{Functional Space Analysis of Local GAN Convergence}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure