2021

Long-Short Transformer: Efficient Transformers for Language and Vision

Zhu, Chen, Ping, Wei, Xiao, Chaowei et al.

Understand

Transformers have achieved success in both language and vision domains.

  • However, it is prohibitively expensive to scale them to long sequences such as long documents or high-resolution images, because self-attention mechanism has quadratic time and memory complexities with respect to the input sequence length.
  • In this paper, we propose Long-Short Transformer (Transformer-LS), an efficient self-attention mechanism for modeling long sequences with linear complexity for both language and vision tasks.
  • It aggregates a novel long-range attention with dynamic projection to model distant correlations and a short-term attention to capture fine-grained local correlations.

Reading the bibliography…