LoongTrain: Efficient Training of Long-Sequence LLMs with Head-Context Parallelism
Not on the map. Why?
Abstract (arXiv)
Efficiently training LLMs with long sequences is important yet challenged by the massive computation and memory requirements. Sequence parallelism has been proposed to tackle these problems, but existing methods suffer from scalability or efficiency issues. We propose LoongTrain, a novel system to efficiently train LLMs with long sequences at scale. The core of LoongTrain is the 2D-Attention mechanism, which combines both head-parallel and context-parallel techniques to break the scalability constraints while maintaining efficiency. We introduce Double-Ring-Attention and analyze the performance of device placement strategies to further speed up training. We implement LoongTrain with the hybrid ZeRO and Selective Checkpoint++ techniques. Experiment results show that LoongTrain outperforms state-of-the-art baselines, i.e., DeepSpeed-Ulysses and Megatron Context Parallelism, in both end-to-end training speed and scalability, and improves Model FLOPs Utilization (MFU) by up to 2.88x.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). First posted on arXiv 26 Jun 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 3; 2025: 7; 2026: 7.
17 papers.
Sort:
By area:
- 2024LongVILA: Scaling Long-Context Visual Language Models for Long Videoscited by 309
- 2025MAGI-1: Autoregressive Video Generation at Scalecited by 276
- 2025Scaling RL to Long Videoscited by 84
- 2024xDiT: an Inference Engine for Diffusion Transformers (DiTs) with Massive Parallelismcited by 56
- 2026LongLive-2.0: An NVFP4 Parallel Infrastructure for Long Video Generationcited by 30
- 2025DSV: Exploiting Dynamic Sparsity to Accelerate Large-Scale Video DiT Trainingcited by 15
- 2025360-LLaMA-Factory: Plug & Play Sequence Parallelism for Long Post-Trainingcited by 4
- 2026DASH: Deterministic Attention Scheduling for High-throughput Reproducible LLM Trainingcited by 4
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignmentcited by 3
- 2025Arctic Long Sequence Training: Scalable And Efficient Training For Multi-Million Token Sequencescited by 3
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budgetcited by 3
- 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Trainingcited by 1
5 more
- 2025Optimizing Long-context LLM Serving via Fine-grained Sequence Parallelismcited by 1
- 2026Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunkingcited by 1
- 2026FlashCP: Load-Balanced Communication-Efficient Context Parallelism for LLM Trainingcited by 1
- 2026Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Trainingcited by 0
- 2026Memory-Efficient Expert Routing for Distributed MoE Trainingcited by 0
- 2026Memory-Efficient Expert Routing for Distributed MoE Training5 Oct 2026
- 2026Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Training16 Sep 2026
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budget16 Jul 2026
- 2026FlashCP: Load-Balanced Communication-Efficient Context Parallelism for LLM Training7 Jun 2026
- 2026LongLive-2.0: An NVFP4 Parallel Infrastructure for Long Video Generation18 May 2026
- 2026Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking24 Feb 2026
- 2026DASH: Deterministic Attention Scheduling for High-throughput Reproducible LLM Training29 Jan 2026
- 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
- 2025Scaling RL to Long Videos10 Jul 2025
- 2025Arctic Long Sequence Training: Scalable And Efficient Training For Multi-Million Token Sequences16 Jun 2025
- 2025360-LLaMA-Factory: Plug & Play Sequence Parallelism for Long Post-Training28 May 2025
5 more
- 2025MAGI-1: Autoregressive Video Generation at Scale19 May 2025
- 2025DSV: Exploiting Dynamic Sparsity to Accelerate Large-Scale Video DiT Training11 Feb 2025
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment10 Dec 2024
- 2024xDiT: an Inference Engine for Diffusion Transformers (DiTs) with Massive Parallelism4 Nov 2024
- 2024LongVILA: Scaling Long-Context Visual Language Models for Long Videos19 Aug 2024
- 2024xDiT: an Inference Engine for Diffusion Transformers (DiTs) with Massive Parallelismcited by 56
- 2026LongLive-2.0: An NVFP4 Parallel Infrastructure for Long Video Generationcited by 30
- 2025DSV: Exploiting Dynamic Sparsity to Accelerate Large-Scale Video DiT Trainingcited by 15
- 2026Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Trainingcited by 0
- 2026Block Parallelism For Efficient Distributed Long-Context Diffusion Language Model Training16 Sep 2026
- 2026LongLive-2.0: An NVFP4 Parallel Infrastructure for Long Video Generation18 May 2026
- 2025DSV: Exploiting Dynamic Sparsity to Accelerate Large-Scale Video DiT Training11 Feb 2025
- 2024xDiT: an Inference Engine for Diffusion Transformers (DiTs) with Massive Parallelism4 Nov 2024
- 2025Scaling RL to Long Videoscited by 84
- 2025Scaling RL to Long Videos10 Jul 2025
- 2025MAGI-1: Autoregressive Video Generation at Scalecited by 276
- 2025MAGI-1: Autoregressive Video Generation at Scale19 May 2025
- 2025360-LLaMA-Factory: Plug & Play Sequence Parallelism for Long Post-Trainingcited by 4
- 2026DASH: Deterministic Attention Scheduling for High-throughput Reproducible LLM Trainingcited by 4
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignmentcited by 3
- 2025Arctic Long Sequence Training: Scalable And Efficient Training For Multi-Million Token Sequencescited by 3
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budgetcited by 3
- 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Trainingcited by 1
- 2026Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunkingcited by 1
- 2026FlashCP: Load-Balanced Communication-Efficient Context Parallelism for LLM Trainingcited by 1
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budget16 Jul 2026
- 2026FlashCP: Load-Balanced Communication-Efficient Context Parallelism for LLM Training7 Jun 2026
- 2026Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking24 Feb 2026
- 2026DASH: Deterministic Attention Scheduling for High-throughput Reproducible LLM Training29 Jan 2026
- 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Training21 Oct 2025
- 2025Arctic Long Sequence Training: Scalable And Efficient Training For Multi-Million Token Sequences16 Jun 2025
- 2025360-LLaMA-Factory: Plug & Play Sequence Parallelism for Long Post-Training28 May 2025
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment10 Dec 2024