mlsanityData to 7 Oct 2026

Slapo: A Schedule Language for Progressive Optimization of Large Deep Learning Model Training

arXiv 2302.08005 ↗First posted 16 Feb 2023cs.LGcited by 11

Not on the map. Why?

Abstract (arXiv)

Recent years have seen an increase in the development of large deep learning (DL) models, which makes training efficiency crucial. Common practice is struggling with the trade-off between usability and performance. On one hand, DL frameworks such as PyTorch use dynamic graphs to facilitate model developers at a price of sub-optimal model training performance. On the other hand, practitioners propose various approaches to improving the training efficiency by sacrificing some of the flexibility, ranging from making the graph static for more thorough optimization (e.g., XLA) to customizing optimization towards large-scale distributed training (e.g., DeepSpeed and Megatron-LM). In this paper, we aim to address the tension between usability and training efficiency through separation of concerns. Inspired by DL compilers that decouple the platform-specific optimizations of a tensor-level operator from its arithmetic definition, this paper proposes a schedule language, Slapo, to decouple model execution from definition. Specifically, Slapo works on a PyTorch model and uses a set of schedule primitives to convert the model for common model training optimizations such as high-performance kernels, effective 3D parallelism, and efficient activation checkpointing. Compared to existing optimization solutions, Slapo progressively optimizes the model "as-needed" through high-level primitives, and thus preserving programmability and debuggability for users to a large extent. Our evaluation results show that by scheduling the existing hand-crafted optimizations in a systematic way using Slapo, we are able to improve training throughput by up to 2.92x on a single machine with 8 NVIDIA V100 GPUs, and by up to 1.41x on multiple machines with up to 64 GPUs, when compared to the out-of-the-box performance of DeepSpeed and Megatron-LM.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 34 of its 71 references that are in the map. First posted on arXiv 16 Feb 2023.

Builds on

34 of 71 references.

References · 34

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  7. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  9. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  10. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  11. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  12. 2016Wide Residual Networkscited by 3,057
22 more
  1. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  2. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  3. 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
  4. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  5. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
  6. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  7. 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
  8. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
  9. 2018Horovod: fast and easy distributed deep learning in TensorFlowcited by 275
  10. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
  11. 2018Learning to Optimize Tensor Programscited by 138
  12. 2021GSPMD: General and Scalable Parallelization for ML Computation Graphscited by 109
  13. 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
  14. 2020PyTorch Distributed: Experiences on Accelerating Data Parallel Trainingcited by 87
  15. 2018Tiramisu: A Polyhedral Compiler for Expressing Fast and Portable Codecited by 53
  16. 2021BGL: GPU-Efficient GNN Training by Optimizing Graph Data I/O and Preprocessingcited by 50
  17. 2020Dynamic Tensor Rematerializationcited by 45
  18. 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
  19. 2021Torch.fx: Practical Program Capture and Transformation for Deep Learning in Pythoncited by 38
  20. 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
  21. 2022MiCS: Near-linear Scaling for Training Gigantic Model on Public Cloudcited by 21
  22. 2021LazyTensor: combining eager execution with domain-specific compilerscited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 3; 2025: 5; 2026: 2.

11 papers.