arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1812.06162cs.LGstat.ML
收藏

大批量培训的实证模型

An Empirical Model of Large-Batch Training

OpenAI;Johns Hopkins University(约翰斯·霍普金斯大学)

Sam McCandlish, Jared Kaplan, Dario Amodei, OpenAI Dota Team

摘要:

在越来越多的领域中,已经证明深度学习模型可以使用相对较大的批量大小进行训练,而不会牺牲数据效率。然而,这种大规模数据并行的限制似乎因域而异,从ImageNet中的数万批到玩Dota 2游戏的RL代理中的数百万批。据我们所知,对于为什么这些批量大小的限制不同,或者我们如何在新的领域中选择正确的批量大小,概念上的理解有限。在本文中,我们证明了一个简单且易于测量的统计量,称为梯度噪声尺度,可以预测许多领域和应用程序中最大的有用批量大小,包括许多监督学习数据集(MNIST,SVHN,CIFAR-10,ImageNet,Billion Word),强化学习领域(Atari和Dota),甚至生成模型训练(SVHN上的自动编码器)。我们发现,噪声尺度随着训练运行中损失的减少而增加,并且主要通过改进模型性能来依赖于模型大小。我们的理论还描述了计算效率和时间效率之间的权衡,并提供了自适应批量训练的好处的粗略模型。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