Dynamic Tensor Rematerialization
Marisa Kirisame, Steven Lyubomirsky, Altan Haan, Jennifer Brennan, Mike He, Jared Roesch, Tianqi Chen, Zachary Tatlock
摘要
Checkpointing enables the training of deep learning models under restricted memory budgets by freeing intermediate activations from memory and recomputing them on demand. Current checkpointing techniques statically plan these recomputations offline and assume static computation graphs. We demonstrate that a simple online algorithm can achieve comparable performance by introducing Dynamic Tensor Rematerialization (DTR), a greedy online algorithm for checkpointing that is extensible and general, is parameterized by eviction policy, and supports dynamic models. We prove that DTR can train an N -layer linear feedforward network on an Ω( √ N ) memory budget with only O(N ) tensor operations. DTR closely matches the performance of optimal static checkpointing in simulated experiments. We incorporate a DTR prototype into PyTorch merely by interposing on tensor allocations and operator calls and collecting lightweight metadata on tensors.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 33 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Efficient Combination of Rematerialization and Offloading for Training DNNs 引用了 SwapAdvisor: Pushing Deep Learning Beyond the GPU Memory Limit via Smart Swapping
- ActNN: Reducing Training Memory Footprint via 2-Bit Activation Compressed Training 引用了 SwapAdvisor: Pushing Deep Learning Beyond the GPU Memory Limit via Smart Swapping
- ActNN: Reducing Training Memory Footprint via 2-Bit Activation Compressed Training 引用了 Capuchin: Tensor-based GPU Memory Management for Deep Learning
- Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learning 引用了 ActNN: Reducing Training Memory Footprint via 2-Bit Activation Compressed Training
- Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learning 引用了 SwapAdvisor: Pushing Deep Learning Beyond the GPU Memory Limit via Smart Swapping
- Unity: Accelerating DNN Training Through Joint Optimization of Algebraic Transformations and Parallelization 引用了 Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learning
引用它的顶会 Paper33
- Dorylus: Affordable, Scalable, and Accurate GNN Training with Distributed CPU Servers and Serverless ThreadsJohn Thorpe, Yifan Qiao, Jonathan Eyolfson, Shen Teng 等OSDI 2021 · 175 次引用
- Unity: Accelerating DNN Training Through Joint Optimization of Algebraic Transformations and ParallelizationColin Unger, Zhihao Jia, Wei Wu, Sina Lin 等OSDI 2022 · 105 次引用
- ActNN: Reducing Training Memory Footprint via 2-Bit Activation Compressed TrainingJianfei Chen, Lianmin Zheng, Zhewei Yao, Dequan Wang 等ICML 2021 · 93 次引用
- Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep LearningLianmin Zheng, Zhuohan Li, Hao Zhang, Yonghao Zhuang 等OSDI 2022 · 75 次引用
- Efficient Combination of Rematerialization and Offloading for Training DNNsOlivier Beaumont, Lionel Eyraud-Dubois, Alena ShilovaNeurIPS 2021 · 69 次引用
它引用的 Paper3
- Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
- SwapAdvisor: Pushing Deep Learning Beyond the GPU Memory Limit via Smart SwappingChien-Chin Huang, Gu Jin, Jinyang LiASPLOS 2020 · 161 次引用
- Capuchin: Tensor-based GPU Memory Management for Deep LearningXuan Peng, Xuanhua Shi, Hulin Dai, Hai Jin 等ASPLOS 2020 · 143 次引用
相关 Paper
- T-Control: An Efficient Dynamic Tensor Rematerialization System for DNN TrainingZehua Wang, Junmin Xiao, Xiaochuan Deng, Huibing Wang 等ASPLOS 2026 · 2 次引用
- Coop: Memory is not a CommodityJianhao Zhang, Shihan Ma, Peihong Liu, Jinhui YuanNeurIPS 2023 · 11 次引用
- Memory Optimization for Deep NetworksAashaka Shah, Chao-Yuan Wu, Jayashree Mohan, Vijay Chidambaram 等ICLR 2021 · 29 次引用
- HiRemate: Hierarchical Approach for Efficient Re-materialization of Neural NetworksJulia Gusak, Xunyi Zhao, Théotime Le Hellard, Zhe Li 等ICML 2025
- A fast heuristic to optimize time-space tradeoff for large modelsAkifumi Imanishi, Zijian Xu, Masayuki Takagi, Sixue Wang 等NeurIPS 2023 · 2 次引用
