TFLMS: Large Model Support in TensorFlow by Graph Rewriting

By Tung D. Le, Haruki Imai, Yasushi Negishi, Kiyokuni Kawachiya. 2018

55 citations recorded by the source corpus.

While accelerators such as GPUs have limited memory, deep neural networks are becoming larger and will not fit with the memory limitation of accelerators for training. We propose an approach to tackle this problem by rewriting the computational graph of a neural network, in which swap-out and swap-in operations are inserted to temporarily store intermediate results on CPU memory. In particular, we first revise the concept of a computational graph by defining a concrete semantics for variables in a graph. We then formally show how to derive swap-out and swap-in operations from an existing graph and present rules to optimize the graph. To realize our approach, we developed a module in TensorFlow, named TFLMS. TFLMS is published as a pull request in the TensorFlow repository for contributing to the TensorFlow community. With TFLMS, we were able to train ResNet-50 and 3DUnet with 4.7x and 2x larger batch size, respectively. In particular, we were able to train 3DUNet using images of size of $192^3$ for image segmentation, which, without TFLMS, had been done only by dividing the images to smaller images, which affects the accuracy.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Efficiency & Compression, Optimization & Training

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. Yuxiong He
  2. Samyam Rajbhandari
  3. Minjia Zhang
  4. Tom Gibbs
  5. Llion Jones
  6. Ahmed Elnaggar
  7. Jie Ren
  8. Chien-chin Huang

In Computer Vision and Pattern Recognition

  1. Samyam Rajbhandari
  2. Yuxiong He
  3. Tom Gibbs
  4. Llion Jones
  5. Ahmed Elnaggar
  6. Chien-chin Huang
  7. G. Rehawi
  8. Christoph Angerer

In Efficiency & Compression

  1. Yuxiong He
  2. Samyam Rajbhandari
  3. Minjia Zhang
  4. Jeff Rasley
  5. Olatunji Ruwase
  6. Chien-chin Huang
  7. Jinyang Li
  8. Jie Tang

In Optimization & Training

  1. Llion Jones
  2. Ahmed Elnaggar
  3. Chien-chin Huang
  4. Gu Jin
  5. Guozhang Jin
  6. Yu Wang
  7. Yuxiong He
  8. Olatunji Ruwase

Citations in the corpus