Lite Transformer with Long-Short Range Attention

By Zhanghao Wu, Zhijian Liu, Ji Lin, Yujun Lin, Song Han. 2020

392 citations recorded by the source corpus.

Transformer has become ubiquitous in natural language processing (e.g., machine translation, question answering); however, it requires enormous amount of computations to achieve high performance, which makes it not suitable for mobile applications since mobile phones are tightly constrained by the hardware resources and battery. In this paper, we investigate the mobile setting (under 500M Mult-Adds) for NLP tasks to facilitate the deployment on the edge devices. We present Long-Short Range Attention (LSRA), where one group of heads specializes in the local context modeling (by convolution) while another group captures the long-distance relationship (by attention). Based on this primitive, we design Lite Transformer that is tailored for the mobile NLP application. Our Lite Transformer demonstrates consistent improvement over the transformer on three well-established language tasks: machine translation, abstractive summarization, and language modeling. It outperforms the transformer on WMT’14 English-French by 1.2 BLEU under 500M Mult-Adds and 1.7 BLEU under 100M Mult-Adds, and reduces the computation of transformer base model by 2.5x. Further, with general techniques, our Lite Transformer achieves 18.2x model size compression. For language modeling, our Lite Transformer also achieves 3.8 lower perplexity than the transformer around 500M Mult-Adds. Without the costly architecture search that requires more than 250 GPU years, our Lite Transformer outperforms the AutoML-based Evolved Transformer by 0.5 higher BLEU under the mobile setting.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures, Efficiency & Compression

How researchers see this paper

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

In Artificial Intelligence

  1. Quoc V. Le
  2. Jianfeng Gao
  3. Mohit Bansal
  4. Noah A. Smith
  5. Dacheng Tao
  6. Song Han
  7. Luke S. Zettlemoyer
  8. Percy Liang

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Ming-Hsuan Yang
  4. Jitendra Malik
  5. Xiaogang Wang
  6. Trevor Darrell
  7. Chunhua Shen
  8. Yi Yang

In Model Architectures

  1. Tri Dao
  2. Lu Yuan
  3. Christopher R'e
  4. Jianfeng Gao
  5. Bin Xiao
  6. Atri Rudra
  7. Xiyang Dai
  8. Jianwei Yang

In Efficiency & Compression

  1. Song Han
  2. Kurt Keutzer
  3. Chuang Gan
  4. A. Gholami
  5. Tri Dao
  6. Han Cai
  7. Michael W. Mahoney
  8. Yunhe Wang

Citations in the corpus