TLDR: This paper explores the low-rank structure of gradients in two-layer neural networks under more realistic conditions, moving beyond idealized assumptions. It reveals that the gradient is typically approximated by a rank-two matrix, driven by two main components: a “residue spike” (S1) related to fitting errors and a “data spike” (S2) reflecting data structure. The paper details how activation functions, network scaling, and regularization techniques modulate these components, offering a deeper understanding of feature learning.
Understanding how neural networks learn is a fundamental challenge in artificial intelligence. A new research paper, “Low Rank Gradients and Where to Find Them”, delves into the intricate structure of gradients—the signals that guide a neural network’s learning process—specifically in two-layer networks. This work moves beyond idealized conditions often assumed in prior studies, offering a more realistic view of how these networks operate.
Traditionally, research into feature learning in neural networks has often relied on simplified assumptions, such as perfectly uniform (isotropic) training data or network parameters. However, real-world data is rarely so neat; it often exhibits complex patterns, known as anisotropy, or can be ill-conditioned, meaning certain features are much more prominent than others. This paper addresses these more general conditions, exploring how low-rank gradient phenomena emerge and behave in such complex environments, and what impact common regularization techniques have.
The Dual Nature of Gradients: Two Dominant Spikes
The central finding of the paper is that the gradient of the inner-layer weights in a two-layer neural network is typically well-approximated by a rank-two matrix. This means that instead of a single dominant direction, the gradient is primarily shaped by two distinct, powerful components, or “spikes.”
The first component, termed the “residue spike” (S1), is driven by the input data’s bulk characteristics and the network’s current prediction errors (residues). This component essentially pushes the network to correct its mistakes and better fit the training data.
The second component, the “data spike” (S2), is aligned with the leading, most prominent direction in the input data’s covariance structure. This component reflects the network’s adaptation to, or influence by, the inherent structure and biases present in the data itself.
The research characterizes how various factors govern the balance between these two components. These include the properties of the training data (like the size of a dominant “spike” in the data, controlled by a parameter called ν, and the spectral decay of the data’s bulk, controlled by α), the scaling regime of the network (Mean Field or Neural Tangent Kernel), and the choice of activation function.
Activation Functions and Regularization: Modulating Learning
The paper demonstrates that the choice of activation function significantly impacts the gradient’s structure. For instance, the widely used ReLU (Rectified Linear Unit) activation function can suppress the contribution of the residue spike (S1) compared to smoother activation functions like Tanh or Softplus. This suggests that ReLU might alter how a network prioritizes fitting errors versus adapting to data structure.
Furthermore, standard regularization techniques, commonly used to prevent overfitting and improve generalization, also selectively modulate these gradient components:
- Weight Decay (L2 regularization): While small amounts of weight decay might not significantly alter the dominant spikes, stronger regularization can suppress both the residue and data spikes.
- Isotropic Gaussian Input Noise: Adding noise to the input data can surprisingly enhance the residue spike (S1) while diminishing the data spike (S2). This implies that input noise can encourage the network to focus more on fitting the task-specific errors.
- Jacobian Penalization: This type of regularization, which penalizes the sensitivity of the network’s output to changes in its inner weights, has the opposite effect. It can suppress the residue spike (S1) and promote a data-aligned spike (S3, akin to S2), making the network more sensitive to the inherent data structure.
These theoretical predictions are supported by experiments on both synthetic data and real-world datasets like MNIST and CIFAR-10, showing that these phenomena are observable in practical scenarios.
Also Read:
- Unpacking Overfitting: How Data Spikes and Alignment Shape Machine Learning Performance
- Understanding Neural Network Performance: New Insights into Scaling Laws and Weight Spectra
Implications for Feature Learning
The coexistence and interplay of these two gradient components—the residue-aligned and the data-aligned spikes—offer a more nuanced understanding of feature learning. The residue spike helps the network fit current errors for a specific task, while the data spike reflects the network’s adaptation to the inherent structure of the input data. This dual influence provides a potential mechanism for reconciling how neural networks can be both task-specific and data-adaptive.
The paper also provides a “gradient-spike rule-of-thumb” to predict which spike dominates at initialization based on data properties and regularization. This work contributes significantly to the theoretical characterization of feature learning in deep neural networks, especially under more realistic and challenging data conditions.


