Decomposing SGD Dynamics in Neural Networks: Teacher-Induced Spikes and Variance Inflation

Samet Demir, Zafer Dogan

TL;DR

When a neural network learns a target that only depends on a few directions in high-dimensional space, what are all the other parameters doing? Rather than sitting around as harmless, isotropic background noise, stochastic gradient descent (SGD) secretly injects coherent, target-dependent spikes into these "irrelevant" parameters, inflating prediction variance and hurting generalization. In fact, simply freezing those extra parameter directions at initialization can yield better test performance than training them.

What Problem Does This Paper Address?

Imagine trying to hear a single flute in a massive, noisy stadium. In learning theory, we often model this using a teacher–student setup: a "teacher" generates labels based on a tiny, low-dimensional slice of high-dimensional input data (the flute), and an overparameterized two-layer "student" network tries to learn the rule via SGD.

Because the input space is huge, the vast majority of the student's first-layer weights live in the orthogonal complement—the mathematical space completely perpendicular to the teacher's true signal (the rest of the stadium). Historically, theoretical analyses have largely focused on how student weights align with the teacher, treating that massive orthogonal complement as passive, isotropic noise that averages out nicely.

The authors ask a deceptively simple question: Is that orthogonal space really passive during SGD training, and how does it affect generalization?

Methods

To peer inside the training dynamics, the authors study a two-layer student network in the proportional limit—where input dimension ($n$), network width ($k$), and training steps ($t$) all scale up together at a fixed ratio.

First, they use a standard subspace decomposition to split the first-layer weight matrix into two explicit pieces:

  1. A signal matrix aligned with the teacher's true subspace.
  2. A complement matrix completely orthogonal to the teacher.

What's new is tracking the exact step-by-step geometry of the complement's Gram matrix (which measures the inner products and correlations among neurons in that noise space) jointly with the second-layer weights.

Building on this math, the authors introduce Decomposed Dynamics (DD)—an analytically tractable surrogate algorithm. DD updates the signal weights and second-layer weights using standard SGD, but replaces the messy SGD updates of the complement matrix with clean, synthetic Gaussian updates that match SGD's exact drift (mean) and diffusion (covariance). This lets them surgically isolate—and switch off—specific geometric effects during training.

Datasets

Rather than empirical benchmark datasets, this theoretical study evaluates models on synthetic data generated on-the-fly:

  • Inputs $x$ are drawn fresh at every step from a standard high-dimensional Gaussian distribution $\mathcal{N}(0, I_n)$.
  • Labels $y$ are generated by a noiseless multi-index teacher model $y = g(\Xi^\top x)$, where $\Xi$ projects the input onto a low-dimensional subspace (e.g., 1D in simulations) and $g$ is a nonlinear function like $\tanh$ or $\text{ReLU}$.

Key Insights and Ideas

  • Endogenous Spectral Spikes: Even though the complement space contains zero target signal and receives purely isotropic random inputs, SGD does not leave it isotropic. Because weight updates depend on the prediction error (which depends on the teacher), SGD injects coherent, teacher-conditioned correlations into the complement. Over time, eigenvalue outliers—spectral spikes—emerge above the random Marchenko–Pastur bulk.
Bulk-plus-spike eigenvalue spectrum of the complement Gram matrix, showing emergent outliers far above the Marchenko-Pastur bulk.
  • Teacher-Induced Variance Inflation: Why care about spikes in a space orthogonal to the signal? At test time, random input noise hits those spiked directions and gets amplified, adding unwanted variance to the network's output. Learning features outside the true subspace actively degrades generalization.
  • Less Training Can Be More: Counterintuitively, freezing the directions of the orthogonal complement weights at their random initialization improves test error compared to training the whole network with standard SGD.
  • Rapid Cross-Layer Coupling: The teacher-aligned signal weights don't learn in isolation; they rapidly snap into alignment with the second-layer readout weights early in training—within $o(k)$ steps in an idealized setting—meaning the network effectively uses far fewer degrees of freedom than its raw parameter count suggests.

Key Results

  • Non-Trivial Spike Magnitude: In simulations ($n = k = 1000$), the top eigenvalue spike of the normalized complement Gram matrix reaches $\lambda_1 = 63.3 \pm 1.6$ (compared to the initial random bulk edge of $4$). Per neuron, this single noise-space spike accounts for $40 \pm 3\%$ of the variance of the learned teacher-aligned signal itself.
  • Exact Surrogate Matching: The proposed Decomposed Dynamics surrogate matches the test-error learning curves of true SGD asymptotically, and tracks it closely across varying widths ($\alpha = k/n \in \{1, 2, 4\}$), learning rates, and activations ($\text{ReLU}$, $\tanh$, Sigmoid) even at moderate dimension ($n = 500$).
Generalization error curves showing tight agreement between true SGD (markers) and Decomposed Dynamics (lines) across different network widths.
  • Parameter Collapse: In diagnostic experiments ($n = k = 300$), freezing the complement directions and norms while forcing the signal matrix to stay parallel to the second layer reduces trainable parameters from $k(n+1)$ down to just $k + k_\star$ (e.g., from $90,300$ to $301$) without sacrificing test performance relative to the frozen-direction baseline.

Limitations and Future Work

  • Online, Single-Pass SGD: The proofs rely on fresh, independent data samples at every step (batch size one, no epochs). Extending the math to multi-pass training with sample reuse remains an open problem.
  • Smoothness Gap: While simulations work great with $\text{ReLU}$ networks, the formal proofs require smooth activation functions (bounded up to the third derivative).
  • Well-Specified Targets: Freezing or penalizing the orthogonal complement works here because the teacher strictly lives in a low-dimensional subspace. Under model misspecification or task shift, that "irrelevant" complement might actually hold useful signal. Future work could explore practical, teacher-agnostic regularizers or low-rank adapters inspired by these dynamics.

Summary updated

Abstract

We study two-layer neural networks trained by stochastic gradient descent (SGD) on a multi-index teacher model, focusing on how first-layer parameters orthogonal to the teacher subspace affect generalization. We decompose the first-layer weights into a signal component aligned with the teacher and an orthogonal complement, and analyze their joint SGD dynamics together with the second layer in the proportional limit. We show that although SGD updates to the complement are initially isotropic, the training dynamics induce teacher-dependent spectral spikes in the complement Gram matrix. This emergent anisotropy provides a concrete mechanism by which representation variance is amplified, and generalization degrades. To isolate this effect, we introduce Decomposed Dynamics, an analytically tractable surrogate whose asymptotic test-error dynamics coincide with those of SGD. In simulations with a ReLU student, freezing the directions of the orthogonal complement improves generalization relative to training them. Finally, we show that the signal component rapidly aligns with the second-layer weights, revealing strong cross-layer coupling even in this shallow setting. Together, our results provide a dynamical explanation for how feature learning outside the teacher subspace harms generalization.
BibTeX
@inproceedings{demir2026decomposing,
  author = {Samet Demir and Zafer Dogan},
  title = {{Decomposing SGD Dynamics in Neural Networks: Teacher-Induced Spikes and Variance Inflation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pCMDLPWcuw},
}

Loading related content...

Figure