[Paper Review] YellowFin and the Art of Momentum Tuning
The paper introduces YellowFin, an automatic tuner for momentum SGD that jointly tunes learning rate and momentum, achieving faster convergence than Adam and effective robustness in synchronous and asynchronous settings.
Hyperparameter tuning is one of the most time-consuming workloads in deep learning. State-of-the-art optimizers, such as AdaGrad, RMSProp and Adam, reduce this labor by adaptively tuning an individual learning rate for each variable. Recently researchers have shown renewed interest in simpler methods like momentum SGD as they may yield better test metrics. Motivated by this trend, we ask: can simple adaptive methods based on SGD perform as well or better? We revisit the momentum SGD algorithm and show that hand-tuning a single learning rate and momentum makes it competitive with Adam. We then analyze its robustness to learning rate misspecification and objective curvature variation. Based on these insights, we design YellowFin, an automatic tuner for momentum and learning rate in SGD. YellowFin optionally uses a negative-feedback loop to compensate for the momentum dynamics in asynchronous settings on the fly. We empirically show that YellowFin can converge in fewer iterations than Adam on ResNets and LSTMs for image recognition, language modeling and constituency parsing, with a speedup of up to 3.28x in synchronous and up to 2.69x in asynchronous settings.
Motivation & Objective
- Motivate reducing hyperparameter tuning workload in deep learning by revisiting momentum-based SGD.
- Analyze robustness of momentum SGD to learning rate misspecification and curvature variation.
- Design and validate an automatic tuner (YellowFin) that adapts learning rate and momentum on the fly.
- Extend to asynchronous training with closed-loop YellowFin to compensate for extra momentum from asynchrony.
- Evaluate performance across diverse models (ResNets and LSTMs) and tasks (image recognition, language modeling, parsing).
Proposed method
- Model the momentum update as a dynamical system and study the momentum operator A_t.
- Derive robustness conditions (spectral radius) showing sqrt(mu) convergence when (1−√μ)^2 ≤ α h(x_t) ≤ (1+√μ)^2.
- Develop SingleStep to compute (μ_t, α_t) from gradient statistics under a robust region constraint.
- Propose Gradient-based measurement functions CurvatureRange, Variance, Distance to estimate h_max, h_min, gradient variance C, and distance D.
- Introduce adaptive gradient clipping to stabilize training on non-smooth objectives.
- Implement closed-loop YellowFin to adjust algorithmic momentum in asynchronous settings by targeting stable total momentum μ_T.
- Provide practical implementations and control loops for tuning and stability based on gradient-based observables.
Experimental results
Research questions
- RQ1Can momentum-based SGD with a single tuned learning rate and momentum outperform adaptive optimizers like Adam on a range of models?
- RQ2How robust is momentum SGD to misspecified learning rates and varying curvature, and can this robustness be exploited for automatic tuning?
- RQ3Can an automatic tuner (YellowFin) reliably adjust momentum and learning rate on the fly in both synchronous and asynchronous training?
- RQ4Does incorporating a closed-loop momentum control mitigate asynchrony-induced momentum and accelerate convergence?
- RQ5What empirical speedups and stability assurances can be demonstrated across CNNs and RNNs compared to tuned Adam and hand-tuned momentum SGD?
Key findings
- Momentum SGD with a hand-tuned learning rate can converge faster than Adam on a large class of models.
- YellowFin achieves up to 3.28x speedup over Adam in synchronous settings and up to 2.69x in asynchronous settings for ResNets and LSTMs.
- YellowFin with no hand-tuning matches or surpasses hand-tuned momentum SGD and often outperforms tuned Adam across multiple tasks (image recognition, language modeling, parsing).
- The tuner operates within a robust region ensuring a homogeneous spectral radius of sqrt(mu) for the momentum operator across steps and directions.
- Adaptive gradient clipping stabilizes training for objectives with exploding gradients, improving performance on non-smooth tasks.
- Closed-loop YellowFin can significantly accelerate asynchronous training by compensating for asynchrony-induced momentum, reducing iterations to reach target performance.
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.