Long-Short Transformer: Efficient Transformers for Language and Vision
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
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
- 2020Longformer: The Long-Document Transformercited by 3,362
38 more
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,320
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2019Natural Adversarial Examplescited by 1,401
- 2019Generating Diverse High-Fidelity Images with VQ-VAE-2cited by 1,376
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2018Image Transformercited by 770
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2019Axial Attention in Multidimensional Transformerscited by 350
- 2021Random Feature Attentioncited by 350
- 2020Noise or Signal: The Role of Image Backgrounds in Object Recognitioncited by 342
- 2020Are we done with ImageNet?cited by 329
- 2020Sparse Sinkhorn Attentioncited by 250
- 2021Scaling Local Self-Attention for Parameter Efficient Visual Backbonescited by 220
- 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2019Blockwise Self-Attention for Long Document Understandingcited by 158
- 2019Adaptive Attention Span in Transformerscited by 148
- 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
- 2018Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networkscited by 129
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
- 2020Lite Transformer with Long-Short Range Attentioncited by 127
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2021: 11; 2022: 22; 2023: 24; 2024: 27; 2025: 15; 2026: 3.
102 papers.
Sort:
By area:
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022Multimodal Learning with Transformers: A Surveycited by 399
- 2021Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformerscited by 237
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2022Understanding The Robustness in Vision Transformerscited by 144
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
- 2023Retrieval meets Long Context Large Language Modelscited by 114
- 2024MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUscited by 111
- 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
- 2021Hierarchical Transformers Are More Efficient Language Modelscited by 99
- 2022The Devil in Linear Transformercited by 98
38 more
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challengescited by 63
- 2022Unified Fully and Timestamp Supervised Temporal Action Segmentation via Sequence to Sequence Translationcited by 55
- 2023CARD: Channel Aligned Robust Blend Transformer for Time Series Forecastingcited by 55
- 2023A Survey on Transformers in Reinforcement Learningcited by 50
- 2022Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generationcited by 48
- 2021Long-Range Transformers for Dynamic Spatiotemporal Forecastingcited by 46
- 2023Toeplitz Neural Network for Sequence Modelingcited by 43
- 2022ViTCoD: Vision Transformer Acceleration via Dedicated Algorithm and Accelerator Co-Designcited by 41
- 2024A Survey of Mambacited by 39
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
- 2023Transformers in Speech Processing: A Surveycited by 38
- 2022Efficient Long Sequence Modeling via State Space Augmented Transformercited by 37
- 2022Prompt Injection: Parameterization of Fixed Inputscited by 35
- 2023FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Corescited by 32
- 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
- 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goescited by 29
- 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
- 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
- 2021Simple Local Attentions Remain Competitive for Long-Context Taskscited by 25
- 2024LoLCATs: On Low-Rank Linearizing of Large Language Modelscited by 25
- 2023Efficient Attention via Control Variatescited by 23
- 2022EcoFormer: Energy-Saving Attention with Linear Complexitycited by 21
- 2023Fourier Transformer: Fast Long Range Modeling by Removing Sequence Redundancy with FFT Operatorcited by 19
- 2023Distilling Efficient Vision Transformers from CNNs for Semantic Segmentationcited by 18
- 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMscited by 18
- 2021On Learning the Transformer Kernelcited by 14
- 2022Classification of Long Sequential Data using Circular Dilated Convolutional Neural Networkscited by 13
- 2022Temporal Latent Bottleneck: Synthesis of Fast and Slow Processing Mechanisms in Sequence Learningcited by 13
- 2022DCT-Former: Efficient Self-Attention with Discrete Cosine Transformcited by 12
- 2025TransPixeler: Advancing Text-to-Video Generation with Transparencycited by 12
- 2023Linear Log-Normal Attention with Unbiased Concentrationcited by 11
- 2022CAB: Comprehensive Attention Benchmarking on Long Sequence Modelingcited by 10
- 2024Snakes and Ladders: Two Steps Up for VideoMambacited by 10
- 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Modelscited by 9
- 2024Brain-inspired Artificial Intelligence: A Comprehensive Reviewcited by 8
- 2025L2M: Mutual Information Scaling Law for Long-Context Language Modelingcited by 8
- 2025MiniLongBench: The Low-cost Long Context Understanding Benchmark for Large Language Modelscited by 7
50 most cited of 102 All 102 (JSON)
- 2026FastTPS: An Optimized Method for LLM Token Phase for AI accelerators13 Jul 2026
- 2026ELiTeFormer: An Efficient Transformer for FPGAs4 Jul 2026
- 2026RPNT: Robust Pre-trained Neural Transformer -- A Pathway for Generalized Motor Decoding25 Jan 2026
- 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMs3 Dec 2025
- 2025Untangling Component Imbalance in Hybrid Linear Attention Conversion Methods7 Oct 2025
- 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problems18 Sep 2025
- 2025Surya: Foundation Model for Heliophysics18 Aug 2025
- 2025Modality Agnostic Efficient Long Range Encoder25 Jul 2025
- 2025A unified framework for establishing the universal approximation of transformer-type architectures30 Jun 2025
- 2025Synthetic Time Series Forecasting with Transformer Architectures: Extensive Simulation Benchmarks26 May 2025
- 2025MiniLongBench: The Low-cost Long Context Understanding Benchmark for Large Language Models26 May 2025
- 2025CacheFormer: High Attention-Based Segment Caching18 Apr 2025
38 more
- 2025TRA: Better Length Generalisation with Threshold Relative Attention29 Mar 2025
- 2025Atlas: Multi-Scale Attention Improves Long Context Image Modeling16 Mar 2025
- 2025Language modelling techniques for analysing the impact of human genetic variation7 Mar 2025
- 2025L2M: Mutual Information Scaling Law for Long-Context Language Modeling6 Mar 2025
- 2025Union of Experts: Adapting Hierarchical Routing to Equivalently Decomposed Transformer4 Mar 2025
- 2025TransPixeler: Advancing Text-to-Video Generation with Transparency6 Jan 2025
- 2024Efficient Context Propagating Perceiver Architectures for Auto-Regressive Language Modeling8 Dec 2024
- 2024Dataset-Driven Channel Masks in Transformers for Multivariate Time Series30 Oct 2024
- 2024LoLCATs: On Low-Rank Linearizing of Large Language Models14 Oct 2024
- 2024MedMobile: A mobile-sized language model with clinical capabilities11 Oct 2024
- 2024EMMA: Empowering Multi-modal Mamba with Structural and Hierarchical Alignment8 Oct 2024
- 2024GLMHA A Guided Low-rank Multi-Head Self-Attention for Efficient Image Restoration and Spectral Reconstruction1 Oct 2024
- 2024You Only Use Reactive Attention Slice For Long Context Retrieval3 Sep 2024
- 2024Brain-inspired Artificial Intelligence: A Comprehensive Review27 Aug 2024
- 2024S3Attention: Improving Long Sequence Attention with Smoothed Skeleton Sketching16 Aug 2024
- 2024SAMSA: Efficient Transformer for Many Data Modalities10 Aug 2024
- 2024A Survey of Mamba2 Aug 2024
- 2024SPLAT: A framework for optimised GPU code-generation for SParse reguLar ATtention23 Jul 2024
- 2024Free-form Grid Structure Form Finding based on Machine Learning and Multi-objective Optimisation13 Jul 2024
- 2024Snakes and Ladders: Two Steps Up for VideoMamba27 Jun 2024
- 2024A Primal-Dual Framework for Transformers and Neural Networks19 Jun 2024
- 2024Short-Long Convolutions Help Hardware-Efficient Linear Attention to Focus on Long Sequences12 Jun 2024
- 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Models11 Jun 2024
- 2024Prototypical Transformer as Unified Motion Learners3 Jun 2024
- 2024SMR: State Memory Replay for Long Sequence Modeling27 May 2024
- 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challenges24 Apr 2024
- 2024LongVQ: Long Sequence Modeling with Vector Quantization on Structured Memory17 Apr 2024
- 2024Exploring and Improving Drafts in Blockwise Parallel Decoding14 Apr 2024
- 2024Bidirectional Long-Range Parser for Sequential Data Understanding8 Apr 2024
- 2024Orchid: Flexible and Data-Dependent Convolution for Sequence Modeling28 Feb 2024
- 2024Interactive Multi-Head Self-Attention with Linear Complexity27 Feb 2024
- 2024MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUs23 Feb 2024
- 2024SeTformer is What You Need for Vision and Language7 Jan 2024
- 2023Cached Transformers: Improving Transformers with Differentiable Memory Cache20 Dec 2023
- 2023Linear Attention via Orthogonal Memory18 Dec 2023
- 2023Linear Log-Normal Attention with Unbiased Concentration22 Nov 2023
- 2023FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores10 Nov 2023
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modeling8 Nov 2023
50 newest of 102 All 102 (JSON)
- 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMscited by 18
- 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Modelscited by 9
- 2024Exploring and Improving Drafts in Blockwise Parallel Decodingcited by 5
- 2025Modality Agnostic Efficient Long Range Encodercited by 0
- 2025Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMs3 Dec 2025
- 2025Modality Agnostic Efficient Long Range Encoder25 Jul 2025
- 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Models11 Jun 2024
- 2024Exploring and Improving Drafts in Blockwise Parallel Decoding14 Apr 2024
- 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challengescited by 63
- 2024A Survey of Mambacited by 39
- 2024Snakes and Ladders: Two Steps Up for VideoMambacited by 10
- 2024EMMA: Empowering Multi-modal Mamba with Structural and Hierarchical Alignmentcited by 2
- 2024EMMA: Empowering Multi-modal Mamba with Structural and Hierarchical Alignment8 Oct 2024
- 2024A Survey of Mamba2 Aug 2024
- 2024Snakes and Ladders: Two Steps Up for VideoMamba27 Jun 2024
- 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challenges24 Apr 2024
- 2022Prompt Injection: Parameterization of Fixed Inputscited by 35
- 2022Prompt Injection: Parameterization of Fixed Inputs31 May 2022
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022Multimodal Learning with Transformers: A Surveycited by 399
- 2021Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformerscited by 237
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2022Understanding The Robustness in Vision Transformerscited by 144
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
- 2023Retrieval meets Long Context Large Language Modelscited by 114
- 2024MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUscited by 111
- 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
- 2021Hierarchical Transformers Are More Efficient Language Modelscited by 99
- 2022The Devil in Linear Transformercited by 98
12 most cited of 90 All 90 (JSON)
- 2026FastTPS: An Optimized Method for LLM Token Phase for AI accelerators13 Jul 2026
- 2026ELiTeFormer: An Efficient Transformer for FPGAs4 Jul 2026
- 2026RPNT: Robust Pre-trained Neural Transformer -- A Pathway for Generalized Motor Decoding25 Jan 2026
- 2025Untangling Component Imbalance in Hybrid Linear Attention Conversion Methods7 Oct 2025
- 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problems18 Sep 2025
- 2025Surya: Foundation Model for Heliophysics18 Aug 2025
- 2025A unified framework for establishing the universal approximation of transformer-type architectures30 Jun 2025
- 2025Synthetic Time Series Forecasting with Transformer Architectures: Extensive Simulation Benchmarks26 May 2025
- 2025MiniLongBench: The Low-cost Long Context Understanding Benchmark for Large Language Models26 May 2025
- 2025CacheFormer: High Attention-Based Segment Caching18 Apr 2025
- 2025TRA: Better Length Generalisation with Threshold Relative Attention29 Mar 2025
- 2025Atlas: Multi-Scale Attention Improves Long Context Image Modeling16 Mar 2025
12 newest of 90 All 90 (JSON)