Optimal precision for GANs

Thibaut Issenhuth, Ugo Tanielian, Jérémie Mary, David PicardarXiv 2022

Abstract

Generative Adversarial Networks (GANs) often suffer from precision loss, generating "bridge" samples that lie between distinct data modes. This occurs because continuous models must "fill the gaps" when mapping a connected latent prior to a disconnected multi-modal target. This paper demonstrates that the optimal latent space organization for multi-modal data follows a simplicial cluster geometry. By introducing a truncation method based on this geometric structure, the authors significantly improve generative precision and latent space organization across various datasets, including MNIST and CIFAR-10.

Introduction

Most deep generative models, such as GANs and Variational Autoencoders (VAEs), are "push-forward" models. They transform a simple probability distribution—typically a Gaussian "blob" in a latent space—into complex data distributions using a continuous neural network. However, this continuity presents a fundamental challenge: if the target data consists of disconnected groups (e.g., distinct clusters of digits or object categories), the network is mathematically forced to generate samples in the "no-man's land" between these clusters. These "bridge" samples result in a loss of precision, manifesting as unrealistic or blurry images.

Theoretical Framework and Methods

The researchers bridge the gap between deep learning and geometric measure theory by leveraging the recently proven "multi-bubble conjecture" (Milman & Neeman, 2022). This theory identifies the simplicial cluster—a Voronoi diagram created from equidistant points—as the shape that minimizes the boundary area between multiple regions in a Gaussian space.

Simplicial cluster geometry (left) and its application to partitioning the MNIST latent space (right).

Simplicial Cluster Truncation

Based on this theory, the authors propose a novel rejection sampling method called Simplicial Truncation. During training and inference, they define $N$ equidistant points in the latent space. They only accept latent vectors $z$ that are sufficiently "close" to one of these points, using a softmax-based threshold to define the boundaries. To ensure the generator effectively utilizes these clusters, a Mutual Information Loss term is added, maximizing the information between the chosen latent cluster and the generated output.

Experimental Results

The authors validated their findings across standard benchmarks, including MNIST, CIFAR-10, CIFAR-100, and STL-10. They used pre-trained classifiers as "oracles" to evaluate the mode-consistency of generated samples.

Key Insights

  • Geometry and Precision: The study found a staggering 0.98 correlation between a GAN's precision and the linear separability and convexity of its latent space. High-performing GANs naturally tend toward a collection of clean, flat-sided "rooms" (polytopes) for each category.
  • Dimensionality Plateau: Theory suggests that for $m$ data modes, a latent dimension $d \geq m-1$ is required for optimal precision. Experimental results confirmed this, showing diminishing returns once this threshold is reached.
Visualization of the high-density ridges in the latent space that correspond to the boundaries between modes.

Performance Gains

The proposed simplicial truncation consistently outperformed standard GANs and other techniques like Jacobian-based truncation (JBT). On CIFAR-10, the simplicial method achieved a Density score of 96.4, a significant jump from the TransGAN baseline of 79.3. Furthermore, the accuracy of a linear model predicting classes from latent vectors reached 90% on MNIST, confirming the emergence of a highly structured geometric latent space.

Conclusion and Limitations

This work identifies the simplicial cluster as an optimal configuration for latent space partitioning in push-forward models. While the method significantly boosts precision, the authors note that the uniqueness of this optimal configuration remains unproven. Additionally, the current approach requires an estimate of the number of modes $m$ in the data, which may be ambiguous for complex natural image datasets. Future research may focus on adaptive methods for dynamic cluster discovery and extending these geometric insights to non-push-forward models like Diffusion models.

Summary updated

BibTeX
@misc{issenhuth2022optimal,
  author = {Thibaut Issenhuth and Ugo Tanielian and Jérémie Mary and David Picard},
  title = {{Optimal precision for GANs}},
  year = {2022},
  url = {https://openreview.net/forum?id=HbTsJRaphE},
}
Figure