mlsanityData to 7 Oct 2026

A Unified View of Long-Sequence Models towards Modeling Million-Scale Dependencies

arXiv 2302.06218 ↗First posted 13 Feb 2023cs.LG cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Ever since their conception, Transformers have taken over traditional sequence models in many tasks, such as NLP, image classification, and video/audio processing, for their fast training and superior performance. Much of the merit is attributable to positional encoding and multi-head attention. However, Transformers fall short in learning long-range dependencies mainly due to the quadratic complexity scaled with context length, in terms of both time and space. Consequently, over the past five years, a myriad of methods has been proposed to make Transformers more efficient. In this work, we first take a step back, study and compare existing solutions to long-sequence modeling in terms of their pure mathematical formulation. Specifically, we summarize them using a unified template, given their shared nature of token mixing. Through benchmarks, we then demonstrate that long context length does yield better performance, albeit application-dependent, and traditional Transformer models fall short in taking advantage of long-range dependencies. Next, inspired by emerging sparse models of huge capacity, we propose a machine learning system for handling million-scale dependencies. As a proof of concept, we evaluate the performance of one essential component of this system, namely, the distributed multi-head attention. We show that our algorithm can scale up attention computation by almost 40× using four GeForce RTX 4090 GPUs, compared to vanilla multi-head attention mechanism. We believe this study is an instrumental step towards modeling million-scale dependencies.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 41 of its 52 references that are in the map. First posted on arXiv 13 Feb 2023.

Builds on

41 of 52 references.

References · 41

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  9. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  10. 2020Longformer: The Long-Document Transformercited by 3,362
  11. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  12. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
29 more
  1. 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
  2. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  3. 2020Reformer: The Efficient Transformercited by 1,658
  4. 2020Rethinking Attention with Performerscited by 1,584
  5. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
  6. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  7. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  8. 2021Transformer in Transformercited by 632
  9. 2014Neural Turing Machinescited by 630
  10. 2022Mixture-of-Experts with Expert Choice Routingcited by 611
  11. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
  12. 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 600
  13. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
  14. 2015Bidirectional LSTM-CRF Models for Sequence Taggingcited by 544
  15. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  16. 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 418
  17. 2019Axial Attention in Multidimensional Transformerscited by 350
  18. 2021FNet: Mixing Tokens with Fourier Transformscited by 343
  19. 2022Memorizing Transformerscited by 219
  20. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  21. 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
  22. 2015Conditional Computation in Neural Networks for faster modelscited by 166
  23. 2015Sequence to Sequence -- Video to Textcited by 157
  24. 2022What Makes Convolutional Models Great on Long Sequence Modeling?cited by 86
  25. 2020Positional Encoding as Spatial Inductive Bias in GANscited by 69
  26. 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
  27. 2021Multiplying Matrices Without Multiplyingcited by 30
  28. 2022Learning to Drop Out: An Adversarial Approach to Training Sequence VAEscited by 3
  29. 2021COSTA: Communication-Optimal Shuffle and Transpose Algorithm with Process Relabelingcited by 1

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 1.

2 papers.