arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1712.07628cs.LGmath.OC
收藏

通过从Adam切换到SGD来提高泛化性能

Improving Generalization Performance by Switching from Adam to SGD

Salesforce Research(Salesforce 研究院)

Nitish Shirish Keskar, Richard Socher

摘要:

尽管训练结果优越,但与随机梯度下降(SGD)相比,Adam、Adagrad或RMSprop等自适应优化方法的泛化能力较差。这些方法往往在训练的初始阶段表现良好,但在训练的后期阶段被SGD优于。我们研究了一种混合策略,该策略以自适应方法开始训练,并在适当时切换到SGD。具体地说,我们提出了SWATS,一个简单的策略,从亚当到SGD时,触发条件得到满足。我们提出的条件涉及到亚当步骤的梯度子空间上的投影。通过设计,对这种情况的监视过程只会增加很少的开销,并且不会增加优化器中的超参数数量。我们报告了几个标准基准测试的实验,例如:CIFAR-10和CIFAR-100数据集的ResNet,SENet,DenseNet和PyramidNet,tiny-ImageNet数据集的ResNet以及PTB和WT 2数据集上使用递归网络的语言建模。结果表明,我们的策略能够在大多数任务上缩小SGD和Adam之间的泛化差距。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