计算机科学 > 程序设计语言
[提交于 2024年8月14日]
标题:Composing Automatic Differentiation with Custom Derivatives of Higher-Order Functions
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Recent theoretical work on automatic differentiation (autodiff) has focused on characteristics such as correctness and efficiency while assuming that all derivatives are automatically generated by autodiff using program transformation, with the exception of a fixed set of derivatives for primitive operations. However, in practice this assumption is insufficient: the programmer often needs to provide custom derivatives for composite functions to achieve efficiency and numerical stability. In this work, we start from the untyped lambda calculus with a reverse-mode autodiff operator, extend it with an operator to attach manual derivatives, and demonstrate its utility via several examples.
提交历史
来自:Sam Estep[v1] 2024年8月14日 星期三 17:35:25 UTC