SwapAdvisor: Pushing Deep Learning Beyond the GPU Memory Limit via Smart Swapping

By Chien-chin Huang, Gu Jin, Guozhang Jin, Jinyang Li. 2020

233 citations recorded by the source corpus.

It is known that deeper and wider neural networks can achieve better accuracy. But it is difficult to continue the trend to increase model size due to limited GPU memory. One promising solution is to support swapping between GPU and CPU memory. However, existing work on swapping only handle certain models and do not achieve satisfactory performance. Deep learning computation is commonly expressed as a dataflow graph which can be analyzed to improve swapping. We propose SwapAdvisor, which performs joint optimization along 3 dimensions based on a given dataflow graph: operator scheduling, memory allocation, and swap decisions. SwapAdvisor explores the vast search space using a custom-designed genetic algorithm. Evaluations using a variety of large models show that SwapAdvisor can train models up to 12 times the GPU memory limit while achieving 53-99% of the throughput of a hypothetical baseline with infinite GPU memory.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Hardware and Architecture, 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. Zhiyuan Liu
  2. Minlie Huang
  3. Jie Tang
  4. Maosong Sun
  5. Xipeng Qiu
  6. Yang Liu
  7. Ji-rong Wen
  8. Wayne Xin Zhao

In Computer Vision and Pattern Recognition

  1. Jun Zhu
  2. Christopher R'e
  3. Zhiyuan Liu
  4. Luc Van Gool
  5. Yang Liu
  6. Ji-rong Wen
  7. Percy Liang
  8. Trevor Darrell

In Hardware and Architecture

  1. Jie Tang
  2. Xiao Liu
  3. Yuxiong He
  4. Daniel Y. Fu
  5. Prabal Dutta
  6. Jun Zhu
  7. Percy Liang
  8. Qin Jin

In Efficiency & Compression

  1. Jie Tang
  2. Minlie Huang
  3. Ion Stoica
  4. Yuxiong He
  5. Xiao Liu
  6. Reza Yazdani Aminabadi
  7. Samyam Rajbhandari
  8. Minjia Zhang

In Optimization & Training

  1. Ce Zhang
  2. Jie Tang
  3. Xiao Liu
  4. Christopher R'e
  5. Gangmuk Lim
  6. Prabal Dutta
  7. Haotong Zhang
  8. Jun Zhu

Citations in the corpus