mlsanityData to 14 Oct 2026

You Only Scan Once: Efficient Multi-dimension Sequential Modeling with LightNet

arXiv 2405.21022 ↗First posted 31 May 2024cs.CL cs.CVcited by 9

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2022Scalable Diffusion Models with Transformerscited by 6,054
  6. 2022Classifier-Free Diffusion Guidancecited by 5,847
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  8. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  10. 2016Pointer Sentinel Mixture Modelscited by 3,096
  11. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  12. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
30 more
  1. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  2. 2020GLU Variants Improve Transformercited by 1,804
  3. 2020Rethinking Attention with Performerscited by 1,601
  4. 2021Cascaded Diffusion Models for High Fidelity Image Generationcited by 1,163
  5. 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,056
  6. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
  7. 2022Simplified State Space Layers for Sequence Modelingcited by 788
  8. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  9. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  10. 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 424
  11. 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
  12. 2022Long Range Language Modeling via Gated State Spacescited by 265
  13. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  14. 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
  15. 2017Parallelizing Linear Recurrent Neural Nets Over Sequence Lengthcited by 127
  16. 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127
  17. 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 102
  18. 2022The Devil in Linear Transformercited by 98
  19. 2024Vision-RWKV: Efficient and Scalable Visual Perception with RWKV-Like Architecturescited by 98
  20. 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
  21. 2023Diffusion Models Without Attentioncited by 75
  22. 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
  23. 2024Scalable Diffusion Models with State Space Backbonecited by 45
  24. 2023Toeplitz Neural Network for Sequence Modelingcited by 43
  25. 2024Diffusion-RWKV: Scaling RWKV-Like Architectures for Diffusion Modelscited by 41
  26. 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormercited by 34
  27. 2022Vicinity Vision Transformercited by 22
  28. 2023Linearized Relative Positional Encodingcited by 17
  29. 2023Accelerating Toeplitz Neural Network with Constant-time Inference Complexitycited by 6
  30. 2024Unlocking the Secrets of Linear Complexity Sequence Model from A Unified Perspectivecited by 6

Built on by

Cited by year

Citing papers per year: 2024: 2; 2025: 7.

9 papers.