Transformer Quality in Linear Time

By Weizhe Hua, Zihang Dai, Hanxiao Liu, Quoc V. Le. 2022

357 citations recorded by the source corpus.

We revisit the design choices in Transformers, and propose methods to address their weaknesses in handling long sequences. First, we propose a simple layer named gated attention unit, which allows the use of a weaker single-head attention with minimal quality loss. We then propose a linear approximation method complementary to this new layer, which is accelerator-friendly and highly competitive in quality. The resulting model, named FLASH, matches the perplexity of improved Transformers over both short (512) and long (8K) context lengths, achieving training speedups of up to 4.9$\times$ on Wiki-40B and 12.1$\times$ on PG-19 for auto-regressive language modeling, and 4.8$\times$ on C4 for masked language modeling.

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. Christopher R'e
  2. Stefano Ermon
  3. Tri Dao
  4. Yoshua Bengio
  5. Sergey Levine
  6. Atri Rudra
  7. Ruslan Salakhutdinov
  8. Behnam Neyshabur

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Stefano Ermon
  4. Xiaogang Wang
  5. Jitendra Malik
  6. Ming-Hsuan Yang
  7. Trevor Darrell
  8. Andrew Zisserman

In Model Architectures

  1. Tri Dao
  2. Christopher R'e
  3. Stefano Ermon
  4. Atri Rudra
  5. Rameswar Panda
  6. Daniel Y. Fu
  7. Jian‐Yuan Sun
  8. Houwen Peng

In Efficiency & Compression

  1. Tri Dao
  2. Stefano Ermon
  3. Daniel Y. Fu
  4. Christopher R'e
  5. Atri Rudra
  6. Han Hu
  7. Ankit Gupta
  8. Tao Jiang

Citations in the corpus