大规模批量训练的实证模型

An Empirical Model of Large-Batch Training

达里奥·阿莫迪 Dario Amodei · OpenAI · 2018-12-14 · arXiv:1812.06162 ↗ · 被引 413

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

越来越多的领域表明,深度学习模型可以使用相对较大的批量大小进行训练,而不会牺牲数据效率。然而,这种大规模数据并行的限制似乎因领域而异,从 ImageNet 的数万批量到 Dota 2 游戏智能体的数百万批量。据我们所知,对于这些批量大小限制为何不同,或者如何在新领域中选择正确的批量大小,目前缺乏概念上的理解。在本文中,我们证明了一个简单且易于测量的统计量——梯度噪声尺度——可以预测许多领域和应用中最大有用的批量大小,包括多个监督学习数据集(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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 28)

阅读逐段中英对照全文 →