Skip to main content
QUICK REVIEW

[Paper Review] A Graph Theoretic Framework of Recomputation Algorithms for Memory-Efficient Backpropagation

Mitsuru Kusumoto, Takuya Inoue|arXiv (Cornell University)|May 28, 2019
Network Packet Processing and OptimizationComputer Science17 references17 citations
TL;DR

This paper proposes a graph-theoretic framework for memory-efficient backpropagation using dynamic programming to minimize computational overhead under a fixed memory budget. By modeling neural networks as directed graphs and formalizing recomputation as a lower set optimization problem, the method reduces peak memory usage by 36%–81% across diverse networks like ResNet, DenseNet, and U-Net, outperforming prior methods through optimal strategy selection.

ABSTRACT

Recomputation algorithms collectively refer to a family of methods that aims to reduce the memory consumption of the backpropagation by selectively discarding the intermediate results of the forward propagation and recomputing the discarded results as needed. In this paper, we will propose a novel and efficient recomputation method that can be applied to a wider range of neural nets than previous methods. We use the language of graph theory to formalize the general recomputation problem of minimizing the computational overhead under a fixed memory budget constraint, and provide a dynamic programming solution to the problem. Our method can reduce the peak memory consumption on various benchmark networks by 36%~81%, which outperforms the reduction achieved by other methods.

Motivation & Objective

  • To address the critical challenge of high memory consumption in training large deep neural networks, especially in vision tasks requiring high-resolution inputs.
  • To formalize the general recomputation problem as a graph-theoretic optimization task minimizing computational overhead under a fixed memory budget.
  • To develop a dynamic programming solution that systematically identifies optimal recomputation strategies across arbitrary neural network architectures.
  • To outperform existing heuristic-based methods by providing a theoretically grounded, near-optimal strategy selection mechanism applicable to all network types.
  • To demonstrate that the proposed method enables significantly larger batch sizes and better memory-runtime tradeoffs than prior approaches.

Proposed method

  • The method models neural networks as directed acyclic graphs (DAGs), where nodes represent intermediate activation values and edges represent computational dependencies.
  • It formulates the recomputation problem as finding a lower set of nodes to cache such that the total computational overhead of recomputing uncached nodes is minimized under a memory budget constraint.
  • The framework uses dynamic programming (DP) to compute the optimal recomputation strategy by solving a reverse problem: maximizing computational overhead to identify memory-efficient configurations.
  • An approximate DP variant is introduced to scale to large networks, with empirical results showing near-optimal performance on real-world architectures.
  • The approach leverages graph-theoretic concepts such as lower sets, boundaries, and neighborhoods to formalize the dependency structure and guide strategy selection.
  • The method supports both time-centric and memory-centric configurations, enabling flexible tradeoffs between runtime and memory usage.

Experimental results

Research questions

  • RQ1How can the general problem of memory-efficient backpropagation be formalized using graph theory to enable optimal strategy selection across arbitrary neural network architectures?
  • RQ2What is the optimal tradeoff between computational overhead and memory usage in recomputation strategies, and how can it be computed efficiently?
  • RQ3Can a dynamic programming approach outperform heuristic-based recomputation methods in terms of memory reduction and runtime efficiency?
  • RQ4To what extent does the proposed framework enable larger batch sizes in memory-constrained training scenarios?
  • RQ5How does the performance of the approximate DP solution compare to the exact solution in practice for real-world deep learning models?

Key findings

  • The proposed method reduces peak memory consumption by 36% to 81% across benchmark networks including ResNet, DenseNet, U-Net, and PSPNet, significantly outperforming existing methods.
  • The approximate dynamic programming solution achieves performance nearly identical to the exact solution, confirming its practicality and near-optimality on complex real-world architectures.
  • For ResNet152, the method achieved a 1.16× speedup over Chen’s algorithm when training with double the maximum batch size feasible under vanilla computation.
  • The method enabled a batch size increase from 2 to 8 for PSPNet, demonstrating its effectiveness in enabling larger-scale training on memory-constrained hardware.
  • The framework’s ability to handle any neural network architecture without architectural assumptions makes it more general and powerful than prior methods like Chen’s segment-based or Gruslys’ RNN-specialized approaches.
  • The results verify that the method successfully identifies low-overhead recomputation strategies, confirming the effectiveness of the graph-theoretic formulation and dynamic programming optimization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.