BPPSA: Scaling Back-propagation by Parallel Scan Algorithm

Shang Wang, Yifan Bai, Gennady Pekhimenko
7/23/2019
cs.LGcs.DCstat.ML

Official code: UofT-EcoSystem/BPPSA-open (13 stars, Python, MIT, last commit 2021-06-07).

Abstract

In an era when the performance of a single compute device plateaus, software must be designed to scale on massively parallel systems for better runtime performance. However, in the context of training deep learning models, the popular back-propagation (BP) algorithm imposes a strong sequential dependency in the process of gradient computation.

Show full abstract

Under model parallelism, BP takes $Θ(n)$ steps to complete which hinders its scalability on parallel systems ($n$ represents the number of compute devices into which a model is partitioned). In this work, in order to improve the scalability of BP, we reformulate BP into a scan operation which is a primitive that performs an in-order aggregation on a sequence of values and returns the partial result at each step. We can then scale such reformulation of BP on parallel systems by our modified version of the Blelloch scan algorithm which theoretically takes $Θ(\log n)$ steps. We evaluate our approach on a vanilla Recurrent Neural Network (RNN) training with synthetic datasets and a RNN with Gated Recurrent Units (GRU) training with the IRMAS dataset, and demonstrate up to $2.75\times$ speedup on the overall training time and $108\times$ speedup on the backward pass. We also demonstrate that the retraining of pruned networks can be a practical use case of our method.

View on arXivView PDF

Code Implementations(1)

MIT

The (open-source part of) code to reproduce "BPPSA: Scaling Back-propagation by Parallel Scan Algorithm".

131Python, CudaJan 12, 20205 years agoMIT

Similar Papers

Cite this paper

@article{wang2019bppsa,
  title  = {BPPSA: Scaling Back-propagation by Parallel Scan Algorithm},
  author = {Shang Wang and Yifan Bai and Gennady Pekhimenko},
  year   = {2019},
  eprint = {1907.10134},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1907.10134}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1907.10134.svg)](https://codeofpaper.com/paper/1907.10134)

Discussion