Coordinate-Free Automatic Differentiation
Organizations: Department of Computer Science, Princeton University, Princeton, NJ 08540 · Gatsby Computational Neuroscience Unit, University College London
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.
Figures & tables
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| boundary | Chamfer | Hausdorff (95%) | Hausdorff (max) | coverage | spurious | area (exact) |
|---|---|---|---|---|---|---|
| torus knot | 0.0099 | 0.014 | 0.050 | 94.8% | 0.13% | 5.53 (5.44) |
| polynomial graph | 0.0150 | 0.028 | 0.046 | 99.96% | 1.51% | 5.12 (5.21) |
| graph | 0.0123 | 0.023 | 0.041 | 100.0% | 0.42% | 4.69 (4.58) |
| annulus | 0.0083 | 0.016 | 0.034 | 100.0% | 0.08% | 3.24 (3.08) |
| two disks | 0.0126 | 0.021 | 0.048 | 97.4% | 1.04% | 5.80 (5.75) |
| group | dim | multiplicative (ours) | static chart | BFGS | closed form | |
|---|---|---|---|---|---|---|
| 3 | 2.7797 | 2.7797 | 2.7797 | 2.7797 | ||
| 6 | 1.5897 | 1.5897 | 1.5897 | 1.5897 | ||
| 7 | 0.39614 | 0.39614 | 0.39614 | 0.39614 | ||
| conformal | 10 | – | ||||
| 3 | 2.9138 | 2.9138 | 2.9138 | 2.9138 | ||
| 6 | 1.6620 | 1.6620 | 1.6620 | 1.6620 |
| method | loss | violation | error | rapidity error |
|---|---|---|---|---|
| multiplicative (ours) | 1.03 | |||
| static chart | 1.03 | |||
| corrected chart | 1.03 | |||
| chart, BFGS (40 steps) | 1.03 | – | ||
| even multivector + renormalize | 1.06 | |||
| matrix + penalty ( ) | 1.03 |
Automatic Differentiation
Automatic differentiation computes derivatives by tracking how numerical operations depend on their inputs, enabling efficient gradient-based learning and scientific inference.
See all 33 papers