mlsanityData to 7 Oct 2026

FlexSP: Accelerating Large Language Model Training via Flexible Sequence Parallelism

arXiv 2412.01523 ↗First posted 2 Dec 2024cs.DC cs.LGcited by 19

Not on the map. Why?

Abstract (arXiv)

Extending the context length (i.e., the maximum supported sequence length) of LLMs is of paramount significance. To facilitate long context training of LLMs, sequence parallelism has emerged as an essential technique, which scatters each input sequence across multiple devices and necessitates communication to process the sequence. In essence, existing sequence parallelism methods assume homogeneous sequence lengths (i.e., all input sequences are equal in length) and therefore leverages a single, static scattering strategy for all input sequences. However, in reality, the sequence lengths in LLM training corpora exhibit substantial variability, often following a long-tail distribution, which leads to workload heterogeneity. In this paper, we show that employing a single, static strategy results in inefficiency and resource under-utilization, highlighting the need for adaptive approaches to handle the heterogeneous workloads across sequences. To address this, we propose a heterogeneity-adaptive sequence parallelism method. For each training step, our approach captures the variability in sequence lengths and assigns the optimal combination of scattering strategies based on workload characteristics. We model this problem as a linear programming optimization and design an efficient and effective solver to find the optimal solution. Furthermore, we implement our method in a high-performance system that supports adaptive parallelization in distributed LLM training. Experimental results demonstrate that our system outperforms state-of-the-art training frameworks by up to 1.98x.

Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 28 of its 54 references that are in the map. First posted on arXiv 2 Dec 2024.

Builds on

28 of 54 references.

References · 28

  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. 2023GPT-4 Technical Reportcited by 18,132
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  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. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  10. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  11. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  12. 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
16 more
  1. 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
  2. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  3. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
  4. 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 239
  5. 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 177
  6. 2020Memory-Efficient Pipeline-Parallel DNN Trainingcited by 133
  7. 2021Sequence Parallelism: Long Sequence Training from System Perspectivecited by 125
  8. 2020PyTorch Distributed: Experiences on Accelerating Data Parallel Trainingcited by 87
  9. 2021CPT: A Pre-Trained Unbalanced Transformer for Both Chinese Language Understanding and Generationcited by 81
  10. 2023Striped Attention: Faster Ring Attention for Causal Transformerscited by 52
  11. 2022Galvatron: Efficient Transformer Training over Multiple GPUs Using Automatic Parallelismcited by 51
  12. 2024LongEmbed: Extending Embedding Models for Long Context Retrievalcited by 47
  13. 2020HetPipe: Enabling Large DNN Training on (Whimpy) Heterogeneous GPU Clusters through Integration of Pipelined Model Parallelism and Data Parallelismcited by 46
  14. 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Trainingcited by 28
  15. 2022AMP: Automatically Finding Model Parallel Strategies with Heterogeneity Awarenesscited by 13
  16. 2023Improving Automatic Parallel Training via Balanced Memory Workload Optimizationcited by 13

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 11; 2026: 7.

19 papers.

Sort:

By area:

  1. 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 502
  2. 2025MAGI-1: Autoregressive Video Generation at Scalecited by 262
  3. 2025Kling-Omni Technical Reportcited by 60
  4. 2025DCP: Addressing Input Dynamism In Long-Context Training via Dynamic Context Parallelismcited by 5
  5. 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignmentcited by 2
  6. 2025OctoPipe: Reducing Pipeline Bubbles for Heterogeneous Models via Co-Optimizing Partitioning, Placement, and Schedulingcited by 2
  7. 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
  8. 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Trainingcited by 1
  9. 2025Optimizing Long-context LLM Serving via Fine-grained Sequence Parallelismcited by 1
  10. 2025PipeDiT: Accelerating Diffusion Transformers in Video Generation with Task Pipelining and Model Decouplingcited by 1
  11. 2026Efficient Scaling of LLM Training with Flexible Context Parallelismcited by 1
  12. 2025Galvatron: An Automatic Distributed System for Efficient Foundation Model Trainingcited by 0
7 more
  1. 2025SlimPack: Fine-Grained Asymmetric Packing for Balanced and Efficient Variable-Length LLM Trainingcited by 0
  2. 2025Efficient Long-context Language Model Training by Core Attention Disaggregationcited by 0
  3. 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decodingcited by 0
  4. 2026Heterogeneous Parallelism for Multimodal Large Language Model Trainingcited by 0
  5. 2026ASAP: A Disaggregated and Asynchronous Inference System for MoE Prefillcited by 0
  6. 2026BASP: Communication-Efficient Batch-Aware Sequence Parallelism for LLM Trainingcited by 0
  7. 2026PipeSwift: Revisiting Pipeline Parallelism for Large-Scale Completion-Oriented Agentic LLM Servingcited by 0