SuperScaler: Supporting Flexible DNN Parallelization via a Unified Abstraction

Zhiqi Lin, Youshan Miao, Guodong Liu, Xiaoxiang Shi, Quanlu Zhang, Fan Yang, Saeed Maleki, Yi Zhu, Xu Cao, Cheng Li, Mao Yang, Lintao Zhang, Lidong ZhouarXiv 2023 · DOI

Abstract

Training modern Deep Neural Networks (DNNs) with billions of parameters requires sophisticated parallelization strategies across multiple accelerators. Current approaches rely on rigid, empirical rules such as data, tensor, and pipeline parallelism, which often fail to optimize complex, heterogeneous models like AlphaFold2. This paper presents SuperScaler, a system that decouples model partitioning from scheduling using a novel vTensor abstraction. SuperScaler enables flexible execution plans, achieving up to 3.5× speedups and significantly improved memory efficiency on state-of-the-art models.

Introduction: The Limits of Rigid Parallelization

As DNNs scale, they exceed the memory capacity of individual GPUs. Researchers typically employ standard parallelization plans to distribute workloads. However, these "empirical rules"—specifically Data Parallelism, Tensor Parallelism, and Pipeline Parallelism—are often too rigid. They couple the method of splitting a model with the specifics of where and when it executes.

Existing parallelization plans like data, tensor, and pipeline parallelism are often too rigid for complex modern models.

Emerging architectures like Swin-Transformer and AlphaFold2 possess heterogeneous structures that do not align well with these traditional boxes, leading to GPU idleness (the "bubble" problem) and excessive communication overhead.

Methodology: Decoupling Partitioning from Scheduling

SuperScaler addresses these inefficiencies by introducing a principled three-phase workflow that separates model transformation from execution scheduling.

The SuperScaler workflow consists of three phases: Model Transformation, Space-Time Scheduling, and Data Materialization.
  1. Model Partitioning (op-trans): Developers define transformations to split large operators into functionally equivalent smaller ones.
  2. Space-Time Scheduling (op-assign, op-order): This phase specifies the assignment of tasks to specific GPUs (space) and their execution sequence (time). By decoupling this from partitioning, SuperScaler allows for "unconventional" plans, such as "co-sharding"—running partitioned pieces sequentially on one GPU to save memory without high communication costs.
  3. Data Dependency Materialization: The system uses the vTensor (Virtual Tensor) abstraction to automatically identify data movement needs. Each vTensor maintains a link to a physical tensor and a mask representing its data portion. Intersecting these masks allows SuperScaler to insert optimized communication primitives (e.g., all-reduce, send/recv) automatically.

Evaluation and Results

The system was evaluated on a cluster of 32 NVIDIA Tesla V100 GPUs using four diverse models: Swin-Transformer, GPT-3 (long-sequence), mBART, and AlphaFold2.

Performance Gains

SuperScaler achieved a 3.5× speedup over state-of-the-art systems (DeepSpeed, Megatron-LM, Alpa) for Swin-Transformer and AlphaFold2. Even for highly optimized models like GPT-3, it provided a 1.5× speedup in long-sequence configurations.

Memory and Efficiency

The "co-shard" strategy enabled training a 1.3B parameter Swin-Transformer on a single GPU, representing a 3.7× improvement over standard memory-saving techniques like ZeRO-3. Additionally, fine-grained scheduling reduced GPU idleness in mBART training, outperforming Megatron-LM by 2.8×.

Conclusion

SuperScaler demonstrates that moving beyond rigid parallelization rules to a unified, decoupled abstraction allows for significantly more efficient DNN training. While current limitations include a lack of support for asynchronous pipeline execution and cross-iteration scheduling, the system provides a powerful framework for optimizing the next generation of complex AI models.

Summary updated

BibTeX
@misc{lin2023superscaler,
  author = {Zhiqi Lin and Youshan Miao and Guodong Liu and Xiaoxiang Shi and Quanlu Zhang and Fan Yang and Saeed Maleki and Yi Zhu and Xu Cao and Cheng Li and Mao Yang and Lintao Zhang and Lidong Zhou},
  title = {{SuperScaler: Supporting Flexible DNN Parallelization via a Unified Abstraction}},
  year = {2023},
  eprint = {2301.08984},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.08984},
}
Figure