On the Computational Inefficiency of Large Batch Sizes for Stochastic Gradient Descent

By Noah Golmant, Nikita Vemuri, Zi-Mei Yao, Vladimir Feinberg, A. Gholami, Kai Rothauge, Michael W. Mahoney, Joseph E. Gonzalez. 2018

82 citations recorded by the source corpus.

Increasing the mini-batch size for stochastic gradient descent offers significant opportunities to reduce wall-clock training time, but there are a variety of theoretical and systems challenges that impede the widespread success of this technique. We investigate these issues, with an emphasis on time to convergence and total computational cost, through an extensive empirical analysis of network training across several architectures and problem domains, including image classification, image segmentation, and language modeling. Although it is common practice to increase the batch size in order to fully exploit available computational resources, we find a substantially more nuanced picture. Our main finding is that across a wide range of network architectures and problem domains, increasing the batch size beyond a certain point yields no decrease in wall-clock time to convergence for \emph{either} train or test loss. This batch size is usually substantially below the capacity of current systems. We show that popular training strategies for large batch size optimization begin to fail before we can populate all available compute resources, and we show that the point at which these methods break down depends more on attributes like model architecture and data complexity than it does directly on the size of the dataset.

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. Martin Jaggi
  2. Peter Richtárik
  3. Sebastian U. Stich
  4. Yoshua Bengio
  5. Ruslan Salakhutdinov
  6. Guodong Zhang
  7. Roger Baker Grosse
  8. Michael W. Mahoney

In Computer Vision and Pattern Recognition

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

In Optimization & Training

  1. Martin Jaggi
  2. Peter Richtárik
  3. Guodong Zhang
  4. Sebastian U. Stich
  5. Roger Baker Grosse
  6. Mehrdad Mahdavi
  7. Michael W. Mahoney
  8. Farzin Haddadpour

Citations in the corpus