FreqMoE: Dynamic Frequency Enhancement for Neural PDE Solvers

Tianyu Chen, Haoyi Zhou, Ying Li, Hao Wang, Zhenzhe Zhang, Tianchen Zhu, Shanghang Zhang, Jianxin Li

TL;DR

FreqMoE introduces a sparse Mixture-of-Experts (MoE) framework in the frequency domain to dynamically capture high-frequency details in neural PDE solvers without the typical computational explosion. By upcycling pre-trained low-frequency Fourier Neural Operators (FNOs) using a parameter-efficient LoRA strategy, it improves accuracy by up to 16.6% while using only 2.1% of the parameters of a dense counterpart.

What Problem Does This Paper Address?

Partial differential equations (PDEs) are the mathematical bedrock of scientific computing, underpinning everything from weather forecasting to quantum mechanics. Recently, Fourier Neural Operators (FNOs) have emerged as a powerful tool for solving PDEs efficiently by mapping functions through the frequency domain.

However, standard FNOs suffer from a fundamental trade-off: to remain computationally efficient, they truncate high-frequency components. While this works well for smooth, global patterns, it fails catastrophically when dealing with high-resolution inputs or long-term predictions where fine-grained details—like turbulence, shock waves, or stress concentrations—matter. Naively increasing the number of frequency modes in a standard FNO triggers a quadratic explosion in computational cost and often leads to overfitting, because high-frequency physical signals are naturally sparse and localized.

Figure 1: Motivation of FreqMoE. Traditional FNO directly trun- cates high-frequency components (left), while FreqMoE(ours) effi- ciently preserves them through sparse dynamic experts (right). This design enables high-frequency modeling with negligible computa- tional overhead.

Methods

To bridge the gap between low- and high-frequency learning, the authors propose FreqMoE, which implements a "Low-frequency Pretraining, High-frequency Fine-tuning" (LPHF) paradigm.

The core architecture consists of three main pillars:

  1. Frequency Domain Partitioning: The frequency spectrum is split into distinct chunks. The lowest frequency band is handled by a base expert (the original pre-trained FNO), while higher frequency bands are assigned to specialized experts.
  2. Sparsely Upcycled Experts via LoRA: Instead of training high-frequency experts from scratch, FreqMoE initializes them by reusing the pre-trained FNO base weights ($R_{base}$). It then applies a low-rank adaptation (LoRA) strategy, adding a parameter-efficient delta weight ($\Delta R = \alpha \cdot AB$) for each expert. This allows experts to inherit foundational low-frequency patterns while specializing in local, high-frequency details.
  3. Adaptive Frequency Gating: During inference, a gating network dynamically routes frequency components to the most relevant experts based on the input signal. A sparsity regularization loss pushes the network to activate only the top-$K$ (specifically, $K=2$) experts, keeping computational overhead minimal.
Figure 2: Methods overview of FreqMoE. (a) The standard Fourier Neural Operator (FNO) architecture consisting of input lifting (P), a sequence of Fourier layers, and output projection (Q). (b) Our modified Fourier layer design with a mixture-of-experts mechanism, where the gating networker dynamically assigns frequency components to specialized experts after FFT decomposition. High-frequency components (lighter shades) are processed by high-frequency experts, while low-frequency components are handled by the base expert. (c) Our expert initialization strategy, where pre-trained weights R are used as a shared base component Rbase and expert-specific delta weights ∆R are initialized with LoRA trick, enabling efficient parameter sharing and specialized frequency processing.

Datasets

The authors evaluated FreqMoE across both regular and irregular grid PDE benchmarks:

  • Regular-grid PDEs (Fluid Dynamics): Sourced from PDEbench, featuring vortex-dominated compressible Navier-Stokes flows under both Random and Turbulent initializations. Testing was conducted at standard ($128 \times 128$) and high ($512 \times 512$) resolutions.
  • Irregular-grid PDEs (Geometric Discontinuities): Evaluated using Geo-FNO benchmarks:
  • Airfoil: Transonic flows over parameterized NACA-0012 airfoils exhibiting shock-induced high frequencies on adapted C-grids ($200 \times 50$).
  • Elasticity: Nonlinear material deformations with central voids, modeled via 1,000 FEM nodes to capture intense stress concentrations.

Key Insights and Ideas

  • The Physical "Energy Cascade": The method is deeply motivated by fluid mechanics, where high-frequency signals (small vortices) depend heavily on low-frequency components (large-scale flows). Reusing low-frequency weights to initialize high-frequency experts directly mirrors this physical dependency.
  • The Dense Scaling Trap: The paper reveals that naively expanding modes in a conventional dense FNO actually degrades performance on complex high-resolution tasks (like turbulent flows). Dense models over-parameterize high-frequency components that rarely activate in practice, leading to optimization difficulties.
  • Linear vs. Quadratic Complexity: Standard FNO spectral convolutions scale quadratically with the number of modes. FreqMoE bypasses this by fixing the number of active experts via the gating mechanism, achieving linear complexity relative to the frequency modes.

Key Results

  • Massive Parameter Reductions: On high-resolution $512 \times 512$ fluid simulations, FreqMoE achieved up to a 16.6% accuracy improvement while utilizing merely 2.1% of the parameters ($47.32\times$ reduction) compared to a dense FNO operating on the same number of modes.
  • Robustness on Unstructured Meshes: For irregular grids, FreqMoE reduced errors in Elasticity tasks by 5.2% while delivering a $26.70\times$ parameter reduction over Geo-FNO.
  • Long-Term Rollout Stability: FreqMoE effectively mitigated the classic "error cascade" in autoregressive rollouts, yielding a 31.67% reduction in final prediction error on high-resolution fluid datasets.
Long-term prediction error trajectories across different rollout timesteps.

Limitations and Future Work

Despite its success, the authors note a few limitations:

  • Static Partitioning: The current gating mechanism relies on predefined, rigid frequency band partitioning, which might not perfectly match the unique spectral signatures of all PDE systems.
  • Routing Latency: While parameter-efficient, the dynamic routing mechanism introduces a minor computational latency overhead during inference.

Future Directions: The team plans to explore adaptive frequency partitioning strategies and extend the LPHF paradigm to broader operator learning frameworks beyond FNOs.

Summary updated

BibTeX
@inproceedings{chen2025freqmoe,
  author = {Tianyu Chen and Haoyi Zhou and Ying Li and Hao Wang and Zhenzhe Zhang and Tianchen Zhu and Shanghang Zhang and Jianxin Li},
  title = {{FreqMoE: Dynamic Frequency Enhancement for Neural PDE Solvers}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/818},
}
Figure