mlsanityData to 7 Oct 2026

Long-Short Transformer: Efficient Transformers for Language and Vision

arXiv 2107.02192 ↗First posted 5 Jul 2021cs.CV cs.CL cs.LGcited by 102

Not on the map. Why?

Abstract (arXiv)

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. We propose a dual normalization strategy to account for the scale mismatch between the two attention mechanisms. Transformer-LS can be applied to both autoregressive and bidirectional models without additional complexity. Our method outperforms the state-of-the-art models on multiple tasks in language and vision domains, including the Long Range Arena benchmark, autoregressive language modeling, and ImageNet classification. For instance, Transformer-LS achieves 0.97 test BPC on enwik8 using half the number of parameters than previous method, while being faster and is able to handle 3x as long sequences compared to its full-attention version on the same hardware. On ImageNet, it can obtain the state-of-the-art results (e.g., a moderate size of 55.8M model solely trained on 224x224 ImageNet-1K can obtain Top-1 accuracy 84.1%), while being more scalable on high-resolution images. The source code and models are released at https://github.com/NVIDIA/transformer-ls .

Key facts. Cited by 102 papers in the map (data through 7 Oct 2026). Builds on 53 of its 71 references that are in the map. First posted on arXiv 5 Jul 2021.

Builds on

53 of 71 references.

References · 53

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  10. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  11. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
  12. 2020Longformer: The Long-Document Transformercited by 3,362
38 more
  1. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  2. 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,320
  3. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  4. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  5. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  6. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  7. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  8. 2020Reformer: The Efficient Transformercited by 1,658
  9. 2020Rethinking Attention with Performerscited by 1,584
  10. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  11. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
  12. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  13. 2019Natural Adversarial Examplescited by 1,401
  14. 2019Generating Diverse High-Fidelity Images with VQ-VAE-2cited by 1,376
  15. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  16. 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
  17. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  18. 2020On Layer Normalization in the Transformer Architecturecited by 906
  19. 2018Image Transformercited by 770
  20. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
  21. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  22. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  23. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  24. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  25. 2019Axial Attention in Multidimensional Transformerscited by 350
  26. 2021Random Feature Attentioncited by 350
  27. 2020Noise or Signal: The Role of Image Backgrounds in Object Recognitioncited by 342
  28. 2020Are we done with ImageNet?cited by 329
  29. 2020Sparse Sinkhorn Attentioncited by 250
  30. 2021Scaling Local Self-Attention for Parameter Efficient Visual Backbonescited by 220
  31. 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
  32. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
  33. 2019Blockwise Self-Attention for Long Document Understandingcited by 158
  34. 2019Adaptive Attention Span in Transformerscited by 148
  35. 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
  36. 2018Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networkscited by 129
  37. 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
  38. 2020Lite Transformer with Long-Short Range Attentioncited by 127

50 most cited of 53 All 53 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 11; 2022: 22; 2023: 24; 2024: 27; 2025: 15; 2026: 3.

102 papers.

Sort:

By area:

  1. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  2. 2022Multimodal Learning with Transformers: A Surveycited by 399
  3. 2021Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformerscited by 237
  4. 2021Are Transformers More Robust Than CNNs?cited by 187
  5. 2022Understanding The Robustness in Vision Transformerscited by 144
  6. 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
  7. 2023Retrieval meets Long Context Large Language Modelscited by 114
  8. 2024MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUscited by 111
  9. 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
  10. 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
  11. 2021Hierarchical Transformers Are More Efficient Language Modelscited by 99
  12. 2022The Devil in Linear Transformercited by 98
38 more
  1. 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
  2. 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challengescited by 63
  3. 2022Unified Fully and Timestamp Supervised Temporal Action Segmentation via Sequence to Sequence Translationcited by 55
  4. 2023CARD: Channel Aligned Robust Blend Transformer for Time Series Forecastingcited by 55
  5. 2023A Survey on Transformers in Reinforcement Learningcited by 50
  6. 2022Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generationcited by 48
  7. 2021Long-Range Transformers for Dynamic Spatiotemporal Forecastingcited by 46
  8. 2023Toeplitz Neural Network for Sequence Modelingcited by 43
  9. 2022ViTCoD: Vision Transformer Acceleration via Dedicated Algorithm and Accelerator Co-Designcited by 41
  10. 2024A Survey of Mambacited by 39
  11. 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
  12. 2023Transformers in Speech Processing: A Surveycited by 38
  13. 2022Efficient Long Sequence Modeling via State Space Augmented Transformercited by 37
  14. 2022Prompt Injection: Parameterization of Fixed Inputscited by 35
  15. 2023FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Corescited by 32
  16. 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
  17. 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goescited by 29
  18. 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
  19. 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
  20. 2021Simple Local Attentions Remain Competitive for Long-Context Taskscited by 25
  21. 2024LoLCATs: On Low-Rank Linearizing of Large Language Modelscited by 25
  22. 2023Efficient Attention via Control Variatescited by 23
  23. 2022EcoFormer: Energy-Saving Attention with Linear Complexitycited by 21
  24. 2023Fourier Transformer: Fast Long Range Modeling by Removing Sequence Redundancy with FFT Operatorcited by 19
  25. 2023Distilling Efficient Vision Transformers from CNNs for Semantic Segmentationcited by 18
  26. 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMscited by 18
  27. 2021On Learning the Transformer Kernelcited by 14
  28. 2022Classification of Long Sequential Data using Circular Dilated Convolutional Neural Networkscited by 13
  29. 2022Temporal Latent Bottleneck: Synthesis of Fast and Slow Processing Mechanisms in Sequence Learningcited by 13
  30. 2022DCT-Former: Efficient Self-Attention with Discrete Cosine Transformcited by 12
  31. 2025TransPixeler: Advancing Text-to-Video Generation with Transparencycited by 12
  32. 2023Linear Log-Normal Attention with Unbiased Concentrationcited by 11
  33. 2022CAB: Comprehensive Attention Benchmarking on Long Sequence Modelingcited by 10
  34. 2024Snakes and Ladders: Two Steps Up for VideoMambacited by 10
  35. 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Modelscited by 9
  36. 2024Brain-inspired Artificial Intelligence: A Comprehensive Reviewcited by 8
  37. 2025L2M: Mutual Information Scaling Law for Long-Context Language Modelingcited by 8
  38. 2025MiniLongBench: The Low-cost Long Context Understanding Benchmark for Large Language Modelscited by 7

50 most cited of 102 All 102 (JSON)