In the world of optimization, Nesterov’s Accelerated Gradient (NAG) is legendary. In a deterministic setting, it is provably faster than standard gradient descent, allowing models to reach the bottom of a loss landscape with fewer steps. Naturally, most practitioners use a stochastic version (SGD+Nesterov) to train deep neural networks.
But there is a catch: in the stochastic world, that "acceleration" often vanishes. In a paper presented at ICLR 2020, researchers Chaoyue Liu and Mikhail Belkin reveal that for the modern "over-parameterized" models we use today, Nesterov SGD often provides no speedup at all over plain SGD—and can even be less stable. To fix this, they introduce MaSS (Momentum-added Stochastic Solver), an algorithm that finally brings true Nesterov-style acceleration to stochastic learning.
The Problem: Over-parameterization and the Stability Tax
Modern neural networks are typically over-parameterized, meaning they have enough capacity to achieve near-zero training error (a state called interpolation). In this regime, standard SGD with a constant step size actually converges quite well because of a property called "automatic variance reduction"—as the model gets closer to the solution, the noise in the gradients naturally shrinks.
The problem is that the stochastic version of Nesterov’s method doesn't play nice with this regime. Theoretically and empirically, the authors show that Nesterov SGD often requires a much smaller step size than plain SGD to stay stable. This "stability tax" cancels out any speed benefits from the momentum term. In many cases, Nesterov SGD is no faster than SGD, and if you try to use SGD's optimal (larger) step size, Nesterov SGD simply diverges.
The Solution: MaSS
To overcome this limitation, the authors introduce MaSS (Momentum-added Stochastic Solver). The key innovation is the addition of a compensation term to the standard Nesterov update.
While standard Nesterov updates the weights based on a look-ahead gradient, MaSS modifies this by adding a second gradient term (the compensation term) that essentially "corrects" the trajectory if the momentum step overshoots.
Mathematically, while standard Nesterov uses one step size ($\eta$), MaSS uses two ($\eta_1, \eta_2$) and a momentum parameter ($\gamma$). This extra degree of freedom allows MaSS to remain stable at the same large step sizes that work for SGD, finally allowing the momentum to actually do its job and accelerate convergence.
Key Insights and Ideas
- The Stability-Speed Tradeoff: The core realization of the paper is that Nesterov SGD’s failure isn't because momentum is inherently bad, but because stochastic noise makes the momentum step unstable unless the learning rate is crippled.
- MaSS as a Generalization: The authors show that in a "full-batch" (deterministic) setting, the compensation term in MaSS naturally goes to zero. This means MaSS isn't just a new trick; it’s a proper stochastic generalization of Nesterov’s classical method.
- Three Regimes of Batching: The paper identifies three distinct phases of how batch size affects optimization speed:
- Linear Scaling: Small batches where doubling the batch size doubles the speed.
- Diminishing Returns: An intermediate phase (unique to accelerated methods like MaSS) where larger batches help, but not as much.
- Saturation: Where the batch is so large that further increases don't speed up convergence per iteration.
Key Results
- Theoretical Speedup: The authors prove that MaSS achieves an accelerated convergence rate of $O(e^{-t/\sqrt{\kappa}})$, which is significantly faster than the $O(e^{-t/\kappa})$ rate of standard SGD (where $\kappa$ is the condition number).
- Empirical Superiority: The authors validated MaSS across a spectrum of complexity, from synthetic data to MNIST and CIFAR-10. On CIFAR-10 using a standard Convolutional Neural Network (CNN) and a ResNet-32, MaSS consistently outperformed SGD, SGD+Nesterov, and even Adam in both final accuracy and optimization speed.
- Robustness: In experiments where a high learning rate ($\eta = 0.3$) caused Nesterov SGD to diverge in 5 out of 8 runs, MaSS converged perfectly every time, proving it is much more robust to hyper-parameter selection.
Limitations and Future Work
The primary limitation of this work is that the theoretical proofs rely on the interpolation assumption (that the model can reach zero training loss). While this is common in modern deep learning, it doesn't cover "noisy" settings where the minimum loss is significantly above zero.
Additionally, while the paper provides analytical ways to choose the "optimal" hyper-parameters, these depend on knowing properties of the data (like the condition number) that are hard to calculate for massive networks. Future work could involve developing "adaptive" versions of MaSS that tune these parameters automatically during training, similar to how Adam handles learning rates.
Summary updated