NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bayesian differential programming for robust systems identification under uncertainty

Yibo Yang, Mohamed Aziz Bhouri, Paris Perdikaris

TL;DR

This paper introduces a framework that combines differentiable programming with Hamiltonian Monte Carlo (HMC) to identify the governing equations of dynamical systems from messy, real-world data. By integrating sparsity-promoting priors into a Bayesian workflow, the authors can discover interpretable physical laws while providing rigorous uncertainty quantification, even when data is sparse, noisy, or irregularly sampled.

What Problem Does This Paper Address?

Identifying the underlying differential equations of a system from observations—known as Systems Identification—is a cornerstone of science and engineering. While recent methods like SINDy (Sparse Identification of Nonlinear Dynamics) have made strides in discovering "parsimonious" (simple and interpretable) models, they often break down when faced with:

  1. High Noise: Traditional regression is sensitive to measurement errors.
  2. Irregular Sampling: Most methods require data on a clean, regular time grid.
  3. Lack of Uncertainty Quantification (UQ): Standard approaches provide a single "best guess" but don't tell you how confident the model is, which is dangerous for high-stakes forecasting.

The authors aim to bridge the gap between flexible deep learning and rigorous statistical inference to create a "robust" discovery pipeline.

Methods

The authors propose a Bayesian Differential Programming framework. The key ingredients are:

  • Differentiable Programming (Neural ODEs): They use the adjoint sensitivity method to propagate gradients directly through numerical ODE solvers (like Runge-Kutta). This allows the model to learn from data pairs $\{x(t_i), x(t_i + \Delta t_i)\}$ regardless of how large or irregular the time gap $\Delta t$ is.
  • Hamiltonian Monte Carlo (HMC): Instead of just finding a point estimate (the "best" parameters), they use HMC to sample the full posterior distribution of the model parameters. This provides a complete statistical characterization of the discovered system.
  • Sparsity-Promoting Priors: They employ Laplace priors on the model coefficients. This encourages the algorithm to zero out irrelevant terms in a dictionary of possible functions, leading to simpler, more physically meaningful equations.
  • Hybrid Modeling: A unique feature is the ability to combine a dictionary-based approach (interpretable terms like $x^2$ or $\sin(x)$) with a black-box neural network. The neural network acts as a "closure term" to capture complex dynamics that aren't in the predefined dictionary.

Datasets

The framework was evaluated on four benchmark dynamical systems:

  1. 2D Damped Nonlinear Oscillator: A pedagogical example used to test dictionary learning under low-resolution and noisy conditions.
  2. Lotka-Volterra (Predator-Prey): Used to demonstrate the handling of irregularly sampled time-series data.
  3. Damped Pendulum: A case study for "model inadequacy," where the dictionary is intentionally incomplete, forcing the hybrid neural network to fill in the gaps.
  4. Yeast Glycolysis Model: A realistic, 7-dimensional biological system used to test the calibration of complex, multi-parameter models from noisy data.

Key Insights and Ideas

  • Safe-guarding against Inadequacy: One of the most powerful "aha" moments is that the Bayesian framework naturally flags when a model is wrong. If the dictionary is missing a key physical term, the posterior distribution of the parameters will show high entropy (uncertainty), signaling to the researcher that the model is misspecified.
  • The Hybrid Advantage: By using a neural network to approximate missing terms (like the $\sin(x)$ term in a pendulum), the model can still produce accurate forecasts even if the researcher's initial physical intuition was incomplete.
  • Robustness to Sparsity: Unlike sparse regression methods that require small time steps to approximate derivatives, this method integrates the ODE. This means it can handle much larger gaps between observations because it respects the continuous-time nature of the physics.

Key Results

  • Comparison with SINDy: In the nonlinear oscillator test, SINDy failed to identify the correct parameters and produced unstable trajectories when data was sparse ($dt = 0.0677$). The proposed Bayesian method recovered the exact parameters with high accuracy.
  • Noise Resilience: Even with 3% white noise added to the Predator-Prey data, the framework produced MAP (Maximum A-Posteriori) estimates that closely matched the ground truth and provided narrow uncertainty bands that contained the true trajectory.
  • Biological Calibration: In the 7D Yeast Glycolysis model, the framework successfully calibrated 14 different parameters simultaneously, with all true values falling within the predicted Bayesian quantiles.

Limitations and Future Work

  • Computational Cost: HMC is powerful but computationally expensive, especially as the dimensionality of the parameter space grows.
  • Stiffness and Stability: The authors note that during the "preconditioning" phase (initialization), the dynamical system can become "stiff," leading to numerical instabilities in the ODE solver.
  • Future Directions: The authors suggest extending this work to Stochastic Differential Equations (SDEs), where the dynamics themselves are random, and to Partial Differential Equations (PDEs) for modeling systems that vary across both space and time.

Summary updated

BibTeX
@inproceedings{yang2020bayesian,
  author = {Yibo Yang and Mohamed Aziz Bhouri and Paris Perdikaris},
  title = {{Bayesian differential programming for robust systems identification under uncertainty}},
  booktitle = {Proceedings of the Royal Society A Mathematical Physical and Engineering Sciences},
  year = {2020},
  doi = {10.1098/rspa.2020.0290},
}
Figure