Coordinate-Free Automatic Differentiation

arXiv:2610.12776 · cs.LG, cs.MS, math.DG · Submitted 2026-10-08 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "Coordinate-Free Automatic Differentiation".

Jane: The gist Automatic differentiation (AD) is a cornerstone of modern machine learning, and this work introduces a single,

Tom: First, who's behind it and why it matters.

Title and authors: Jane: Okay, so what does this paper actually propose? It suggests extending the AD philosophy from flat spaces to this geometric algebra approach where geometry enters through algebraic structures rather than just fixed coordinate representations.

Tom: They show how that multivector derivative can be expressed entirely in terms of existing JAX primitives, like Jacobian-vector products, which means it can be implemented as a composable transformation.

Lu: They define the multivector derivative formally as d I F:= X sum J in I b J J d F over d X J, and they show this operator arises from using Jacobian-vector products, specifically the metric aware vectorJacobian product.

Meng: If it maps to existing JAX primitives like vjp and jvp, then at least the implementation side isn't entirely new plumbing; it’s just a different way of calling the tools we already have available for forward and reverse mode AD.

Lalam: The key contribution is showing that this single operator can compute a range of differential operators in "flat" spaces, and they show how to generalize that approach to manifolds by projecting onto tangent spaces.

Tom: That projection step is where they get the automatic computation of things like curl, divergence, and covariant derivatives on any (pseudo-) Riemannian manifold.

The paper's summary: Jane: So, beyond just defining the operator, what are they actually using this for? They apply this formalism to obtain automatic computation of various differential operators on any (pseudo-) Riemannian manifold in any number of dimensions.

Tom: It means you can compute things like curl, divergence, and shape operators on curved spaces without having to manually define all those geometric terms separately.

Lu: By representing a manifold as a vector manifold where points are vectors in the grade one blade one(V), they get an intrinsic derivative by projecting the vector derivative onto the tangent space using (F(x)I-one(x))I.

Meng: That projection step is interesting because it ensures that standard differential operators on manifolds, like curl and divergence, are expressed in terms of this new d M operator and its covariant derivative grad M F.

Lalam: So the idea is that geometric structure enters through the selected index set I, the multivector field being differentiated, and on manifolds, the tangent pseudoscalar I M.

Jane: It sounds like they are showing how to make these differential operators reusable transformations rather than something you have to re-derive for every single application or coordinate system.

The paper's improvements: Tom: They show reuse across different applications, like manifold learning and inverse problems in spacetime, demonstrating that this framework works in several different contexts.

Lu: In manifold learning experiments, they can construct divergence-free vector fields on a manifold by starting with an arbitrary two-form and applying grad M to get that field <ref:2610.12776#pg1>.

Meng: And for optimization on rotor groups, they use the multivector derivative to compute the left-trivialized differential d f e(g) in terms of it, allowing for multiplicative descent updates like g t+one = g t (-eta d f e(g t)) <ref:2610.12776#pg1>.

Lalam: The practical benefit they emphasize is that geometric differential operators become reusable AD transformations instead of being re-derived for every coordinate system or application.

Jane: This capability means geometric structure enters through the index set I, the multivector field you're differentiating, and on manifolds, the tangent pseudoscalar I M.

Tom: And they show that a small set of geometric operators can support several apparently different workflows across manifold learning, inverse problems in spacetime, and optimization on rotor groups all with the same implementation.

Conclusion: Jane: So to wrap up, this paper introduces 'Coordinate-Free Automatic Differentiation' by showing how a single basis-independent derivative operator can handle many geometric operations algebraically.

Tom: They prove it can be expressed using existing JAX primitives, making it composable and usable with JAX batching for forward and reverse mode AD.

Lu: The main takeaway is that geometry enters the computation through the index set I, the multivector field, and on manifolds, the tangent pseudoscalar I M.

Meng: From a deployment standpoint, this means geometric structure can be exposed as reusable AD transformations instead of being re-derived for every application.

Lalam: The paper shows that a small set of these geometric operators can support manifold learning, inverse problems in spacetime, and optimization on rotor groups all with the same implementation.

Jane: It's a lot of capability packed into one framework, showing how geometric algebra can enter through existing machine learning representations already used for equivariant architectures.

Tom: Yeah, it’s about making sure the underlying math—the differential operators—is robust regardless of where you are in space or what coordinate system you choose.

