FourierFlow: Frequency-aware Flow Matching for Generative Turbulence Modeling

Haixin Wang, Jia-Shu Pan, Hao Wu, Fan Zhang, Tailin Wu · Submission to ICLR 2026 · Rejected

TL;DR

Diffusion and flow-based generative models are promising for physical simulations, but they struggle to resolve fine-scale turbulence due to intrinsic spectral bias and common-mode noise. FourierFlow overcomes these limitations by combining a novel dual-branch architecture (differential attention and frequency-weighted Fourier mixing) with feature alignment against a high-frequency-sensitive Masked Autoencoder (MAE). Across canonical compressible and incompressible turbulence benchmarks, FourierFlow reduces high-frequency errors, outperforming state-of-the-art baselines by approximately 20% while dramatically improving long-horizon rollout stability.

What Problem Does This Paper Address?

Direct numerical simulation of fluid turbulence is computationally prohibitive, prompting growing interest in data-driven surrogate and generative neural solvers. While generative models (diffusion and flow matching) can capture multi-scale structures better than standard neural operators, they face two fundamental hurdles when modeling turbulence:

  1. Spectral Bias: Physical turbulence exhibits power-law energy decay across spatial frequencies (Kolmogorov cascades). Because diffusion noise corrupts high-frequency, low-energy components much earlier than low-frequency modes, the reverse generative process naturally prioritizes coarse, low-frequency features. Consequently, critical fine-scale structures like vortices, shock fronts, and shear layers are washed out.
  2. Common-Mode Noise in Attention: Standard self-attention relies on absolute feature magnitudes, which tends to average out subtle, localized relative variations across the broader flow field. This causes attention maps to collapse toward uniform distributions, suppressing sharp localized gradients (such as vorticity).

Methods

FourierFlow adopts a Conditional Flow Matching (CFM) framework to learn continuous probability transport paths from Gaussian noise to flow fields, augmented by explicit architectural and implicit optimization strategies:

[ Input Flow Field / Noisy State ]
         |
         +--------------------------------+
         |                                |
         v                                v
 [Salient Flow Attention]      [Frequency-Guided Fourier Mixing]
  • Cancels common-mode noise   • Amplifies high frequencies via
  • Differential attention:       scaled AFNO spectral weights:
    Attn1 - λ Attn2               W(ξ) * (β + α||ξ||^η)
         |                                |
         +----------------+---------------+
                          |
                          v
               [Adaptive Gated Fusion]
               (1x1 Conv + Sigmoid Map)
                          |
                          v
                 [Flow Vector Field]
                          ^
                          |  Feature Alignment Loss (L_Align)
              [Pre-trained Frozen MAE]
              (Extracts fine-scale context)
  • Salient Flow Attention (SFA) Branch: To eliminate common-mode background noise, SFA incorporates differential attention ($\mathrm{Attn}_1 - \lambda \mathrm{Attn}_2$). While $\mathrm{Attn}_1$ focuses on localized dynamics, $\mathrm{Attn}_2$ computes attention against mean-centered local neighborhood keys ($k$-NN) to capture background common-mode drifts and subtract them out.
  • Frequency-Guided Fourier Mixing (FM) Branch: Built upon Adaptive Fourier Neural Operators (AFNO), this branch explicitly modifies spectral weights $W_\theta^l(\xi)$ with an explicit frequency-magnitude scaling term $(\beta_\theta^l + \alpha_\theta^l \|\xi\|^\eta)$, preferentially amplifying high-frequency Fourier modes.
  • Adaptive Gated Fusion: A data-driven spatial gating map $G = \sigma(\mathrm{Conv}_{1\times 1}([u_{\mathrm{SFA}}, u_{\mathrm{FM}}]))$ dynamically blends the attentive and spectral branches per token.
  • Frequency-Aware Surrogate Alignment: Masked autoencoders (MAE) naturally preserve high-frequency details better than contrastive approaches. The authors pre-train a Video Vision Transformer (ViViT) MAE on masked fluid trajectories (75% masking) and freeze it, adding an auxiliary intermediate representation alignment loss ($\mathcal{L}_{\mathrm{Total}} = \mathcal{L}_{\mathrm{CFM}} + \gamma \mathcal{L}_{\mathrm{Align}}$) to implicitly guide the generator toward high-frequency features.

