arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1812.02886cs.LGstat.ML
收藏

用于同步分布式DNN训练的非线性共轭因子

Nonlinear Conjugate Gradients For Scaling Synchronous Distributed DNN Training

Apple Inc.(苹果公司)

Saurabh Adya, Vinay Palakkode, Oncel Tuzel

摘要:

与传统的基于梯度下降的优化算法相比,基于非线性共轭梯度(NLCG)的优化算法具有更好的损失收敛特性。然而,在深度神经网络(DNN)训练中,选择的主要优化算法仍然是随机梯度下降(SGD)及其变体。在这项工作中,我们提出并评估了用于大规模DNN训练任务的随机预处理非线性共轭梯度算法。我们发现,非线性共轭梯度算法提高了DNN训练的收敛速度,特别是在大型小批量场景中,这对于将同步分布式DNN训练扩展到大量工作者至关重要。我们展示了如何在NLCG预处理器中有效地使用二阶信息来提高DNN训练收敛性。对于ImageNet分类任务,在超过65 k的超大型小批量时,NLCG优化器能够将Resnet-50模型的标准训练的top-1准确率提高10个百分点以上。对于CIFAR-100分类任务,在超过16 k的超大型小批量时,NLCG优化器能够将Resnet-32模型的标准训练提高15个百分点以上,用于200个epoch。

英文摘要:

Nonlinear conjugate gradient (NLCG) based optimizers have shown superior loss convergence properties compared to gradient descent based optimizers for traditional optimization problems. However, in Deep Neural Network (DNN) training, the dominant optimization algorithm of choice is still Stochastic Gradient Descent (SGD) and its variants. In this work, we propose and evaluate the stochastic preconditioned nonlinear conjugate gradient algorithm for large scale DNN training tasks. We show that a nonlinear conjugate gradient algorithm improves the convergence speed of DNN training, especially in the large mini-batch scenario, which is essential for scaling synchronous distributed DNN training to large number of workers. We show how to efficiently use second order information in the NLCG pre-conditioner for improving DNN training convergence. For the ImageNet classification task, at extremely large mini-batch sizes of greater than 65k, NLCG optimizer is able to improve top-1 accuracy by more than 10 percentage points for standard training of the Resnet-50 model for 90 epochs. For the CIFAR-100 classification task, at extremely large mini-batch sizes of greater than 16k, NLCG optimizer is able to improve top-1 accuracy by more than 15 percentage points for standard training of the Resnet-32 model for 200 epochs.

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

↑