mlsanityData to 7 Oct 2026

Ultra-Long Sequence Distributed Transformer

arXiv 2311.02382 ↗First posted 4 Nov 2023cs.DC cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Transformer models trained on long sequences often achieve higher accuracy than short sequences. Unfortunately, conventional transformers struggle with long sequence training due to the overwhelming computation and memory requirements. Existing methods for long sequence training offer limited speedup and memory reduction, and may compromise accuracy. This paper presents a novel and efficient distributed training method, the Long Short-Sequence Transformer (LSS Transformer), for training transformer with long sequences. It distributes a long sequence into segments among GPUs, with each GPU computing a partial self-attention for its segment. Then, it uses a fused communication and a novel double gradient averaging technique to avoid the need to aggregate partial self-attention and minimize communication overhead. We evaluated the performance between LSS Transformer and the state-of-the-art Nvidia sequence parallelism on a Wikipedia enwik8 dataset. Results show that our proposed method lead to 5.6x faster and 10.2x more memory-efficient implementation compared to state-of-the-art sequence parallelism on 144 Nvidia V100 GPUs. Moreover, our algorithm scales to an extreme sequence length of 50,112 at 3,456 GPUs, achieving 161% super-linear parallel efficiency and a throughput of 32 petaflops.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 23 of its 32 references that are in the map. First posted on arXiv 4 Nov 2023.

Builds on

23 of 32 references.

References · 23

  1. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  2. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  3. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  4. 2020Reformer: The Efficient Transformercited by 1,658
  5. 2020Rethinking Attention with Performerscited by 1,584
  6. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  7. 2021Segmenter: Transformer for Semantic Segmentationcited by 855
  8. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  9. 2022Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learningcited by 357
  10. 2021Medical Transformer: Gated Axial-Attention for Medical Image Segmentationcited by 319
  11. 2019Learning Deep Transformer Models for Machine Translationcited by 309
  12. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
11 more
  1. 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 164
  2. 2021Self-attention Does Not Need O(n2) Memorycited by 152
  3. 2019Adaptive Attention Span in Transformerscited by 148
  4. 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
  5. 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
  6. 2021Sequence Parallelism: Long Sequence Training from System Perspectivecited by 125
  7. 2019Multimodal Transformer with Multi-View Visual Representation for Image Captioningcited by 86
  8. 2021SparseBERT: Rethinking the Importance Analysis in Self-attentioncited by 46
  9. 2022A Literature Survey of Recent Advances in Chatbotscited by 26
  10. 2021LazyFormer: Self Attention with Lazy Updatecited by 16
  11. 2021Three-level Hierarchical Transformer Networks for Long-sequence and Multiple Clinical Documents Classificationcited by 6

Built on by

Cited by year

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

3 papers.