Physics-embedded Fourier Neural Network for Partial Differential Equations

Qingsong Xu, Nils Thuerey, Yilei Shi, Jonathan Bamber, Chaojun Ouyang, Xiao Xiang ZhuarXiv 2024 · DOI

Abstract

Physics-embedded Fourier Neural Networks (PeFNN) represent a novel paradigm in scientific machine learning, bridging the gap between black-box deep learning and rigorous numerical solvers. By hard-coding momentum conservation into the model architecture through rotation-invariant Fourier kernels and replacing standard nonlinear activations with interpretable polynomial structures, PeFNN achieves state-of-the-art accuracy in fluid dynamics and real-world flood forecasting. The model demonstrates significant robustness across varying spatial resolutions and exhibits remarkable cross-regional transferability, offering a physically consistent and mathematically transparent alternative to traditional neural operators.

Introduction

Solving Partial Differential Equations (PDEs) is the cornerstone of modeling physical phenomena, from atmospheric dynamics to biological fluid flow. While traditional numerical simulators provide high accuracy, they are often computationally prohibitive for real-time applications. Machine learning surrogates, particularly Fourier Neural Operators (FNOs), have emerged as high-speed alternatives. However, these models typically suffer from two critical limitations: physical ignorance and a lack of interpretability. Because they do not inherently respect fundamental laws like the conservation of momentum, they can produce physically impossible results. Furthermore, the use of nested nonlinear activation functions (e.g., ReLU or GELU) makes it difficult to understand the underlying mathematical approximations. PeFNN addresses these challenges by embedding physical symmetries as hard constraints within the network architecture.

Methodology

The core innovation of PeFNN is its departure from standard deep learning architectures in favor of structures inspired by classical physics and numerical analysis.

MC-Fourier (Momentum-Conserving Fourier) Layer

The architecture leverages Noether’s theorem, which establishes a fundamental link between physical symmetries and conservation laws. The authors designed the MC-Fourier layer to be strictly translation- and rotation-invariant in the frequency domain. By enforcing these symmetries directly within the Fourier kernels, the model inherently respects the conservation of linear and angular momentum. This "hard constraint" approach is significantly more robust than "physics-informed" methods that rely on soft constraints via loss functions.

Interpretable Nonlinearity

To enhance transparency, PeFNN replaces standard "black-box" activation functions with an element-wise product operation across multiple MC-Fourier layers. This design allows the network to represent a polynomial approximation of the nonlinear PDE terms, effectively performing a learnable Taylor expansion. This makes the learned physical expressions mathematically explicit and easier for researchers to analyze.

Numerical Time Stepping

PeFNN adopts a discrete learning framework based on a forward Euler scheme:

$$u_{t+1} = u_t + \hat{F}(u_t)\delta t$$

Here, the neural network acts as a learnable function $\hat{F}$ that predicts the evolution of the system's physics over a time step $\delta t$. This provides a clear framework for error control and stability analysis, mirroring traditional numerical methods.

The PeFNN architecture uses an encoder-decoder structure where the core physics is learned through a series of MC-Fourier layers combined via element-wise products.

Experimental Evaluation

The authors evaluated PeFNN across three distinct challenges:

  1. 2D Incompressible Navier-Stokes Equations: A benchmark for fluid flow at varying viscosities.
  2. 2D Shallow Water Equations (SWE): Used to model wave propagation and dam-break scenarios.
  3. Real-World Flood Benchmark: A new dataset based on catastrophic floods in Pakistan (2022) and Mozambique (2019), utilizing high-resolution FABDEM topography and satellite-derived rainfall data.

Key Results and Insights

PeFNN consistently outperformed state-of-the-art baselines, including FNO-2D and Group-equivariant FNO (G-FNO).

Accuracy and Physical Consistency

In Navier-Stokes simulations, PeFNN achieved the lowest test errors across all viscosity levels. Under a "Markov" training strategy, it reduced error by over 30% compared to standard FNOs. Crucially, ablation studies confirmed that the MC-Fourier layers reduced momentum loss by orders of magnitude compared to standard neural solvers.

Quantitative results on Navier-Stokes show PeFNN consistently achieving the lowest error rates with fewer parameters than 3D convolutional baselines.

Generalization and Transferability

The model demonstrated two key strengths in generalization:

  • Zero-shot Super-resolution: Due to its operation in the frequency domain, PeFNN can be trained on low-resolution data and applied directly to high-resolution grids without retraining.
  • Cross-Regional Transferability: In flood forecasting, a PeFNN trained on Pakistan's geography accurately predicted flood evolution in Mozambique, reducing test error by 64.02% compared to G-FNO-2D. This suggests the model learns the general physics of water flow rather than memorizing specific topographic maps.

Conclusion

PeFNN represents a major advancement in the development of physically consistent and interpretable neural PDE solvers. By building physical symmetries directly into the model's kernels, it achieves superior accuracy and reliability. Future research will focus on extending the model to incorporate additional conservation laws, such as mass and energy, and integrating higher-order temporal schemes like Runge-Kutta to further enhance stability.

Summary updated

BibTeX
@misc{xu2024physics,
  author = {Qingsong Xu and Nils Thuerey and Yilei Shi and Jonathan Bamber and Chaojun Ouyang and Xiao Xiang Zhu},
  title = {{Physics-embedded Fourier Neural Network for Partial Differential Equations}},
  year = {2024},
  eprint = {2407.11158},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.11158},
}
Figure