Geometric and Physical Constraints Synergistically Enhance Neural PDE Surrogates

Yunfei Huang, David S. Greenberg · DOI

Abstract

Neural PDE surrogates often struggle with long-term stability and generalization due to error accumulation in autoregressive rollouts. This work introduces novel neural network layers that enforce both geometric symmetries (e.g., rotation) and physical conservation laws (e.g., mass) specifically for staggered grids—the standard in computational fluid dynamics. We demonstrate that these constraints are synergistic, significantly improving rollout accuracy and stability for complex systems including turbulence and real-world ocean currents.

Introduction

Deep learning surrogates offer significant speedups over classical numerical solvers for Partial Differential Equations (PDEs). However, they frequently suffer from "drift," where errors accumulate over time, leading to unphysical results or divergence. Previous attempts to mitigate this have focused on inductive biases: geometric constraints (equivariance) or physical constraints (conservation laws).

Most existing equivariant networks assume collocated grids. However, real-world Computational Fluid Dynamics (CFD) typically utilizes staggered grids (e.g., Arakawa C-grid) to avoid numerical artifacts. This paper bridges this gap by developing symmetry-preserving layers for staggered grids and investigating the combined effect of geometric and physical constraints.

Methodology

The proposed framework enforces "double constraints" within the neural architecture:

  1. Equivariant Layers for Staggered Grids: Novel input and output layers handle spatial offsets of staggered variables. During rotation, horizontal ($u$) and vertical ($v$) velocities are resampled, swapped, and sign-flipped across grid interfaces to maintain consistency.
  2. Hard Physical Constraints: Physics is enforced directly in the architecture rather than through soft loss penalties. Mass conservation is achieved by subtracting the global mean update. Momentum/incompressibility is enforced by learning a vector potential and computing velocity as its curl, ensuring a divergence-free field by construction.
Architecture overview showing the integration of staggered C-grids, equivariant filters, and physical constraints.

Experimental Setup

Models were evaluated on three increasingly difficult scenarios:

  • Closed Shallow Water Equations (SWE): Waves reflecting off closed boundaries, requiring the model to handle wall interactions.
  • Decaying Incompressible Turbulence: 2D Navier-Stokes equations involving the coalescence of small eddies.
  • Real-World Ocean Dynamics: Predicting zonal ocean currents using global forecast datasets.

Results and Discussion

Synergy of Constraints

Geometric and physical constraints are not redundant; they provide complementary benefits. Symmetries enhance spatial generalization, while conservation laws prevent the model from drifting into impossible physical states. Symmetry constraints (e.g., $p4m$ equivariance) generally provided a larger accuracy boost than physical constraints alone.

Stability and Accuracy

Unconstrained models often "exploded" during long simulations. In contrast, doubly-constrained models ($p4m/M$) remained stable. For SWE, only the doubly-constrained model maintained high correlation ($\rho > 0.98$) after a 25-hour rollout.

Quantitative performance comparison and spectral analysis for turbulence simulations.

Spectral Consistency and Generalization

For turbulence, constrained models accurately captured the energy spectrum across scales, whereas standard models failed on high-frequency features. Furthermore, constrained models demonstrated superior data efficiency and generalized gracefully to novel geometries (e.g., L-shaped initial conditions) unseen during training.

Conclusion

Integrating geometric and physical constraints into neural PDE surrogates, particularly for staggered grids, significantly enhances their reliability and accuracy. Future work will focus on extending these methods to 3D, unstructured meshes, and incorporating additional conservation laws like thermodynamics.

Summary updated

BibTeX
@inproceedings{huang2025geometric,
  author = {Yunfei Huang and David S. Greenberg},
  title = {{Geometric and Physical Constraints Synergistically Enhance Neural PDE Surrogates}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=6f1Hx1eneF},
}
Figure