Memory Optimization for Deep Networks

Aashaka Shah, Chao-Yuan Wu, Jayashree Mohan, Vijay Chidambaram, Philipp Krähenbühl
10/27/2020
cs.LGcs.CV

Official code: utsaslab/MONeT (174 stars, Python, MIT, PyTorch, last commit 2021-05-04).

Abstract

Deep learning is slowly, but steadily, hitting a memory bottleneck. While the tensor computation in top-of-the-line GPUs increased by 32x over the last five years, the total available memory only grew by 2.5x.

Show full abstract

This prevents researchers from exploring larger architectures, as training large networks requires more memory for storing intermediate outputs. In this paper, we present MONeT, an automatic framework that minimizes both the memory footprint and computational overhead of deep networks. MONeT jointly optimizes the checkpointing schedule and the implementation of various operators. MONeT is able to outperform all prior hand-tuned operations as well as automated checkpointing. MONeT reduces the overall memory requirement by 3x for various PyTorch models, with a 9-16% overhead in computation. For the same computation cost, MONeT requires 1.2-1.8x less memory than current state-of-the-art automated checkpointing frameworks. Our code is available at https://github.com/utsaslab/MONeT.

View on arXivView PDF

Code Implementations(1)

utsaslab/MONeTOfficial100%
PyTorchMIT

MONeT framework for reducing memory consumption of DNN training

17419Python, COct 20, 20205 years agoMIT
deep-neural-networksdnndnn-trainingmachine-learningmemory-consumption+2 more

Similar Papers

Cite this paper

@article{shah2020memory,
  title  = {Memory Optimization for Deep Networks},
  author = {Aashaka Shah and Chao-Yuan Wu and Jayashree Mohan and Vijay Chidambaram and Philipp Krähenbühl},
  year   = {2020},
  eprint = {2010.14501},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.14501}
}

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

Discussion