Papers
Topics
Authors
Recent
Search
2000 character limit reached

Spectrum-Weighted RFF-MSPINNs for PDEs

Updated 2 July 2026
  • The paper introduces a novel multistage physics-informed neural network that integrates spectrum-weighted random Fourier features to overcome spectral bias in PDE solvers.
  • It dynamically samples Fourier frequencies based on the residual's power spectrum, directing network capacity toward high-frequency and multiscale components.
  • Empirical results show one to two orders of magnitude error reduction over standard PINNs, enhancing both accuracy and training efficiency in complex PDE applications.

Spectrum-Weighted Random Fourier Feature Multistage Physics-Informed Neural Networks (RFF-MSPINNs) are a class of neural PDE solvers designed to overcome spectral bias in standard Physics-Informed Neural Networks (PINNs) by incorporating spectrum-informed random Fourier features and a multistage residual learning strategy. These approaches systematically adapt the representation capacity and optimization trajectory of PINNs to capture high-frequency and multiscale solution components with significantly improved accuracy and efficiency, supported by formalism and experiments across multiple recent works (Li et al., 25 Aug 2025, Feng et al., 21 Dec 2025, Wu et al., 22 Oct 2025).

1. Motivation: Spectral Bias and PINNs

PINNs approximate solutions to partial differential equations (PDEs) by optimizing a composite loss measuring how well the candidate solution satisfies the PDE operator, boundary, and (if applicable) initial conditions. A key limitation of standard PINNs is spectral bias: they fit low-frequency components of the solution rapidly, while high-frequency components converge slowly or are missed entirely. This hinders performance on wave propagation, turbulence, and scattering problems containing rich high-frequency content (Li et al., 25 Aug 2025).

Random Fourier features (RFFs) partially address spectral bias by embedding high-frequency components at the input stage. However, conventional RFFs sample frequencies ω\omega from a static Gaussian distribution, which is agnostic to the multiscale spectral properties of the solution or residuals. RFF-MSPINNs build upon this by dynamically sampling frequencies and phases based on the power spectral density (PSD) of the current PDE residual, thereby directing model capacity toward dominant, energetically relevant frequency bands.

2. Architecture: Spectrum-Weighted RFF Input Embedding

At each stage ii in the multistage scheme, an RFF layer precedes the main neural network:

ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T

  • Without spectrum weighting, ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I), bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi].
  • In RFF-MSPINNs, frequencies ωj\omega_j are selected with probability proportional to the power in the corresponding spectral band of the residual:
  1. Compute DFT of the stage residual ri1r_{i-1}:

    r^i1(k)=n=1Ndri1(x(n))e2πikx(n)\hat{r}_{i-1}(k) = \sum_{n=1}^{N_d} r_{i-1}(x^{(n)}) e^{-2\pi i\,k \cdot x^{(n)}}

  2. Form the unnormalized power spectrum Si1(k)=r^i1(k)2S_{i-1}(k) = |\hat{r}_{i-1}(k)|^2.
  3. Normalize to obtain a frequency PMF: pi1(k)=Si1(k)/kSi1(k)p_{i-1}(k) = S_{i-1}(k)/\sum_{k'} S_{i-1}(k').
  4. Draw ii0 frequencies ii1, and ii2 uniformly.

This sampling biases the input representation toward residual-dominant modes, enabling rapid targeted reduction in error at challenging frequencies (Li et al., 25 Aug 2025).

Extensions further enhance input embeddings with cross-attention, multi-scale banks with learnable amplitudes, and incremental enrichment mechanisms, as detailed in (Feng et al., 21 Dec 2025).

3. Multistage Residual Learning Framework

The multistage paradigm decomposes the solution ii3 as a sum of stage-wise corrections. At stage ii4:

  • The model ii5, where ii6 is the RMS of the previous residual.
  • ii7 is a fully-connected network applied to the spectrum-informed RFF embedding ii8.
  • The loss per stage is:

ii9

The process continues until the RMS of the stage residual decreases below a prescribed threshold relative to the previous stage. This approach systematically improves the approximation of both low- and high-frequency components (Li et al., 25 Aug 2025).

4. Spectrum-Weighted RFF Variants and Further Enhancements

