自动微分中的射流函子与外尔代数:几何分析
Jet Functors and Weil Algebras in Automatic Differentiation: A Geometric Analysis
AI总结:
该研究提出基于射流函子和外尔代数的自动微分微分几何表述,统一前向/反向模式及高阶微分,通过JAX实现单次前向计算所有混合导数,成本线性,获精确稳定结果,证明几何抽象可提升计算微分系统效率与透明度。
摘要:
我们提出一种基于射流函子和外尔代数(Weil algebras)的自动微分(AD)微分几何表述。在此框架中,前向和反向模式微分自然表现为前推和余切回拉,而高阶微分对应外尔代数中的求值。该构造提供了导数传播的统一无坐标视角,并阐明了AD背后的代数结构。所有结果通过现代JAX代码实现,其中外尔模式表述在单次前向传递中计算所有混合导数,成本与代数维度呈线性关系。最终实现达到代数精确且数值稳定的微分,具有可预测的缩放性,证明几何抽象可产生更高效、透明的计算微分系统。代码见https://git.nilu.no/geometric-ad/jet-weil-ad
英文摘要:
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
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。