Lune

ICML2023Top-tier venue

Moccasin: Efficient Tensor Rematerialization for Neural Networks

Burak Bartan, Haoming Li, Harris Teague, Christopher Lott, Bistra Dilkina

Abstract

The deployment and training of neural networks on edge computing devices pose many challenges. The low memory nature of edge devices is often one of the biggest limiting factors encountered in the deployment of large neural network models. Tensor rematerialization or recompute is a way to address high memory requirements for neural network training and inference. In this paper we consider the problem of execution time minimization of compute graphs subject to a memory budget. In particular, we develop a new constraint programming formulation called Moccasin with only O(n)O(n) integer variables, where nn is the number of nodes in the compute graph. This is a significant improvement over the works in the recent literature that propose formulations with O(n2)O(n^2) Boolean variables. We present numerical studies that show that our approach is up to an order of magnitude faster than recent work especially for large-scale graphs.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Differentiable Combinatorial Scheduling at Scale cites Neural Topological Ordering for Computation Graphs
  • A fast heuristic to optimize time-space tradeoff for large models cites Efficient Combination of Rematerialization and Offloading for Training DNNs
  • POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and Paging cites Dynamic Tensor Rematerialization
  • POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and Paging cites Efficient Combination of Rematerialization and Offloading for Training DNNs
  • Efficient Combination of Rematerialization and Offloading for Training DNNs cites Dynamic Tensor Rematerialization
  • HiRemate: Hierarchical Approach for Efficient Re-materialization of Neural Networks cites Dynamic Tensor Rematerialization
  • HiRemate: Hierarchical Approach for Efficient Re-materialization of Neural Networks cites POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and Paging
  • HiRemate: Hierarchical Approach for Efficient Re-materialization of Neural Networks cites Efficient Combination of Rematerialization and Offloading for Training DNNs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Differentiable Combinatorial Scheduling at ScaleMingju Liu, Yingjie Li, Jiaqi Yin, Zhiru Zhang et al.ICML 2024 · 7 citations
  2. A fast heuristic to optimize time-space tradeoff for large modelsAkifumi Imanishi, Zijian Xu, Masayuki Takagi, Sixue Wang et al.NeurIPS 2023 · 2 citations
  3. HiRemate: Hierarchical Approach for Efficient Re-materialization of Neural NetworksJulia Gusak, Xunyi Zhao, Théotime Le Hellard, Zhe Li et al.ICML 2025

Builds on4

  1. Dynamic Tensor RematerializationMarisa Kirisame, Steven Lyubomirsky, Altan Haan, Jennifer Brennan et al.ICLR 2021 · 115 citations
  2. Efficient Combination of Rematerialization and Offloading for Training DNNsOlivier Beaumont, Lionel Eyraud-Dubois, Alena ShilovaNeurIPS 2021 · 69 citations
  3. POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and PagingShishir G. Patil, Paras Jain, Prabal Dutta, Ion Stoica et al.ICML 2022 · 52 citations
  4. Neural Topological Ordering for Computation GraphsMukul Gagrani, Corrado Rainone, Yang Yang, Harris Teague et al.NeurIPS 2022 · 21 citations

Related papers

  1. Coop: Memory is not a CommodityJianhao Zhang, Shihan Ma, Peihong Liu, Jinhui YuanNeurIPS 2023 · 11 citations
  2. On The Efficiency of Sparse-Tiled Tensor Graph Processing For Low Memory UsageAntonio Cipolletta, Andrea CalimeraDAC 2021 · 6 citations
  3. Convolutional Neural Network Compression through Generalized Kronecker Product DecompositionMarawan Gamal Abdel Hameed, Marzieh S. Tahaei, Ali Mosleh, Vahid Partovi NiaAAAI 2022 · 33 citations
  4. MST-compression: Compressing and Accelerating Binary Neural Networks with Minimum Spanning TreeQuang Hieu Vo, Linh-Tam Tran, Sung-Ho Bae, Lok-Won Kim et al.ICCV 2023 · 2 citations
  5. MODeL: Memory Optimizations for Deep LearningBenoit Steiner, Mostafa Elhoushi, Jacob Kahn, James HegartyICML 2023 · 17 citations
Dusk over the sea between two cliffs drawn in fine vertical lines