[Paper Review] Direction Matters: On the Implicit Bias of Stochastic Gradient Descent with Moderate Learning Rate
This paper reveals that stochastic gradient descent (SGD) with moderate learning rate exhibits a distinct directional bias—converging along large eigenvalue directions of the data matrix—unlike gradient descent (GD), which favors small eigenvalue directions. This bias leads to better generalization under early stopping, explaining practical SGD advantages and hyperparameter tuning practices like linear batch-size scaling.
Understanding the algorithmic bias of \\emph{stochastic gradient descent} (SGD) is one of the key challenges in modern machine learning and deep learning theory. Most of the existing works, however, focus on \\emph{very small or even infinitesimal} learning rate regime, and fail to cover practical scenarios where the learning rate is \\emph{moderate and annealing}. In this paper, we make an initial attempt to characterize the particular regularization effect of SGD in the moderate learning rate regime by studying its behavior for optimizing an overparameterized linear regression problem. In this case, SGD and GD are known to converge to the unique minimum-norm solution; however, with the moderate and annealing learning rate, we show that they exhibit different \\emph{directional bias}: SGD converges along the large eigenvalue directions of the data matrix, while GD goes after the small eigenvalue directions. Furthermore, we show that such directional bias does matter when early stopping is adopted, where the SGD output is nearly optimal but the GD output is suboptimal. Finally, our theory explains several folk arts in practice used for SGD hyperparameter tuning, such as (1) linearly scaling the initial learning rate with batch size; and (2) overrunning SGD with high learning rate even when the loss stops decreasing.
Motivation & Objective
- To characterize the implicit bias of SGD in the moderate learning rate regime, where existing theory for small learning rates fails to explain practical benefits.
- To compare SGD and GD convergence directions in overparameterized linear regression, revealing divergent directional preferences.
- To explain why SGD generalizes better than GD in practice, particularly under early stopping and moderate learning rates.
- To provide theoretical justification for common SGD hyperparameter tuning practices, such as linear scaling of learning rate with batch size.
Proposed method
- Analyzes overparameterized linear regression using SGD and GD with moderate, annealing learning rates.
- Derives convergence direction behavior via eigen-decomposition of the data matrix, showing SGD favors large eigenvalues, GD favors small eigenvalues.
- Uses relative Rayleigh quotient to compare convergence directions in non-convex neural networks, normalizing by Hessian's operator norm.
- Employs power method to estimate maximum Hessian eigenvalue for relative Rayleigh quotient computation in neural network experiments.
- Conducts empirical evaluation on synthetic and real datasets (e.g., FashionMNIST), comparing SGD and GD under varying learning rates and batch sizes.
- Performs paired t-tests on 10 repeated runs to validate statistical significance of performance differences.
Experimental results
Research questions
- RQ1How does SGD with moderate learning rate differ from GD in convergence direction in overparameterized linear regression?
- RQ2Why does SGD generalize better than GD when early stopping is applied, despite both converging to the minimum-norm solution?
- RQ3How does the directional bias of SGD with moderate learning rate affect generalization in practical deep learning settings?
- RQ4What theoretical basis underlies common SGD hyperparameter tuning practices like linear scaling of learning rate with batch size?
Key findings
- SGD with moderate learning rate converges along large eigenvalue directions of the data matrix, while GD converges along small eigenvalue directions.
- Under early stopping, SGD's directional bias leads to significantly better test accuracy than GD, with a p-value of 0.0043 in paired t-tests.
- SGD with moderate learning rate achieves 82.65% average test accuracy on FashionMNIST, outperforming GD (81.83%) and SGD with small learning rate (81.77%).
- The directional bias explains why SGD generalizes better than GD in practice, even without explicit regularization.
- The theory supports the common practice of linearly scaling initial learning rate with batch size, as it maintains the same convergence direction bias.
- Overrunning SGD with high learning rate beyond loss plateau improves generalization, consistent with the directional bias effect.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.