[Paper Review] Accelerating SGD with momentum for over-parameterized learning
This paper proposes MaSS (Momentum-added Stochastic Solver), a modified Nesterov SGD with a compensation term that enables accelerated convergence over standard SGD in over-parameterized, interpolating settings. MaSS achieves the same convergence range as SGD while matching the optimal Nesterov acceleration rate in the full-batch deterministic limit, and it identifies three distinct mini-batch scaling regimes: linear, diminishing returns, and saturation.
Nesterov SGD is widely used for training modern neural networks and other machine learning models. Yet, its advantages over SGD have not been theoretically clarified. Indeed, as we show in our paper, both theoretically and empirically, Nesterov SGD with any parameter selection does not in general provide acceleration over ordinary SGD. Furthermore, Nesterov SGD may diverge for step sizes that ensure convergence of ordinary SGD. This is in contrast to the classical results in the deterministic scenario, where the same step size ensures accelerated convergence of the Nesterov's method over optimal gradient descent. To address the non-acceleration issue, we introduce a compensation term to Nesterov SGD. The resulting algorithm, which we call MaSS, converges for same step sizes as SGD. We prove that MaSS obtains an accelerated convergence rates over SGD for any mini-batch size in the linear setting. For full batch, the convergence rate of MaSS matches the well-known accelerated rate of the Nesterov's method. We also analyze the practically important question of the dependence of the convergence rate and optimal hyper-parameters on the mini-batch size, demonstrating three distinct regimes: linear scaling, diminishing returns and saturation. Experimental evaluation of MaSS for several standard architectures of deep networks, including ResNet and convolutional networks, shows improved performance over SGD, Nesterov SGD and Adam.
Motivation & Objective
- To resolve the theoretical and empirical lack of acceleration in Nesterov SGD for over-parameterized models.
- To identify why Nesterov SGD fails to accelerate over SGD despite its success in deterministic settings.
- To design a new algorithm that enables momentum-based acceleration with the same step size range as standard SGD.
- To analyze the dependence of convergence rate and optimal hyperparameters on mini-batch size in accelerated stochastic optimization.
- To validate MaSS on deep neural networks, showing improved optimization and generalization over SGD, SGD+Nesterov, and Adam.
Proposed method
- Introduces MaSS, a two-step update rule with a compensation term in the momentum update to stabilize and accelerate convergence.
- The algorithm updates weights using stochastic gradients and a modified momentum term that includes a compensation component proportional to the gradient.
- The compensation term is derived to ensure convergence for the same step sizes as standard SGD, counteracting the instability of Nesterov SGD.
- Theoretical analysis shows MaSS achieves accelerated convergence in the linear setting and matches the deterministic Nesterov rate when batch size is full.
- The method identifies three distinct mini-batch scaling regimes: linear, diminishing returns, and saturation, with analytically derived critical batch sizes $m_1^*$ and $m_2^*$.
- Empirical evaluation uses ResNet, CNN, and fully-connected networks on MNIST and CIFAR-10, with learning rate decay and restarts to maintain stability.
Experimental results
Research questions
- RQ1Why does Nesterov SGD fail to accelerate over standard SGD in over-parameterized, interpolating settings?
- RQ2Can a modified momentum method achieve both convergence stability and acceleration under the same step size as SGD?
- RQ3How does the convergence rate of accelerated stochastic optimization depend on mini-batch size?
- RQ4What are the distinct scaling regimes of convergence speed and optimal hyperparameters with respect to mini-batch size?
- RQ5Does the proposed MaSS algorithm outperform SGD, SGD+Nesterov, and Adam in optimization and generalization on deep networks?
Key findings
- Nesterov SGD does not provide acceleration over standard SGD in the stochastic, over-parameterized setting, and may even diverge for step sizes that converge SGD.
- MaSS achieves exponential convergence for the same step size range as SGD, with accelerated convergence rates in the linear setting.
- In the full-batch deterministic case, MaSS reduces to the classical Nesterov method and matches its well-known optimal convergence rate.
- The convergence speed per iteration $s(m)$ exhibits three distinct regimes: linear scaling, diminishing returns, and saturation, with critical batch sizes $m_1^*$ and $m_2^*$ derived analytically.
- For mini-batch size $m=64$, optimal $\tilde{\kappa}_m$ values for MaSS lie in the range $[2,25]$, with $\alpha=0.05$ corresponding to $\gamma=0.90$.
- Empirical results show MaSS outperforms SGD, SGD+Nesterov, and Adam in both training loss reduction and test accuracy on CIFAR-10 and MNIST using ResNet, CNN, and fully-connected architectures.
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.