AbstractDifferentiation.jl:Julia中的后端无关可微编程
AbstractDifferentiation.jl: Backend-Agnostic Differentiable Programming in Julia
摘要:
没有一个自动微分(AD)系统是解决所有问题的最佳选择。这意味着对AD系统和组合的明智选择可能是一个问题特定的变量,可以极大地影响性能。在Julia程序设计语言中,主要的AD系统针对相同的输入,因此理论上可以组合。然而,在Julia语言中的AD包之间切换需要最终用户熟悉各自包的面向用户的API。此外,实现一个新的可用的AD包需要AD包开发人员编写样板代码,为最终用户定义方便的API函数。作为对这些问题的回应,我们提出了AbstractDifferentiation. jl,用于自动生成任何AD包的广泛,统一,面向用户的API。通过在AD用户和AD开发人员之间划分复杂性,AD包开发人员只需要实现一个或两个原语定义,以支持AD用户的各种实用程序,如Jacobians,Hessians和惰性产品操作符从原生原语(如回拉或前推),从而消除繁琐的-但到目前为止不可避免的-样板代码,并使最终用户能够轻松切换和组合AD实现。
英文摘要:
No single Automatic Differentiation (AD) system is the optimal choice for all problems. This means informed selection of an AD system and combinations can be a problem-specific variable that can greatly impact performance. In the Julia programming language, the major AD systems target the same input and thus in theory can compose. Hitherto, switching between AD packages in the Julia Language required end-users to familiarize themselves with the user-facing API of the respective packages. Furthermore, implementing a new, usable AD package required AD package developers to write boilerplate code to define convenience API functions for end-users. As a response to these issues, we present AbstractDifferentiation.jl for the automatized generation of an extensive, unified, user-facing API for any AD package. By splitting the complexity between AD users and AD developers, AD package developers only need to implement one or two primitive definitions to support various utilities for AD users like Jacobians, Hessians and lazy product operators from native primitives such as pullbacks or pushforwards, thus removing tedious -- but so far inevitable -- boilerplate code, and enabling the easy switching and composing between AD implementations for end-users.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。