Skip to main content
QUICK REVIEW

[Paper Review] AdaBatch: Adaptive Batch Sizes for Training Deep Neural Networks

Aditya Devarakonda, Maxim Naumov|arXiv (Cornell University)|Dec 6, 2017
Advanced Neural Network ApplicationsComputer Science19 references105 citations
TL;DR

AdaBatch presents a method that adaptively increases batch size during training to retain small-batch convergence benefits while gaining large-batch efficiency, showing speedups up to 6.25× with minimal accuracy loss on multi-GPU setups.

ABSTRACT

Training deep neural networks with Stochastic Gradient Descent, or its variants, requires careful choice of both learning rate and batch size. While smaller batch sizes generally converge in fewer training epochs, larger batch sizes offer more parallelism and hence better computational efficiency. We have developed a new training approach that, rather than statically choosing a single batch size for all epochs, adaptively increases the batch size during the training process. Our method delivers the convergence rate of small batch sizes while achieving performance similar to large batch sizes. We analyse our approach using the standard AlexNet, ResNet, and VGG networks operating on the popular CIFAR-10, CIFAR-100, and ImageNet datasets. Our results demonstrate that learning with adaptive batch sizes can improve performance by factors of up to 6.25 on 4 NVIDIA Tesla P100 GPUs while changing accuracy by less than 1% relative to training with fixed batch sizes.

Motivation & Objective

  • Address the trade-off between small and large batch sizes in SGD-based training.
  • Propose a dynamic batch sizing scheme that grows batch size during training.
  • Show that adaptive batching preserves accuracy while improving runtime efficiency.
  • Demonstrate compatibility with existing large-batch techniques and learning rate schedules.
  • Evaluate on standard CNN architectures and datasets (AlexNet, VGG, ResNet; CIFAR-10/100, ImageNet).

Proposed method

  • Start training with a small batch size and progressively increase it at defined intervals.
  • Simultaneously adapt the learning rate so that the ratio alpha/r remains constant.
  • Double the batch size at intervals and relate batch growth to effective learning rate decay.
  • Analyze the per-epoch computation to show that total FLOPs per epoch remains approximately fixed with batch growth.
  • Empirically compare adaptive batching against fixed batch sizes on CIFAR and ImageNet.
  • Combine AdaBatch with existing large-batch training techniques to assess additive speedups.

Experimental results

Research questions

  • RQ1Can adaptive batch sizing achieve the convergence and accuracy of small-batch training while delivering the computational efficiency of large-batch training?
  • RQ2How does progressively increasing batch size interact with learning rate schedules in CNN training?
  • RQ3What are the practical performance gains and scalability benefits when applying adaptive batch sizes to multi-GPU setups?
  • RQ4To what extent can AdaBatch be integrated with existing large-batch strategies to further speed up training without increasing test error?

Key findings

  • Adaptive batch sizes achieve test accuracies within 1% of the smallest fixed batch size across tested networks and datasets.
  • On CIFAR-100 with VGG19 and ResNet-20, adaptive batching yields speedups of up to 3.54× (VGG19) and 6.25× (ResNet-20) with less than 2% test error difference.
  • Across CIFAR-10/100 experiments, adaptive batching often outperforms the largest fixed batch sizes in test accuracy while reducing wall-clock time.
  • ImageNet experiments show that AdaBatch can reach large final batch sizes (up to 524,288 in some settings) without significantly altering final test error, depending on starting batch size and increase factor.
  • Table 1 quantifies per-epoch speedups in forward and backward passes for adaptive versus fixed batch sizes on CIFAR-100, showing improved times across networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.