arXiv (Cornell University) · 2018 · 62 citations · 18 references
ComputingComputer ScienceCompilersProgramming LanguagesSoftware EngineeringAbstract Syntax TreesCode GenerationCompiler ConstructionControl-flow AnalysisData-flow AnalysisSyntax AnalysisAdjoint TransformationControl Flow ControlConversion To Static Single AssignmentDynamic CompilationHigher-order FunctionsSource Code TransformationSource Code TransparencyStatic Single Assignment Form
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.
18
Automatic differentiation in PyTorch
Adam Paszke, Sam Gross, Soumith Chintala et al. · 2017 · 11.1K citations
Julia: A Fresh Approach to Numerical Computing
Jeff Bezanson, Alan Edelman, Stefan Karpinski et al. · SIAM Review · 2017 · 6.3K citations
Recipes for adjoint code construction
Ralf Giering, T. Kaminski · ACM Transactions on Mathematical Software · 1998 · 854 citations · Full text