Repulsive Ensembles for Bayesian Inference in Physics-informed Neural Networks
Philipp Pilar, Markus Heinonen, Niklas Wahlström
TL;DR
This paper tackles uncertainty quantification in physics-informed neural networks (PINNs) for inverse problems by introducing RE-PINN, a repulsive ensemble method that adds a repulsive loss term to promote diversity among ensemble members. Building on Wasserstein gradient flow concepts, it derives a repulsive term in function space and extends it to the joint space of function values $f$ and differential-equation parameters $\boldsymbol{\lambda}$, approximating the ensemble density $\rho$ with kernel density estimation (KDE). The approach yields ensemble posteriors that converge toward the true Bayesian posterior $p(f,\lambda|\mathcal{D})$ in the limit of large ensembles and can be evaluated against Monte Carlo baselines. Across three PDE/inverse problems (exponential equation, damped harmonic oscillator, and advection equation), RE-PINN substantially improves uncertainty estimates over standard ensembles, with density-factorization strategies offering robust and accurate posterior representations in practice.
Abstract
Physics-informed neural networks (PINNs) have proven an effective tool for solving differential equations, in particular when considering non-standard or ill-posed settings. When inferring solutions and parameters of the differential equation from data, uncertainty estimates are preferable to point estimates, as they give an idea about the accuracy of the solution. In this work, we consider the inverse problem and employ repulsive ensembles of PINNs (RE-PINN) for obtaining such estimates. The repulsion is implemented by adding a particular repulsive term to the loss function, which has the property that the ensemble predictions correspond to the true Bayesian posterior in the limit of infinite ensemble members. Where possible, we compare the ensemble predictions to Monte Carlo baselines. Whereas the standard ensemble tends to collapse to maximum-a-posteriori solutions, the repulsive ensemble produces significantly more accurate uncertainty estimates and exhibits higher sample diversity.
