Slapo: A Schedule Language for Progressive Optimization of Large Deep Learning Model Training
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2016Wide Residual Networkscited by 3,057
22 more
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
- 2018Horovod: fast and easy distributed deep learning in TensorFlowcited by 275
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
- 2018Learning to Optimize Tensor Programscited by 138
- 2021GSPMD: General and Scalable Parallelization for ML Computation Graphscited by 109
- 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
- 2020PyTorch Distributed: Experiences on Accelerating Data Parallel Trainingcited by 87
- 2018Tiramisu: A Polyhedral Compiler for Expressing Fast and Portable Codecited by 53
- 2021BGL: GPU-Efficient GNN Training by Optimizing Graph Data I/O and Preprocessingcited by 50
- 2020Dynamic Tensor Rematerializationcited by 45
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
- 2021Torch.fx: Practical Program Capture and Transformation for Deep Learning in Pythoncited by 38
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
- 2022MiCS: Near-linear Scaling for Training Gigantic Model on Public Cloudcited by 21
- 2021LazyTensor: combining eager execution with domain-specific compilerscited by 11
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 5; 2026: 2.
11 papers.
- 2024TorchTitan: One-stop PyTorch native solution for production ready LLM pre-trainingcited by 80
- 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inferencecited by 29
- 2025HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimizationcited by 19
- 2024Allo: A Programming Model for Composable Accelerator Designcited by 16
- 2024SimpleFSDP: Simpler Fully Sharded Data Parallel with torch.compilecited by 7
- 2025Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimizationcited by 6
- 2025Tawa: Automatic Warp Specialization for Modern GPUs with Asynchronous Referencescited by 6
- 2025Dato: A Task-Based Programming Model for Dataflow Acceleratorscited by 5
- 2026Magellan: Autonomous Discovery of Novel Compiler Optimization Heuristics with AlphaEvolvecited by 5
- 2025veScale: Consistent and Efficient Tensor Programming with Eager-Mode SPMDcited by 1
- 2026Piper: A Programmable Distributed Training Systemcited by 0
- 2026Piper: A Programmable Distributed Training System9 Jun 2026
- 2026Magellan: Autonomous Discovery of Novel Compiler Optimization Heuristics with AlphaEvolve28 Jan 2026
- 2025Tawa: Automatic Warp Specialization for Modern GPUs with Asynchronous References16 Oct 2025
- 2025Dato: A Task-Based Programming Model for Dataflow Accelerators8 Sep 2025
- 2025veScale: Consistent and Efficient Tensor Programming with Eager-Mode SPMD5 Sep 2025
- 2025HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization9 Jun 2025
- 2025Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization24 Mar 2025
- 2024SimpleFSDP: Simpler Fully Sharded Data Parallel with torch.compile1 Nov 2024
- 2024TorchTitan: One-stop PyTorch native solution for production ready LLM pre-training9 Oct 2024
- 2024Allo: A Programming Model for Composable Accelerator Design7 Apr 2024
- 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inference23 Dec 2023