paper-with-me

Papers

DSP: Dynamic Sequence Parallelism for Multi-Dimensional Transformers

2024-03-15 · Xuanlei Zhao, Shenggan Cheng, Chang Chen, Zangwei Zheng, Ziming Liu, Zheming Yang, Yang You

Scaling multi-dimensional transformers to long sequences is indispensable across various domains. However, the challenges of large memory requirements and slow speeds of such sequences necessitate sequence parallelism. All existing approaches fall under the category of embedded sequence parallelism, which are limited to shard along a single sequence dimension, thereby introducing significant communication overhead. However, the nature of multi-dimensional transformers involves independent calculations across multiple sequence dimensions. To this end, we propose Dynamic Sequence Parallelism (DSP) as a novel abstraction of sequence parallelism. DSP dynamically switches the parallel dimension among all sequences according to the computation stage with efficient resharding strategy. DSP offers significant reductions in communication costs, adaptability across modules, and ease of implementation with minimal constraints. Experimental evaluations demonstrate DSP's superiority over state-of-the-art embedded sequence parallelism methods by remarkable throughput improvements ranging from 32.2% to 10x, with less than 25% communication volume.

📄 PDF Abstract BibTeX arXiv:2403.10266

Code (2)

nus-hpc-ai-lab/opendit 공식 구현 pytorch
NUS-HPC-AI-Lab/VideoSys pytorch

Tasks

Text GenerationVideo Generation

Similar Papers 제목 키워드 기반

KnapFormer: An Online Load Balancer for Efficient Diffusion Transformers Training

2025-08-08 · Kai Zhang, Peng Wang, Sai Bi, Jianming Zhang 외 arxiv

We present KnapFormer, an efficient and versatile framework to combine workload balancing and sequence parallelism in distributed training of Diffusion Transformers (DiT). KnapFormer builds on the insight that strong syn…

Folding Tensor and Sequence Parallelism for Memory-Efficient Transformer Training & Inference

2026-04-29 · Vasu Shyam, Anna Golubeva, Quentin Anthony arxiv

We present tensor and sequence parallelism (TSP), a parallel execution strategy that folds tensor parallelism and sequence parallelism onto a single device axis. In conventional multi-dimensional parallelism layouts, ten…

Transformers, parallel computation, and logarithmic depth

2024-02-14 · Clayton Sanford, Daniel Hsu, Matus Telgarsky

We show that a constant number of self-attention layers can efficiently simulate, and be simulated by, a constant number of communication rounds of Massively Parallel Computation. As a consequence, we show that logarithm…

Approximation and Estimation Ability of Transformers for Sequence-to-Sequence Functions with Infinite Dimensional Input

2023-05-30 · Shokichi Takakura, Taiji Suzuki

Despite the great success of Transformer networks in various applications such as natural language processing and computer vision, their theoretical aspects are not well understood. In this paper, we study the approximat…

MoE Parallel Folding: Heterogeneous Parallelism Mappings for Efficient Large-Scale MoE Model Training with Megatron Core

2025-04-21 · Dennis Liu, Zijie Yan, Xin Yao, Tong Liu 외

Mixture of Experts (MoE) models enhance neural network scalability by dynamically selecting relevant experts per input token, enabling larger model sizes while maintaining manageable computation costs. However, efficient…

Mixture-of-Experts