arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.03235cs.LGcs.AIstat.ML
收藏

大规模分布式神经网络在线训练

Large scale distributed neural network training through online distillation

Google(谷歌);Google DeepMind(谷歌DeepMind);Google Brain(谷歌大脑)

Rohan Anil, Gabriel Pereyra, Alexandre Passos, Robert Ormandi, George E. Dahl, Geoffrey E. Hinton

摘要:

集成和蒸馏等技术在与几乎任何基础模型配对时都有望提高模型质量。然而,由于增加的测试时间成本(用于合奏)和增加的复杂性的训练管道(用于蒸馏),这些技术是具有挑战性的,在工业环境中使用。在本文中,我们探索了一种相对简单的蒸馏方法,因为它不需要复杂的多级设置或许多新的超参数。我们的第一个主张是,在线蒸馏使我们能够使用额外的并行性来适应非常大的数据集,速度大约是原来的两倍。至关重要的是,即使我们已经达到了额外的并行性对同步或异步随机梯度下降没有任何好处的地步,我们仍然可以加快训练速度。在不相交的数据子集上训练的两个神经网络可以通过鼓励每个模型与另一个模型做出的预测一致来共享知识。这些预测可以来自其他模型的陈旧版本,因此可以使用很少传输的权重安全地计算它们。我们的第二个主张是,在线蒸馏是一种具有成本效益的方法,可以使模型的准确预测具有更高的可重复性。我们使用Criteo Display Ad Challenge数据集ImageNet和迄今为止用于神经语言建模的最大数据集(包含$6\times 10^{11}$令牌并基于Web数据的Common Crawl存储库)上的实验来支持我们的主张。

英文摘要:

Techniques such as ensembling and distillation promise model quality improvements when paired with almost any base model. However, due to increased test-time cost (for ensembles) and increased complexity of the training pipeline (for distillation), these techniques are challenging to use in industrial settings. In this paper we explore a variant of distillation which is relatively straightforward to use as it does not require a complicated multi-stage setup or many new hyperparameters. Our first claim is that online distillation enables us to use extra parallelism to fit very large datasets about twice as fast. Crucially, we can still speed up training even after we have already reached the point at which additional parallelism provides no benefit for synchronous or asynchronous stochastic gradient descent. Two neural networks trained on disjoint subsets of the data can share knowledge by encouraging each model to agree with the predictions the other model would have made. These predictions can come from a stale version of the other model so they can be safely computed using weights that only rarely get transmitted. Our second claim is that online distillation is a cost-effective way to make the exact predictions of a model dramatically more reproducible. We support our claims using experiments on the Criteo Display Ad Challenge dataset, ImageNet, and the largest to-date dataset used for neural language modeling, containing $6\times 10^{11}$ tokens and based on the Common Crawl repository of web data.

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

↑