Generating Long Sequences with Sparse Transformers

By Rewon Child, Scott Gray, Alec Radford, Ilya Sutskever. 2019

2,592 citations recorded by the source corpus.

Transformers are powerful sequence models, but require time and memory that grows quadratically with the sequence length. In this paper we introduce sparse factorizations of the attention matrix which reduce this to $O(n \sqrt{n})$. We also introduce a) a variation on architecture and initialization to train deeper networks, b) the recomputation of attention matrices to save memory, and c) fast attention kernels for training. We call networks with these changes Sparse Transformers, and show they can model sequences tens of thousands of timesteps long using hundreds of layers. We use the same architecture to model images, audio, and text from raw bytes, setting a new state of the art for density modeling of Enwik8, CIFAR-10, and ImageNet-64. We generate unconditional samples that demonstrate global coherence and great diversity, and show it is possible in principle to use self-attention to model sequences of length one million or more.

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

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. Mohit Bansal
  2. Jianfeng Gao
  3. Quoc V. Le
  4. Luke S. Zettlemoyer
  5. Percy Liang
  6. Graham Neubig
  7. Caiming Xiong
  8. Yejin Choi

In Computer Vision and Pattern Recognition

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

In Model Architectures

  1. Quoc V. Le
  2. Yoshua Bengio
  3. Jianfeng Gao
  4. Ruslan Salakhutdinov
  5. Mohit Bansal
  6. Richard Socher
  7. Kyunghyun Cho
  8. Alan L. Yuille

Citations in the corpus