atlas

Research map / Probabilistic and scientific modeling / Molecules and proteins

Automatic Functional Differentiation in JAX

ICLR 2024 · Probabilistic and scientific modeling › Molecules and proteins · approach: Generative latent models for single-cell data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Extends JAX to automatically differentiate functionals and operators by treating functions as generalized arrays and deriving JVP and transpose rules for a set of primitive operators (compose, nabla, linearize, linear transpose, integrate).

Problem

Automatic differentiation tools handle maps between real tensors, but functional derivatives of functionals and operators are usually derived by hand or via symbolic Euler-Lagrange forms, with no general computational tool.

Approach

Represent functions as generalized arrays and implement higher-order functions as JAX primitives, each with a JVP (Fréchet-style) rule and a transpose (adjoint) rule, so JAX's existing forward and reverse mode machinery yields functional gradients that are themselves callable Python functions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use parameter-space optimization of F instead of a functional-derivative-based objectiveBrachistochrone MLP · Brachistochronecurve fidelityHurt
Use functional derivatives in the optimization objectiveBrachistochrone MLP · Brachistochronecurve fidelityHelped
Minimize the magnitude of the functional gradientBrachistochrone MLP · Brachistochronefunctional gradient magnitudeHelped
Use function-call caching for repeated calls with the same argumentAutoFD · Nested function compositionexecution timeHelped
Apply functional gradient descent to the neural functional parametersNonlocal neural functional · Nonlocal neural functionalL2 lossHelped

Surprising findings

Limitations

Experimental setup

Benchmarks: brachistochrone problem exchange-correlation functional (gga_x_pbe) usage example nonlocal neural functional training

Metrics: loss functional gradient magnitude execution time with and without caching

Baselines: direct minimization in parameter space (minimize F) Euler-Lagrange functional derivative (minimize F via FD)

Builds on: JAX Fréchet derivative Euler-Lagrange equation Fourier neural operator

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy