TVM: An Automated End-to-End Optimizing Compiler for Deep Learning
Yuwei Hu
Faculty Researcher · Cornell SC Johnson College of Business
Open-access research dispatch from Cornell SC Johnson College of Business, indexed under AI & Foundation Models (3,083 peer citations).
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.
Originally published at arXiv
By Yuwei Hu (Cornell SC Johnson College of Business) · 2018-02-12 · CC-BY.
Add a Worked Example, Practitioner Field Note, or Counter-Thesis
More from Cornell SC Johnson College of Business & Related Topics
All 34 works from Cornell SC Johnson College of Business →Discovering the systematic errors made by machine learning models
Discovering systematic errors with cross-modal embeddings In this blog post, we introduce Domino, a new approach for discovering systematic errors made by…
BAIR at CoRL 2026
The Conference on Robot Learning (CoRL) takes place November 9–12, 2026, in Austin, Texas. BAIR faculty, postdocs and students will be presenting research…
Clinical trials that are actually marketing ploys targeting doctors – how seeding trials put profit over patients
Some industry-funded clinical trials show signs of being designed to market drugs rather than to test them for their safety and effectiveness. Detecting…
Soaring gas prices and disrupted supply chains will ripple out to increase costs in every store and sector of the economy
US consumers, already feeling pain at the gas pump, can expect higher prices and prolonged shortages for goods of all sorts, including food, as additional…