Generative Latent Neural PDE Solver using Flow Matching

Zijie Li, Anthony Y. Zhou, Amir Barati FarimaniarXiv 2025 · DOI

Introduction

Data-driven neural solvers offer a significant speed advantage over traditional numerical methods for simulating partial differential equations (PDEs). However, standard autoregressive models often suffer from temporal instability. Due to spectral bias, neural networks struggle to capture high-frequency details, leading to small errors that accumulate over time and eventually cause simulations to diverge. While diffusion models can mitigate these issues through multi-step denoising, they are typically computationally expensive and restricted to uniform grids. This paper introduces a Latent Flow Matching framework designed to provide stable, efficient, and geometrically flexible PDE simulations.

The Latent Flow Matching Framework

The proposed architecture addresses the limitations of diffusion-based solvers by operating in a compressed latent space and utilizing an efficient flow-matching objective.

Overview of the Latent Flow Matching architecture, showing the mapping from irregular ambient meshes to a unified latent space where dynamics are modeled via a Diffusion Transformer.

The framework consists of two primary components:

  1. Unified Mesh-Reduced Latent Space: To handle irregular geometries, an encoder uses a learnable kernel integral (inspired by Geometry-Informed Neural Operators) to map data from arbitrary meshes into a uniform, lower-dimensional latent grid. This space is regularized for temporal smoothness.
  2. Flow Matching for Dynamics: Instead of standard diffusion, the model uses Flow Matching to predict the velocity field of the flow ODE in the latent space. This allows for high-quality predictions with significantly fewer sampling steps (as few as 5 to 10), drastically reducing computational overhead.

Key Insights

A critical finding of this work is that multi-step diffusion inference acts as a predictor-corrector mechanism, similar to classical linear multi-step numerical methods. By operating in a compressed latent space, the model effectively filters out high-frequency noise that typically drives instability in deterministic solvers. This "latent filtering" trades a small amount of local, per-frame accuracy for substantial gains in long-term global stability.

Experimental Results

The model was evaluated on three challenging benchmarks: 2D buoyancy-driven flow, 3D compressible magnetohydrodynamics (MHD) turbulence, and 2D airflow around an unmanned aerial vehicle (UAV).

Quantitative comparison (Table 3) and spectral analysis at the 90th frame for the MHD turbulence task, demonstrating the superior long-term stability of the Latent Flow Matching model.

In the 3D MHD turbulence task, the Latent Flow Matching model maintained a lower Normalized Root Mean Square Error (NRMSE) over long rollouts compared to baselines like the Fourier Neural Operator (FNO). As shown in the spectral analysis, the model generates physically coherent frequency spectrums even at the 90th frame, long after deterministic models have diverged. On the UAV dataset, which involves complex triangle meshes, the model outperformed graph-based baselines in long-term pressure prediction, demonstrating its robustness to irregular geometries.

Conclusion

By combining the stability of generative modeling with the efficiency of flow matching and latent space reduction, this framework provides a powerful tool for complex physical simulations. While exact long-term trajectory forecasting for highly chaotic systems remains a challenge, this approach ensures that simulated states remain statistically and physically plausible over extended horizons.

Summary updated

BibTeX
@misc{li2025generative,
  author = {Zijie Li and Anthony Y. Zhou and Amir Barati Farimani},
  title = {{Generative Latent Neural PDE Solver using Flow Matching}},
  year = {2025},
  eprint = {2503.22600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.22600},
}
Figure