The Gaussian equivalence of generative models for learning with shallow neural networks

Sebastian Goldt, Bruno Loureiro, Galen Reeves, Florent Krzakala, Marc Mézard, Lenka Zdeborová

Abstract

Understanding the impact of data structure on the computational tractability of learning is a key challenge for the theory of neural networks. Many theoretical works do not explicitly model training data structure, often assuming independent and identically distributed (i.i.d.) inputs. This paper introduces a "Gaussian Equivalence" principle, demonstrating that the performance of shallow neural networks trained on complex, structured data (like images from a GAN) can be perfectly predicted using much simpler Gaussian statistics. It bridges the gap between clean mathematical theory and the messy reality of deep learning.

Introduction

Most theoretical understanding of neural networks is built on "toy" data—inputs that are either completely independent or follow simple probability distributions. However, real-world data, such as images or speech, is highly structured and correlated. When researchers apply classical theories to these realistic datasets, the mathematical models often fail to capture the nuances of learning.

This work addresses a fundamental question: How does the internal structure of data affect the way a neural network learns? To answer this, the authors move beyond simple i.i.d. inputs and study networks trained on data generated by pre-trained generative models, such as GANs or Variational Autoencoders. This approach allows for modeling realistic data structure while maintaining mathematical tractability.

The Deep Hidden Manifold Model

The authors propose the Deep Hidden Manifold Model, where inputs $x$ are modeled as the output of a deep generative network $\mathcal{G}(c)$, with $c$ being a latent Gaussian vector. This setup is analyzed within a Teacher-Student framework: a "teacher" network generates labels $y$ based on the latent variables $c$, while a "student" network attempts to learn the mapping from the generated inputs $x$ to these labels $y$.

Schematic of the Deep Hidden Manifold Model and the Teacher-Student framework.

The Gaussian Equivalence Property (GEP)

The core contribution is the Gaussian Equivalence Property (GEP). It posits that for certain classes of models, the high-dimensional, non-linear distribution of the data can be replaced by a Gaussian distribution with the same first and second moments without altering the resulting training or test errors.

Key analytical tools used include:

  • Integro-differential Equations (ODEs): Derived to track the evolution of a two-layer network during one-pass Stochastic Gradient Descent (SGD).
  • Replica Analysis: A technique from statistical physics used to describe the performance of full-batch kernel methods and random features.
  • Gaussian Equivalence Theorem (GET): A rigorous mathematical proof (Theorem 2) establishing conditions for this equivalence in single-layer generators.

Key Insights and Results

The research reveals that a student network's performance depends primarily on the joint distribution of "pre-activations" (inputs to the non-linearities). In high dimensions, these pre-activations behave like Gaussian variables, even if the raw input data is highly complex. Consequently, learning dynamics are captured by two primary matrices: the input-input covariance and the input-latent covariance.

Empirical validation was conducted using generative models pre-trained on CIFAR-10 and CIFAR-100, including DCGAN and realNVP (a normalizing flow model with 6.3 million parameters). The results showed:

  • Theoretical Match: Analytical ODEs matched experimental simulations with near-perfect accuracy across various test error plots.
  • Universality: The equivalence holds even for deep generators, suggesting GEP is a universal feature of high-dimensional learning.
  • Kernel Prediction: The theory successfully predicted generalization error for random feature regression on GAN-generated data.

Limitations and Future Work

While the generators can be deep, the student networks analyzed are restricted to shallow (two-layer) architectures. Extending this theory to deep student networks remains a significant challenge. Additionally, while Theorem 2 proves equivalence for single-layer generators, its application to deep generators like DCGAN remains a conjecture supported by numerical evidence. Future research will focus on characterizing the impact of "dominant directions" in data covariance, which may require refinements to the current theory.

Summary updated

BibTeX
@inproceedings{goldt2021gaussian,
  author = {Sebastian Goldt and Bruno Loureiro and Galen Reeves and Florent Krzakala and Marc Mézard and Lenka Zdeborová},
  title = {{The Gaussian equivalence of generative models for learning with shallow neural networks}},
  booktitle = {MSML},
  year = {2021},
  url = {https://openreview.net/forum?id=ZQQfouqNF8},
}
Figure