GRADSOLVE: fast exact gradients for ODE ensembles on GPUs
Not on the map. Why?
Abstract (arXiv)
Ordinary differential equations (ODEs) underlie models in science and engineering, and many applications need derivatives of their solutions with respect to parameters. Ensembles of independent trajectories suit graphics processing units (GPUs), but current GPU software forces a trade-off: the fastest ensemble solvers cannot be differentiated in reverse mode at the speed they solve, and the solvers built for differentiation solve more slowly. No single tool has yet offered a reverse-mode gradient at the speed of a fused-kernel solve. We present GRADSOLVE, an open-source JAX library for solving and reverse-mode differentiating low-dimensional ODE ensembles on NVIDIA GPUs. It records the steps an adaptive solver accepts and differentiates a fixed-step replay of them; the returned gradient is the exact discrete adjoint of those steps, the same derivative Diffrax returns by default, obtained more cheaply from a fixed-length chain than from an adaptive loop. It targets ensembles differentiated many times against one recorded mesh, keeps Diffrax as a fallback, and supports explicit and Rosenbrock integrators. Used as a solver, GRADSOLVE's forward-only kernel ran 2.8x faster than DiffEqGPU.jl; used for gradients, once a record exists, it computed them 5.6-14.1x faster than Diffrax's checkpointed adjoint at matched forward-state accuracy across three GPU generations, the advantage narrowing on large ensembles and, on stiff systems, down to parity at tight accuracy. GRADSOLVE is released at https://github.com/ECLIPSE-AI4Science/gradsolve.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 13 of its 56 references that are in the map. First posted on arXiv 2 Sep 2026.
Builds on
13 of 56 references.
References · 13
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2015Automatic differentiation in machine learning: a surveycited by 846
- 2020Universal Differential Equations for Scientific Machine Learningcited by 345
- 2022On Neural Differential Equationscited by 264
- 2021Equinox: neural networks in JAX via callable PyTrees and filtered transformationscited by 143
- 2019ANODE: Unconditionally Accurate Memory-Efficient Gradients for Neural ODEscited by 83
- 2020Adaptive Checkpoint Adjoint Method for Gradient Estimation in Neural ODEcited by 76
- 2021MALI: A memory efficient and reverse accurate integrator for Neural ODEscited by 42
- 2020Discretize-Optimize vs. Optimize-Discretize for Time-Series Regression and Continuous Normalizing Flowscited by 36
- 2024Optimistix: modular optimisation in JAX and Equinoxcited by 17
- 2022torchode: A Parallel ODE Solver for PyTorchcited by 10
Built on by
Not cited yet.