Uncertainty-Aware Diagnostics for Physics-Informed Machine Learning

Mara Daniels, Liam Hodgkinson, Michael W. Mahoney · DOI

Abstract

Physics-Informed Machine Learning (PIML) often suffers from a "multi-objective bottleneck," where balancing data accuracy against physical constraints requires manual weighting. This paper introduces the Physics-Informed Log Evidence (PILE) score, a single, uncertainty-aware metric that automatically identifies optimal model parameters. By leveraging the framework of Gaussian Processes, PILE evaluates the quality of the entire model distribution and can even predict model failure a priori.

Introduction

In Scientific Machine Learning (SciML), models must respect physical laws—typically expressed as Partial Differential Equations (PDEs)—while fitting experimental data. Popular approaches like Physics-Informed Neural Networks (PINNs) treat this as a weighted sum of data and physics losses. However, this weighting is often arbitrary, leading to failure modes where models produce physically nonsensical results despite low training loss. Furthermore, these models frequently lack robust uncertainty quantification (UQ), making it difficult to detect when they are "hallucinating." This work proposes replacing trial-and-error tuning with a statistically grounded diagnostic tool.

Methods: Physics-Informed Log Evidence

The authors utilize Physics-Informed Kernel Learning (PIKL) within a Gaussian Process (GP) framework. The core contribution is the Physics-Informed Log Evidence (PILE) score, based on the Bayesian marginal likelihood (or "Bayes free energy").

Unlike standard test loss, which evaluates point-wise accuracy, the PILE score assesses the quality of the model's prior distribution. It collapses the multi-objective trade-off into a single scalar value where lower values indicate better models. A key innovation is the "data-free" PILE score. Using the Fredholm determinant, the authors demonstrate that one can evaluate the suitability of a kernel architecture for a specific PDE before any data is collected. This allows for the identification of optimal kernel bandwidth, regularization weights, and kernel geometry (e.g., anisotropy) purely based on the physical operator.

Key Results and Discussion

The PILE score was evaluated on classic benchmarks, including the 2D Poisson equation and the 1D convection equation.

Hyperparameter Optimization

In the Poisson case, PILE successfully identifies the optimal "sweet spot" for hyperparameters. As shown in the sweeps below, the PILE minimizer (indicated by the vertical red line) aligns closely with the regions where both data and physics test losses are minimized.

PILE score performance across hyperparameter sweeps for bandwidth ($h$), physics regularization ($\rho$), and data regularization ($\gamma$).

Specifically, for kernel bandwidth, PILE identifies $h \approx 0.35$ as the point where the model best balances flexibility and physical consistency. The metric effectively penalizes models that are either too rigid (underfitting) or too flexible (overfitting) by accounting for the model's inherent uncertainty.

Diagnosing Failure in Convection Equations

The 1D convection equation is a known failure mode for standard PINNs, which often converge to trivial zero solutions. PILE diagnostics reveal that standard isotropic kernels (like the RBF kernel) are fundamentally ill-suited for such directional physics. By minimizing the data-free PILE score, the authors automatically discovered anisotropic kernels—kernels with specific orientations—that successfully captured the convection flow where traditional methods failed.

Conclusion

The PILE score addresses the multi-objective bottleneck by treating physics as a structured prior within a Bayesian framework. This approach provides a priori diagnostics, allowing researchers to select appropriate kernels before data acquisition. While currently focused on linear PDEs and Gaussian Processes, future work aims to scale these diagnostics to non-linear systems and standard neural networks via the Neural Tangent Kernel (NTK) framework.

Summary updated

BibTeX
@inproceedings{daniels2026uncertainty,
  author = {Mara Daniels and Liam Hodgkinson and Michael W. Mahoney},
  title = {{Uncertainty-Aware Diagnostics for Physics-Informed Machine Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=7PORoDlSS4},
}
Figure