Asymptotic Analysis of Two-Layer Neural Networks after One Gradient Step under Gaussian Mixtures Data with Structure

Samet Demir, Zafer Dogan

Abstract

Theoretical understanding of neural network training often relies on the assumption of isotropic data distributions, which fails to capture the low-dimensional structures inherent in real-world datasets. This paper investigates the "feature learning" regime of two-layer neural networks by analyzing the first gradient step under a structured Gaussian Mixture Model. We establish an asymptotic equivalence between these nonlinear networks and a simpler "Hermite model"—a finite-degree polynomial whose order is determined by a combination of the learning rate and data covariance. Our results demonstrate that neural networks effectively exploit data structure to improve generalization, even after a single update.

Introduction

In the quest to understand why deep learning works, researchers often simplify the problem by assuming data is drawn from a perfectly uniform, spherical (isotropic) distribution. While mathematically convenient, this assumption ignores the reality that data typically resides on low-dimensional manifolds or clusters into distinct classes. Furthermore, much of the existing literature focuses on the "lazy training" regime, where the first layer of a network remains essentially fixed.

This study moves beyond these limitations by analyzing the "feature learning" regime. We focus on the first gradient step of a two-layer neural network trained on structured Gaussian mixtures. By employing asymptotic analysis, we reveal how the interplay between learning dynamics and data geometry shapes the network's ability to generalize.

Theoretical Framework

The Proportional Limit

We analyze the network in the "proportional limit," where the input dimension ($n$), the number of hidden neurons ($k$), and the sample size ($m$) all grow to infinity while their ratios remain fixed. This high-dimensional setting allows for precise mathematical characterization of the network's behavior.

Structured Gaussian Mixture Model

To better approximate real-world data, we model the inputs as a mixture of Gaussians where each component possesses a "spiked" covariance matrix. This structure mimics the low-dimensional manifolds found in practical datasets, where information is concentrated in specific directions rather than spread uniformly across all dimensions.

The Strength Parameter ($\beta$)

A central contribution of this work is the introduction of the parameter $\beta$, defined as the product of the learning rate ($\eta$) and the spectral norm of the data covariance ($\Sigma$):

$$\beta \propto \eta \cdot \|\Sigma\|$$

This parameter captures the "strength" of the feature learning process. We find that a high data spread can effectively compensate for a low learning rate, driving the network to capture higher-order features of the data.

The Hermite Model Equivalence

The core theoretical result is a "universality" theorem: we prove that the complex, nonlinear activation function of a neural network (such as ReLU, tanh, or Sigmoid) can be replaced by a specific polynomial based on Hermite polynomials for the purpose of calculating error.

The degree of this equivalent polynomial is directly tied to the parameter $\beta$. This suggests that for a given data structure and learning step, the network only captures specific "frequencies" or "orders" of the data. This simplification allows us to predict the generalization error of a complex neural network by analyzing a much simpler polynomial model.

Experimental Validation

Synthetic and Real-World Data

We validated our theoretical findings through extensive simulations. First, using synthetic Gaussian mixtures, we observed nearly perfect overlap between the generalization error of the original neural network and the predicted error from the Hermite model across various activation functions.

To bridge the gap to real-world applications, we utilized a conditional GAN (cGAN) trained on the Fashion-MNIST dataset. This allowed us to generate structured data that retains the characteristics of real images while fitting within our mixture-model framework. On this task, a finite-degree Hermite model (specifically degree $l=5$) achieved nearly identical generalization error to the full neural network, confirming the practical relevance of our asymptotic theory.

Key Insights

  1. Data Spread as a Catalyst: Feature learning is not solely a function of the learning rate. The inherent variance and structure of the data (the covariance) play an equal role in determining how much information the network extracts in its first step.
  2. Polynomial Simplification: The discovery that complex networks behave like finite-degree polynomials in the high-dimensional limit provides a powerful tool for future theoretical work, simplifying the landscape of nonlinear optimization.
  3. Exploiting Structure: Our results show that as data becomes more structured (higher $\beta$), generalization error decreases. This confirms that neural networks are inherently biased toward exploiting non-uniformity in data, which is a key driver of their success in the real world.

Limitations and Future Work

While this work provides a rigorous foundation for understanding the first step of feature learning, several questions remain:

  • Beyond the First Step: Real-world training involves thousands of iterations. It remains to be seen how the polynomial equivalence evolves or breaks down as training progresses.
  • Target Complexity: Our current analysis assumes labels depend on a single direction in the data. Future research should address multi-index targets where labels are functions of multiple complex features.
  • The $\beta \leq 1$ Constraint: Our proof currently requires $\beta \leq 1$. For very high learning rates or extremely high data spread ($\beta > 1$), the equivalence to a finite-degree polynomial may be lost, representing an important frontier for exploration.

Summary updated

BibTeX
@inproceedings{demir2025asymptotic,
  author = {Samet Demir and Zafer Dogan},
  title = {{Asymptotic Analysis of Two-Layer Neural Networks after One Gradient Step under Gaussian Mixtures Data with Structure}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=tNn6Hskmti},
}
Figure