超大神经网络:稀疏门控专家混合层

Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer

诺姆·沙泽尔 Noam Shazeer · Google · 2017-01-23 · arXiv:1701.06538 ↗ · 被引 4963

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

摘要 · Abstract

神经网络吸收信息的能力受限于其参数数量。理论上,条件计算(即网络部分按样本激活)可以大幅增加模型容量而不成比例地增加计算量。然而在实践中,存在显著的算法和性能挑战。在这项工作中,我们解决了这些挑战,最终实现了条件计算的承诺,在现代 GPU 集群上实现了超过 1000 倍的模型容量提升,同时仅带来轻微的计算效率损失。我们引入了稀疏门控专家混合层(MoE),由多达数千个前馈子网络组成。一个可训练的门控网络为每个样本确定这些专家的稀疏组合。我们将 MoE 应用于语言建模和机器翻译任务,在这些任务中,模型容量对于吸收训练语料库中的大量知识至关重要。我们提出了模型架构,其中包含高达 1370 亿参数的 MoE 以卷积方式堆叠在 LSTM 层之间。在大型语言建模和机器翻译基准测试中,这些模型以更低的计算成本取得了显著优于现有技术的结果。

The capacity of a neural network to absorb information is limited by its number of parameters. Conditional computation, where parts of the network are active on a per-example basis, has been proposed in theory as a way of dramatically increasing model capacity without a proportional increase in computation. In practice, however, there are significant algorithmic and performance challenges. In this work, we address these challenges and finally realize the promise of conditional computation, achieving greater than 1000x improvements in model capacity with only minor losses in computational efficiency on modern GPU clusters. We introduce a Sparsely-Gated Mixture-of-Experts layer (MoE), consisting of up to thousands of feed-forward sub-networks. A trainable gating network determines a sparse combination of these experts to use for each example. We apply the MoE to the tasks of language modeling and machine translation, where model capacity is critical for absorbing the vast quantities of knowledge available in the training corpora. We present model architectures in which a MoE with up to 137 billion parameters is applied convolutionally between stacked LSTM layers. On large language modeling and machine translation benchmarks, these models achieve significantly better results than state-of-the-art at lower computational cost.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 14)

阅读逐段中英对照全文 →