DiffTaichi: Differentiable Programming for Physical Simulation

By Yuanming Hu, Luke Anderson, Tzu-Mao Li, Qi Sun, Nathan A. Carr, Jonathan Ragan-Kelley, Frédo Durand. 2019

516 citations recorded by the source corpus.

We present DiffTaichi, a new differentiable programming language tailored for building high-performance differentiable physical simulators. Based on an imperative programming language, DiffTaichi generates gradients of simulation steps using source code transformations that preserve arithmetic intensity and parallelism. A light-weight tape is used to record the whole simulation program structure and replay the gradient kernels in a reversed order, for end-to-end backpropagation. We demonstrate the performance and productivity of our language in gradient-based learning and optimization tasks on 10 different physical simulators. For example, a differentiable elastic object simulator written in our language is 4.2x shorter than the hand-engineered CUDA version yet runs as fast, and is 188x faster than the TensorFlow implementation. Using our differentiable programs, neural network controllers are typically optimized within only tens of iterations.

Subfields: Computational Mechanics, Computer Graphics and Computer-Aided Design, Statistical and Nonlinear Physics

How researchers see this paper

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

In Computational Mechanics

  1. Jiajun Wu
  2. Josh Tenenbaum
  3. Ben Mildenhall
  4. Matthias Nießner
  5. Christian Theobalt
  6. Gordon Wetzstein
  7. Michael Zollhöfer
  8. Justus Thies

In Computer Graphics and Computer-Aided Design

  1. Matthias Nießner
  2. Vincent Sitzmann
  3. Gordon Wetzstein
  4. Christian Theobalt
  5. Justus Thies
  6. Jiajun Wu
  7. Ben Mildenhall
  8. Andreas Geiger

In Statistical and Nonlinear Physics

  1. Jiajun Wu
  2. Josh Tenenbaum
  3. Nils Thürey
  4. Peter W. Battaglia
  5. Rex Ying
  6. Yunzhu Li
  7. Alvaro Sanchez-Gonzalez
  8. Chuang Gan

Citations in the corpus