mlsanityData to 14 Oct 2026

Coop: Memory is not a Commodity

arXiv 2311.00591 ↗First posted 1 Nov 2023cs.LG cs.AI cs.SEcited by 3

Not on the map. Why?

Abstract (arXiv)

Tensor rematerialization allows the training of deep neural networks (DNNs) under limited memory budgets by checkpointing the models and recomputing the evicted tensors as needed. However, the existing tensor rematerialization techniques overlook the memory system in deep learning frameworks and implicitly assume that free memory blocks at different addresses are identical. Under this flawed assumption, discontiguous tensors are evicted, among which some are not used to allocate the new tensor. This leads to severe memory fragmentation and increases the cost of potential rematerializations. To address this issue, we propose to evict tensors within a sliding window to ensure all evictions are contiguous and are immediately used. Furthermore, we proposed cheap tensor partitioning and recomputable in-place to further reduce the rematerialization cost by optimizing the tensor allocation. We named our method Coop as it is a co-optimization of tensor allocation and tensor rematerialization. We evaluated Coop on eight representative DNNs. The experimental results demonstrate that Coop achieves up to 2× memory saving and hugely reduces compute overhead, search latency, and memory fragmentation compared to the state-of-the-art baselines.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 22 of its 37 references that are in the map. First posted on arXiv 1 Nov 2023.

Builds on

22 of 37 references.

References · 22

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
  5. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,355
  6. 2021Zero-Shot Text-to-Image Generationcited by 4,288
  7. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  8. 2020Reformer: The Efficient Transformercited by 1,668
  9. 2018Group Normalizationcited by 1,524
  10. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
  11. 2015Automatic differentiation in machine learning: a surveycited by 855
  12. 2016Training Deep Nets with Sublinear Memory Costcited by 848
10 more
  1. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
  2. 2017The Reversible Residual Network: Backpropagation Without Storing Activationscited by 217
  3. 2015MXNet: A Flexible and Efficient Machine Learning Library for Heterogeneous Distributed Systemscited by 195
  4. 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 179
  5. 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 91
  6. 2016Memory-Efficient Backpropagation Through Timecited by 78
  7. 2021ActNN: Reducing Training Memory Footprint via 2-Bit Activation Compressed Trainingcited by 61
  8. 2020Dynamic Tensor Rematerializationcited by 46
  9. 2021OneFlow: Redesign the Distributed Deep Learning Framework from Scratchcited by 15
  10. 2014Koka: Programming with Row Polymorphic Effect Typescited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 1.

3 papers.