Probabilistic Gradients for Fast Calibration of Differential Equation Models

Jonathan Cockayne, Andrew B. DuncanSIAM/ASA J. Uncertain. Quantification 2020

Abstract

Calibration of large-scale differential equation models to observational or experimental data is a widespread challenge throughout applied sciences and engineering. A crucial bottleneck in state-of-the art calibration methods is the calculation of local sensitivities, i.e. derivatives of the loss function with respect to the estimated parameters, which often necessitates several numerical solves of the underlying system of partial or ordinary differential equations. In this paper we present a new probabilistic approach to computing local sensitivities. The proposed method has several advantages over classical methods. Firstly, it operates within a constrained computational budget and provides a probabilistic quantification of uncertainty incurred in the sensitivities from this constraint. Secondly, information from previous sensitivity estimates can be recycled in subsequent computations, reducing the overall computational effort for iterative gradient-based calibration methods. The methodology presented is applied to two challenging test problems and compared against classical methods.

Introduction

In applied science and engineering, systems are frequently modeled using ordinary or partial differential equations (ODEs/PDEs). To ensure these models accurately reflect reality, their parameters must be "calibrated" to match observational data—a process typically framed as a high-dimensional optimization problem.

While gradient-based optimization is the standard approach for calibration, it suffers from a significant computational bottleneck: the need to calculate local sensitivities (the derivative of the loss function with respect to parameters). Classically, this requires solving an auxiliary set of sensitivity equations at every optimization step. For complex models, these numerical solves are prohibitively expensive. While surrogate models like standard Gaussian processes (GPs) are sometimes used to bypass the physics entirely, they often lack the data efficiency and local accuracy required for high-dimensional parameter spaces.

Methodology: Probabilistic Numerics for Sensitivities

This paper introduces a framework based on Probabilistic Numerics, treating the numerical solution of sensitivity equations as a statistical inference problem. Instead of seeking an exact numerical solution at every iteration, the authors place a Gaussian Process (GP) prior over the vector field of sensitivities across the parameter space.

Forward and Adjoint Probabilistic Sensitivities

The method provides probabilistic analogs for the two primary classical gradient computation paths:

  1. Forward Approach: Utilized for systems with a small number of parameters.
  2. Adjoint Approach: Designed for high-dimensional parameter spaces, ensuring the output dimension of the inferred function remains independent of the parameter dimension.

Information Recycling and Probabilistic Gradient Descent (PGD)

A transformative feature of this approach is Information Recycling. Because the GP models the gradient globally across the parameter space, data gathered at previous optimization steps is reused to inform current estimates.

The authors propose a Probabilistic Gradient Descent (PGD) algorithm that utilizes the posterior mean of the GP as the descent direction. PGD incorporates a probabilistic line search and an adaptive loop; the expensive PDE solver is only queried if the GP’s uncertainty (variance) exceeds a threshold, preventing the optimizer from taking steps based on unreliable gradient information.

Experimental Evaluation

The methodology was evaluated on two distinct physical systems to test its efficiency and scalability:

1. FitzHugh–Nagumo Model (ODE)

This non-linear oscillatory model, used in neuroscience, was tested with four parameters. The results demonstrated a massive reduction in computational overhead. The probabilistic method required only 3,000 evaluations of the sensitivity equations over 9,840 iterations. In comparison, classical gradient descent required over 1.5 million evaluations to reach the same minimum, representing a several-hundred-fold increase in efficiency.

2. Groundwater Flow Model (PDE)

To test high-dimensional scaling, the authors applied the probabilistic adjoint method to a 2D linear PDE describing fluid flow. Testing across 4, 16, and 64 parameters, the method maintained convergence behavior remarkably similar to exact gradient descent while significantly reducing the number of required PDE solves. This demonstrates the method's robustness when applied to complex finite element models.

Key Insights

  • Uncertainty as a Control Dial: The posterior variance of the GP acts as an automated error indicator. If a step is small enough that the previous gradient information remains valid, the algorithm skips the expensive PDE solve entirely.
  • Robustness to Discretization: The authors provide theoretical evidence that these probabilistic gradients remain robust even when the underlying PDE is solved approximately, mitigating errors introduced by numerical discretization.
  • Tunable Accuracy: By adjusting a tolerance parameter ($\delta$), users can trade off between a rapid, approximate optimization trajectory and a slower, high-precision one.

Limitations and Future Outlook

The primary limitation of the current approach is the inherent scaling of Gaussian processes. The cost of conditioning the model scales cubically with the number of data points. In practice, the authors cap the Gram matrix (e.g., at 10,000 x 10,000), after which the algorithm must revert to classical methods.

Future work involves integrating these probabilistic gradients into more advanced optimizers like L-BFGS or Adam. Additionally, because Bayesian inference methods like Hamiltonian Monte Carlo (HMC) rely heavily on gradients, this framework could significantly accelerate uncertainty quantification and the development of high-fidelity digital twins.

Summary updated

BibTeX
@article{cockayne2020probabilistic,
  author = {Jonathan Cockayne and Andrew B. Duncan},
  title = {{Probabilistic Gradients for Fast Calibration of Differential Equation Models}},
  journal = {SIAM/ASA J. Uncertain. Quantification},
  year = {2020},
  url = {https://openreview.net/forum?id=LxXng-gC24g},
}
Figure