Abstract
Understanding the algorithmic bias of stochastic gradient descent (SGD) is a central challenge in deep learning theory. While existing literature often focuses on infinitesimal or very small learning rates, these regimes fail to capture the behavior of SGD in practical scenarios where learning rates are moderate and annealed. This paper characterizes a unique "directional bias" in the moderate learning rate regime using an overparameterized linear regression framework. We demonstrate that while both SGD and Gradient Descent (GD) eventually reach minimum-norm solutions, their paths differ fundamentally: moderate-LR SGD converges along the large eigenvalue directions of the data matrix, whereas GD follows small eigenvalue directions. This distinction explains why early stopping is more effective for SGD and provides a theoretical basis for common practices like linear scaling rules and learning rate "overrunning."
Introduction
Stochastic Gradient Descent (SGD) is the workhorse of modern machine learning, known for its ability to find solutions that generalize well even in overparameterized models. This "implicit bias" is often attributed to the noise inherent in mini-batch sampling. However, most theoretical analyses simplify SGD by assuming a near-zero learning rate, making it indistinguishable from deterministic Gradient Descent (GD). In practice, high-performing models are trained with moderate learning rates that are subsequently decayed. This paper investigates the specific regularization effects that emerge only when the learning rate is non-negligible.
Methods and Theoretical Framework
The authors analyze overparameterized linear regression optimized with Mean Squared Error (MSE). To handle the complexities of non-small learning rates—where standard concentration bounds often fail—they employ matrix perturbation theory. This allows for an epoch-by-epoch characterization of the SGD iterates.
The study compares two main regimes:
- Small Learning Rate Regime: Where SGD noise is minimal, and the optimization path mirrors GD.
- Moderate Learning Rate Regime: Where the learning rate is large enough to cause oscillation on certain directions but small enough to allow convergence on others.
Empirical validation was conducted using synthetic high-dimensional datasets (up to 10,000-D) and a 5-layer LeNet-style CNN trained on FashionMNIST to ensure the findings extend to non-convex deep learning settings.
Key Insights: The Emergence of Directional Bias
The core finding is that the choice of learning rate (LR) dictates the direction of convergence relative to the eigenvalues of the data's Hessian matrix.
In the small-LR regime, SGD and GD are nearly identical, both prioritizing directions associated with small eigenvalues. However, in the moderate-LR regime, a "directional bias" emerges. Because a moderate LR is too large to stabilize on ill-conditioned directions (large eigenvalues), the algorithm oscillates on those directions while successfully fitting the smoother, small-eigenvalue directions first. Only after the learning rate is annealed (reduced) does SGD settle into the large-eigenvalue directions. This sequence is inverted compared to GD.
Key Results: Quantitative Validation
The authors used the Rayleigh quotient—a metric measuring the alignment of the weight vector with the eigenvectors of the data matrix—to quantify this bias.
As shown in the figures above, moderate-LR SGD drives the Rayleigh quotient toward the maximum eigenvalue ($\gamma_1$), while GD and small-LR SGD drive it toward the minimum ($\gamma_n$). This directional difference has profound implications for generalization:
- Early Stopping: In overparameterized settings, the large eigenvalue directions often contain the most relevant signal. Because moderate-LR SGD fits these directions last (after annealing), stopping early at a specific loss level yields a solution that is nearly optimal. Conversely, GD stopped at the same loss level remains stuck in suboptimal directions.
- CNN Performance: On FashionMNIST, moderate-LR SGD achieved ~82.5% test accuracy, significantly outperforming both GD and small-LR SGD (~81.5%), confirming that the "noise" of SGD is only beneficial when paired with a sufficient learning rate.
Explaining Deep Learning "Folk Arts"
This theory provides a rigorous explanation for several heuristic practices in the deep learning community:
- Linear Scaling Rule: The mathematical bounds derived in the paper show that to preserve the beneficial directional bias, the initial learning rate must scale linearly with the batch size.
- Overrunning: Practitioners often maintain a high learning rate even after the training loss plateaus. The theory suggests this "overrunning" phase is necessary to fully fit the small-eigenvalue directions before the final annealing step fits the critical large-eigenvalue directions.
Conclusion
By moving beyond the infinitesimal learning rate assumption, this work reveals that the effectiveness of SGD lies not just in its randomness, but in how that randomness interacts with the learning rate to bias the optimization path. While limited to linear models for its formal proofs, the empirical consistency across neural networks suggests that "directional bias" is a fundamental component of why SGD generalizes so well in practice.
Summary updated