FourierFlow: Frequency-aware Flow Matching for Generative Turbulence Modeling

Haixin Wang, Jiashu Pan, Hao Wu, Fan Zhang, Tailin Wu

TL;DR

Standard generative models struggle to simulate turbulent fluid flows accurately due to "spectral bias" (ignoring fine-grained, high-frequency details) and "common-mode noise" in attention mechanisms. To fix this, FourierFlow introduces a frequency-aware flow matching framework that combines local-global differential attention, explicit Fourier feature mixing, and implicit alignment via a pre-trained Masked Autoencoder. The result is a state-of-the-art generative model that captures highly complex, multi-scale turbulence with superior accuracy and physical consistency.

What Problem Does This Paper Address?

Simulating turbulent fluid dynamics—governed by complex partial differential equations (PDEs) like the Navier-Stokes equations—is a grand challenge in science and engineering. Turbulence is inherently multi-scale, featuring massive global flow structures alongside tiny, rapidly fluctuating vortices, shocks, and shear layers.

While diffusion and flow-based generative models have recently shown promise in capturing these complex systems, the authors identify two fundamental bottlenecks that prevent standard models from achieving high fidelity:

  1. Spectral Bias: Both empirically and theoretically, standard generative models underrepresent high-frequency, high-energy components. In the forward noising process, fine-scale details are destroyed first because of their smaller signal-to-noise ratios. Consequently, the reverse denoising process inherently prioritizes reconstructing coarse, low-frequency structures first, leaving fine details blurred.
  2. Common-Mode Noise in Attention: Standard self-attention mechanisms often get bogged down by irrelevant global contextual backgrounds. Highly non-linear, localized variations (like a tiny vortex) are frequently averaged out or diluted at the global level—a phenomenon the authors term "common-mode noise."

Methods

FourierFlow tackles these limitations through a novel dual-branch backbone architecture and an innovative optimization strategy:

  • Salient Flow Attention (SFA) Branch: Inspired by differential transformers, this branch utilizes a local-global differential attention mechanism. By subtracting a background attention pathway from a localized one, it acts like noise-canceling headphones—suppressing global common-mode noise and amplifying regions with strong relative variations (such as local velocity gradients).
  • Frequency-guided Fourier Mixing (FFM) Branch: Utilizing Adaptive Fourier Neural Operators (AFNO), this branch explicitly controls and amplifies high-frequency components in the spectral domain using learnable, frequency-dependent weights.
  • Frequency-aware Adaptive Fusion: A data-driven gating map dynamically blends the spatially attentive SFA branch and the frequency-rich FFM branch, ensuring the fused representation remains both spectrally rich and spatially coherent.
  • Frequency-aware Surrogate Alignment: During training, the model's intermediate representations are aligned with those of a frozen, pre-trained Masked Autoencoder (MAE). Because MAEs naturally learn to be highly sensitive to high-frequency features during patch-reconstruction tasks, this alignment implicitly forces the generator to recover finer-scale structures.
Overview of the FourierFlow framework

Datasets

The framework was validated across three canonical turbulent flow scenarios:

  1. Compressible Navier-Stokes (M=0.1): Low-speed, subsonic fluid flow configurations from the PDEBench benchmark.
  2. Compressible Navier-Stokes (M=1.0): High-speed, transonic fluid flow involving sharp shock waves and complex discontinuities.
  3. 2D Incompressible Shear Flow: A classical fluid dynamics setup featuring layers of fluid moving parallel to each other at different speeds, creating strong velocity gradients.

Key Insights and Ideas

  • The Math Behind the Bias: The authors provide a rigorous mathematical proof showing that because natural fluid signals follow a power-law decay in the frequency domain, higher-frequency components drop below the signal-to-noise ratio threshold much earlier in the diffusion process. This creates an inherent structural bias toward low frequencies during reverse generation.
  • Differential Attention as a Feature Amplifier: In fluid dynamics, absolute values (like absolute pressure) matter less for turbulence structure than relative variations (like vorticity, which is the spatial differential of the velocity field). SFA perfectly aligns with this physical reality by focusing purely on relative differences between neighboring regions.
  • MAE as a Frequency Guide: While contrastive learning methods (like DINO) bias models toward low-frequency structures, masked autoencoders (MAEs) force encoders to capture high-frequency details to fill in missing patches. Repurposing a pre-trained MAE as a feature-alignment supervisor is an elegant way to inject high-frequency awareness without adding complex loss functions.

Key Results

  • State-of-the-Art Performance: FourierFlow consistently outperformed all baselines (including standard FNOs, Diffusion Transformers, and STDiT), reducing average error by approximately 20% across all scenarios.
  • Spectral Fidelity: As demonstrated in their spectral analysis, FourierFlow significantly reduces errors in the high-wavenumber (high-frequency) range compared to models like STDiT, yielding a much more balanced residual spectrum.
Figure 1: Demonstration of spectral bias. Residual is the gap between the prediction and the ground truth. Energy denotes the logarithm of the spectral energy, while the wavenumber indicates the fre- quency scale in the spectral domain. STDiT [10] fits the low-frequency components well but ex- hibits larger errors in the high-frequency range, resulting in residual spectra that are heavily con- centrated in the high-wavenumber region. In con- trast, our FourierFlow produces a more balanced residual spectrum by reducing spectral bias.
  • Robust Generalization: The model demonstrated exceptional zero-shot generalization when tested on out-of-distribution initial conditions (varying viscosity and Mach numbers) and maintained stability over long-horizon temporal rollouts, avoiding the error accumulation common in autoregressive models.

Limitations and Future Work

  • High Computational Cost: Due to the iterative sampling nature of flow matching and the high-dimensional feature mixing required, FourierFlow incurs substantial training and inference costs. Accelerating convergence remains an open challenge.
  • Future Directions: The authors suggest exploring depth-wise scaling, expanding the training corpus to shift the model's saturation point, and developing mathematically principled guidance terms to reduce the number of sampling iterations needed during inference.

Summary updated

BibTeX
@misc{wang2025fourierflow,
  author = {Haixin Wang and Jiashu Pan and Hao Wu and Fan Zhang and Tailin Wu},
  title = {{FourierFlow: Frequency-aware Flow Matching for Generative Turbulence Modeling}},
  year = {2025},
  eprint = {2506.00862},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.00862},
}
Figure