TVM: An Automated End-to-End Optimizing Compiler for Deep Learning

By Tianqi Chen, Thierry Moreau, Ziheng Jiang, Lianmin Zheng, Eddie Q. Yan, Haichen Shen, M. Cowan, Yuwei Hu, Luis Ceze, Carlos Guestrin and 1 more. 2018

357 citations recorded by the source corpus.

There is an increasing need to bring machine learning to a wide diversity of hardware devices. Current frameworks rely on vendor-specific operator libraries and optimize for a narrow range of server-class GPUs. Deploying workloads to new platforms -- such as mobile phones, embedded devices, and accelerators (e.g., FPGAs, ASICs) -- requires significant manual effort. We propose TVM, a compiler that exposes graph-level and operator-level optimizations to provide performance portability to deep learning workloads across diverse hardware back-ends. TVM solves optimization challenges specific to deep learning, such as high-level operator fusion, mapping to arbitrary hardware primitives, and memory latency hiding. It also automates optimization of low-level programs to hardware characteristics by employing a novel, learning-based cost modeling method for rapid exploration of code optimizations. Experimental results show that TVM delivers performance across hardware back-ends that are competitive with state-of-the-art, hand-tuned libraries for low-power CPU, mobile GPU, and server-class GPUs. We also demonstrate TVM's ability to target new accelerator back-ends, such as the FPGA-based generic deep learning accelerator. The system is open sourced and in production use inside several major companies.

Subfields: Computer Networks and Communications, Computer Vision and Pattern Recognition, Hardware and Architecture, Efficiency & Compression, ML Systems & Hardware

How researchers see this paper

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

In Computer Networks and Communications

  1. Matei A. Zaharia
  2. Song Han
  3. Chuang Gan
  4. Paul Patras
  5. Chenyan Xiong
  6. Arvind Krishnamurthy
  7. Yang Yu
  8. Chuanxiong Guo

In Computer Vision and Pattern Recognition

  1. Song Han
  2. Chuang Gan
  3. Ji Lin
  4. Luc Van Gool
  5. Dacheng Tao
  6. Trevor Darrell
  7. Yi Yang
  8. Jitendra Malik

In Hardware and Architecture

  1. Chien-chin Huang
  2. Jinyang Li
  3. Minjie Wang
  4. Tushar Krishna
  5. Matei A. Zaharia
  6. Song Han
  7. Chuang Gan
  8. Paul Patras

In Efficiency & Compression

  1. Song Han
  2. Chuang Gan
  3. Ji Lin
  4. Yu-hsin Chen
  5. Joel S. Emer
  6. Yujun Lin
  7. Tushar Krishna
  8. Luca Benini

In ML Systems & Hardware

  1. Yu-hsin Chen
  2. Song Han
  3. Joel S. Emer
  4. Luca Benini
  5. Arvind Krishnamurthy
  6. Luis Ceze
  7. Ziheng Jiang
  8. Eddie Q. Yan

Citations in the corpus