PaReprop: Fast Parallelized Reversible Backpropagation

Tyler Zhu, Karttikeya Mangalam
6/15/2023
cs.LGcs.CLcs.CV

No official code found. Best implementation: karttikeya/minREV (127 stars, last commit 2024-03-14).

Abstract

The growing size of datasets and deep learning models has made faster and memory-efficient training crucial. Reversible transformers have recently been introduced as an exciting new method for extremely memory-efficient training, but they come with an additional computation overhead of activation re-computation in the backpropagation phase. We present PaReprop, a fast Parallelized Reversible Backpropagation algorithm that parallelizes the additional activation re-computation overhead in reversible training with the gradient computation itself in backpropagation phase. We demonstrate the effectiveness of the proposed PaReprop algorithm through extensive benchmarking across model families (ViT, MViT, Swin and RoBERTa), data modalities (Vision & NLP), model sizes (from small to giant), and training batch sizes. Our empirical results show that PaReprop achieves up to 20% higher training throughput than vanilla reversible training, largely mitigating the theoretical overhead of 25% lower throughput from activation recomputation in reversible training. Project page: https://tylerzhu.com/pareprop.

View on arXivView PDF

Code Implementations(1)

karttikeya/minREVCommunity100%

A simple minimal implementation of Reversible Vision Transformers

12710Shell, PythonFeb 8, 20232 years ago

Similar Papers

Cite this paper

@article{zhu2023pareprop,
  title  = {PaReprop: Fast Parallelized Reversible Backpropagation},
  author = {Tyler Zhu and Karttikeya Mangalam},
  year   = {2023},
  eprint = {2306.09342},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.09342v1}
}

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/2306.09342.svg)](https://codeofpaper.com/paper/2306.09342)

Discussion