paper-with-me

Papers

XEngine: Optimal Tensor Rematerialization for Neural Networks in Heterogeneous Environments

2022-12-19 · Manuela Schuler, Richard Membarth, Philipp Slusallek

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.

📄 PDF Abstract BibTeX arXiv:2212.09290

Code (1)

dfki-asr/xengine 공식 구현

Tasks

Scheduling

Similar Papers 제목 키워드 기반

Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerialization

2019-10-07 · Paras Jain, Ajay Jain, Aniruddha Nrusimha, Amir Gholami 외

We formalize the problem of trading-off DNN training time and memory requirements as the tensor rematerialization optimization problem, a generalization of prior checkpointing strategies. We introduce Checkmate, a system…

Coop: Memory is not a Commodity

2023-11-01 · NeurIPS 2023 11

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 remateriali…

Dynamic Tensor Rematerialization

2020-06-17 · ICLR 2021 1 · Marisa Kirisame, Steven Lyubomirsky, Altan Haan, Jennifer Brennan 외

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 …

Efficient Combination of Rematerialization and Offloading for Training DNNs

2021-12-01 · NeurIPS 2021 12 · Olivier Beaumont, Lionel Eyraud-Dubois, Alena Shilova

Rematerialization and offloading are two well known strategies to save memory during the training phase of deep neural networks, allowing data scientists to consider larger models, batch sizes or higher resolution data. …

valid

Moccasin: Efficient Tensor Rematerialization for Neural Networks

2023-04-27 · Burak Bartan, Haoming Li, Harris Teague, Christopher Lott 외

The deployment and training of neural networks on edge computing devices pose many challenges. The low memory nature of edge devices is often one of the biggest limiting factors encountered in the deployment of large neu…

Edge-computing