Conformalized Physics-Informed Neural Networks

Lena Podina, Mahdi Torabi Rad, Mohammad Kohandel

TL;DR

This paper introduces Conformalized Physics-Informed Neural Networks (C-PINNs) to provide statistically valid uncertainty intervals for both the solutions and parameters estimated by PINNs. By leveraging conformal prediction, C-PINNs offer a distribution-free and finite-sample guarantee on uncertainty quantification, overcoming limitations of existing methods that rely on strong assumptions or are computationally expensive.

What Problem Does This Paper Address?

Physics-Informed Neural Networks (PINNs) are powerful tools for solving differential equations and inferring their parameters. However, a significant drawback of standard PINNs is that they provide only point estimates for both the solution of the differential equation and its parameters. This lack of uncertainty quantification makes it difficult to assess the reliability of the predictions, which is crucial for practical applications. While existing methods like Bayesian PINNs or ensemble approaches exist, they often require strong assumptions about the data-generating process or can be computationally prohibitive. This paper aims to bridge this gap by introducing a method that provides statistically rigorous uncertainty bounds without these drawbacks.

Methods

The core contribution of this paper is the integration of Conformal Prediction (CP) with PINNs, leading to Conformalized PINNs (C-PINNs). Conformal prediction is a framework that provides prediction intervals with guaranteed statistical validity (finite-sample, distribution-free).

The authors apply CP in two main ways:

  1. Conformalizing the PINN Surrogate Solution (Forward Problem): For a given differential equation (ODE or PDE), a PINN is trained to predict its solution. Using a holdout calibration set, a non-conformity score (measuring the error between true and predicted values) is calculated. This score is then used to construct prediction intervals for new data points. The method is demonstrated on both a logistic growth ODE and the Buckley-Leverett PDE, even when the PINN struggles to accurately capture discontinuities.
  2. Conformalizing the PINN Parameter Estimate (Inverse Problem): When PINNs are used to infer parameters of a differential equation, C-PINNs are employed to provide valid intervals for these estimated parameters. This involves generating multiple datasets with varying parameters, training PINNs to estimate parameters for each, and then using a holdout set of these parameter estimates to construct conformal intervals.

The specific CP technique used is Split Conformal Prediction, which involves splitting the available data into training and calibration sets. The training set is used to train the underlying PINN, and the calibration set is used to derive the non-conformity scores and construct the uncertainty intervals.

Datasets

The paper uses synthetic datasets generated from solving differential equations:

  • Logistic Growth ODE: Datasets are generated by numerically solving the ODE $dN/dt = \beta N(1 - N)$ with initial condition $N(0) = N_0$. Both noiseless and noisy (Gaussian noise with level 0.08) versions of these datasets are used.
  • 1D Buckley-Leverett Equation: A dataset is generated for the PDE $u_t + f(u)_x = 0$, where $f(u) = \frac{4u^2}{1+u^2}$ and $u(0,x)$ is defined piecewise. This dataset is used to test the method's performance on solutions with discontinuities.

No new benchmarks are introduced; the focus is on applying C-PINNs to standard problem formulations.

Key Insights and Ideas

  • Uncertainty for PINNs is Achievable and Valid: The most significant insight is that rigorous, distribution-free uncertainty quantification for PINNs is possible by integrating conformal prediction. This moves beyond point estimates to provide reliable bounds.
  • No Strong Assumptions Needed: Unlike Bayesian methods that require prior distributions, C-PINNs do not impose strong assumptions on the data-generating process or model. This makes them more broadly applicable.
  • Robustness to Model Performance: The conformalization method demonstrates valid coverage even when the underlying PINN model has limitations, such as struggling with discontinuities in the Buckley-Leverett equation. This highlights the power of CP in providing guarantees independent of the predictor's accuracy.
  • Unified Framework for Forward and Inverse Problems: The paper successfully shows that C-PINNs can be applied to both inferring the solution (forward problem) and estimating parameters (inverse problem) of differential equations.

Key Results

  • Valid Coverage: The primary result is the empirical and theoretical demonstration of valid coverage for the uncertainty intervals generated by C-PINNs. Figures show that the empirical coverage converges to the theoretical coverage, even with noisy data. For instance, Figure 1b shows the 90% interval having valid coverage.
  • Smaller Intervals with Less Noise: For noiseless data, the predicted confidence intervals are significantly smaller, indicating that the PINN is better able to predict the solution, and the conformal intervals reflect this improved precision while still maintaining valid coverage (as seen in Appendix A.1, Figure 5).
  • Parameter Estimation with Uncertainty: The inverse problem section shows that C-PINNs can provide valid coverage for estimated parameters, as demonstrated by Figures 3 and 4, which plot inferred vs. true $\beta$ and show estimated coverage.

Limitations and Future Work

  • Computational Cost: While CP is less computationally expensive than some Bayesian methods, training multiple PINNs for parameter estimation (as done in the inverse problem) can still be computationally intensive. The authors suggest using UPINNs (Universal PINNs) to infer parameters for multiple datasets simultaneously to mitigate this.
  • Adaptive Intervals: The paper notes that for problems with localized regions of poor prediction (e.g., discontinuities), adaptive intervals that adjust their width based on input might be more informative.
  • UPINN Conformalization: The authors propose extending their work to conformalize UPINNs, which could offer further efficiency gains.
  • Broader Applicability: While demonstrated on ODEs and a specific PDE, future work could explore conformalizing PINNs for more complex PDEs and a wider range of inverse problems.

Summary updated

BibTeX
@inproceedings{podina2024conformalized,
  author = {Lena Podina and Mahdi Torabi Rad and Mohammad Kohandel},
  title = {{Conformalized Physics-Informed Neural Networks}},
  booktitle = {AI4DiffEqtnsInSci @ ICLR},
  year = {2024},
  url = {https://openreview.net/forum?id=ZoFWS818qG},
}
Figure