Random Matrix Theory Proves that Deep Learning Representations of GAN-data Behave as Gaussian Mixtures

Mohamed El Amine Seddik, Cosme Louart, Mohamed Tamaazousti, Romain Couillet

TL;DR

This paper provides a theoretical proof that high-dimensional deep learning representations of GAN-generated data behave like simple Gaussian mixtures. By leveraging Random Matrix Theory, the authors show that for a wide range of standard classifiers, these complex representations can be fully characterized by just their first two statistical moments: mean and covariance.

What Problem Does This Paper Address?

Despite the massive success of deep learning (DL), the internal representations learned by these networks remain a "black box." A fundamental question in Representation Learning is: What makes a representation "good"? A common benchmark for a "good" representation is its ability to support simple, accurate models (like linear classifiers) on top of it.

However, theoretically characterizing these hidden representations is difficult because the distribution of raw data (like natural images) is unknown. Generative Adversarial Networks (GANs) offer a potential way forward because they generate complex data through known mathematical operations. This paper seeks to bridge the gap between generative models and representation theory by providing a rigorous statistical framework to describe GAN-data features.

Methods

The authors employ two primary mathematical tools: Concentration of Measure and Random Matrix Theory (RMT).

  1. Concentrated Random Vectors: The authors identify that GAN-generated data and their subsequent DL representations belong to the class of "concentrated random vectors." These vectors have the property of being stable under Lipschitz transformations (functions where the output doesn't change too much relative to the input). Since GAN generators and representation networks are essentially sequences of Lipschitz layers (like convolutions, ReLU, and pooling), the final features remain "concentrated."
  2. Spectral Normalization: To ensure the Lipschitz constant doesn't explode as networks get deeper or wider, the authors highlight the importance of spectral normalization. This technique constrains the largest singular value of weight matrices, effectively "taming" the transformation.
  3. Gram Matrix Analysis: The core of the proof involves analyzing the Gram matrix $G = \frac{1}{p}X^T X$ of the representations. Using RMT, they derive a "deterministic equivalent" for the resolvent of this matrix, proving that in the high-dimensional limit ($n, p \to \infty$), the spectral behavior of these complex features is identical to that of a Gaussian Mixture Model (GMM).
Figure 1: Deep learning representations of GAN-data are constructed by ap- plying successive Lipschitz operations to Gaussian vectors, therefore they are concentrated vectors by design, since Gaussian vectors are concentrated and thanks to the Lipschitz stability in Proposition 2.3.

Datasets

The theoretical findings were validated using:

  • BigGAN: A state-of-the-art generative model used to produce synthetic images across multiple classes (e.g., Mushroom, Pizza, Hamburger).
  • ImageNet: A standard large-scale dataset of real images used to test if the "Gaussian mixture" behavior extends beyond synthetic GAN data to real-world data.
  • Pre-trained Networks: Features were extracted using popular architectures including ResNet50, VGG16, and DenseNet201.

Key Insights and Ideas

  • The Universality Property: The most striking finding is that the specific, complex distribution of GAN data doesn't matter for linear classifiers in high dimensions. The representations behave "universally" as if they were drawn from a simple Gaussian mixture.
  • Sufficient Statistics: For a wide range of classifiers (like SVMs or spectral clustering), the only "information" that matters in a representation is its mean and covariance. Higher-order statistics become negligible in high dimensions.
  • Lipschitz Stability: The paper formalizes why deep networks are so good at preserving data structure: as long as the layers are Lipschitz-stable, the "concentration" of the data is preserved, making it mathematically tractable.
  • Spectral Normalization as a Controller: The authors provide a theoretical justification for spectral normalization, showing it is crucial for maintaining the concentration property that allows these representations to behave predictably.
Figure 2: Effect of spectral normalization (SN) on the largest singular value of weight matrices during training.

Key Results

  • Theoretical Match: The authors proved Theorem 3.3, which provides a deterministic equivalent for the Gram matrix of concentrated vectors. This allows researchers to predict the performance of classifiers without needing to know the exact data distribution.
  • Empirical Validation: Experiments showed that the eigenvalue spectrum and the leading 2D eigenspace of GAN-data representations (and real ImageNet data) almost perfectly match those of a GMM with the same means and covariances.
  • Real-World Extension: Although the theory was derived for GAN-data, the authors observed that real ImageNet images also follow this Gaussian mixture behavior when passed through deep networks, suggesting the theory has broad applicability to real-world machine learning.

Limitations and Future Work

  • High-Dimensional Assumption: The proofs rely on the "large $n, p$" regime. While modern DL often operates in this space, the results might be less accurate for smaller, low-dimensional models.
  • Linear/Spectral Focus: The analysis focuses on classifiers that rely on functionals of the Gram matrix (like linear SVMs or spectral clustering). It remains to be seen if this "Gaussianity" holds for highly non-linear classification heads.
  • Future Directions: The authors suggest this work opens the door to using Random Matrix Theory to systematically improve machine learning algorithms by anticipating their behavior on complex, high-dimensional datasets.

Summary updated

BibTeX
@inproceedings{seddik2020random,
  author = {Mohamed El Amine Seddik and Cosme Louart and Mohamed Tamaazousti and Romain Couillet},
  title = {{Random Matrix Theory Proves that Deep Learning Representations of GAN-data Behave as Gaussian Mixtures}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=EjHYJY2EAS},
}
Figure