paper-with-me

홈 › Papers

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

2018-11-30 · Noah Golmant, Nikita Vemuri, Zhewei Yao, Vladimir Feinberg, Amir Gholami, Kai Rothauge, Michael W. Mahoney, Joseph Gonzalez

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.

📄 PDF Abstract BibTeX arXiv:1811.12941

Code (0)

등록된 구현이 없습니다.

Tasks

image-classificationImage ClassificationImage SegmentationLanguage ModelingLanguage ModellingSemantic Segmentation

Similar Papers 제목 키워드 기반

Inefficiency of K-FAC for Large Batch Size Training

2019-03-14 · Linjian Ma, Gabe Montague, Jiayu Ye, Zhewei Yao 외

In stochastic optimization, using large batch sizes during training can leverage parallel resources to produce faster wall-clock training times per training epoch. However, for both training loss and testing error, recen…

Stochastic Optimization

AdaBatch: Adaptive Batch Sizes for Training Deep Neural Networks

2017-12-06 · Aditya Devarakonda, Maxim Naumov, Michael Garland

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…

Computational Efficiency

PowerEvaluationBALD: Efficient Evaluation-Oriented Deep (Bayesian) Active Learning with Stochastic Acquisition Functions

2021-01-10 · Andreas Kirsch, Yarin Gal

We develop BatchEvaluationBALD, a new acquisition function for deep Bayesian active learning, as an expansion of BatchBALD that takes into account an evaluation set of unlabeled data, for example, the pool set. We also d…

Active Learning

Subsampling is not Magic: Why Large Batch Sizes Work for Differentially Private Stochastic Optimisation

2024-02-06 · Ossi Räisä, Joonas Jälkö, Antti Honkela

We study how the batch size affects the total gradient variance in differentially private stochastic gradient descent (DP-SGD), seeking a theoretical explanation for the usefulness of large batch sizes. As DP-SGD is the …

AdaScale SGD: A User-Friendly Algorithm for Distributed Training

2020-07-09 · ICML 2020 1 · Tyler B. Johnson, Pulkit Agrawal, Haijie Gu, Carlos Guestrin

When using large-batch training to speed up stochastic gradient descent, learning rates must adapt to new batch sizes in order to maximize speed-ups and preserve model quality. Re-tuning learning rates is resource intens…

image-classificationImage ClassificationMachine Translationobject-detection+4