DropIT: Dropping Intermediate Tensors for Memory-Efficient DNN Training

Joya Chen, Kai Xu, Yuhui Wang, Yifei Cheng, Angela Yao
2/28/2022
cs.CV

Official code: chenjoya/dropit (32 stars, Python, PyTorch, last commit 2023-04-08).

Abstract

A standard hardware bottleneck when training deep neural networks is GPU memory. The bulk of memory is occupied by caching intermediate tensors for gradient computation in the backward pass.

Show full abstract

We propose a novel method to reduce this footprint - Dropping Intermediate Tensors (DropIT). DropIT drops min-k elements of the intermediate tensors and approximates gradients from the sparsified tensors in the backward pass. Theoretically, DropIT reduces noise on estimated gradients and therefore has a higher rate of convergence than vanilla-SGD. Experiments show that we can drop up to 90\% of the intermediate tensor elements in fully-connected and convolutional layers while achieving higher testing accuracy for Visual Transformers and Convolutional Neural Networks on various tasks (e.g., classification, object detection, instance segmentation). Our code and models are available at https://github.com/chenjoya/dropit.

View on arXivView PDF

Code Implementations(1)

chenjoya/dropitOfficial100%
PyTorch

DropIT: Dropping Intermediate Tensors for Memory-Efficient DNN Training (ICLR 2023)

323Python, CudaFeb 19, 20223 years ago
artificial-intelligencecomputer-visiondeep-learningpytorch

Similar Papers

Cite this paper

@article{chen2022dropit,
  title  = {DropIT: Dropping Intermediate Tensors for Memory-Efficient DNN Training},
  author = {Joya Chen and Kai Xu and Yuhui Wang and Yifei Cheng and Angela Yao},
  year   = {2022},
  eprint = {2202.13808},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.13808}
}

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

Discussion