On Empirical Comparisons of Optimizers for Deep Learning
Dami Choi, Christopher J. Shallue, Zachary Nado, Jaehoon Lee, Chris J. Maddison, George E. Dahl
TL;DR
This paper argues that empirical comparisons of optimizers in deep learning are dominated by hyperparameter tuning protocols rather than intrinsic algorithmic differences. It formalizes an inclusion-based taxonomy showing that more general optimizers can replicate the behavior of their special cases, and demonstrates this across diverse image and language workloads with optimizer-specific search spaces. The key finding is that, when hyperparameters are thoroughly tuned, adaptive methods like Adam and NAdam never underperform Momentum/SGD, and the observed rankings align with the inclusion hierarchy. The work urges practitioners to thoroughly report tuning procedures and cautions against drawing conclusions from under-tuned comparisons, offering practical tips for fair benchmarking and optimizer selection.
Abstract
Selecting an optimizer is a central step in the contemporary deep learning pipeline. In this paper, we demonstrate the sensitivity of optimizer comparisons to the hyperparameter tuning protocol. Our findings suggest that the hyperparameter search space may be the single most important factor explaining the rankings obtained by recent empirical comparisons in the literature. In fact, we show that these results can be contradicted when hyperparameter search spaces are changed. As tuning effort grows without bound, more general optimizers should never underperform the ones they can approximate (i.e., Adam should never perform worse than momentum), but recent attempts to compare optimizers either assume these inclusion relationships are not practically relevant or restrict the hyperparameters in ways that break the inclusions. In our experiments, we find that inclusion relationships between optimizers matter in practice and always predict optimizer comparisons. In particular, we find that the popular adaptive gradient methods never underperform momentum or gradient descent. We also report practical tips around tuning often ignored hyperparameters of adaptive gradient methods and raise concerns about fairly benchmarking optimizers for neural network training.
