SGD Selects Initialization-Dependent Representation in Overparameterized ReLU Networks
Authors: Nikos Tsikouras, Yorgos Pantis, Ahmed Mehdi Inane, Mehrab Hamidi, Ioannis Mitliagkas
Organizations: National and Kapodistrian University of Athens, Greece · Archimedes, Athena Research Center, Greece · Université de Montréal, Canada · Mila - Quebec Artificial Intelligence Institute, Canada
Overparameterized neural networks can represent the same function through many different hidden configurations, raising the question of which representation is favored by a given training algorithm. We study how stochastic gradient descent (SGD), jointly training both layers, resolves this ambiguity in finite-width, bias-free, two-layer ReLU networks trained to learn a linear teacher under Gaussian inputs. At width two, exact fitting leaves no choice: the neurons must align with the teacher directions. At every width m≥4, however, infinitely many non-aligned exact fits are possible. Despite this ambiguity, we prove that joint batch-size-one SGD from sufficiently small initialization drives every neuron arbitrarily close to one of the two teacher directions while reaching arbitrarily small population error in finite time. This occurs without explicit regularization, layerwise training, gradient clipping, or a learning-rate schedule. The dynamics additionally select an initialization-dependent allocation of the fitted function across neurons, providing a finer characterization of the representation selected by SGD. Numerical experiments reproduce the predicted alignment, fitting, and initialization-dependent allocation. Our results identify sufficient conditions under which standard SGD exhibits a strong implicit bias toward a highly structured internal representation, even when overparameterization creates infinitely many qualitatively different exact representations.
Figures & tables
Figure 1: Overparameterization creates many exact hidden representations, while small-initialization SGD selects the aligned family. (A) At initialization, neurons have small strength and unrelated directions. (B) At width two, exact fitting is rigid, but at width m≥4 there are many perfect representations, including non-aligned ones. (C) From small initialization, SGD drives all neurons toward the two teacher poles ±θ⋆ .
Figure 2: The two phases of joint SGD. Left: Normalized hidden directions for a random 3% of neurons initialized away from ±θ⋆ . Open circles mark initialization, filled circles the first alignment checkpoint, and arrows the direction of time. Each neuron moves toward the teacher pole selected by the sign of its output weight. Right: Population loss (black, logarithmic left axis), maximum angle to the selected pole (solid purple), and average sign-class mass (dashed purple). After the first alignment checkpoint (green), the class mass continues to grow toward its exact-fit value and the loss falls below 10−8 . Training uses batch-size-one SGD sampled uniformly with replacement from one fixed dataset of M=2000 Gaussian examples.
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 3: Initialization predicts each neuron’s share. Share predicted before training against share observed at fitting, both measured relative to uniform allocation. Each panel shows all neurons from 20 independent runs at one width. The dashed diagonal corresponds to exact agreement between predicted and observed shares. Although all neurons start with equal shares, their fitting-time shares are nonuniform and closely match the allocation predicted before training. Training uses batch-size-one SGD sampled uniformly with replacement from one fixed dataset of M=2000 Gaussian examples per run. All 20 runs at each width reach the fitting threshold.
Figure 4: Initialization-scale and learning-rate sweeps for fixed-dataset SGD ( M=2000 , m=16 , B=1 , 20 seeds per setting). Top: counts of runs that fit and align by fitting. Bottom: pooled median absolute log-share error over fitted runs only; missing points indicate no fit. The scale sweep uses 30,000 updates and τ=0.003 ; the learning-rate sweep uses 90/τ updates and α=0.01 . All runs diverge at τ=0.3 .
m
Sampling
M
τ
Fits
Epool
Log corr.
4
Online
–
0.003
20/20
0.0474
0.9746
4
Fixed
2000
0.003
20/20
0.0383
0.9668
16
Online
–
0.003
20/20
0.0589
0.9718
16
Fixed
2000
0.003
20/20
0.0853
0.9488
64
Online
–
0.003
20/20
0.0732
0.9665
64
Fixed
2000
0.003
20/20
0.0858
0.9555
Appendix
Table 1: Online and fixed-dataset SGD ( B=1 , 20 seeds per row). Allocation is evaluated at the first monitored loss at most 10−6 . Epool pools absolute log-share errors over neurons and fitted runs. The lower block is the separate dataset-size sweep at a smaller learning rate.
Initialization
Fits
Max. angle (rad)
Allocation error
Uniform
Baseline
20/20
0.013
0.0902
0.36
Scale 0.25×
20/20
0.004
0.0906
0.32
Scale 0.5×
20/20
0.007
0.1016
0.35
Scale 2×
20/20
0.024
0.0855
0.35
Scale 5×
20/20
0.059
0.0812
0.33
Scale 20×
0/20
0.21 ∗
–
–
Appendix
Table 2: Initialization ablations ( M=8192 , 20 seeds per condition, 15,000 updates, monitored every 100). Angles are medians across runs of the maximum neuron angle at fitting; ∗ at the end of the budget. Xavier normal: wj∼N(0,2Id/(d+m)) , aj/m∼N(0,2/(m+1)) . Wide layer ratios: ∣aj(0)∣=p0ezj , ∥wj(0)∥=p0e−zj , zj∼N(0,0.72) . Small Gaussian: aj=p0gj , wj=p0zj/d . † Angles use the current output sign; allocation errors include only neurons that keep their sign, with shares renormalized within each class. Dashes indicate no fit.
m
Input law
Fits
Max. angle (rad)
Epool
Uniform
16
Gaussian
20/20
0.0132
0.0842
0.294
16
Laplace
20/20
0.0156
0.0916
0.271
16
Uniform
20/20
0.0129
0.0668
0.275
16
Rotated Laplace
20/20
0.0144
0.0840
0.298
16
Rotated uniform
20/20
0.0133
0.0804
0.304
64
Gaussian
20/20
0.0171
0.0820
0.324
Appendix
Table 3: Input-law comparison on fixed datasets ( M=2000 , B=1 , 20 seeds per row). Angles are medians across runs; allocation errors pool neurons and fitted runs, and “Uniform” is the same error for uniform shares. For non-Gaussian inputs the loss is estimated on an independent test set. Every run reaches the alignment threshold by the fitting checkpoint.
Teacher
κ
τ
Budget
Fits
Eθ
EΣθ
Top
1
0.003
40k
20/20
0.0763
0.0763
Top
3
0.003
40k
20/20
0.0671
0.0671
Top
10
0.003
40k
20/20
0.0600
0.0600
Top
30
0.003
40k
20/20
0.0562
0.0562
Top
100
0.003
40k
20/20
0.0528
0.0528
Top
300
0.003
40k
20/20
0.0470
0.0470
Appendix
Table 4: Anisotropic Gaussian inputs and budget/step-size controls (20 seeds per row; 1k=1000 updates). Top and bottom place the teacher along eigenvectors of the largest and smallest covariance eigenvalues; mixed uses their normalized sum. Eθ and EΣθ are pooled median absolute log-share errors at fitting for the original and covariance-based predictions. The lower block reports the controls. The two predictions coincide when θ⋆ is an eigenvector. Dashes indicate no fit.
Figure 5: Label noise and long training ( m=16 , B=1 , 20 seeds per condition; rows M=2000 and M=200 ). Curves are medians across runs at common checkpoints. Angles are measured to the initial sign-selected poles. Allocation error is the within-run median of ∣log(vj/λj)∣ , and drift compares shares with the same run at step 10,000. For moderate noise the shares stay close to the prediction; noise fitting appears only after long training, and earlier for the smaller dataset.
k
m
Step
Test loss
Angle (rad)
Epool
Uniform
1
4
40k
0.01439
0.0751
0.0459
0.1690
1
16
40k
0.01431
0.0870
0.0696
0.2597
1
64
40k
0.01429
0.1060
0.0665
0.3008
3
4
80k
0.00922
0.1966
0.0390
0.1755
3
16
80k
0.00926
0.3186
0.0601
0.2657
3
64
80k
0.00916
0.4168
0.0577
0.2977
Appendix
Table 5: Nonlinear teachers y(x)=tanh(kθ⋆⊤x)/k with a ReLU student, fixed M=2000 and B=1 (20 seeds per row). Loss and maximum angle are medians across runs; allocation errors pool neurons across runs. All measurements use the final checkpoint, and no run reaches loss 10−6 .
We study the implicit bias of noisy stochastic gradient descent in training wide two-layer ReLU networks for multivariate regression. In a mean-field regime, the training dynamics are approximated by a Wasserstein gradient flow that converges to a unique stationary measure. We characterize the structure of this stationary measure and the predictor it represents. We show that, despite the network being infinitely overparameterized, the learned predictor admits an effectively finite representation: the input weights and biases align along finitely many directions, leading to an effective width collapse. In particular, the solution function is continuous piecewise affine, with affine regions determined by the cells of a finite hyperplane arrangement. The number of learned directions, and hence hyperplanes, is bounded above by 2P−1, where P denotes the number of linear dichotomies realizable on the training inputs. We further establish a non-redundancy property of the learned representation by proving that each learned direction induces a unique ternary activation pattern on the training data. Consequently, the complexity of the learned predictor is governed by the combinatorial geometry of the training data.
Shuang Liang, Tom Jacobs, Guido Montúfar
Department of Statistics & Data Science University of California, Los Angeles Los Angeles, CA 90095, USA · CISPA Helmholtz Center for Information Security · Departments of Mathematics and Statistics & Data Science University of California, Los Angeles; and Max Planck Institute for Mathematics in the Sciences
In this paper, we study the gradient descent dynamics for jointly training both layers of a one-hidden-layer ReLU network to fit a linear target function. Concretely, we consider a realizable setting where inputs are drawn i.i.d. from a Gaussian distribution and labels follow a planted linear model. This stylized framework captures salient features of end-to-end training in inverse problems and certain auto-encoder models. Despite its apparent simplicity, the dynamics remain poorly understood, in part because the loss landscape contains multiple non-strict saddle points, making it unclear why gradient descent from random initialization reliably escapes bad stationary regions. We provide a detailed characterization of the optimization landscape and prove that gradient descent from a moderately small random initialization-simultaneously training both layers-converges to a global minimizer at a linear rate with order-wise optimal sample complexity. Our analysis tracks the trajectory through three phases: an alignment phase in which hidden weights progressively align with the planted direction while the output weights maintain the correct sign pattern; a growth phase in which the norms of both layers increase while preserving alignment; and a local refinement phase in which the aligned neurons rapidly converge to the planted direction, yielding fast local convergence. To rigorously show that GD avoids non-strict saddles, we develop trajectory-level control arguments for the end-to-end dynamics. In addition, we establish novel uniform concentration results that hold along the entire trajectory, and are essential for obtaining order-wise optimal sample complexity. We corroborate our theory with extensive experiments across a range of configurations.
Berk Tinaz, Changzhi Xie, Mahdi Soltanolkotabi
Department of Electrical and Computer Engineering University of Southern California Los Angeles, CA, USA · Department of Computer Science University of Southern California Los Angeles, CA, USA
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.
Samet Demir, Zafer Dogan
MLIP Research Group, KUIS AI Center, Koç University · Oden Institute for Computational Engineering and Sciences, The University of Texas at Austin · Department of EEE, Koç University