arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.07683cs.PL
收藏

将自动微分与高阶函数的自定义导数相结合

Composing Automatic Differentiation with Custom Derivatives of Higher-Order Functions

Sam Estep

AI总结:

针对现有自动微分理论假设无法满足实践中复合函数自定义导数需求的问题,本研究在带反向模式自动微分算子的无类型λ演算基础上,扩展了附加手动导数的算子,并通过示例验证了其效用。

摘要:

近期关于自动微分(autodiff)的理论研究聚焦于正确性与效率等特性,同时假设除了一组固定的原语操作导数外,所有导数均由autodiff通过程序变换自动生成。但在实践中这一假设并不充分:程序员通常需要为复合函数提供自定义导数,以实现效率提升与数值稳定性。本研究从带反向模式autodiff算子的无类型λ演算出发,扩展了一个用于附加手动导数的算子,并通过多个示例验证了其效用。

英文摘要:

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.

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

↑