DeepNet: Scaling Transformers to 1,000 Layers

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

261 citations recorded by the source corpus.

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. Extensive experiments demonstrate that DeepNet has superior performance across various benchmarks, including machine translation, language modeling (i.e., BERT, GPT) and vision pre-training (i.e., BEiT). 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.

Subfields: Computer Vision and Pattern Recognition, Electrical and Electronic Engineering, Model Architectures, Scaling & Learning Theory

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Vision and Pattern Recognition

  1. Furu Wei
  2. Li Dong
  3. Luc Van Gool
  4. Dacheng Tao
  5. Shaohan Huang
  6. Wenhui Wang
  7. Trevor Darrell
  8. Shuming Ma

In Electrical and Electronic Engineering

  1. Yonghong Tian
  2. Liuliang Yuan
  3. Man Yao
  4. Furu Wei
  5. Boxing Xu
  6. Zhaokun Zhou
  7. Jiakui Hu
  8. Guoqi Li

In Model Architectures

  1. Tri Dao
  2. Christopher R'e
  3. Daniel Y. Fu
  4. Stefano Ermon
  5. Furu Wei
  6. Atri Rudra
  7. Wenhui Wang
  8. Li Dong

In Scaling & Learning Theory

  1. Li Dong
  2. Atri Rudra
  3. Etai Littwin
  4. Christopher R'e
  5. Tri Dao
  6. Stefano Ermon
  7. Yaru Hao
  8. Yonghong Tian

Citations in the corpus