Abstract: Although stochastic gradient descent (SGD) is a driving force behind the recent success of deep learning, our understanding of its dynamics in a high-dimensional parameter space is limited. In recent years, some researchers have used the stochasticity of minibatch gradients, or the signal-to-noise ratio, to better characterize the learning dynamics of SGD. Inspired from these work, we here analyze SGD from a geometrical perspective by inspecting the stochasticity of the norms and directions of minibatch gradients. We propose a model of the directional concentration for minibatch gradients through von Mises-Fisher (VMF) distribution, and show that the directional uniformity of minibatch gradients increases over the course of SGD. We empirically verify our result using deep convolutional networks and observe a higher correlation between the gradient stochasticity and the proposed directional uniformity than that against the gradient norm stochasticity, suggesting that the directional statistics of minibatch gradients is a major factor behind SGD.
Introduction
While Stochastic Gradient Descent (SGD) is the workhorse of deep learning, its "learning dynamics"—how it traverses the complex, high-dimensional landscape of a neural network's loss function—remain partially understood. Previous research often employed the Signal-to-Noise Ratio (SNR) of gradients to identify two distinct phases: a "drift phase," where the model moves quickly toward a solution, and a "diffusion phase," where it oscillates near a local minimum.
This paper argues that "gradient noise" is composed of two distinct components: Norm Stochasticity (variation in gradient magnitude) and Directional Stochasticity (variation in gradient angles). The authors aim to demonstrate that the directional component is the more critical factor in understanding SGD convergence.
Methodology: Directional Statistics and the vMF Distribution
The researchers employ directional statistics, specifically the von Mises-Fisher (vMF) distribution, to model minibatch gradients. The vMF distribution can be thought of as a Gaussian distribution wrapped around the surface of a high-dimensional sphere.
A key parameter in this model is $κ$ (kappa), the concentration parameter:
- High $κ$: Gradients are "clumped" together, pointing in a similar direction (low directional uniformity).
- Low $κ$ (near 0): Gradients are spread out evenly in all directions (high directional uniformity).
The authors provide a theoretical framework showing that $κ$ should decrease as training progresses. They also introduce an efficient method to estimate $κ$ using minibatch gradients, allowing for real-time monitoring of "directional balance" during training.
Key Insights and Ideas
Direction Over Magnitude
The "noise" typically observed in SGD is primarily a result of gradients pointing in different directions, rather than gradients having significantly different lengths. As a model converges, the directions of minibatch gradients become increasingly uniform. In the initial drift phase, minibatches largely agree on the direction of descent. Near the end (diffusion phase), they point in opposing directions, effectively canceling each other out at the local minimum.
High-Dimensional Geometry
In very high-dimensional parameter spaces, the angle between two random vectors is almost always 90 degrees. The authors show that as training concludes, the distribution of angles between gradients approaches this "random" state of orthogonality.
The Smoothing Effect of BN and ResNets
Modern architectural components like Batch Normalization (BN) and Residual Connections (+Res) make the decrease in $κ$ much smoother and more monotonic. Without these, directional uniformity fluctuates wildly, suggesting a more "jagged" and difficult optimization landscape.
Empirical Results
The theory was validated using standard benchmarks: MNIST (for FNNs and Deep FNNs) and CIFAR-10 (for CNNs and ResNets). Key findings include:
- Correlation: Total Gradient Stochasticity (SNR) showed a much higher correlation with directional uniformity ($κ$) than with gradient norm stochasticity.
- Monotonicity: In models with both BN and Residual connections, $κ$ decreased almost perfectly monotonically, providing a clear "clock" for optimization progress.
- Convergence: At the end of training, estimated $κ$ values were remarkably low relative to the dimensionality, indicating near-perfect directional uniformity.
Limitations and Future Work
While this paper focuses on optimization, it does not explicitly link directional uniformity to generalization—how well the model performs on unseen data. This remains a vital next step. Additionally, the current analysis is passive; future work could involve "active" optimization, where directional statistics are used to dynamically adjust learning rates or batch sizes. Finally, some theoretical proofs assume a well-conditioned Hessian, which may not hold for all neural architectures.
Summary updated