TFLMS: Large Model Support in TensorFlow by Graph Rewriting
Not on the map. Why?
Abstract (arXiv)
While accelerators such as GPUs have limited memory, deep neural networks are becoming larger and will not fit with the memory limitation of accelerators for training. We propose an approach to tackle this problem by rewriting the computational graph of a neural network, in which swap-out and swap-in operations are inserted to temporarily store intermediate results on CPU memory. In particular, we first revise the concept of a computational graph by defining a concrete semantics for variables in a graph. We then formally show how to derive swap-out and swap-in operations from an existing graph and present rules to optimize the graph. To realize our approach, we developed a module in TensorFlow, named TFLMS. TFLMS is published as a pull request in the TensorFlow repository for contributing to the TensorFlow community. With TFLMS, we were able to train ResNet-50 and 3DUnet with 4.7x and 2x larger batch size, respectively. In particular, we were able to train 3DUNet using images of size of 1923 for image segmentation, which, without TFLMS, had been done only by dividing the images to smaller images, which affects the accuracy.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). First posted on arXiv 5 Jul 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 4; 2024: 1; 2025: 5.
12 papers.
- 2021Performance of a Geometric Deep Learning Pipeline for HL-LHC Particle Trackingcited by 29
- 2025Pangu Ultra MoE: How to Train Your Big MoE on Ascend NPUscited by 12
- 2023G10: Enabling An Efficient Unified GPU Memory and Storage Architecture with Smart Tensor Migrationscited by 10
- 2022Survey on Large Scale Neural Network Trainingcited by 4
- 2023Systems for Parallel and Distributed Large-Model Deep Learning Trainingcited by 4
- 2023Rockmate: an Efficient, Fast, Automatic and Generic Tool for Re-materialization in PyTorchcited by 4
- 2024ProTrain: Efficient LLM Training via Memory-Aware Techniquescited by 4
- 2025A Survey on Memory-Efficient Transformer-Based Model Training in AI for Sciencecited by 3
- 2025Cost-Efficient LLM Training with Lifetime-Aware Tensor Offloading via GPUDirect Storagecited by 3
- 2023Saturn: An Optimized Data System for Large Model Deep Learning Workloadscited by 2
- 2025STAlloc: Enhancing Memory Efficiency in Large-Scale Model Training with Spatio-Temporal Planningcited by 2
- 2025GPU Memory Usage Optimization for Backward Propagation in Deep Network Trainingcited by 0
- 2025STAlloc: Enhancing Memory Efficiency in Large-Scale Model Training with Spatio-Temporal Planning22 Jul 2025
- 2025Cost-Efficient LLM Training with Lifetime-Aware Tensor Offloading via GPUDirect Storage6 Jun 2025
- 2025Pangu Ultra MoE: How to Train Your Big MoE on Ascend NPUs7 May 2025
- 2025GPU Memory Usage Optimization for Backward Propagation in Deep Network Training18 Feb 2025
- 2025A Survey on Memory-Efficient Transformer-Based Model Training in AI for Science21 Jan 2025
- 2024ProTrain: Efficient LLM Training via Memory-Aware Techniques12 Jun 2024
- 2023G10: Enabling An Efficient Unified GPU Memory and Storage Architecture with Smart Tensor Migrations13 Oct 2023
- 2023Saturn: An Optimized Data System for Large Model Deep Learning Workloads3 Sep 2023
- 2023Rockmate: an Efficient, Fast, Automatic and Generic Tool for Re-materialization in PyTorch3 Jul 2023
- 2023Systems for Parallel and Distributed Large-Model Deep Learning Training6 Jan 2023
- 2022Survey on Large Scale Neural Network Training21 Feb 2022
- 2021Performance of a Geometric Deep Learning Pipeline for HL-LHC Particle Tracking11 Mar 2021