University of Texas at Austin

Past Event: Oden Institute Seminar

Enzyme: High-Performance, Cross-Language, and Parallel Automatic Differentiation

William Moses, PhD student, Computer science, MIT

3:30 – 5PM
Tuesday Dec 13, 2022

POB 6.304

Abstract

Automatic differentiation (AD) is key to training neural networks, Bayesian inference, and scientific computing. Applying these techniques requires rewriting code in a specific machine learning framework or manually providing derivatives. This talk presents Enzyme, a high-performance automatic differentiation compiler plugin for the low-level virtual machine (LLVM) compiler capable of synthesizing gradients of programs expressed in the LLVM intermediate representation (IR). Enzyme differentiates programs in any language whose compiler targets LLVM, including C/C++, Fortran, Julia, Rust, Swift, etc., thereby providing native AD capabilities in these languages with state-of-the-art performance. Unlike traditional tools, Enzyme performs AD on optimized IR. On a combined machine-learning and scientific computing benchmark suite, AD on optimized IR achieves a geometric mean speedup of 4.2x over AD on IR before optimization.

This talk will also include work that makes Enzyme the first fully automatic reverse-mode AD tool to generate gradients of existing GPU kernels. This includes new GPU and AD-specific compiler optimizations, and an algorithm ensuring correctness of high-performance parallel gradient computations. We provide a detailed evaluation of five GPU-based HPC applications, executed on NVIDIA and AMD GPUs.

https://proceedings.neurips.cc/paper/2020/file/9332c513ef44b682e9347822c2e457ac-Paper.pdf

https://dl.acm.org/doi/pdf/10.1145/3458817.3476165

Biography

William Moses is a PhD student at MIT studying computer science. Previously, he attended MIT as an undergraduate and M.Eng in computer science and physics. Before that, he attended Thomas Jefferson High School for Science and Technology (TJHSST) in Northern Virginia.

Enzyme: High-Performance, Cross-Language, and Parallel Automatic Differentiation

Event information

Date
3:30 – 5PM
Tuesday Dec 13, 2022
Location POB 6.304
Hosted by Patrick Heimbach