Graph neural networks improve shock prediction with transport scale clues

CFL-aware edge design for graph neural solvers of hyperbolic transport

Machine LearningArtificial Intelligence

Summary

Simulating how waves or shocks move and change is hard for computer models because these changes happen suddenly and move at certain speeds. The authors studied how graph neural networks (GNNs) can better predict these changes by giving them extra clues about how information flows along connections, specifically adding a signal called the Courant-Friedrichs-Lewy (CFL) condition. They found that giving GNNs this CFL information carefully, combined with details about direction and distance, helps reduce errors and prevents unwanted oscillations near sudden changes without blurring the results. Their work suggests a smart way to design these networks for more accurate predictions in physics simulations.

What this means in practice

  • For computational engineers: Enhance physics simulations of wave propagation by integrating CFL-conditioned edge features into GNNs for better shock handling and stability at larger time steps.
  • For software developers in scientific computing: Improve the accuracy and robustness of machine learning solvers for hyperbolic PDEs by adopting edge design principles that separate direction and scale in GNN models.

Authors

Jinyoung Jeong, Joseph B. Choi, Xinlun Cheng, H. S. Udaykumar, Sanghun Choi, Stephen S. Baek

Abstract

Hyperbolic partial differential equations (PDEs) transport information at finite speed along characteristics, often producing shocks and discontinuities that are challenging to capture numerically. Graph neural networks (GNNs) offer learned update rules, but neighbor aggregation alone does not tell a GNN how far information must travel and along which edge. As a result, when a GNN model takes a time step larger than what was used in training, shock fronts smear and oscillations grow. In this work, we ask whether making the scale of transport explicit as an edge-local Courant-Friedrichs-Lewy (CFL) signal can enhance GNNs' ability to model hyperbolic PDEs. Holding the architecture fixed, we vary only the information given to each edge, from a raw edge form to forms that progressively expose the edge-local transport interaction through direction, length, and wave speed. Because all of these are computed from the same ingredients, what changes is not the amount of information but its form. The results show a consistent pattern, in which feature count is not the limiting factor, and appending CFL directly to a raw edge form produces almost no benefit. The CFL conditioning proves most effective when the edge information already exposes the transport interaction, reducing final-step error by 10.4-14.4%, and the improvement widens as the step size grows larger. Notably, this improvement arises not from smearing the solution but from suppressing oscillations near shocks. These results point to a specific design principle that CFL conditioning is most effective when the edge representation already separates the direction of interaction from spatial scale, so that the CFL value has a well-defined quantity to modulate.