Datasets

The authors evaluated FourierFlow on two standard scientific benchmarks at $128 \times 128$ spatial resolution:

  • Compressible Navier-Stokes (CNS): From PDEBench, evaluated across two distinct regimes: subsonic ($M = 0.1$) and transonic/supersonic shock ($M = 1.0$), with varying shear and bulk viscosities.
  • 2D Periodic Incompressible Shear Flow: Sourced from The Well benchmark, featuring fluid layers moving at differential velocities governed by time-independent spatial forcing.

Key Insights and Ideas

  • Theoretical Formalization of Spectral Bias: The authors prove (Theorem 4.1) that under forward diffusion $dx_t = g(t)dw_t$, the noise variance across spatial frequencies is completely flat (via Itô isometry). If an initial field has power-law spectral decay $|x_0(\omega)|^2 \propto |\omega|^{-\alpha}$, the time $t_\gamma(\omega)$ at which SNR falls below a threshold scales as $|\omega|^{-\alpha}$. High frequencies hit noise-dominated regimes strictly earlier, explaining why standard reverse diffusion learns coarse structures first.
  • Background Cancellation Matters: Shifting queries and keys by channel-shared background noise flattens softmax distributions. Explicitly treating global and low-frequency components as common-mode interference restores contrast in attention weights.
  • Surrogate Pre-training Guidance: Rather than training generative PDE models from scratch with purely generative losses, aligning latent representations with an MAE surrogate transfers strong spatial-frequency inductive biases into the flow-matching backbone.

Key Results

  • Benchmark Performance: Across all tested scenarios, FourierFlow achieves SOTA metrics, outperforming the closest competitors (such as STDiT and DYffusion) by ~20% on average:
  • Compressible N-S ($M = 0.1$): Achieves MSE of 0.0277 and nRMSE of 0.1530, compared to STDiT (0.0642 MSE, 0.1955 nRMSE) and DYffusion (0.0619 MSE, 0.2098 nRMSE).
  • Compressible N-S ($M = 1.0$): Reaches MSE of 0.0955 (STDiT: 0.1125; DPOT: 0.1679).
  • Shear Flow: Yields MSE of 0.5811 (STDiT: 0.5908; PDEDiff: 0.6206).
  • Frequency-Resolved Error (fRMSE): In the high-frequency band on CNS ($M=0.1$), FourierFlow drops the error to 0.0069, compared to 0.0733 for STDiT and 0.0948 for DiT—more than an order-of-magnitude improvement.
  • Autoregressive Generalization: When rolled out for hundreds of steps, standard surrogate models suffer from error accumulation and diverge (notably at $M = 1.0$). FourierFlow maintains numerical stability and physical invariants over extended trajectories.
  • Robustness to Input Perturbations: Under Gaussian noise attacks on inputs, FourierFlow's performance degrades far less than deterministic surrogate counterparts ($\Delta\mathrm{RMSE} \approx 0.018$ vs. $0.022$).

Limitations and Future Work

  • Computational Overhead: Training the dual-branch backbone alongside high-dimensional feature mixing and iterative ODE numerical integration remains computationally demanding (trained across 8 $\times$ NVIDIA H800 GPUs).
  • Inference Speed: Real-time engineering applications are currently bottlenecked by multi-step ODE sampling.
  • Future Directions: The authors highlight the need for mathematically principled sampling guidance to decrease ODE solver steps, lightweight domain-specific transformer kernels for Fourier operations, and scaling to 3D spatio-temporal domains.

Summary updated

BibTeX
@misc{wang2025fourierflow,
  author = {Haixin Wang and Jia-Shu 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