[Paper Review] Training Deep Neural Networks with Adaptive Momentum Inspired by the Quadratic Optimization
This paper proposes an adaptive momentum scheme for training deep neural networks, inspired by optimal momentum selection in quadratic optimization. By dynamically adjusting the momentum coefficient based on gradient and parameter changes, the method improves convergence speed, robustness to learning rate, and generalization in SGD and Adam, with theoretical convergence guarantees in both convex and nonconvex settings.
Heavy ball momentum is crucial in accelerating (stochastic) gradient-based optimization algorithms for machine learning. Existing heavy ball momentum is usually weighted by a uniform hyperparameter, which relies on excessive tuning. Moreover, the calibrated fixed hyperparameter may not lead to optimal performance. In this paper, to eliminate the effort for tuning the momentum-related hyperparameter, we propose a new adaptive momentum inspired by the optimal choice of the heavy ball momentum for quadratic optimization. Our proposed adaptive heavy ball momentum can improve stochastic gradient descent (SGD) and Adam. SGD and Adam with the newly designed adaptive momentum are more robust to large learning rates, converge faster, and generalize better than the baselines. We verify the efficiency of SGD and Adam with the new adaptive momentum on extensive machine learning benchmarks, including image classification, language modeling, and machine translation. Finally, we provide convergence guarantees for SGD and Adam with the proposed adaptive momentum.
Motivation & Objective
- To eliminate the need for manual tuning of momentum hyperparameters in SGD and Adam.
- To develop a principled, adaptive momentum scheme that dynamically adjusts based on optimization dynamics.
- To improve training robustness to large learning rates and enhance generalization performance.
- To provide theoretical convergence guarantees for the proposed adaptive momentum in both convex and nonconvex optimization.
Proposed method
- The adaptive momentum coefficient $\beta_{k+1}$ is computed using a formula derived from optimal momentum in quadratic optimization: $\beta_{k+1} = \text{Proj}_{[0,1-\delta]}\left(\left[1 - \sqrt{\gamma \frac{\|\mathbf{g}^k - \mathbf{g}^{k-1}\|}{\|\mathbf{x}^k - \mathbf{x}^{k-1}\|}}\right]^2\right)$ for $k \geq 2$.
- The scheme uses the $\ell_2$ norm of gradient and parameter differences to estimate curvature, enabling dynamic momentum adjustment.
- The method is integrated into both standard SGD and Adam, replacing the fixed $\beta$ with the adaptive $\beta_{k+1}$.
- A projection operator ensures $\beta_{k+1} \in [0, 1 - \delta]$, with $\delta = 10^{-3}$ in experiments.
- Theoretical analysis establishes convergence for adaptive momentum in both convex and nonconvex settings, including proximal HB and Adam variants.
- The approach is validated on image classification, language modeling, and machine translation benchmarks.
Experimental results
Research questions
- RQ1Can we design an adaptive momentum that eliminates the need for manual tuning of the momentum hyperparameter $\beta$ in SGD and Adam?
- RQ2Does the proposed adaptive momentum improve convergence speed and generalization in deep neural network training?
- RQ3Is the adaptive momentum robust to large learning rates across diverse machine learning tasks?
- RQ4Can we provide theoretical convergence guarantees for SGD and Adam with the proposed adaptive momentum?
Key findings
- SGD and Adam with the proposed adaptive momentum converge faster than their baseline counterparts across all evaluated benchmarks.
- The adaptive momentum methods generalize better than standard SGD and Adam, particularly under large learning rates.
- The methods show improved robustness to learning rate hyperparameters, maintaining performance even when learning rates are suboptimal.
- Theoretical convergence is established for both convex and nonconvex settings, including proximal HB and Adam variants.
- Empirical results on image classification, language modeling, and machine translation confirm consistent performance gains.
- The adaptive momentum scheme achieves state-of-the-art performance on multiple standard benchmarks without requiring manual tuning of $\beta$.
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.