Jet Functors and Weil Algebras in Automatic Differentiation: A Geometric Analysis

📅 2025-10-16
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
Automatic differentiation (AD) in deep learning and scientific computing suffers from poor structure preservation and inefficient high-order derivative computation. Method: This paper establishes a geometric framework grounded in jet bundles and Weil algebras: reverse-mode AD is interpreted as cotangent pullback, while higher-order Taylor expansions correspond to algebraic evaluation over Weil algebras. Contribution/Results: We introduce tensorized Weil algebras, enabling simultaneous computation of all mixed partial derivatives and circumventing combinatorial explosion from nested Jacobian-vector or vector-Jacobian products. For the first time, correctness and numerical stability of AD are rigorously guaranteed via functorial identities and algebraic exactness. The algorithm exhibits linear complexity in the algebraic dimension and provides explicit bounds on truncation error, thereby establishing a unified theoretical foundation for structure-preserving differential methods.

Technology Category

Machine Learning: Matrix & Tensor MethodsComputer Vision: Other Foundations of Computer VisionKnowledge Representation and Reasoning: Geometric, Spatial, and Temporal Reasoning

Application Category

Graph Algorithms and Modeling for the Web: Algorithms and analysis for heterogeneous, signed, attributed, multi-relational, temporal, higher-order, and annotated Web-related graphsResponsible Web: Human-perceived consequences of algorithmic deployment on the webSystems and Infrastructure for Web, Mobile and WoT: Experiences and lessons learnt from Web-based algorithms and system deployments
📝 Abstract
We present a geometric formulation of automatic differentiation (AD) using jet bundles and Weil algebras. Reverse-mode AD emerges as cotangent-pullback, while Taylor-mode corresponds to evaluation in a Weil algebra. From these principles, we derive concise statements on correctness, stability, and complexity: a functorial identity for reverse-mode, algebraic exactness of higher-order derivatives, and explicit bounds on truncation error. We further show that tensorized Weil algebras permit one-pass computation of all mixed derivatives with cost linear in the algebra dimension, avoiding the combinatorial blow-up of nested JVP/VJP schedules. This framework interprets AD theory through the lens of differential geometry and offers a foundation for developing structure-preserving differentiation methods in deep learning and scientific computing. Code and examples are available at https://git.nilu.no/geometric-ad/jet-weil-ad.
Problem

Research questions and friction points this paper is trying to address.

Formulating automatic differentiation geometrically using jet bundles and Weil algebras
Deriving correctness, stability, and complexity guarantees for differentiation methods
Enabling efficient computation of mixed derivatives without combinatorial explosion
Innovation

Methods, ideas, or system contributions that make the work stand out.

Geometric formulation using jet bundles and Weil algebras
Reverse-mode AD as cotangent-pullback, Taylor-mode as Weil evaluation
Tensorized Weil algebras enable one-pass mixed derivative computation
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
A
Amandip Sangha
The Climate and Environmental Research Institute NILU, Norway