Abstract
Physics-informed neural networks (PINNs) are emerging as popular mesh-free solvers for partial differential equations (PDEs). Recent extensions decompose the domain, apply different PINNs to solve the problem in each subdomain, and stitch the subdomains at the interface. Thereby, they can further alleviate the problem complexity, reduce the computational cost, and allow parallelization. However, the performance of multi-domain PINNs is sensitive to the choice of the interface conditions. While quite a few conditions have been proposed, there is no suggestion about how to select the conditions according to specific problems. To address this gap, we propose META Learning of Interface Conditions (METALIC), a simple, efficient yet powerful approach to dynamically determine appropriate interface conditions for solving a family of parametric PDEs. Specifically, we develop two contextual multi-arm bandit (MAB) models. The first one applies to the entire training course, and online updates a Gaussian process (GP) reward that given the PDE parameters and interface conditions predicts the performance. We prove a sub-linear regret bound for both UCB and Thompson sampling, which in theory guarantees the effectiveness of our MAB. The second one partitions the training into two stages, one is the stochastic phase and the other deterministic phase; we update a GP reward for each phase to enable different condition selections at the two stages to further bolster the flexibility and performance. We have shown the advantage of METALIC on four benchmark PDE families.
1. Introduction
Physics-Informed Neural Networks (PINNs) have revolutionized mesh-free PDE solving, but they often struggle with complex geometries or high-frequency solutions. To scale these models, researchers utilize multi-domain PINNs (such as XPINNs or cPINNs), which decompose a large problem into smaller, more manageable subdomains.
The primary challenge of this approach lies in the interface condition. To ensure a globally coherent solution, constraints must be enforced where subdomains meet—such as continuity of the solution, flux conservation, or residual gradients. Currently, there is no universal "best" condition; naively combining all possible conditions often complicates the loss landscape, while choosing the wrong ones leads to poor accuracy. Researchers typically rely on trial and error, which is computationally expensive and requires significant expertise.
2. Methodology
We propose METALIC, which treats interface selection as a Contextual Multi-Arm Bandit (MAB) problem. The framework defines the context as the parameters of the PDE (e.g., wave speed $\beta$, viscosity $\nu$, or source term sharpness). The "arms" of the bandit represent the power set of 9 possible interface conditions, totaling 512 possible combinations. The reward is defined as the negative solution error.
2.1 Sequential and Single Models
We developed two primary models:
- METALIC-single: Employs one MAB to select a fixed set of conditions for the entire training duration.
- METALIC-seq: A sequential model that recognizes that PINN training typically occurs in two stages: a stochastic phase (using ADAM) to locate the loss landscape's "valley," and a deterministic phase (using L-BFGS) to achieve convergence.
As shown in the figure above, METALIC-seq learns separate bandits for each phase, allowing the model to adapt its "stitching" strategy as training progresses. Both models use a Gaussian Process (GP) surrogate to predict rewards, utilizing a custom product kernel to handle both continuous PDE parameters and categorical interface selections.
2.2 Theoretical Guarantees
A critical component of METALIC is the theoretical guarantee of "sublinear regret." This ensures that over time, the algorithm is mathematically guaranteed to converge toward the optimal selection strategy for the given parametric family of PDEs.
3. Experimental Setup
METALIC was evaluated on four classic benchmark PDE families:
- 2D Poisson Equation: Featuring a parameterized source function with varying sharpness.
- 1D Advection Equation: Testing different wave speeds ($\beta$).
- 1D Reaction Equation: Testing different reaction coefficients ($\rho$).
- Viscous Burger’s Equation: Testing a range of viscosities ($\nu$), which determines the difficulty of resolving shock waves.
4. Results and Discussion
4.1 The "More is Not Better" Paradox
A striking finding is that adding more interface conditions often decreases performance. In the Poisson problem, combining all conditions resulted in 43.7% higher error than the optimal subset found by METALIC. Extra terms can "clutter" the loss landscape, hindering the optimizer's ability to find the global minimum.
4.2 Optimization and Physics Intuition
The "best" interface conditions are tied to the optimizer. METALIC-seq revealed that the L-BFGS phase generally benefits from more complex interface terms than the initial ADAM phase. Furthermore, METALIC often "discovered" physical principles; for instance, in Poisson and Burger’s equations, it consistently prioritized flux continuity, a well-known conservation principle in numerical methods.
4.3 Performance Gains
Multi-domain PINNs using METALIC-selected conditions achieved solution errors one order of magnitude smaller than those using random selections. Furthermore, METALIC allowed multi-domain PINNs to outperform standard single-domain PINNs with more neurons, achieving up to an 88.5% error reduction.
5. Conclusion
METALIC provides an efficient, automated way to optimize multi-domain PINNs. While current rewards are supervised (requiring ground truth), future iterations could utilize the PDE residual as an unsupervised reward. Additionally, extending the framework to meta-learn optimal interface locations—rather than just conditions—remains a promising avenue for handling problems with moving shocks or localized features.
Summary updated