Revisiting Small Batch Training for Deep Neural Networks

By Dominic Masters, Carlo Luschi. 2018

767 citations recorded by the source corpus.

Modern deep neural network training is typically based on mini-batch stochastic gradient optimization. While the use of large mini-batches increases the available computational parallelism, small batch training has been shown to provide improved generalization performance and allows a significantly smaller memory footprint, which might also be exploited to improve machine throughput. In this paper, we review common assumptions on learning rate scaling and training duration, as a basis for an experimental comparison of test performance for different mini-batch sizes. We adopt a learning rate that corresponds to a constant average weight update per gradient calculation (i.e., per unit cost of computation), and point out that this results in a variance of the weight updates that increases linearly with the mini-batch size $m$. The collected experimental results for the CIFAR-10, CIFAR-100 and ImageNet datasets show that increasing the mini-batch size progressively reduces the range of learning rates that provide stable convergence and acceptable test performance. On the other hand, small mini-batch sizes provide more up-to-date gradient calculations, which yields more stable and reliable training. The best performance has been consistently obtained for mini-batch sizes between $m = 2$ and $m = 32$, which contrasts with recent work advocating the use of mini-batch sizes in the thousands.

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. Sergey Levine
  3. Quoc V. Le
  4. Percy Liang
  5. Martin Jaggi
  6. Mohit Bansal
  7. Dacheng Tao
  8. Ruslan Salakhutdinov

In Computer Vision and Pattern Recognition

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

In Optimization & Training

  1. Martin Jaggi
  2. Sebastian U. Stich
  3. Peter Richtárik
  4. Yoshua Bengio
  5. Tao Lin
  6. Virginia Smith
  7. Simon Lacoste-Julien
  8. Michael W. Mahoney

Citations in the corpus