Differentiable Programming for Differential Equations: A Review
Abstract. The differentiable programming paradigm is a cornerstone of modern scientific computing. It refers to numerical methods for computing the gradient of a numerical model’s output. Many scientific models are based on differential equations, in which differentiable programming plays a crucial role in calculating model sensitivities, inverting model parameters, and training hybrid models that combine differential equations with data-driven approaches. Furthermore, recognizing the strong synergies between inverse methods and machine learning offers the opportunity to establish a coherent framework applicable to both fields. Differentiating functions based on the numerical solution of differential equations is nontrivial. Numerous methods based on a wide variety of paradigms have been proposed in the literature, each with pros and cons specific to the type of problem investigated. Here, we provide a comprehensive review of existing techniques to compute derivatives of numerical solutions of differential equations. We first discuss the importance of gradients of solutions of differential equations in a variety of scientific domains. Second, we lay out and compare the mathematical foundations of the various approaches. Third, we cover computational considerations and explore the solutions available in modern scientific software. Last but not least, we provide best practices and recommendations for practitioners. We hope that this work accelerates the fusion of scientific models and data and fosters a modern approach to scientific modeling.
Authors
- Fernando Pérez (ORCID: https://orcid.org/0000-0002-1725-9815)
- Facundo Sapienza (ORCID: https://orcid.org/0000-0003-4252-7161)
- Victor Boussange (ORCID: https://orcid.org/0000-0002-4202-3599)
- Christopher Rackauckas (ORCID: https://orcid.org/0000-0001-5850-0663)
- Per‐Olof Persson (ORCID: https://orcid.org/0000-0003-4985-8852)
- Jordi Bolíbar (ORCID: https://orcid.org/0000-0002-0791-0731)
- Patrick Heimbach (ORCID: https://orcid.org/0000-0003-3925-6161)
- Giles Hooker (ORCID: https://orcid.org/0000-0003-2648-1167)
- Brian Groenke (ORCID: https://orcid.org/0000-0003-2570-9342)
- Avik Pal (ORCID: https://orcid.org/0000-0002-3938-7375)
- Frank Schäfer (ORCID: https://orcid.org/0000-0003-2684-4984)
Institutions
- Alfred-Wegener-Institut Helmholtz-Zentrum für Polar- und Meeresforschung (DE)
- Centre National de la Recherche Scientifique (FR)
- Swiss Federal Institute for Forest, Snow and Landscape Research (CH)
- Institut des Géosciences de l'Environnement (FR)
- Institut de Recherche pour le Développement (FR)
- Technische Universität Berlin (DE)
- Massachusetts Institute of Technology (US)
- University of Pennsylvania (US)
- The University of Texas at Austin (US)
- Université Grenoble Alpes (FR)
- University of California, Berkeley (US)
- Delft University of Technology (NL)
Publication Details
- Journal
- SIAM Review
- Published
- 2026-11-12
- DOI
- https://doi.org/10.1137/24m1669062
- Citations
- 58
- Primary Topic
- Numerical Solvers for Ordinary Differential Equations
- Type
- article
- Field-Weighted Citation Impact
- 65.78
Funders
- National Science Foundation
- U.S. Department of Defense
- U.S. Department of Energy
- National Aeronautics and Space Administration
- California Institute of Technology
- Equinor
- Nederlandse Organisatie voor Wetenschappelijk Onderzoek
- Norges Forskningsråd
- Defense Advanced Research Projects Agency
- Office of Science
- National Nuclear Security Administration
- Stichting voor de Technische Wetenschappen
- Office of Naval Research
- Advanced Scientific Computing Research
- Air Force Research Laboratory