You Only Scan Once: Efficient Multi-dimension Sequential Modeling with LightNet
Not on the map. Why?
Abstract (arXiv)
Linear attention mechanisms have gained prominence in causal language models due to their linear computational complexity and enhanced speed. However, the inherent decay mechanism in linear attention presents challenges when applied to multi-dimensional sequence modeling tasks, such as image processing and multi-modal learning. In these scenarios, the utilization of sequential scanning to establish a global receptive field necessitates multiple scans for multi-dimensional data, thereby leading to inefficiencies. This paper identifies the inefficiency caused by a multiplicative linear recurrence and proposes an efficient alternative additive linear recurrence to avoid the issue, as it can handle multi-dimensional data within a single scan. We further develop an efficient multi-dimensional sequential modeling framework called LightNet based on the new recurrence. Moreover, we present two new multi-dimensional linear relative positional encoding methods, MD-TPE and MD-LRPE to enhance the model's ability to discern positional information in multi-dimensional scenarios. Our empirical evaluations across various tasks, including image classification, image generation, bidirectional language modeling, and autoregressive language modeling, demonstrate the efficacy of LightNet, showcasing its potential as a versatile and efficient solution for multi-dimensional sequential modeling.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 42 of its 46 references that are in the map. First posted on arXiv 31 May 2024.
Builds on
42 of 46 references.
References · 42
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2022Classifier-Free Diffusion Guidancecited by 5,847
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
30 more
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020GLU Variants Improve Transformercited by 1,804
- 2020Rethinking Attention with Performerscited by 1,601
- 2021Cascaded Diffusion Models for High Fidelity Image Generationcited by 1,163
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,056
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2022Simplified State Space Layers for Sequence Modelingcited by 788
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 424
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
- 2022Long Range Language Modeling via Gated State Spacescited by 265
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
- 2017Parallelizing Linear Recurrent Neural Nets Over Sequence Lengthcited by 127
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 102
- 2022The Devil in Linear Transformercited by 98
- 2024Vision-RWKV: Efficient and Scalable Visual Perception with RWKV-Like Architecturescited by 98
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2023Diffusion Models Without Attentioncited by 75
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
- 2024Scalable Diffusion Models with State Space Backbonecited by 45
- 2023Toeplitz Neural Network for Sequence Modelingcited by 43
- 2024Diffusion-RWKV: Scaling RWKV-Like Architectures for Diffusion Modelscited by 41
- 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormercited by 34
- 2022Vicinity Vision Transformercited by 22
- 2023Linearized Relative Positional Encodingcited by 17
- 2023Accelerating Toeplitz Neural Network with Constant-time Inference Complexitycited by 6
- 2024Unlocking the Secrets of Linear Complexity Sequence Model from A Unified Perspectivecited by 6
Built on by
Citing papers per year: 2024: 2; 2025: 7.
9 papers.
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 263
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Searchcited by 41
- 2024Scaling Laws for Linear Complexity Language Modelscited by 19
- 2024Tri-Ergon: Fine-grained Video-to-Audio Generation with Multi-modal Conditions and LUFS Controlcited by 8
- 2025Linear Attention for Efficient Bidirectional Sequence Modelingcited by 4
- 2025Autoregressive Image Generation with Linear Complexity: A Spatial-Aware Decay Perspectivecited by 4
- 2025Learning Spatial Decay for Vision Transformerscited by 1
- 2025Elucidating the Design Space of Decay in Linear Attentioncited by 1
- 2025ShapeGen: Towards High-Quality 3D Shape Synthesiscited by 1
- 2025ShapeGen: Towards High-Quality 3D Shape Synthesis25 Nov 2025
- 2025Elucidating the Design Space of Decay in Linear Attention5 Sep 2025
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search21 Aug 2025
- 2025Learning Spatial Decay for Vision Transformers13 Aug 2025
- 2025Autoregressive Image Generation with Linear Complexity: A Spatial-Aware Decay Perspective2 Jul 2025
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention16 Jun 2025
- 2025Linear Attention for Efficient Bidirectional Sequence Modeling22 Feb 2025
- 2024Tri-Ergon: Fine-grained Video-to-Audio Generation with Multi-modal Conditions and LUFS Control29 Dec 2024
- 2024Scaling Laws for Linear Complexity Language Models24 Jun 2024