Dynamic Tensor Rematerialization

By Marisa Kirisame, Steven Lyubomirsky, A. Haan, Jennifer Brennan, Mike He, Jared Roesch, Tianqi Chen, Zachary Tatlock. 2020

119 citations recorded by the source corpus.

Checkpointing enables training larger models by freeing intermediate activations and recomputing them on demand. Previous checkpointing techniques are difficult to generalize to dynamic models because they statically plan recomputations offline. We present Dynamic Tensor Rematerialization (DTR), a greedy online algorithm for heuristically checkpointing arbitrary models. DTR is extensible and general: it is parameterized by an eviction policy and only collects lightweight metadata on tensors and operators. Though DTR has no advance knowledge of the model or training task, we prove it can train an $N$-layer feedforward network on an $\Omega(\sqrt{N})$ memory budget with only $\mathcal{O}(N)$ tensor operations. Moreover, we identify a general eviction heuristic and show how it allows DTR to automatically provide favorable checkpointing performance across a variety of models and memory budgets.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Hardware and Architecture, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Joseph E. Gonzalez
  2. Ion Stoica
  3. Sam Shleifer
  4. Prabal Dutta
  5. Maxim Naumov
  6. Chonglin Sun
  7. Chien-chin Huang
  8. Jongsoo Park

In Computer Vision and Pattern Recognition

  1. Joseph E. Gonzalez
  2. Sam Shleifer
  3. Ion Stoica
  4. Prabal Dutta
  5. Maxim Naumov
  6. Chonglin Sun
  7. Chien-chin Huang
  8. Jongsoo Park

In Hardware and Architecture

  1. Prabal Dutta
  2. Chien-chin Huang
  3. Jongsoo Park
  4. M. Smelyanskiy
  5. Jianyu Huang
  6. Paras Jain
  7. Ion Stoica
  8. Andrew Tulloch

In Efficiency & Compression

  1. Ion Stoica
  2. Joseph E. Gonzalez
  3. Prabal Dutta
  4. Chien-chin Huang
  5. Jongsoo Park
  6. Paras Jain
  7. Dheevatsa Mudigere
  8. Myle Ott

Citations in the corpus