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

This paper provides a rigorous theoretical bridge between the "black box" of deep learning representations and the well-established field of Random Matrix Theory (RMT).

TL;DR

The authors prove that deep learning representations of GAN-generated data behave like "concentrated random vectors." Consequently, in high-dimensional spaces, these complex features are statistically indistinguishable from simple Gaussian Mixture Models (GMMs). This equivalence allows researchers to use Random Matrix Theory to predict and analyze the performance of standard classifiers on deep features.

What Problem Does This Paper Address?

Despite the massive success of deep neural networks, characterizing the statistical properties of their hidden representations remains a significant challenge. We know that deep networks learn "good" features, but quantifying why they are good or how they will behave with different classifiers is often done through trial and error.

The authors tackle the lack of a statistical model for these representations. While real-world data distributions are unknown and complex, Generative Adversarial Networks (GANs) provide a structured way to produce data. By understanding the math behind GAN-generated data, the authors aim to provide a theoretical framework that explains the behavior of deep learning features in high-dimensional regimes.

Methods

The paper relies on two primary mathematical pillars:

  1. Concentration of Measure: The authors define GAN-generated data as a series of Lipschitz-continuous operations (like convolutions, ReLUs, and pooling) applied to a random Gaussian vector.
The pipeline of generating concentrated vectors via Lipschitz operations in GANs and Representation Networks.

They show that these operations preserve a property called "q-exponential concentration." Essentially, these "concentrated random vectors" behave predictably in high dimensions.

  1. Random Matrix Theory (RMT): The authors analyze the Gram matrix ($G = \frac{1}{p}XX^\top$) of these representations. They derive a "deterministic equivalent" for the resolvent of the Gram matrix. This allows them to prove that the spectral properties (eigenvalues and eigenvectors) of the representations depend only on their first two statistical moments: the mean and the covariance.

Crucially, the authors highlight the importance of Spectral Normalization in GANs. They prove that this common training technique keeps the Lipschitz constant of the network bounded, ensuring that the data remains "concentrated" and the theory holds true.

Datasets

The authors validated their theoretical findings using:

  • BigGAN: To generate high-fidelity synthetic images.
  • ImageNet: Used both as a source of real images for comparison and as the pre-training dataset for the representation networks.
  • Representation Networks: They tested across several popular architectures, including ResNet (18, 50, 101), VGG (16, 19), DenseNet (161, 201), AlexNet, and GoogLeNet.
  • Classes: Experiments focused on subsets of ImageNet classes, such as "mushroom, pizza, hamburger" ($k=3$) and a larger 6-class set including "strawberry, coffee, daisy."

Key Insights and Ideas

  • The Universality Property: The most striking insight is that for a wide range of classifiers, the specific distribution of the data doesn't matter as much as its mean and covariance. As long as the data is "concentrated," it behaves like a Gaussian mixture in high dimensions.
  • Lipschitz Stability is Key: The paper explains why GAN data is mathematically tractable. Because GANs are built from Lipschitz-continuous layers, they transform simple Gaussian noise into complex but still "concentrated" vectors.
  • Theoretical Validation of Linear Probes: It is common practice to evaluate deep features using a linear SVM or "linear probe." This paper provides the mathematical justification for why this works: the deep layers effectively "Gaussianize" the data, making linear separation on the principal components an optimal or near-optimal strategy.

Key Results

  • Spectral Matching: The authors show that the eigenvalue distribution of the Gram matrix for actual CNN representations (of both GAN and real images) almost perfectly matches the theoretical distribution of a GMM with the same moments.
Eigenvalue distributions of representations from GAN and real images closely match those of equivalent Gaussian mixtures.
  • Performance Prediction: In experiments using a linear SVM, the training and test accuracy on real/GAN representations were virtually identical to the accuracy achieved on synthetic Gaussian data generated with the same mean and covariance.
  • Real-World Extension: Although the proof is centered on GAN-data, the empirical results show that real ImageNet images also follow this concentrated vector behavior, suggesting the theory has broad applicability to natural images.

Limitations and Future Work

  • Asymptotic Limits: The proofs rely on the "large $n, p$ regime" (where the number of samples and dimensions both go to infinity). While this fits modern deep learning, the behavior might differ in low-dimensional settings.
  • Linearity Constraint: The current work focuses on linear classifiers and functionals of the Gram matrix. While the last layer of most networks is linear, the theory doesn't yet fully account for the behavior of non-linear "head" networks often used in self-supervised learning.
  • Future Directions: The authors suggest this framework could lead to a more systematic way to improve machine learning algorithms by anticipating their behavior on complex datasets through RMT-based analysis.

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