DCP: Addressing Input Dynamism In Long-Context Training via Dynamic Context Parallelism
Not on the map. Why?
Abstract (arXiv)
Context parallelism has emerged as a key technique to support long-context training, a growing trend in generative AI for modern large models. However, existing context parallel methods rely on static parallelization configurations that overlook the dynamic nature of training data, specifically, the variability in sequence lengths and token relationships (i.e., attention patterns) across samples. As a result, these methods often suffer from unnecessary communication overhead and imbalanced computation. In this paper, we present DCP, a dynamic context parallel training framework that introduces fine-grained blockwise partitioning of both data and computation. By enabling flexible mapping of data and computation blocks to devices, DCP can adapt to varying sequence characteristics, effectively reducing communication and improving memory and computation balance. Micro-benchmarks demonstrate that DCP accelerates attention by 1.19x~2.45x under causal masks and 2.15x~3.77x under sparse attention patterns. Additionally, we observe up to 0.94x~1.16x end-to-end training speed-up for causal masks, and 1.00x~1.46x for sparse masks.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 26 of its 50 references that are in the map. First posted on arXiv 12 Oct 2025.
Builds on
26 of 50 references.
References · 26
- 2017Attention Is All You Needcited by 60,361
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
14 more
- 2024LongVILA: Scaling Long-Context Visual Language Models for Long Videoscited by 309
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
- 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 245
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 185
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
- 2024LongAlign: A Recipe for Long Context Alignment of Large Language Modelscited by 106
- 2024USP: A Unified Sequence Parallelism Approach for Long Context Generative AIcited by 61
- 2025The Amazon Nova Family of Models: Technical Report and Model Cardcited by 41
- 2024FlashMask: Efficient and Rich Mask Extension of FlashAttentioncited by 20
- 2024FlexSP: Accelerating Large Language Model Training via Flexible Sequence Parallelismcited by 19
- 2025WLB-LLM: Workload-Balanced 4D Parallelism for Large Language Model Trainingcited by 17
- 2023DynaPipe: Optimizing Multi-task Training through Dynamic Pipelinescited by 12
- 2021High-Quality Hypergraph Partitioningcited by 10
- 2025Hierarchical Balance Packing: Towards Efficient Supervised Fine-tuning for Long-Context LLMcited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2025Cornfigurator: Automated Planning for Any-to-Any Multimodal Model Servingcited by 4
- 2026GrandCode: Achieving Grandmaster Level in Competitive Programming via Agentic Reinforcement Learningcited by 4
- 2026HorizonRelight: Relighting Long-horizon Videos Consistently via Diffusion Transformerscited by 1
- 2026Heterogeneous Parallelism for Multimodal Large Language Model Trainingcited by 0
- 2026HAPMoE: Heterogeneity-Aware Automatic Parallelism Planning for Mixture-of-Experts Models Trainingcited by 0
- 2026FlashMask-3: Efficient and Expressive Mask-Aware Distributed Attentioncited by 0
- 2026Scaling LLM Inference via Parallelism: Throughput-Latency Trade-offcited by 0
- 2026Scaling LLM Inference via Parallelism: Throughput-Latency Trade-off14 Oct 2026
- 2026FlashMask-3: Efficient and Expressive Mask-Aware Distributed Attention13 Oct 2026
- 2026HAPMoE: Heterogeneity-Aware Automatic Parallelism Planning for Mixture-of-Experts Models Training30 Sep 2026
- 2026HorizonRelight: Relighting Long-horizon Videos Consistently via Diffusion Transformers27 Jun 2026
- 2026Heterogeneous Parallelism for Multimodal Large Language Model Training26 May 2026
- 2026GrandCode: Achieving Grandmaster Level in Competitive Programming via Agentic Reinforcement Learning3 Apr 2026
- 2025Cornfigurator: Automated Planning for Any-to-Any Multimodal Model Serving16 Dec 2025