Improving Generalization Performance by Switching from Adam to SGD

By Nitish Shirish Keskar, Richard Socher. 2017

593 citations recorded by the source corpus.

Despite superior training outcomes, adaptive optimization methods such as Adam, Adagrad or RMSprop have been found to generalize poorly compared to Stochastic gradient descent (SGD). These methods tend to perform well in the initial portion of training but are outperformed by SGD at later stages of training. We investigate a hybrid strategy that begins training with an adaptive method and switches to SGD when appropriate. Concretely, we propose SWATS, a simple strategy which switches from Adam to SGD when a triggering condition is satisfied. The condition we propose relates to the projection of Adam steps on the gradient subspace. By design, the monitoring process for this condition adds very little overhead and does not increase the number of hyperparameters in the optimizer. We report experiments on several standard benchmarks such as: ResNet, SENet, DenseNet and PyramidNet for the CIFAR-10 and CIFAR-100 data sets, ResNet on the tiny-ImageNet data set and language modeling with recurrent networks on the PTB and WT2 data sets. The results show that our strategy is capable of closing the generalization gap between SGD and Adam on a majority of the tasks.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yoshua Bengio
  2. Quoc V. Le
  3. Ruslan Salakhutdinov
  4. Sergey Levine
  5. Percy Liang
  6. Mohit Bansal
  7. Dacheng Tao
  8. Caiming Xiong

In Computer Vision and Pattern Recognition

  1. Dacheng Tao
  2. Luc Van Gool
  3. Trevor Darrell
  4. Ming-Hsuan Yang
  5. Yi Yang
  6. Xiaogang Wang
  7. Alan L. Yuille
  8. Andrew Zisserman

In Optimization & Training

  1. Yoshua Bengio
  2. Yuanzhi Li
  3. Tengyu Ma
  4. Zeyuan Allen-Zhu
  5. Razvan Pascanu
  6. Soham De
  7. Quanquan Gu
  8. Laurence Aitchison

Citations in the corpus