mlsanityData to 14 Oct 2026

Automatic Functional Differentiation in JAX

arXiv 2311.18727 ↗First posted 30 Nov 2023cs.PL cs.CL cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

We extend JAX with the capability to automatically differentiate higher-order functions (functionals and operators). By representing functions as a generalization of arrays, we seamlessly use JAX's existing primitive system to implement higher-order functions. We present a set of primitive operators that serve as foundational building blocks for constructing several key types of functionals. For every introduced primitive operator, we derive and implement both linearization and transposition rules, aligning with JAX's internal protocols for forward and reverse mode automatic differentiation. This enhancement allows for functional differentiation in the same syntax traditionally use for functions. The resulting functional gradients are themselves functions ready to be invoked in python. We showcase this tool's efficacy and simplicity through applications where functional derivatives are indispensable. The source code of this work is released at https://github.com/sail-sg/autofd .

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 13 of its 36 references that are in the map. First posted on arXiv 30 Nov 2023.

Builds on

13 of 36 references.

References · 13

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,908
  3. 2021Brax -- A Differentiable Physics Engine for Large Scale Rigid Body Simulationcited by 407
  4. 2020Lagrangian Neural Networkscited by 398
  5. 2015MXNet: A Flexible and Efficient Machine Learning Library for Heterogeneous Distributed Systemscited by 195
  6. 2018The simple essence of automatic differentiationcited by 23
  7. 2018Demystifying Differentiable Programming: Shift/Reset the Penultimate Backpropagatorcited by 14
  8. 2020Correctness of Automatic Differentiation via Diffeologies and Categorical Gluingcited by 12
  9. 2022You Only Linearize Once: Tangents Transpose to Gradientscited by 10
  10. 2018Efficient Differentiable Programming in a Functional Array-Processing Languagecited by 8
  11. 2020λS: Computable Semantics for Differentiable Programming with Higher-Order Functions and Datatypescited by 8
  12. 2023CosmoPower-JAX: high-dimensional Bayesian inference with differentiable cosmological emulatorscited by 5
1 more
  1. 2022A Language for Evaluating Derivatives of Functionals Using Automatic Differentiationcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 0; 2026: 1.

2 papers.