Alex Guerra, Joshua Aduol, ¡yaqian Tang, Ĵn Daniel Williams, Ryan P. Adams

Department of Computer Science, Princeton University · Gatsby Computational Neuroscience Unit, University College London

cs.LG, cs.MS, math.DG

Submitted: 2026-10-08

Updated: 2026-10-08

Comments: 34 pages, 18 figures

Code: https://github.com/oogle/jax

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 66/100

The gist: The gist Automatic differentiation (AD) is a cornerstone of modern machine learning, and this work introduces a single, basis-independent derivative operator that can represent many geometric

Key concepts

Basis-Independent Derivative Operator
This is a new mathematical tool that calculates derivatives without relying on a fixed coordinate system (like standard Cartesian coordinates). It uses geometric algebra to incorporate all necessary metric and orientation information algebraically. This makes it possible to perform the same derivative calculations regardless of how you choose to represent the space, like flat space or curved manifolds.
Geometric Algebra
Geometric algebra is a mathematical framework that treats vectors, scalars, and higher-grade objects (like bivectors and trivectors) as unified entities. It allows for intrinsic descriptions of geometric objects like rotations and volumes. By using this algebra, the derivative operator becomes coordinate-free, meaning its definition doesn't change when you switch between different coordinate systems.
Multivector Derivative
This is the specific derivative operator proposed in the paper. It is defined as a multivector operation that uses geometric products instead of standard vector multiplication. This operator can be mapped onto existing AD primitives like Jacobian-vector products, allowing it to be implemented efficiently within frameworks like JAX for forward and reverse mode differentiation.

Summary

The gist Automatic differentiation (AD) is a cornerstone of modern machine learning, and this work introduces a single, basis-independent derivative operator that can represent many geometric differential operations and be expressed entirely in terms of existing AD primitives

How it works

The paper addresses the limitation of current AD systems which implicitly fix a basis of Euclidean space, making it awkward to express objects like rotations or curvature, and proposes extending this philosophy from flat-space AD to a fully coordinate-free formalism known as geometric algebra The core idea is to define a multivector derivative that incorporates all relevant metric and orientation information algebraically, which can then be implemented as a composable JAX transformation supporting forward and reverse mode AD, higher-order differentiation, and batched evaluation

The multivector derivative is formally defined as (2) ∂IF:= X J∈I b J ∂F/∂X J for a function F indexed by I, where the multiplication in the sum is the geometric product This operator is coordinate-free and intrinsic to Λ(V), unlike Euclidean Jacobians which live in R n 2

