计算机科学 > 程序设计语言
[提交于 2018年10月18日 (v1),最后修订于 2018年10月22日 (此版本, v2)]
标题:Don't Unroll Adjoint: Differentiating SSA-Form Programs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:This paper presents reverse-mode algorithmic differentiation (AD) based on source code transformation, in particular of the Static Single Assignment (SSA) form used by modern compilers. The approach can support control flow, nesting, mutation, recursion, data structures, higher-order functions, and other language constructs, and the output is given to an existing compiler to produce highly efficient differentiated code. Our implementation is a new AD tool for the Julia language, called Zygote, which presents high-level dynamic semantics while transparently compiling adjoint code under the hood. We discuss the benefits of this approach to both the usability and performance of AD tools.