Abstract: It is well known that the finite step-size ($h$) in Gradient Descent (GD) implicitly regularizes solutions to flatter minima. A natural question to ask is "Does the momentum parameter $\beta$ play a role in implicit regularization in Heavy-ball (H.B) momentum accelerated gradient descent (GD+M)?". To answer this question, first, we show that the discrete H.B momentum update (GD+M) follows a continuous trajectory induced by a modified loss, which consists of an original loss and an implicit regularizer. Then, we show that this implicit regularizer for (GD+M) is stronger than that of (GD) by factor of $(\frac{1+\beta}{1-\beta})$, thus explaining why (GD+M) shows better generalization performance and higher test accuracy than (GD). Furthermore, we extend our analysis to the stochastic version of gradient descent with momentum (SGD+M) and characterize the continuous trajectory of the update of (SGD+M) in a pointwise sense. We explore the implicit regularization in (SGD+M) and (GD+M) through a series of experiments validating our theory.
Introduction
In the landscape of deep learning, over-parameterized models—those with significantly more parameters than training examples—are the norm. Theoretically, such models possess the capacity to overfit the training data entirely, yet in practice, they generalize remarkably well to unseen data. This phenomenon is largely attributed to implicit regularization: the tendency of optimization algorithms to bias the model toward simpler or "flatter" solutions without explicit penalties like weight decay.
While the implicit regularization of standard Gradient Descent (GD) is well-documented—specifically its tendency to penalize the norm of the gradients—the role of the momentum parameter ($\beta$) in this process has remained less clear. Momentum-accelerated algorithms like Heavy-ball (GD+M) are ubiquitous due to their convergence speed, but this research demonstrates that momentum serves a dual purpose: it is not just an accelerator, but a powerful regularizer.
Theoretical Framework: Backward Error Analysis
To understand the discrete steps of an optimization algorithm, the authors employ backward error analysis. This technique allows for the derivation of a continuous "modified flow"—an Ordinary Differential Equation (ODE) that the discrete algorithm follows more closely than the original gradient flow.
By analyzing the discrete Heavy-ball momentum update through this lens, the researchers show that the trajectory of the parameters follows a "modified loss" function $\hat{E}(x)$:
$$\hat{E}(x) = E(x) + \frac{(1+\beta)h}{4(1-\beta)^2} \|\nabla E(x)\|^2$$
Here, $E(x)$ is the original loss, $h$ is the step size, and the second term represents the Implicit Gradient Regularizer (IGR). This term effectively penalizes regions of the loss landscape with high gradients, steering the optimization toward flatter regions where the curvature is lower.
The Momentum Amplification Factor
The core contribution of this work is the identification of the relationship between the momentum parameter $\beta$ and the strength of regularization. When comparing GD+M to standard GD, the authors find that momentum amplifies the regularization effect by a factor of:
$$\mathcal{A}(\beta) = \frac{1+\beta}{1-\beta}$$
This finding is significant. For a standard momentum value of $\beta = 0.9$, the implicit regularization is 19 times stronger than that of standard Gradient Descent with the same learning rate. Even when the effective learning rate is controlled to ensure the algorithms move at the same "speed," the presence of momentum fundamentally changes the optimization trajectory to favor flatter minima, which are widely associated with superior generalization.
Extension to Stochastic Gradient Descent (SGD+M)
The analysis further extends to the stochastic setting (SGD+M), where the gradient is calculated over mini-batches rather than the full dataset. In this context, momentum acts as a variance reducer. The authors characterize the continuous trajectory of SGD+M in a pointwise sense, showing that momentum smooths the "noise" inherent in mini-batch sampling by a factor of $\frac{1-\beta}{1+\beta}$.
This dual benefit—amplifying the regularization of the gradient norm while simultaneously reducing the variance of the stochastic updates—explains why SGD+M is often more robust and achieves higher test accuracy than its non-momentum counterparts.
Experimental Validation
The theoretical predictions were validated across several benchmarks and architectures:
- MNIST & CIFAR: Experiments on MNIST (sub-sampled to 1,000 images) and the full CIFAR-10/100 datasets confirmed that increasing $\beta$ leads to solutions with lower gradient norms and higher test accuracy.
- Architectural Consistency: The results held true across diverse architectures, including ResNet-18, ResNet-50, WideResNet-16-8, and DenseNet-121. For instance, on ResNet-18 with CIFAR-10, keeping the effective learning rate constant while increasing $\beta$ from 0 to 0.8 resulted in a test accuracy jump from approximately 79.7% to 82.4%.
- Visualizing Trajectories: In 2D linear models, the authors visualized how higher momentum forces the optimization path to converge to solutions with lower $\ell_2$ norms, providing a geometric intuition for the regularization effect.
Conclusion and Limitations
This research provides a rigorous mathematical foundation for the empirical success of momentum in deep learning. By proving that Heavy-ball momentum amplifies implicit gradient regularization, the authors bridge the gap between optimization speed and generalization performance.
However, the study notes certain limitations. The analysis relies on low-order Taylor expansions, which are most accurate at smaller step sizes ($h$). In high-learning-rate regimes, such as the "edge of stability," the dynamics may become more complex. Additionally, while the focus here is on Polyak’s Heavy-ball momentum, future work is needed to derive similar explicit factors for Nesterov momentum and adaptive methods like Adam.
Summary updated