paper

A Gaussian-based spatially weighted loss formulation for Physics-Informed Neural Networks with Shocks

arXiv:2606.26013

Abstract

Physics-informed neural networks (PINNs) often struggle to resolve shocks because smooth neural representations and globally averaged residual losses tend to underemphasize localized high-gradient regions. We introduce a residual-tracked Gaussian weighting strategy that represents the spatial distribution of the PDE-residual loss through a small number of learnable parameters, without resampling the collocation points or prescribing the shock location. The Gaussian center and width are updated from the evolving PDE residual, allowing the weighting field to follow stationary and moving shocks during training without prior knowledge of their positions or trajectories. The method is assessed using one-dimensional low-viscosity Burgers problems and a two-dimensional Euler Riemann problem with four interacting shocks. For , the relative error decreases from approximately to for the stationary shock and from to for the moving shock, compared with a standard PINN. In the two-dimensional problem, the maximum absolute density error decreases from to . These results show that a compact, dynamically localized residual weighting can substantially improve PINN resolution of shock-dominated solutions while retaining the original collocation set and avoiding prescribed shock trajectories.

A Gaussian-based spatially weighted loss formulation for Physics-Informed Neural Networks with Shocks · wovepaper