Improved Training of Physics-Informed Neural Networks with Model Ensembles

Katsiaryna Haitsiukevich, Alexander Ilin

TL;DR

Physics-Informed Neural Networks (PINNs) often fail by converging to "simple" but incorrect solutions that satisfy local physical laws but ignore global boundary conditions. This paper introduces a novel training strategy using model ensembles to measure uncertainty, gradually expanding the training domain only into regions where the models agree, significantly stabilizing the training process without requiring a manual schedule.

What Problem Does This Paper Address?

PINNs are a promising alternative to traditional numerical solvers because they can approximate solutions to partial differential equations (PDEs) using only the physical laws themselves as a loss function. However, they are notoriously difficult to train.

The core issue is that the optimization landscape for PINNs is full of "bad" local minima. A network might find a solution that satisfies the PDE perfectly in a region far from the initial conditions but is completely disconnected from the actual physical reality of the problem. As shown in Figure 3, different random initializations can lead a single PINN to converge to wildly different, incorrect solutions.

Figure 3: Example of solving the convection system (Eqs. 9–10) for β = 30, t ∈[0, 1] using PINNs with the LFBGS optimizer. (a): The ground truth solution. (b)-(c): Two solutions found with different initializations of PINNs. (d)-(e): The logarithm of the individual terms in Eq. 7 as a function of x and t for the solutions.

Existing solutions like "time marching" attempt to fix this by solving the PDE in sequential time chunks, but these methods are often rigid, require pre-defined schedules, and treat time differently than space.

Methods

The authors propose a more flexible approach based on ensemble agreement. Instead of training one network, they train an ensemble of $L$ networks (typically 5) with different weight initializations.

  1. Gradual Domain Expansion: Training begins only on collocation points very close to known data (like initial or boundary conditions).
  2. Ensemble Agreement as a Gatekeeper: Periodically, the algorithm evaluates the ensemble's variance at candidate points just outside the currently "solved" region.
  3. Expansion Criterion: If the ensemble members agree (low variance), those points are added to the training set for the PDE loss. This allows the "solved" region to grow organically.
  4. Pseudo-labeling (Optional): In one version of the algorithm, the ensemble's median prediction is used as a "pseudo-label," providing extra supervised signal to stabilize training further.

Unlike previous methods, this algorithm treats time and space dimensions equally and can propagate solutions from any point where data is available, as illustrated in the convection equation example below.

Figure 1: The training procedure for the convection equation (Eqs. 9– 10) when the solution is known for t = 0 and t = 2. Gradual expansion of the solution domain (represented by the blue and black points) from both ends of the interval is possible due to the flexibility of the proposed approach. The dot color scheme is from Fig. 4.

Datasets

The authors evaluated their method on several standard PDE benchmarks used to test PINN robustness:

  • Convection Equation: Modeling transport phenomena, known for being difficult for vanilla PINNs due to sharp transitions.
  • Reaction System: Modeling chemical reactions.
  • Reaction-Diffusion Equation: A complex system combining chemical reactions with substance diffusion.
  • Diffusion Equation: Tested with both periodic and Dirichlet boundary conditions.

Key Insights and Ideas

  • Uncertainty as a Training Signal: The most powerful insight is that ensemble divergence is a reliable indicator of where the optimization is failing. By restricting the PDE loss to regions of high agreement, the algorithm prevents "bad" gradients from distant, unsolved regions from corrupting the model.
  • Symmetry in Dimensions: By using Euclidean distance for expansion rather than a fixed time schedule, the method is naturally applicable to problems where data might be scattered across the domain, not just at $t=0$.
  • Automated Scheduling: The expansion happens automatically based on the model's own progress, removing the need for researchers to hand-tune time-stepping schedules.

Key Results

The ensemble approach demonstrated significantly higher stability and accuracy compared to state-of-the-art baselines like Self-Adaptive PINNs (SA-PINNs) and Causality-based training.

  • Stability: As shown in the violin plots (Figure 2), the proposed ensemble methods (blue) have much lower variance in error across different runs compared to baselines, which frequently fail (high $r$ values).
  • Accuracy: In challenging reaction-diffusion tasks, the ensemble method consistently ranked in the top three, often outperforming specialized time-marching techniques.
  • Visual Convergence: Figure 4 illustrates how the "wave" of solved points (low log-variance) moves across the domain as training updates progress.
Figure 2: The violin plots of the relative error r for the proposed method (blue violins on the right) and strong PINN baselines in solving three systems (Eqs. 9–14). The proposed method yields stable training.
Figure 4: Illustration of the proposed algorithm on solving the convection system with β = 20 on t ∈[0, 1]. Top row: ensemble median, bottom row: log-variance of ensemble predictions. Dark blue dots: set DL of points which contribute to loss LS; light blue dots: set DPL of points with pseudo-labels (contribute either to LS or LPDE); black dots: points that contribute to loss LPDE; red dots: points that contribute to loss LB.

Limitations and Future Work

  • Computational Overhead: Training an ensemble of 5 networks is roughly 5 times more computationally expensive than training one. However, the authors note this is easily parallelizable.
  • Hyperparameter Tuning: While more stable than vanilla PINNs, the method introduces new hyperparameters like the expansion distance ($\Delta_{PDE}$) and variance threshold ($\sigma^2$).
  • Future Directions: The authors suggest exploring more efficient ensemble methods (like dropout-based ensembles) and combining this strategy with other PINN improvements like adaptive loss weighting or specialized architectures like SIRENs.

Summary updated

Abstract

Learning the solution of partial differential equations (PDEs) with a neural network is an attractive alternative to traditional solvers due to its elegance, greater flexibility and the ease of incorporating observed data. However, training such physics-informed neural networks (PINNs) is notoriously difficult in practice since PINNs often converge to wrong solutions. In this paper, we address this problem by training an ensemble of PINNs. Our approach is motivated by the observation that individual PINN models find similar solutions in the vicinity of points with targets (e.g., observed data or initial conditions) while their solutions may substantially differ farther away from such points. Therefore, we propose to use the ensemble agreement as the criterion for gradual expansion of the solution interval, that is including new points for computing the loss derived from differential equations. Due to the flexibility of the domain expansion, our algorithm can easily incorporate measurements in arbitrary locations. In contrast to the existing PINN algorithms with time-adaptive strategies, the proposed algorithm does not need a pre-defined schedule of interval expansion and it treats time and space equally. We experimentally show that the proposed algorithm can stabilize PINN training and yield performance competitive to the recent variants of PINNs trained with time adaptation.
BibTeX
@inproceedings{haitsiukevich2023improved,
  author = {Katsiaryna Haitsiukevich and Alexander Ilin},
  title = {{Improved Training of Physics-Informed Neural Networks with Model Ensembles}},
  booktitle = {IJCNN},
  year = {2023},
  doi = {10.1109/ijcnn54540.2023.10191822},
}
Figure