Nonlinear Conjugate Gradients For Scaling Synchronous Distributed DNN Training

Saurabh Adya, Vinay Palakkode, Oncel Tuzel
12/7/2018
cs.LGstat.ML

Official code: apple-aiml-research/ml-ncg (13 stars, Python, last commit 2026-09-11).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

136PythonApr 25, 20192 months agoNOASSERTION

Similar Papers

Cite this paper

@article{adya2018nonlinear,
  title  = {Nonlinear Conjugate Gradients For Scaling Synchronous Distributed DNN Training},
  author = {Saurabh Adya and Vinay Palakkode and Oncel Tuzel},
  year   = {2018},
  eprint = {1812.02886},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.02886}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1812.02886.svg)](https://codeofpaper.com/paper/1812.02886)

Discussion