Skip to main content
QUICK REVIEW

[Paper Review] Differentiable Programming for Differential Equations: A Review

Facundo Sapienza, Jordi Bolíbar|arXiv (Cornell University)|Jun 14, 2024
Optimization and Variational AnalysisComputer Science8 citations
TL;DR

A comprehensive review of methods to compute derivatives of numerical solutions to differential equations, outlining foundations, comparisons, and practical guidance for differentiable programming in scientific computing.

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, where 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 non-trivial. 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 the mathematical foundations of the various approaches and compare them with each other. Third, we cover the 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 modelling.

Motivation & Objective

  • Explain why gradients of DE solutions are crucial across scientific domains (inverse problems, model calibration, hybrid modeling).
  • Survey and classify mathematical and algorithmic approaches for differentiating numerical DE solutions.
  • Evaluate computational considerations and software tools for differentiable programming with DEs.
  • Provide best-practice guidance to help practitioners integrate differentiable programming into workflows.

Proposed method

  • Present a taxonomy of approaches to differentiate through numerical DE solvers (ODEs and PDEs).
  • Compare methods based on mathematical foundations and problem suitability.
  • Discuss computational aspects and integration with modern scientific software.
  • Offer practical recommendations and open-science guidance for the community.

Experimental results

Research questions

  • RQ1What are the main mathematical strategies for obtaining derivatives of numerical DE solutions?
  • RQ2How do different approaches compare in terms of applicability, efficiency, and accuracy across DE types (ODEs/PDEs)?
  • RQ3What are the practical considerations when implementing differentiable programming for DEs in scientific workflows?
  • RQ4What best practices and open-science guidelines should practitioners follow when combining DE models with data-driven methods?

Key findings

  • The differentiable programming paradigm is central to modern scientific computing, enabling model sensitivities, parameter inversion, and hybrid modeling.
  • A comprehensive set of techniques exists for differentiating numerical DE solutions, each with domain-specific trade-offs.
  • Foundations, comparisons, and computational considerations are outlined to guide practitioners.
  • Integration with open-source tools and open-science practices is emphasized to accelerate fusion of models and data.
  • The review highlights the synergy between inverse methods and machine learning within a unified framework.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.