Skip to content
DraconiticResearch
Search Sources API
201,818 studies31 sourcesUpdated 8 min ago
PreprintCC BY 4.0arXiv

GRADSOLVE: fast exact gradients for ODE ensembles on GPUs

Abstract

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.

Related

  1. Unbiased Gradients, Moving Stability Boundaries: Exact Mini-Batch Geometry in Linear Self-Attention
    Krishnakumar Balasubramanian
    arXivPreprintCC BY 4.0Full textDynamical systemsStatisticsarXiv
  2. GCMagicc v1: a fast generative emulator for multivariate climate-impact ensembles
    Nicolai Meinshausen, Malte Meinshausen, Jared Lewis +6
    arXivPreprintarXiv licenceFull textAtmospheric science & meteorologyStatisticsarXiv
  3. Exact Tail Laws for Nonlinear SGD with Infinite-Variance Gradients
    Xiaoli Li, Qianqian Lei, Ziyang Wei +1
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  4. Exact horizon response and charge ensembles of Majumdar--Papapetrou black holes
    Jongheon Baek, Gihwan Nam
    arXivPreprintarXiv licenceFull textMathematical physicsGravitation & general relativityarXiv
  5. Exact Factorisation and Fast Computation of Invertible Constant-Q Transforms
    Facundo Franchino, Eloi Moliner, Vesa Välimäki
    arXivPreprintCC BY 4.0Full textNumerical analysis & scientific computingarXiv
BibTeX
@misc{mancini2026gradsolve,
  title = {{GRADSOLVE: fast exact gradients for ODE ensembles on GPUs}},
  author = {Alessio Spurio Mancini},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.02876},
  eprint = {2609.02876},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.02876},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - GRADSOLVE: fast exact gradients for ODE ensembles on GPUs
AU  - Alessio Spurio Mancini
PY  - 2026
DA  - 2026/09/02
PB  - arXiv
DO  - 10.48550/arxiv.2609.02876
UR  - https://arxiv.org/abs/2609.02876
AB  - 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.
ER  -