自动微分中的射流函子与Weil代数:几何分析 Jet Functors and Weil Algebras in Automatic Differentiation: A Geometric Analysis 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2025-10-16
⬇️ 5 次下载
👁️ 预览文献
💡 AI 中文简介
本文用微分几何中的射流函子和Weil代数重新表述自动微分(AD)。前向与反向模式自然对应推前与余切拉回,高阶导数则对应在Weil代数中求值。作者用现代JAX代码实现,Weil模式一次前向传播即可算出所有混合导数,计算成本随代数维数线性增长,实现代数精确且数值稳定的微分,并具有可预测的扩展性。
领域自动微分 / 微分几何与计算数学交叉
适合谁读需要一定专业背景(微分几何、范畴论或自动微分基础)
核心贡献1. 用射流函子和Weil代数给出自动微分的统一、无坐标几何框架,将前向/反向模式解释为推前/余切拉回,高阶导数解释为Weil代数求值。2. 在JAX中实现Weil模式,单次前向传播计算所有混合导数,成本随代数维数线性增长,兼具代数精确与数值稳定。
关键数据Weil模式单次前向传播计算所有混合导数;计算成本随代数维数线性增长;实现代数精确且数值稳定,扩展性可预测。
推荐理由如果你好奇自动微分为何能既快又准,这篇用几何语言把前向、反向和高阶导数统一讲透,还配了可运行的JAX代码,值得一读。
关键词["自动微分", "射流函子", "Weil代数", "微分几何", "JAX", "高阶导数"]

原文摘要

查看英文原文摘要

We present a differential-geometric formulation of automatic differentiation (AD) based on jet functors and Weil algebras. In this framework, forward- and reverse-mode differentiation arise naturally as pushforward and cotangent pullback, while higher-order differentiation corresponds to evaluation in a Weil algebra. This construction provides a unified, coordinate-free view of derivative propagation and clarifies the algebraic structure underlying AD. All results are realized in modern JAX code, where the Weil-mode formulation computes all mixed derivatives in a single forward pass with cost linear in the algebra dimension. The resulting implementation achieves algebraically exact and numerically stable differentiation with predictable scaling, demonstrating that geometric abstraction can yield more efficient and transparent computational differentiation systems. Code is available at https://git.nilu.no/geometric-ad/jet-weil-ad