Optimizing Pipeline Parallelism for Deep Learning with Activation Checkpointing
Abstract
This paper presents two dynamic programming algorithms that accelerate deep neural network training with pipeline parallelism and activation checkpointing. Training large deep neural networks requires enormous computation and memory resources. To prevent exhausting these resources on a single device, researchers propose pipeline parallelism, which partitions layers in a model into stages and trains these stages on different devices. When training a stage, researchers apply activation checkpointing, which stores only a subset of activations, called checkpoints, during the forward pass, and recomputes the discarded activations during the backward pass.The first algorithm in this paper finds the model partition that minimizes the maximum training time across stages. The second algorithm selects checkpoints that minimize the training time of a stage without exceeding device memory capacity. To evaluate our model partition and checkpoint selection, we use them to train deep neural networks of various sizes and structures. The experimental results show that our methods increase training throughput by up to 1.24x compared with the state-of-the-art method.
BibTeX
@misc{chiang2025optimizing,
author = {Ming-Yen Chiang and Tzu‐Hsien Tsai and Ding‐Yong Hong and Pangfeng Liu and J L Wu},
title = {{Optimizing Pipeline Parallelism for Deep Learning with Activation Checkpointing}},
year = {2025},
doi = {10.1109/candar68384.2025.00011},
}Ask Althea to put this paper to the test.
Loading related content...