A Unified View of Long-Sequence Models towards Modeling Million-Scale Dependencies
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
- 2017Attention Is All You Needcited by 59,932
- 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
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
29 more
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2021Transformer in Transformercited by 632
- 2014Neural Turing Machinescited by 630
- 2022Mixture-of-Experts with Expert Choice Routingcited by 611
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
- 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 600
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
- 2015Bidirectional LSTM-CRF Models for Sequence Taggingcited by 544
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 418
- 2019Axial Attention in Multidimensional Transformerscited by 350
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2022Memorizing Transformerscited by 219
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
- 2015Conditional Computation in Neural Networks for faster modelscited by 166
- 2015Sequence to Sequence -- Video to Textcited by 157
- 2022What Makes Convolutional Models Great on Long Sequence Modeling?cited by 86
- 2020Positional Encoding as Spatial Inductive Bias in GANscited by 69
- 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
- 2021Multiplying Matrices Without Multiplyingcited by 30
- 2022Learning to Drop Out: An Adversarial Approach to Training Sequence VAEscited by 3
- 2021COSTA: Communication-Optimal Shuffle and Transpose Algorithm with Process Relabelingcited by 1
Built on by
Citing papers per year: 2023: 1; 2024: 1.
2 papers.