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 integer variables, where 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 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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 13006fdd-5c03-4c27-8a70-e01a52db48f4Cited by top-tier papers3
- Differentiable Combinatorial Scheduling at ScaleMingju Liu, Yingjie Li, Jiaqi Yin, Zhiru Zhang et al.ICML 2024 · 7 citations
- A fast heuristic to optimize time-space tradeoff for large modelsAkifumi Imanishi, Zijian Xu, Masayuki Takagi, Sixue Wang et al.NeurIPS 2023 · 2 citations
- 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
- Dynamic Tensor RematerializationMarisa Kirisame, Steven Lyubomirsky, Altan Haan, Jennifer Brennan et al.ICLR 2021 · 115 citations
- Efficient Combination of Rematerialization and Offloading for Training DNNsOlivier Beaumont, Lionel Eyraud-Dubois, Alena ShilovaNeurIPS 2021 · 69 citations
- 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
- Neural Topological Ordering for Computation GraphsMukul Gagrani, Corrado Rainone, Yang Yang, Harris Teague et al.NeurIPS 2022 · 21 citations
Related papers
- Coop: Memory is not a CommodityJianhao Zhang, Shihan Ma, Peihong Liu, Jinhui YuanNeurIPS 2023 · 11 citations
- On The Efficiency of Sparse-Tiled Tensor Graph Processing For Low Memory UsageAntonio Cipolletta, Andrea CalimeraDAC 2021 · 6 citations
- Convolutional Neural Network Compression through Generalized Kronecker Product DecompositionMarawan Gamal Abdel Hameed, Marzieh S. Tahaei, Ali Mosleh, Vahid Partovi NiaAAAI 2022 · 33 citations
- 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
- MODeL: Memory Optimizations for Deep LearningBenoit Steiner, Mostafa Elhoushi, Jacob Kahn, James HegartyICML 2023 · 17 citations
