Longformer: The Long-Document Transformer

By Iz Beltagy, Matthew E. Peters, Arman Cohan. 2020

5,720 citations recorded by the source corpus.

Transformer-based models are unable to process long sequences due to their self-attention operation, which scales quadratically with the sequence length. To address this limitation, we introduce the Longformer with an attention mechanism that scales linearly with sequence length, making it easy to process documents of thousands of tokens or longer. Longformer's attention mechanism is a drop-in replacement for the standard self-attention and combines a local windowed attention with a task motivated global attention. Following prior work on long-sequence transformers, we evaluate Longformer on character-level language modeling and achieve state-of-the-art results on text8 and enwik8. In contrast to most prior work, we also pretrain Longformer and finetune it on a variety of downstream tasks. Our pretrained Longformer consistently outperforms RoBERTa on long document tasks and sets new state-of-the-art results on WikiHop and TriviaQA. We finally introduce the Longformer-Encoder-Decoder (LED), a Longformer variant for supporting long document generative sequence-to-sequence tasks, and demonstrate its effectiveness on the arXiv summarization dataset.

Subfields: Artificial Intelligence, Large Language Models, 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. Luke S. Zettlemoyer
  4. Percy Liang
  5. Quoc V. Le
  6. Yoshua Bengio
  7. Yejin Choi
  8. Graham Neubig

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Hinrich Schütze
  3. Mohit Bansal
  4. Furu Wei
  5. Jianfeng Gao
  6. Yejin Choi
  7. Hannaneh Hajishirzi
  8. Timo Schick

In Model Architectures

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

Citations in the corpus