paper-with-me

Papers

An Empirical Model of Large-Batch Training

2018-12-14 · Sam McCandlish, Jared Kaplan, Dario Amodei, OpenAI Dota Team

In an increasing number of domains it has been demonstrated that deep learning models can be trained using relatively large batch sizes without sacrificing data efficiency. However the limits of this massive data parallelism seem to differ from domain to domain, ranging from batches of tens of thousands in ImageNet to batches of millions in RL agents that play the game Dota 2. To our knowledge there is limited conceptual understanding of why these limits to batch size differ or how we might choose the correct batch size in a new domain. In this paper, we demonstrate that a simple and easy-to-measure statistic called the gradient noise scale predicts the largest useful batch size across many domains and applications, including a number of supervised learning datasets (MNIST, SVHN, CIFAR-10, ImageNet, Billion Word), reinforcement learning domains (Atari and Dota), and even generative model training (autoencoders on SVHN). We find that the noise scale increases as the loss decreases over a training run and depends on the model size primarily through improved model performance. Our empirically-motivated theory also describes the tradeoff between compute-efficiency and time-efficiency, and provides a rough model of the benefits of adaptive batch-size training.

📄 PDF Abstract BibTeX arXiv:1812.06162

Code (11)

DanyWind/fastai_bs_finder pytorch
RexGLiu/rlpyt_crbp pytorch
akterskii/rlpyt pytorch
alexsax/testing_rlpyt pytorch
astooke/rlpyt pytorch
davidandym/task-conflict-in-text-to-text-learners pytorch
eac-replication/eac-replication pytorch
hal-314/fastai-batch-size-finder
petuum/adaptdl pytorch
sandeeprockstar/Pose_Estimation pytorch
sarahisyoung/rlpyt pytorch

Tasks

Dota 2modelReinforcement Learning

Similar Papers 제목 키워드 기반

Stochastic Normalized Gradient Descent with Momentum for Large-Batch Training

2020-07-28 · Shen-Yi Zhao, Chang-Wei Shi, Yin-Peng Xie, Wu-Jun Li

Stochastic gradient descent~(SGD) and its variants have been the dominating optimization methods in machine learning. Compared to SGD with small-batch training, SGD with large-batch training can better utilize the comput…

On Adversarial Robustness of Small vs Large Batch Training

2019-05-17 · Sandesh Kamath, Amit Despande, K V Subrahmanyam

Large-batch training is known to incur poor generalization by Jastrzebski et al. (2017) as well as poor adversarial robustness by Yao et al. (2018b). Hessian-based analysis of large-batch training by Yao et al. (2018b) c…

Adversarial Robustness

Critical Batch Size Revisited: A Simple Empirical Approach to Large-Batch Language Model Training

2025-05-29 · William Merrill, Shane Arora, Dirk Groeneveld, Hannaneh Hajishirzi

The right batch size is important when training language models at scale: a large batch size is necessary for fast training, but a batch size that is too large will harm token efficiency. To navigate this tradeoff, McCan…

Language ModelingLanguage ModellingNavigate

An Empirical Study of Mini-Batch Creation Strategies for Neural Machine Translation

2017-06-19 · WS 2017 8 · Makoto Morishita, Yusuke Oda, Graham Neubig, Koichiro Yoshino 외

Training of neural machine translation (NMT) models usually uses mini-batches for efficiency purposes. During the mini-batched training process, it is necessary to pad shorter sentences in a mini-batch to be equal in len…

Machine TranslationNMTSentenceTranslation

Disentangling the Mechanisms Behind Implicit Regularization in SGD

2022-11-29 · Zachary Novack, Simran Kaur, Tanya Marwah, Saurabh Garg 외

A number of competing hypotheses have been proposed to explain why small-batch Stochastic Gradient Descent (SGD)leads to improved generalization over the full-batch regime, with recent work crediting the implicit regular…