Balancing Pipeline Parallelism with Vocabulary Parallelism
Not on the map. Why?
Abstract (arXiv)
Pipeline parallelism is widely used to scale the training of transformer-based large language models, various works have been done to improve its throughput and memory footprint. In this paper, we address a frequently overlooked issue: the vocabulary layers can cause imbalanced computation and memory usage across pipeline stages, worsening pipeline bubbles and the memory bottleneck. To tackle this, we partition the vocabulary layers evenly across pipeline devices and group the computation into pipeline passes. To reduce the activation memory overhead, we propose several algorithms to reduce communication barriers within vocabulary layers. Additionally, we utilize a generalizable method to integrate Vocabulary Parallelism with existing pipeline schedules. By combining these techniques, our methods effectively balance the computation and parameter memory, with only a small constant activation memory overhead. Notably, when combined with activation memory-balanced schedules like V-Half, our approach achieves perfect balance in both memory and computation. Extensive evaluations demonstrate that our method achieves computation and memory balance regardless of the vocabulary size, resulting in a 5% to 51% improvement in throughput compared to naive approaches, meanwhile significantly reducing peak memory usage especially for large vocabulary scenarios. Our implementation is open-sourced at https://github.com/sail-sg/VocabularyParallelism .
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Nov 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 5; 2026: 1.
6 papers.
- 2025StreamDiffusionV2: A Streaming System for Dynamic and Interactive Video Generationcited by 27
- 2025Sailor2: Sailing in South-East Asia with Inclusive Multilingual LLMscited by 17
- 2025Understanding Stragglers in Large Model Training Using What-if Analysiscited by 12
- 2025PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimizationcited by 5
- 2025OctoPipe: Reducing Pipeline Bubbles for Heterogeneous Models via Co-Optimizing Partitioning, Placement, and Schedulingcited by 2
- 2026The Life of a Token: from Words to Bits on the Wirecited by 0
- 2026The Life of a Token: from Words to Bits on the Wire17 Sep 2026
- 2025StreamDiffusionV2: A Streaming System for Dynamic and Interactive Video Generation10 Nov 2025
- 2025OctoPipe: Reducing Pipeline Bubbles for Heterogeneous Models via Co-Optimizing Partitioning, Placement, and Scheduling28 Sep 2025
- 2025Understanding Stragglers in Large Model Training Using What-if Analysis9 May 2025
- 2025PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimization3 Mar 2025
- 2025Sailor2: Sailing in South-East Asia with Inclusive Multilingual LLMs18 Feb 2025