mlsanityData to 7 Oct 2026

XEngine: Optimal Tensor Rematerialization for Neural Networks in Heterogeneous Environments

arXiv 2212.09290 ↗First posted 19 Dec 2022cs.LG cs.PLcited by 2

Not on the map. Why?

Abstract (arXiv)

Memory efficiency is crucial in training deep learning networks on resource-restricted devices. During backpropagation, forward tensors are used to calculate gradients. Despite the option of keeping those dependencies in memory until they are reused in backpropagation, some forward tensors can be discarded and recomputed later from saved tensors, so-called checkpoints. This allows, in particular, for resource-constrained heterogeneous environments to make use of all available compute devices. Unfortunately, the definition of these checkpoints is a non-trivial problem and poses a challenge to the programmer - improper or excessive recomputations negate the benefit of checkpointing. In this article, we present XEngine, an approach that schedules network operators to heterogeneous devices in low memory environments by determining checkpoints and recomputations of tensors. Our approach selects suitable resources per timestep and operator and optimizes the end-to-end time for neural networks taking the memory limitation of each device into account. For this, we formulate a mixed-integer quadratic program (MIQP) to schedule operators of deep learning networks on heterogeneous systems. We compare our MIQP solver XEngine against Checkmate, a mixed-integer linear programming (MILP) approach that solves recomputation on a single device. Our solver finds solutions that are up to 22.5 % faster than the fastest Checkmate schedule in which the network is computed exclusively on a single device. We also find valid schedules for networks making use of both central processing units and graphics processing units if memory limitations do not allow scheduling exclusively to the graphics processing unit.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 16 of its 31 references that are in the map. First posted on arXiv 19 Dec 2022.

Builds on

16 of 31 references.

References · 16

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  3. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  4. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  5. 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
  6. 2017The Reversible Residual Network: Backpropagation Without Storing Activationscited by 215
  7. 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
  8. 2016Memory-Efficient Backpropagation Through Timecited by 78
  9. 2018SuperNeurons: Dynamic GPU Memory Management for Training Deep Neural Networkscited by 55
  10. 2020Dynamic Tensor Rematerializationcited by 45
  11. 2022POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and Pagingcited by 26
  12. 2019Optimal checkpointing for heterogeneous chains: how to train deep neural networks with limited memorycited by 22
4 more
  1. 2019A Graph Theoretic Framework of Recomputation Algorithms for Memory-Efficient Backpropagationcited by 11
  2. 2017Divide-and-Conquer Checkpointing for Arbitrary Programs with No User Annotationcited by 6
  3. 2022DELTA: Dynamically Optimizing GPU Memory beyond Tensor Recomputationcited by 2
  4. 2022Mimose: An Input-Aware Checkpointing Planner for Efficient Training on GPUcited by 2

Built on by

Cited by year (2026 to 7 Oct)

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

2 papers.