arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.00555cs.CLcs.LG
收藏

DeepNet:将Transformers扩展到1,000层

DeepNet: Scaling Transformers to 1,000 Layers

Microsoft Research(微软研究院)

Hongyu Wang, Shuming Ma, Li Dong, Shaohan Huang, Dongdong Zhang, Furu Wei

摘要:

在本文中,我们提出了一个简单而有效的方法来稳定极深的Transformers。具体来说,我们引入了一个新的规范化函数(DeepNorm)来修改Transformer中的剩余连接,并伴随着理论推导的初始化。深入的理论分析表明,模型更新可以以稳定的方式有界。所提出的方法结合了两个世界中最好的,即,Post-LN的良好性能和Pre-LN的稳定训练,使DeepNorm成为首选。我们成功地将Transformers扩展到1,000层(即,2,500个注意力和前馈网络子层),这比之前的深度Transformers要深一个数量级。值得注意的是,在一个具有7,482个翻译方向的多语言基准测试中,我们的200层模型(3.2B参数)的性能明显优于48层最先进的模型(12 B参数)5个BLEU点,这表明了一个有希望的缩放方向。

英文摘要:

In this paper, we propose a simple yet effective method to stabilize extremely deep Transformers. Specifically, we introduce a new normalization function (DeepNorm) to modify the residual connection in Transformer, accompanying with theoretically derived initialization. In-depth theoretical analysis shows that model updates can be bounded in a stable way. The proposed method combines the best of two worlds, i.e., good performance of Post-LN and stable training of Pre-LN, making DeepNorm a preferred alternative. We successfully scale Transformers up to 1,000 layers (i.e., 2,500 attention and feed-forward network sublayers) without difficulty, which is one order of magnitude deeper than previous deep Transformers. Remarkably, on a multilingual benchmark with 7,482 translation directions, our 200-layer model with 3.2B parameters significantly outperforms the 48-layer state-of-the-art model with 12B parameters by 5 BLEU points, which indicates a promising scaling direction.

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

↑