Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractions

By Nicolas Vasilache, Oleksandr Zinenko, Theodoros Theodoridis, Priya Goyal, Zach DeVito, William S. Moses, Sven Verdoolaege, Andrew Adams, Albert Cohen. arXiv.org, 2018

490 citations recorded by the source corpus.

Deep learning models with convolutional and recurrent networks are now ubiquitous and analyze massive amounts of audio, image, video, text and graph data, with applications in automatic translation, speech-to-text, scene understanding, ranking user preferences, ad placement, etc. Competing frameworks for building these networks such as TensorFlow, Chainer, CNTK, Torch/PyTorch, Caffe1/2, MXNet and Theano, explore different tradeoffs between usability and expressiveness, research or production orientation and supported hardware. They operate on a DAG of computational operators, wrapping high-performance libraries such as CUDNN (for NVIDIA GPUs) or NNPACK (for various CPUs), and automate memory allocation, synchronization, distribution. Custom operators are needed where the computation does not fit existing high-performance library calls, usually at a high engineering cost. This is frequently required when new operators are invented by researchers: such operators suffer a severe performance penalty, which limits the pace of innovation. Furthermore, even if there is an existing runtime call these frameworks can use, it often doesn't offer optimal performance for a user's particular network architecture and dataset, missing optimizations between operators as well as optimizations that can be done knowing the size and shape of data. Our contributions include (1) a language close to the mathematics of deep learning called Tensor Comprehensions offering both imperative and declarative styles, (2) a polyhedral Just-In-Time compiler to convert a mathematical description of a deep learning DAG into a CUDA kernel with delegated memory management and synchronization, also providing optimizations such as operator fusion and specialization for specific sizes, (3) a compilation cache populated by an autotuner. [Abstract cutoff]

Subfields: Artificial Intelligence, Computational Mathematics, Hardware and Architecture

View Paper: https://www.semanticscholar.org/paper/716b8a99dd90ae046388bb2fda81602505b51b62

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. Kurt Keutzer
  2. Michael W. Mahoney
  3. A. Gholami
  4. Zi-Mei Yao
  5. Quoc V. Le
  6. Joseph E. Gonzalez
  7. Zhen Dong
  8. Torsten Hoefler

In Computational Mathematics

  1. A. Gholami
  2. Michael W. Mahoney
  3. Kurt Keutzer
  4. Gaurav Menghani
  5. Zi-Mei Yao
  6. B. Recht
  7. David P. Woodruff
  8. Petros Drineas

In Hardware and Architecture

  1. Kurt Keutzer
  2. Zi-Mei Yao
  3. Michael W. Mahoney
  4. A. Gholami
  5. Luis Ceze
  6. Michael Isard
  7. Jonathan Ragan-Kelley
  8. Jinyang Li

Citations in the corpus