FlexSP: Accelerating Large Language Model Training via Flexible Sequence Parallelism
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
- 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
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
16 more
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
- 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 239
- 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 177
- 2020Memory-Efficient Pipeline-Parallel DNN Trainingcited by 133
- 2021Sequence Parallelism: Long Sequence Training from System Perspectivecited by 125
- 2020PyTorch Distributed: Experiences on Accelerating Data Parallel Trainingcited by 87
- 2021CPT: A Pre-Trained Unbalanced Transformer for Both Chinese Language Understanding and Generationcited by 81
- 2023Striped Attention: Faster Ring Attention for Causal Transformerscited by 52
- 2022Galvatron: Efficient Transformer Training over Multiple GPUs Using Automatic Parallelismcited by 51
- 2024LongEmbed: Extending Embedding Models for Long Context Retrievalcited by 47
- 2020HetPipe: Enabling Large DNN Training on (Whimpy) Heterogeneous GPU Clusters through Integration of Pipelined Model Parallelism and Data Parallelismcited by 46
- 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Trainingcited by 28
- 2022AMP: Automatically Finding Model Parallel Strategies with Heterogeneity Awarenesscited by 13
- 2023Improving Automatic Parallel Training via Balanced Memory Workload Optimizationcited by 13
Built on by
Citing papers per year: 2024: 1; 2025: 11; 2026: 7.
19 papers.
Sort:
By area:
- 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 502
- 2025MAGI-1: Autoregressive Video Generation at Scalecited by 262
- 2025Kling-Omni Technical Reportcited by 60
- 2025DCP: Addressing Input Dynamism In Long-Context Training via Dynamic Context Parallelismcited by 5
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignmentcited by 2
- 2025OctoPipe: Reducing Pipeline Bubbles for Heterogeneous Models via Co-Optimizing Partitioning, Placement, and Schedulingcited by 2
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
- 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Trainingcited by 1
- 2025Optimizing Long-context LLM Serving via Fine-grained Sequence Parallelismcited by 1
- 2025PipeDiT: Accelerating Diffusion Transformers in Video Generation with Task Pipelining and Model Decouplingcited by 1
- 2026Efficient Scaling of LLM Training with Flexible Context Parallelismcited by 1
- 2025Galvatron: An Automatic Distributed System for Efficient Foundation Model Trainingcited by 0
7 more
- 2025SlimPack: Fine-Grained Asymmetric Packing for Balanced and Efficient Variable-Length LLM Trainingcited by 0
- 2025Efficient Long-context Language Model Training by Core Attention Disaggregationcited by 0
- 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decodingcited by 0
- 2026Heterogeneous Parallelism for Multimodal Large Language Model Trainingcited by 0
- 2026ASAP: A Disaggregated and Asynchronous Inference System for MoE Prefillcited by 0
- 2026BASP: Communication-Efficient Batch-Aware Sequence Parallelism for LLM Trainingcited by 0
- 2026PipeSwift: Revisiting Pipeline Parallelism for Large-Scale Completion-Oriented Agentic LLM Servingcited by 0
- 2026PipeSwift: Revisiting Pipeline Parallelism for Large-Scale Completion-Oriented Agentic LLM Serving15 Sep 2026
- 2026BASP: Communication-Efficient Batch-Aware Sequence Parallelism for LLM Training2 Sep 2026
- 2026ASAP: A Disaggregated and Asynchronous Inference System for MoE Prefill21 Jun 2026
- 2026Heterogeneous Parallelism for Multimodal Large Language Model Training26 May 2026
- 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decoding20 May 2026
- 2026Efficient Scaling of LLM Training with Flexible Context Parallelism25 Feb 2026
- 2026GLM-5: from Vibe Coding to Agentic Engineering17 Feb 2026
- 2025Kling-Omni Technical Report18 Dec 2025
- 2025PipeDiT: Accelerating Diffusion Transformers in Video Generation with Task Pipelining and Model Decoupling15 Nov 2025
- 2025Optimizing Long-context LLM Serving via Fine-grained Sequence Parallelism9 Nov 2025
- 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Training21 Oct 2025
- 2025Efficient Long-context Language Model Training by Core Attention Disaggregation20 Oct 2025
7 more
- 2025DCP: Addressing Input Dynamism In Long-Context Training via Dynamic Context Parallelism12 Oct 2025
- 2025SlimPack: Fine-Grained Asymmetric Packing for Balanced and Efficient Variable-Length LLM Training30 Sep 2025
- 2025OctoPipe: Reducing Pipeline Bubbles for Heterogeneous Models via Co-Optimizing Partitioning, Placement, and Scheduling28 Sep 2025
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devices12 Aug 2025
- 2025MAGI-1: Autoregressive Video Generation at Scale19 May 2025
- 2025Galvatron: An Automatic Distributed System for Efficient Foundation Model Training30 Apr 2025
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment10 Dec 2024
- 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 502
- 2026GLM-5: from Vibe Coding to Agentic Engineering17 Feb 2026
- 2025MAGI-1: Autoregressive Video Generation at Scalecited by 262
- 2025MAGI-1: Autoregressive Video Generation at Scale19 May 2025
- 2025Kling-Omni Technical Reportcited by 60
- 2025DCP: Addressing Input Dynamism In Long-Context Training via Dynamic Context Parallelismcited by 5
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignmentcited by 2
- 2025OctoPipe: Reducing Pipeline Bubbles for Heterogeneous Models via Co-Optimizing Partitioning, Placement, and Schedulingcited by 2
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
- 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Trainingcited by 1
- 2026Efficient Scaling of LLM Training with Flexible Context Parallelismcited by 1
- 2025Galvatron: An Automatic Distributed System for Efficient Foundation Model Trainingcited by 0
- 2025SlimPack: Fine-Grained Asymmetric Packing for Balanced and Efficient Variable-Length LLM Trainingcited by 0
- 2025Efficient Long-context Language Model Training by Core Attention Disaggregationcited by 0
- 2026Efficient Scaling of LLM Training with Flexible Context Parallelism25 Feb 2026
- 2025Kling-Omni Technical Report18 Dec 2025
- 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Training21 Oct 2025
- 2025Efficient Long-context Language Model Training by Core Attention Disaggregation20 Oct 2025
- 2025DCP: Addressing Input Dynamism In Long-Context Training via Dynamic Context Parallelism12 Oct 2025
- 2025SlimPack: Fine-Grained Asymmetric Packing for Balanced and Efficient Variable-Length LLM Training30 Sep 2025
- 2025OctoPipe: Reducing Pipeline Bubbles for Heterogeneous Models via Co-Optimizing Partitioning, Placement, and Scheduling28 Sep 2025
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devices12 Aug 2025
- 2025Galvatron: An Automatic Distributed System for Efficient Foundation Model Training30 Apr 2025
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment10 Dec 2024