arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.09203cs.PL
收藏

作为自动微分的数据溯源

Data Provenance as Automatic Differentiation

University of Strathclyde(斯特拉斯克莱德大学);University of Cambridge(剑桥大学);University of Bristol(布里斯托大学)

Robert Atkey, Roly Perera

AI总结:

该研究提出语义框架,通过从依赖信息交换半环取标量,让程序导数成为输入输出近似空间线性映射来建模数据溯源,半环选择决定溯源概念,还在框架中解释语言并实例化半环得到多种溯源示例,结果在Agda中形式化。

摘要:

自动微分(AD)在计算程序本身的同时计算其导数,作为切空间之间的线性映射,沿执行过程向前或向后传播。我们提出了一个语义框架,通过相同的构造对数据溯源进行建模:从依赖信息的交换半环中获取标量而非实数,程序的导数成为其输入和输出近似空间之间的线性映射。半环的选择决定了溯源的概念。在二元布尔代数上,程序的雅可比矩阵记录每个输出位置可能依赖的输入位置,向前或向后组合雅可比矩阵就是前向和反向模式AD方式的依赖分析。更一般地,在分配格上,雅可比矩阵及其转置作为一对共轭映射向前和向后传播依赖信息;当格是布尔代数时,两个方向通过伴随关系相关联,恢复一种称为伽罗瓦切片的方法。我们在这个框架中解释高阶全函数式语言,证明一阶类型的每个程序都表示这样的雅可比矩阵,并实例化半环以获得依赖跟踪(布尔值)、自动微分(实数)和定量区间溯源(热带半环)作为示例。所有结果都在Agda中形式化。

英文摘要:

Automatic differentiation (AD) computes the derivative of a program alongside the program itself, as a linear map between tangent spaces, propagated forwards or backwards along an execution. We present a semantic framework that models data provenance via the same construction: taking scalars from a commutative semiring of dependency information rather than the real numbers, the derivative of a program becomes a linear map between spaces of approximations of its input and output. The choice of semiring determines the notion of provenance. Over the two-element Boolean algebra, the Jacobian of a program records which input positions each output position may depend on, and composing Jacobians forwards or backwards is dependency analysis in the manner of forward- and reverse-mode AD. More generally, over distributive lattices the Jacobian and its transpose propagate dependency information forwards and backwards as a conjugate pair of maps; when the lattice is a Boolean algebra, the two directions are moreover related by adjunction, recovering an approach called Galois slicing. We interpret a higher-order total functional language in this framework, prove that every program of first-order type denotes such a Jacobian, and instantiate the semiring to obtain dependency tracking (Booleans), automatic differentiation (reals), and quantitative interval provenance (the tropical semiring) as examples. All results are formalised in Agda.

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

↑