The derivative can be mapped to JAX primitives using Jacobian-vector products (jvp and vjp) Specifically, the metric aware vectorJacobian product is defined as (3) vjp⟨·,·⟩(F, X, C):= vjp(F, X, C = dF∗ X[C] where dF∗ X[C], A = C J, dFX[A] Lemma 2 shows that the multivector derivative arises from these primitives: ∂IF(X) = X J∈I b J jvp(F, X, bJ)

Geometric Operators and Manifolds

By specializing this derivative, the framework obtains automatic computation of various differential operators on any (pseudo-) Riemannian manifold in any number of dimensions These include curl, divergence, covariant derivatives, shape operators, and curvature tensors The approach generalizes from flat spaces to curved manifolds by representing a manifold M as a vector manifold where points are represented as vectors in Λ1(V) and the tangent space is given by a blade I(x) of grade m

The intrinsic derivative on the manifold is obtained by projecting the vector derivative operator ∂I1 onto the tangent space, resulting in (6) ∂M:= P(∂I1) where P(F)(x):= (F(x)I−1(x))I The covariant derivative is then defined as ∇MF:= P(∂MF) = P(P(∂I1)F) This ensures that standard differential operators on manifolds, such as the curl and divergence, are expressed in terms of ∂M and ∇M

Applications in Learning and Physics

The framework demonstrates reuse across different applications, including manifold learning, inverse problems in spacetime, and optimization over rotor groups In manifold learning experiments, a divergence-free vector field on a manifold can be constructed by starting with an arbitrary 2-form and applying ∇M⌋ to get a divergence-free vector field Furthermore, the framework allows for the estimation of geometric properties like scalar curvature R and Euler characteristic χM through compositions of ∂M and IM

In inverse design problems in spacetime, the spacetime algebra Cl(1, 3) is used to model electromagnetism where Maxwell's equations collapse into a single equation involving the multivector derivative This allows for recovering a charged particle’s trajectory r(t) from sparse Faraday bivector observations F(yi) by backpropagating the relative MSE between predicted and observed Faraday bivectors

Optimization on Rotor Groups

For optimization on rotor groups, the multivector derivative is used to compute the left-trivialized differential dfe(g) in terms of the multivector derivative as (10) dfe(g) = ∂Ieven f(g) g ∈ g∗ This allows for multiplicative descent where an update is performed via gt+1 = gt exp(−η dfe(gt)) The framework enables simultaneous optimization across different rotor groups by using JAX’s vectorization to optimize an objective across different groups in a single vectorized call

Overall, the main practical benefit of this approach is that geometric differential operators can be exposed as reusable AD transformations rather than being re-derived for each coordinate system or application This capability allows geometric structure to enter through the selected index set I, the multivector field being differentiated, and on manifolds, the tangent pseudoscalar IM

The paper concludes by showing that a small set of geometric operators can support several apparently different workflows across manifold learning, inverse problems in spacetime, and optimization on rotor groups The same implementation of the multivector derivative solves problems ranging from manifold learning to optimization on rotor groups

The final loss is a relative mean squared error between the predicted and observed F over the N observation events This allows for the recovery of a Lorentz transformation R ∈ Spin(1, 3)+ that maps the lab frame to the ship frame by minimizing a loss between analytic and measured fields The recovered worldline has a mean position error of 6 · 10−4 and a maximum of 1.2 · 10−3 over t ∈ [1, 4], i.e. 0.2% and 0.3% of the orbit radius The whole comparison, including the learning-rate sweeps, takes 20 s on an Apple M3 laptop CPU

Table 2 reports the results for the four subgroups of the conformal group of Fig. 9, fitted to one shared conformal target, noise-free (top) and with noise σ = 0.05 (bottom) Every on-group method reaches the noise floor, and on this task the three trivialized updates agree to all printed digits The penalized matrix also reaches the floor but leaves the group (constraint violation 1.9 · 10−3) The polar projection stalls at 48σ2 with violation 1.7, because O(4) contains no boosts Every method runs 400 Adam steps from the same initialization, with the learning rate chosen from a set of values as the smallest one within 5% of the best final loss The whole comparison, including the learning-rate sweeps, takes 20 s on an Apple M3 laptop CPU

The paper is published in arXiv as arXiv:2610.12776v1 [cs.

Improvements for AI systems

  1. Improved AI systems can perform automatic computation of geometric differential operators on any (pseudo-) Riemannian manifold by leveraging a single, basis-independent derivative operator. This allows for automatic computation of curl, divergence, covariant derivatives, shape operators, curvature tensors and related operators on any (pseudo-) Riemannian manifold without needing to supply geometric structure manually.

  2. AI systems can learn explicit representations of manifolds by minimizing losses involving geometric properties like scalar curvature and the Gauss–Bonnet theorem. This enables training a flow to match the sphere’s curvature results in learning a small section of the sphere, allowing for optimizing Eq. 8 to approach the Euler characteristic of the sphere.

  3. AI systems can recover physical parameters from noisy geometric measurements by using multiplicative descent methods over rotor groups and spacetime algebras. This allows for recovering a Lorentz transformation R from Faraday bivector observations, with the framework demonstrating that updates converge to correct solutions even when starting far from the identity.

  4. AI systems can learn implicit representations of shapes by parameterizing boundaries using k-forms and minimizing their pointwise mass norm. This enables learning surfaces where the boundary constraint is satisfied structurally via a GA-native Biot–Savart kernel, as demonstrated by successfully extracting minimal surfaces like the (2, 3) torus knot.

Abstract

Automatic differentiation (AD) is a cornerstone of modern machine learning. Since all AD frameworks implicitly fix a basis of Euclidean space to define gradients and Jacobians, they natively process mathematical objects that are arrays of a fixed set of coordinates. This makes it awkward to express objects such as rotations, volume forms, and curvatures that arise, for example, in applications of AI to science. Bespoke workarounds lack reusability. We show that (i) a single, basis-independent derivative operator can represent many geometric differential operations, and (ii) this operator can be expressed entirely in terms of existing AD primitives. This reusable transformation can be composed with JAX batching, compilation, and hardware acceleration. Geometry enters as algebraic data. We experimentally demonstrate its reuse across different manifold operators, its composition through a spacetime inverse-problem pipeline, and its use in optimization over different rotor subgroups.

Sources

Related papers