paper-with-me

Papers

Dynamic Tensor Rematerialization

2020-06-17 · ICLR 2021 1 · Marisa Kirisame, Steven Lyubomirsky, Altan Haan, Jennifer Brennan, Mike He, Jared Roesch, Tianqi Chen, Zachary Tatlock

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 these recomputations offline and assume static computation graphs. We demonstrate that a simple online algorithm can achieve comparable performance by introducing Dynamic Tensor Rematerialization (DTR), a greedy online algorithm for checkpointing that is extensible and general, is parameterized by eviction policy, and supports dynamic models. We prove that DTR can train an $N$-layer linear feedforward network on an $\Omega(\sqrt{N})$ memory budget with only $\mathcal{O}(N)$ tensor operations. DTR closely matches the performance of optimal static checkpointing in simulated experiments. We incorporate a DTR prototype into PyTorch merely by interposing on tensor allocations and operator calls and collecting lightweight metadata on tensors.

📄 PDF Abstract BibTeX arXiv:2006.09616

Code (1)

uwsampl/dtr-prototype 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Feedforward Network A Feedforward Network, or a Multilayer Perceptron (MLP), is a neural network with solely densely connected layers. This is the classic neural network architecture of the…

Similar Papers 제목 키워드 기반

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…

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…

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

Efficient Rematerialization for Deep Networks

2019-12-01 · NeurIPS 2019 12 · Ravi Kumar, Manish Purohit, Zoya Svitkina, Erik Vee 외

When training complex neural networks, memory usage can be an important bottleneck. The question of when to rematerialize, i.e., to recompute intermediate values rather than retaining them in memory, becomes critical to…