Certified machine learning: A posteriori error estimation for physics-informed neural networks
Birgit Hillebrecht, Benjamin Unger
TL;DR
This paper derives an a posteriori error estimator for physics-informed neural networks (PINNs) solving ODEs, showing the true prediction error ||e(t)|| can be bounded by the residual and initial-condition mismatch, e.g., ||e(t)|| ≤ e^{Lt} ||x0 - x_hat(0)|| + I(t,δ). The estimator is computable via trapezoidal integration and a residual-smoothing trick, and can be approximated by a data-driven Error NN to reduce cost. Two tests on a 1D linear ODE and a nonlinear inverted pendulum demonstrate that the bound is a rigorous upper bound and that initialization error dominates early on. The framework enables certified PINN predictions and suggests extensions to PDEs and further methodological refinements such as activation choices and η-weighting.
Abstract
Physics-informed neural networks (PINNs) are one popular approach to incorporate a priori knowledge about physical systems into the learning framework. PINNs are known to be robust for smaller training sets, derive better generalization problems, and are faster to train. In this paper, we show that using PINNs in comparison with purely data-driven neural networks is not only favorable for training performance but allows us to extract significant information on the quality of the approximated solution. Assuming that the underlying differential equation for the PINN training is an ordinary differential equation, we derive a rigorous upper limit on the PINN prediction error. This bound is applicable even for input data not included in the training phase and without any prior knowledge about the true solution. Therefore, our a posteriori error estimation is an essential step to certify the PINN. We apply our error estimator exemplarily to two academic toy problems, whereof one falls in the category of model-predictive control and thereby shows the practical use of the derived results.
