Rockmate: an Efficient, Fast, Automatic and Generic Tool for Re-materialization in PyTorch
Not on the map. Why?
Abstract (arXiv)
We propose Rockmate to control the memory requirements when training PyTorch DNN models. Rockmate is an automatic tool that starts from the model code and generates an equivalent model, using a predefined amount of memory for activations, at the cost of a few re-computations. Rockmate automatically detects the structure of computational and data dependencies and rewrites the initial model as a sequence of complex blocks. We show that such a structure is widespread and can be found in many models in the literature (Transformer based models, ResNet, RegNets,...). This structure allows us to solve the problem in a fast and efficient way, using an adaptation of Checkmate (too slow on the whole model but general) at the level of individual blocks and an adaptation of Rotor (fast but limited to sequential models) at the level of the sequence itself. We show through experiments on many models that Rockmate is as fast as Rotor and as efficient as Checkmate, and that it allows in many cases to obtain a significantly lower memory consumption for activations (by a factor of 2 to 5) for a rather negligible overhead (of the order of 10% to 20%). Rockmate is open source and available at https://github.com/topal-team/rockmate.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 10 of its 23 references that are in the map. First posted on arXiv 3 Jul 2023.
Builds on
10 of 23 references.
References · 10
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
- 2020Dynamic Tensor Rematerializationcited by 45
- 2022POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and Pagingcited by 26
- 2019Optimal checkpointing for heterogeneous chains: how to train deep neural networks with limited memorycited by 22
- 2018TFLMS: Large Model Support in TensorFlow by Graph Rewritingcited by 12
- 2019A Graph Theoretic Framework of Recomputation Algorithms for Memory-Efficient Backpropagationcited by 11
- 2016Distributed Deep Learning Using Synchronous Stochastic Gradient Descentcited by 8
- 2022OLLA: Optimizing the Lifetime and Location of Arrays to Reduce the Memory Usage of Neural Networkscited by 6
- 2022Mimose: An Input-Aware Checkpointing Planner for Efficient Training on GPUcited by 2
Built on by
Citing papers per year: 2023: 1; 2024: 2; 2025: 0; 2026: 1.
4 papers.
- 2023The Languini Kitchen: Enabling Language Modelling Research at Different Scales of Computecited by 10
- 2024ProTrain: Efficient LLM Training via Memory-Aware Techniquescited by 4
- 2024Moonwalk: Inverse-Forward Differentiationcited by 1
- 2026TERRA: A Hierarchical Parallel Training and Memory Orchestration Framework for High-Resolution AI-based Earth Modelingcited by 0
- 2026TERRA: A Hierarchical Parallel Training and Memory Orchestration Framework for High-Resolution AI-based Earth Modeling15 Aug 2026
- 2024ProTrain: Efficient LLM Training via Memory-Aware Techniques12 Jun 2024
- 2024Moonwalk: Inverse-Forward Differentiation22 Feb 2024
- 2023The Languini Kitchen: Enabling Language Modelling Research at Different Scales of Compute20 Sep 2023