arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.00935cs.LGcs.GRphysics.comp-phstat.ML
收藏

DiffTaichi:物理仿真的可微规划

DiffTaichi: Differentiable Programming for Physical Simulation

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Adobe Research(奥多比研究院);UC Berkeley(加州大学伯克利分校)

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

摘要:

我们提出了DiffTaichi,一个新的微分程序设计语言量身定制的高性能微分物理模拟器。基于命令式程序设计语言,DiffTaichi使用保留算术强度和并行性的源代码转换生成模拟步骤的梯度。一个轻量级的磁带被用来记录整个模拟程序的结构和重放梯度内核在相反的顺序,端到端的反向传播。我们在10个不同的物理模拟器上展示了我们的语言在基于梯度的学习和优化任务中的性能和生产力。例如,用我们的语言编写的可微分弹性对象模拟器比手工设计的CUDA版本短4.2倍,但运行速度一样快,比TensorFlow实现快188倍。使用我们的可微程序,神经网络控制器通常仅在数十次迭代内优化。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