Several architectural variants extend the RFF-MSPINN principle:

  • Learnable amplitude scaling: The input RFF bank is augmented by amplitude factors ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T0, with ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T1 trainable to focus the representational power on relevant frequencies (Feng et al., 21 Dec 2025).
  • Cross-attention reweighting: RFF outputs are partitioned into tokens, which interact with a query through cross-attention, adaptively routing capacity toward the most informative scales for each input.
  • Incremental spectral enrichment: Dominant modes identified from intermediate DFT analysis of the current approximation are appended to the RFF bank and smoothly introduced via soft-masking into the attention mechanism.
  • Two-network PDE mixing: Separates the modeling of high-frequency (via RFF-cross-attention) and low-frequency (via MLP) solution components, with the final output ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T2. The mixing factor ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T3 is either learned or set by a physics-motivated closed-form formula at each training epoch (Feng et al., 21 Dec 2025).

These enhancements further accelerate convergence on oscillatory and discontinuous solutions and allow the architecture to adapt to evolving frequency-domain demands during training.

5. Algorithmic Description

A high-level pseudocode for standard RFF-MSPINN training (Li et al., 25 Aug 2025):

ri1r_{i-1}5

Typical hyperparameters include ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T4–ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T5 features, ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T6–ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T7 hidden layers of ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T8–ϕi(x;{ωj,bj}j=1M)=2M[cos(ω1Tx+b1),,cos(ωMTx+bM)]T\phi_i(x; \{\omega_j, b_j\}_{j=1}^M) = \sqrt{\frac{2}{M}} \left[ \cos(\omega_1^T x + b_1), \ldots, \cos(\omega_M^T x + b_M) \right]^T9 units, ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)0 or GELU activations, and a stage count ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)1–ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)2 (Li et al., 25 Aug 2025).

For variants with cross-attention and amplitude scaling, the procedure includes construction of multiscale RFF banks, grouping into frequency tokens, and staged introduction of posterior DFT frequencies (Feng et al., 21 Dec 2025). Iterative “θ‐solve + ω‐gradient” upper-lower loop training is also used, especially when optimizing frequency bases (Wu et al., 22 Oct 2025).

6. Empirical Performance and Benchmarks

RFF-MSPINNs have demonstrated one to two orders of magnitude lower error than conventional PINNs and standard Multistage Neural Networks (MSNNs) across several canonical PDEs:

  • Burgers Equation (shock regime):
    • PINN: ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)3
    • MSNN: ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)4
    • RFF-MSPINNs (3 stages): ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)5
  • 2D Helmholtz Scattering: For ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)6, the ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)7 relative errors for real (ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)8) and imaginary (ωjN(0,σ2I)\omega_j \sim \mathcal{N}(0, \sigma^2 I)9) fields are
bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]0 Method bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]1 bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]2
1 PINN bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]3 bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]4
MSNN bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]5 bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]6
RFF-MSPINNs bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]7 bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]8
1.5 PINN bjUnif[0,2π]b_j \sim \text{Unif}[0, 2\pi]9 ωj\omega_j0
MSNN ωj\omega_j1 ωj\omega_j2
RFF-MSPINNs ωj\omega_j3 ωj\omega_j4
2 PINN ωj\omega_j5 ωj\omega_j6
MSNN ωj\omega_j7 ωj\omega_j8
RFF-MSPINNs ωj\omega_j9 ri1r_{i-1}0
  • High-frequency and multi-scale PDEs: Spectrum-guided RFF enrichment enables RFF-MSPINN and its iterative Fourier-augmented relatives to maintain accuracy in cases where vanilla PINNs diverge or entirely lose high-frequency content (Li et al., 25 Aug 2025, Wu et al., 22 Oct 2025).

Training time is also reduced relative to Spectrum-Informed Multistage PINNs (SI-MSPINNs); e.g., 700 s (RFF-MSPINNs) vs. 1300 s (SI-MSPINNs) for three-stage training on Burgers equation (Li et al., 25 Aug 2025).

7. Theoretical Guarantees and Expressivity

Random Fourier Feature embedding strictly enlarges the hypothesis class of a PINN. As the feature count ri1r_{i-1}1 grows and with sufficient training, RFF-MSPINNs achieve universal ri1r_{i-1}2 approximation on PDE solution spaces—assuming sufficient depth and expressivity in the base network (Wu et al., 22 Oct 2025).

Moreover, for linear operators ri1r_{i-1}3, the two-stage iterative (θ-solve, ω-update) scheme converges provably to a stationary point of the loss, and the linear regression problem admits a closed-form solution for the readout weights, further accelerating convergence (Wu et al., 22 Oct 2025).

A spectrum analysis ablation confirms that, as the number of Fourier features increases, the normalized DFT magnitude of the network output at high frequencies approaches ri1r_{i-1}4, whereas standard PINNs remain near zero—direct evidence of effective mitigation of spectral bias (Wu et al., 22 Oct 2025).


References:

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Spectrum-Weighted Random Fourier Feature MSPINNs (RFF-MSPINNs).