paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Higher Order Automatic Differentiation of Higher Order Functions

高阶函数的高阶自动微分
LMCS vol.Volume 18, Issue 12022匹配度 3/10 · 论文研究自动微分的形式语义正确性证明,属于程序语言与机器学习的交叉,但未涉及用户核心关注的静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析,也缺乏工程实现与工业落地案例。引用 9 inbox
Mathieu Huot, Sam Staton, Matthijs Vákár
crossref: 2026-09-10

AI 速览

一句话:为高阶语言中的前向模式自动微分建立基于 diffeological spaces 的语义正确性证明,并扩展到高阶导数。

本文研究高阶语言中自动微分(AD)的语义正确性。作者考虑带代数数据类型的高阶语言上的前向模式 AD,将其刻画为在给定基本运算导数后唯一保持结构的宏。为可微编程,他们基于 diffeological spaces 给出丰富语义,证明该语义可解释此语言,并明确 AD 相对该语义正确的含义。核心结果是通过 diffeological spaces 上的粘合构造给出优雅的语义正确性证明,本质上是一种逻辑关系论证。作者还说明该分析如何扩展到使用 Taylor 近似计算高阶导数的 AD 方法。

问题
如何为作用于高阶函数的自动微分(AD)方法建立语义正确性保证?
方法
将前向模式 AD 刻画为在基本运算导数选择下唯一保持结构的宏,并基于 diffeological spaces 给出可微编程语义,用粘合构造/逻辑关系证明其正确性。
评估
通过语义学证明而非实验评估,表明该语言可被该语义解释,并证明 AD 方法正确;进一步扩展到基于 Taylor 近似的高阶导数 AD。
原文摘要(Abstract)

We present semantic correctness proofs of automatic differentiation (AD). We consider a forward-mode AD method on a higher order language with algebraic data types, and we characterise it as the unique structure preserving macro given a choice of derivatives for basic operations. We describe a rich semantics for differentiable programming, based on diffeological spaces. We show that it interprets our language, and we phrase what it means for the AD method to be correct with respect to this semantics. We show that our characterisation of AD gives rise to an elegant semantic proof of its correctness based on a gluing construction on diffeological spaces. We explain how this is, in essence, a logical relations argument. Throughout, we show how the analysis extends to AD methods for computing higher order derivatives using a Taylor approximation.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot1713,
  title = {Higher Order Automatic Differentiation of Higher Order Functions},
  author = {Mathieu Huot and Sam Staton and Matthijs Vákár},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 18, Issue 1},
  year = {2022},
  doi = {10.46298/lmcs-18(1:41)2022}
}