If you see this, something is wrong
First published on Monday, Nov 16, 2026 and last modified on Monday, Nov 16, 2026 by François Chaplais.
Division of Decision and Control Systems Digital Futures and KTH Royal Institute of Technology Stockholm, Sweden Email
Division of Decision and Control Systems Digital Futures and KTH Royal Institute of Technology Stockholm, Sweden Email
Division of Decision and Control Systems Digital Futures and KTH Royal Institute of Technology Stockholm, Sweden Email
Division of Decision and Control Systems Digital Futures and KTH Royal Institute of Technology Stockholm, Sweden Email
Spectral bias, the tendency of neural networks to learn low-frequency features first, is a well-known issue with many training algorithms for physics-informed neural networks (PINNs). To overcome this issue, we propose IFeF-PINN, an algorithm for iterative training of PINNs with Fourier-enhanced features. The key idea is to enrich the latent space using high-frequency components through random Fourier features. This creates a two-stage training problem: (i) estimate a basis in the feature space, and (ii) perform regression to determine the coefficients of the enhanced basis functions. For an underlying linear model, it is shown that the latter problem is convex, and we prove that the iterative training scheme converges. Furthermore, we empirically establish that random Fourier features enhance the expressive capacity of the network, enabling accurate approximation of high-frequency PDEs. Through extensive numerical evaluation on classical benchmark problems, the superior performance of our method over state-of-the-art algorithms is shown, and the improved approximation across the frequency domain is illustrated.
Capturing high-frequency behavior is central to modeling complex phenomena such as wave propagation, turbulence, and quantum dynamics. Traditional numerical methods, including spectral approaches [2], multiscale schemes [4], and oscillatory quadrature [3], have achieved notable success but often require problem-specific adaptations or become prohibitively costly in complex or high-dimensional settings.
There is a need for new approximation strategies that capture high-frequency behavior without sacrificing stability or tractability. Deep-learning surrogates of differential equations are a promising alternative, such as Physics-Informed Neural Networks (PINNs), which offer a grid-free alternative by combining data and physical models within a neural network framework [5]. This paradigm has shown strong performance in solving partial differential equations (PDEs) and inferring hidden dynamics, benefiting adaptability to complex geometries [24], and high-dimensional scalability [25]. Related approaches such as Fourier Neural Operators [6] and DeepONet [7] further expand its reach. Despite these advances, PINN methods remain limited by spectral bias—the tendency of neural networks to learn low-frequency components first—which hinders accurate recovery of oscillatory solutions [19, 26, 27, 28].
Several strategies have been proposed to mitigate spectral bias, including weight balancing [29, 30], resampling [10, 11, 12], and curriculum or architecture-based approaches [14, 31, 8, 32, 33, 34]. Table 1 summarizes some of the most representative approaches. While effective in certain cases, these methods remain tied to single-level optimization frameworks, where feature learning and coefficient fitting are intertwined in neural networks, limiting both robustness and theoretical guarantees.
To address this gap, we draw inspiration from classical numerical PDE solvers, which approximate solutions using basis functions, and propose a novel neural network architecture and a tailored training algorithm. The key idea is to create a feed-forward neural network with three components, as illustrated in Figure 1. First, the hidden layers \( h_{\omega}\) generate a nominal basis in the latent functional space. Next, this basis is extended to \( \psi_D\) through random Fourier features (RFF, introduced by [1]), which may include potentially higher-frequency elements, to span a larger latent space. Finally, the last linear layer performs regression on these extended basis vectors. The first and last blocks can be optimized separately, resulting in a two-stage iterative scheme alternating between latent basis construction and regression on output coefficients. A major feature of this framework, related to extreme learning machines [35], is that for linear differential equations, the regression stage is convex and achieves asymptotic global optimality. Unlike existing approaches, our method enriches the latent space representation, enabling systematic capture of high-frequency dynamics while leveraging the strengths of established PINN frameworks.
| Method | Domain | Key Idea | HF | Limitations / Optimality |
| [2, 3] | Linear | Global basis functions (Fourier, Chebyshev) | +++ | Requires regular domains; global optimum |
| [4] | Multiscale | Separate scales and compute effective dynamics | ++ | Needs clear scale separation, problem-specific; local optimum |
| [5] | Generic | NN minimizing physics + data loss | - | Struggles with high-frequency components; local optimum |
| [6, 7] | Operator | Learn mapping in Fourier / function space | + | Problem-specific, may require large networks; local optimum |
| [8, 9] | Multiscale | Network architecture or training strategy | ++ | Problem-specific, not robust; local optimum |
| [10, 11, 12] | General | Adaptive resampling | ++ | Computationally expensive, no convergence guarantees; local optimum |
| IFeF-PINN (this work) | Generic | Iterative training with extended basis via Fourier features | +++ | Not adapted to resampling, high memory footprint; Global optimum (for linear PDEs) |
In this paper, we propose Iterative PINNs with Fourier-Enhanced Features (IFeF-PINN), a novel iterative two-stage training algorithm that mitigates the spectral bias of PINNs in high-frequency problems while maintaining accurate approximation on standard benchmark PDEs. Our contributions are threefold: (i) we introduce a flexible building block that augments existing PINNs architectures with improved high-frequency estimation and demonstrate its universal approximation capabilities; (ii) we propose an iterative two-stage training algorithm and prove its convergence properties; and (iii) we validate the approach through extensive simulations on benchmark problems, showing substantial improvements over existing methods.
PINNs is a deep learning framework that integrates PDEs into the neural network training via the loss function, enabling data-driven learning with physical constraints [5, 36].
Generally, for \( n > 0\) , let \( \Omega \subset \mathbb{R}^n\) be a bounded domain and \( \mathcal W\) an appropriate Sobolev space of functions from \( \Omega\) to \( \mathbb{R}\) , we consider linear PDEs of the form
(1)
where \( u \in \mathcal W\) is the solution, \( \mathfrak{F}:\mathcal W \to \mathcal{L}^2(\mathbb{R}^n, \mathbb{R})\) is the linear differential operator, \( f \in \mathcal{L}^2(\Omega, \mathbb{R})\) is the source term, \( \mathfrak{B}:\mathcal W \to \mathcal{Y}(\Gamma)\) is the linear boundary/initial operator, \( g \in \mathcal{Y}(\Gamma)\) specifies the boundary/initial conditions, where \( \mathcal{Y}(\Gamma)\) denotes the appropriate trace space. We assume that this problem is well-posed and therefore has a unique solution in \( \mathcal W\) .
The objective of PINNs is to approximate the solution \( u\) with a feedforward neural network \( u_\omega\) , where \( \omega\) denotes the network parameters. [13] and [14] analyzed consistency in weak formulations under suitable assumptions, motivating the following continuum loss:
(2)
with \( \lambda > 0\) where, for \( A\) a bounded set, \( |A|\) denotes its measure. However, this version is not numerically tractable and, in practice, we use the Monte Carlo approximation
(3)
where \( \{x_u^i\}_{i=1,\dots,N_u}\) and \( \{x_f^i\}_{i=1,\dots,N_f}\) are uniformly sampled on \( \Gamma\) and \( \Omega\) , respectively. Finally, the optimal parameters are found as \( \omega^* = \arg\min_{\omega} \hat{\mathfrak{L}}_{\lambda}(u_\omega)\) .
In this work, we use random Fourier features (RFFs) introduced by [1] to include high-frequency terms. Grounded on Bochner’s theorem, RFF provides a way to explicitly construct a feature map that approximates a stationary kernel, enabling the scaling of kernel methods to large datasets.
RFF has been used by [15] to tackle spectral bias. The novelty is to extend the input to the neural network using the RFF mapping
(4)
where the entries of the matrix \( \mathbf{B}_D \in \mathbb{R}^{D \times n}\) are sampled from a given symmetric distribution. [16] adapted this method to PINNs by using \( u_\omega\) from the previous section with \( 2D\) inputs, so that the neural network becomes \( u_\omega \circ \gamma_D\) . This new architecture can learn to approximate the solution from the enriched inputs.
We leverage the PINNs and RFFs in a novel way. Note first that the PINN training process couples two roles within a single nonconvex objective: (i) hidden layers \( h_\omega\) learn a nonlinear feature basis, and (ii) a linear regression operator \( P_\theta: h_\omega \mapsto h_\omega^{\top} \theta\) finds the optimal projection coefficients \( \theta\) of the approximated solution onto the feature basis, thereby minimizing the loss \( \hat{\mathfrak{L}}_\lambda\) . This coupling leads to PINN pathologies, where gradients from interior residuals can dominate and suppress boundary terms, and spectral bias drives low-frequency learning first, leaving oscillatory components underfit and slowing convergence on high-frequency modes [16, 37].
To overcome this coupling issue, we approximate the solution \( u\) to the PDEs in (1) as a linear combination of basis functions. We thus consider the two problems in isolation: basis generation, which we will denote as the upper-level problem, and linear regression on the basis functions, which we will refer to as the lower-level problem.
The initial step for the basis generation is to follow the classical PINN methodology and train a standard feed-forward neural network with parameters \( (\omega, W)\) , denoted by
to minimize \( \omega,W \mapsto \hat{\mathfrak{L}}_{\lambda}(\tilde{u}_{\omega,W})\) . This is typically accomplished using a gradient-descent numerical scheme, such as ADAM [38], or a more complex second-order solver, like L-BFGS [39]. Then, the neural network \( h_\omega: \mathbb{R}^n \to \mathbb{R}^p\) generates a basis \( h_\omega \in \mathcal{C}(\mathbb{R}, \mathbb{R}^p)\) of the latent space while \( W\) is the projection operator. This initial step serves as a warm-up for the upper-level problem. Note that \( \tilde{u}_{\omega,W}\) most likely contains only the low-frequency components of the original solution. Therefore, the surrogate \( \tilde{u}_{\omega,W}\) might be an aliased or steady-state solution of the PDE, and the fit at the boundary points might be poor.
In our approach, the strategy is to apply an RFF mapping to the last hidden layer features \( h_\omega\) . This upgrades the implicit linear kernel on \( h_{\omega}\) to a stationary kernel, such as a radial basis function, in the adaptive feature space. Since \( \tilde{u}\) is probably a distorted version of the real solution \( u\) , the RFF extension might bring higher frequency signals that mitigate the spectral bias.
Concretely, we define \( \psi_D(x) = \gamma_D\left(h_{\omega}(x)\right) = \frac{1}{\sqrt{D}} \begin{bmatrix} \cos(2\pi \mathbf{B}_D h_\omega(x)) \\ \sin(2\pi \mathbf{B}_D h_\omega(x)) \end{bmatrix}\) where \( \mathbf{B}_D \in \mathbb{R}^{D\times p}\) is a constant matrix with entries sampled i.i.d. from \( \mathcal{N}(0,\sigma^2)\) .
The linear output layer over \( h_{\omega}\) induces a dot-product kernel in feature space, which can limit expressivity and exacerbate spectral bias toward low frequencies. Applying RFF to \( h_{\omega}\) equips the adaptive features with a stationary kernel without adding trainable parameters, injecting high-frequency components via random projections. Formally speaking, an approximate solution to the PDE in (1) with \( \theta\in\mathbb{R}^{2D}\) becomes
(5)
As we show in Appendix B, since the operators \( \mathfrak{F}\) and \( \mathfrak{B}\) are linear, the loss function \( \hat{\mathfrak{L}}_{\lambda}(u_{\omega, \theta})\) is quadratic in \( \theta\) :
(6)
where \( Q\) and \( c\) collect boundary and interior residual terms.
Proposition 1
Assume that \( \lambda > 0\) and that the rank condition (3) from Appendix B.1 is verified. Then \( Q\) is positive definite and there is a unique solution to \( \rm{arg\,min}_\theta \mathfrak{L}_{\textrm{\textup{lower}}}(\theta | \omega) = - Q^{-1}(\omega) c(\omega)\) .
The proof is given in Appendix B.1. The application of the RFF mapping in the last hidden layer enables the generation of an arbitrary number of basis functions \( \psi_D\) independently of the network’s width on which we can leverage quadratic programming to get the unique optimal solution. This would otherwise not be possible because constrained by the basis dimension.
Combining the results from the two previous subsections, we get the following formulation that decouples basis learning (upper-level) from linear regression (lower-level):
(7)
The classical bi-level optimization framework [40] proposes the following three-step numerical method: (i) sample \( w_0\) , \( \theta_0\) randomly; (ii) solve the upper-level problem \( \omega^+ = \omega^\star(\theta_0)\) ; (iii) solve the lower-level problem \( \theta^+ = \theta^{\star}(\omega^+)\) . The final parameters \( (\omega^+, \theta^+)\) are the optimal solutions to the bi-level optimization.
However, this approach does not consider a warm start and is not particularly adapted to a learning problem. For better approximation capabilities, we propose an iterative scheme. We warm start using a vanilla PINN pre-training to get an initial value \( \omega_0\) for the weights of the basis generator. Then we compute \( \theta_{i+1} = \theta^*(w_i)\) before performing a one-step gradient-descent on \( \omega_i\) to minimize \( \mathfrak{L}_{\textrm{\textup{upper}}}(\omega_i | \theta_{i+1})\) to get \( \omega_{i+1}\) . This leads to Algorithm 1. The convergence of this numerical scheme and the approximation capabilities of the new neural network architecture are studied in the next section.
Remark 1 (Relation to deep kernel learning)
In deep kernel learning, we use a neural network to learn a nonlinear feature transformation, and a Gaussian process is defined over the resulting feature space using a traditional kernel function. This enables learning a flexible, data-driven kernel that combines the expressiveness of deep learning with the uncertainty estimation of Gaussian processes [41]. However, to the best of the authors’ knowledge, learning a Gaussian process with a nonlinear PDE prior is not yet possible [42]; we propose a solution in this case.
Remark 2 (On the warm start)
Pre-training a standard PINN for several hundred epochs provides initial network parameters for basis generation. This is necessary for homogeneous PDEs to prevent convergence to \( u \equiv 0\) , since standard initialization yields near-zero outputs that trivially minimize the lower-level problem. For non-homogeneous PDEs, the source term prevents this issue.
For nonlinear PDEs, the physics residual term \( \frac{\lambda}{N_f} \sum_{i=1}^{N_f} \|\mathfrak{F}[u_{\omega,\theta}](x_f^i)\|^2\) becomes nonlinear in \( \theta\) , making the lower-level problem \( \mathfrak{L}_{\textrm{\textup{lower}}}(\theta | \omega)\) non-convex and lacking a closed-form solution. We therefore replace the exact solution in Proposition 1 with gradient descent to find an approximate local minimizer when the Second-Order Sufficient Condition (SOSC) holds, i.e., when the gradient vanishes and the Hessian is positive definite. The complete update is given in Algorithm 2. For computational efficiency, we update \( \theta\) to a local minimizer every \( N_{\text{lower}}\) epochs. For initialization, we can either warm start only the network parameters \( \omega\) via standard PINN pre-training as in the linear case, or initialize both \( \omega\) and \( \theta\) jointly via end-to-end training as discussed in Section 6.4.1.
We establish convergence by showing that the optimal lower-level solution \( \theta^\star(\omega)\) is Lipschitz continuous with respect to the upper-level parameters \( \omega\) , which ensures a well-defined Lipschitz hypergradient for gradient descent on the upper level.
Proposition 2 (Lipschitz Continuity of the Solution Map)
Let the lower-level problem be a strongly convex QP problem parameterized by \( \omega\) . Assume that the mappings \( \omega \mapsto Q(\omega)\) and \( \omega \mapsto c(\omega)\) are locally Lipschitz continuous, and that the smallest eigenvalue of \( Q(\omega)\) is uniformly bounded below by \( \mu_Q > 0\) on any compact set of \( \omega\) . Then, the optimal solution map \( \theta^\star(\omega)\) is also locally Lipschitz continuous with respect to \( \omega\) .
The detailed proof is provided in Appendix C.2.This also holds in the nonlinear PDE cases, when the SOSC is satisfied, the local minimizer \( \theta^{\star}(\omega)\) retains Lipschitz continuity and differentiability in a neighborhood of \( \omega\) . Consequently, the hypergradient is L-smooth, which we leverage in our convergence analysis.
Theorem 1 (Convergence to a stationary point)
Assume that 1) the functions \( Q\) and \( c\) are continuously differentiable with respect to \( \omega\) , the upper-level loss \( \mathfrak{L}_{\textrm{\textup{upper}}}\) is continuously differentiable with respect to both \( \theta\) and \( \omega\) ; 2) The lower-level problem is \( \mu\) -strongly convex; 3) the objective function \( \mathfrak{L}_{\textrm{\textup{upper}}}(\cdot | \theta)\) is bounded below and its hypergradient is L-smooth.
Then, the sequence of iterates \( \{\omega_k\}_{k=0}^{\infty}\) generated by the gradient descent algorithm with a constant step size \( \eta \in (0, 2/L)\) converges to a stationary point of \( \mathfrak{L}_{\textrm{\textup{upper}}}(\cdot | \theta)\) .
The assumptions made are classical in learning problems and are a direct consequence of the structure of the bi-level framework. A formula for the hypergradient is derived via the Implicit Function Theorem in Appendix C.1, showing it as a composition of smooth functions. Its Lipschitz continuity is then guaranteed by the Lipschitz continuity of the solution map \( \theta^\star\) established in Proposition 2.
To analyze the expressiveness of the RFF-augmented features, we show that the hypothesis class is not less expressive than linear readouts over the last hidden layer features. The necessary function spaces for this analysis are defined with comprehensive foundational definitions and proofs in Appendix D.
Definition 1
The feature space \( \mathcal{H}_{f}\) and the composite RFF function space \( \mathcal{H}_{\mathrm{RFF}}\) are defined as:
(8)
where \( \psi_D = \gamma_D \circ h_{\omega}\) denotes the vector of composite RFF features defined in Equation 4.
We will show that \( \overline{\mathcal{H}_{\mathrm{RFF}}}\) strictly contains \( \mathcal{H}_{f}\) , and thus defines a more expressive hypothesis class. The argument constructs a bridge between the two spaces using a reproducing kernel Hilbert space.
Theorem 2
Let \( f\) be any target function in \( \mathcal{L}^2(\Omega,\mathbb{R})\) . The projection error (see Definition 3 in D.1) achievable by the composite RFF Function Space \( \mathcal{H}_{\mathrm{RFF}}\) is no greater than the projection error achieved by the original Feature Space \( \mathcal{H}_{f}\) when the number of RFF features \( D\) goes to infinity.
The proof is given in Appendix D.2. This result establishes a powerful theoretical assurance that RFF embedding offers better approximation capabilities. Theorem 2 yields the universal approximation corollary presented below, the proof of which is given in Appendix D.2.1
Corollary 1 (Universal approximation)
The projection error of the solution \( u\) to equation 1 onto \( \mathcal{H}_{\mathrm{RFF}}\) can be made as small as desired, provided enough neurons and RFF features \( D\) .
These methods adapt the physics weight \( \lambda\) in equation 3 during training. For instance, [29] dynamically updates \( \lambda\) to balance the gradients of data and physics losses, while the NTK framework [43, 30] enforces equal decay rates, theoretically recovering high-frequency solutions. Primal–dual methods [44, 18] instead compute \( \lambda\) from the PDE residual. Although simple to implement, these approaches offer weak convergence guarantees and remain tied to single-level optimization. Nonetheless, they are complementary to our framework and could be integrated as weight-balancing strategies within the upper-level problem.
A second line of work reduces the gap between the true loss \( \mathfrak{L}_{\lambda}\) and its sampled counterpart \( \hat{\mathfrak{L}}_{\lambda}\) . Examples include NTK-informed sampling [10], adversarial sampling [11], and reinforcement learning [12]. While effective in reducing approximation error, these methods do not explicitly target spectral bias, which is the focus of our proposed method.
Finally, new architectures and training schedules aim to better capture high-frequency components. Attention mechanisms [14], multi-stage networks [45, 31, 8, 32, 33, 34], or finite-basis approximation [46] have shown improved multi-scale resolution. However, their complexity often makes training slow and delicate, and they still lack dedicated optimization algorithms.
Objective.
In this section, we describe comprehensive experiments that establish four main advantages of IFeF-PINN. First, improved approximation over PINNs and SOTA variants on low-frequency PDEs. Second, higher accuracy on high-frequency and multi-scale linear PDEs, where standard PINNs typically show failure modes. Third, our framework exhibits strong generalization capabilities when integrated with advanced PINN variants. Finally, a spectrum analysis experiment demonstrates that our proposed method improves the network fitting accuracy for high-frequency signals.
Experiment setup.
We will use four PDEs, namely the 2D Helmholtz equation (low and high frequency), 1D convection equation (low and high frequency), 1D convection-diffusion equation, and the viscous Burgers’ equation. The baseline methods are Vanilla PINNs, NTK [37], PINNsformer [9], and Physics-Informed Gaussians (PIG) [23], keeping their default settings for a fair comparison. Additional experimental comparisons with Multiple Fourier Features (MFF) [16] are provided in Appendix G.1. For simplicity, we set \( \lambda = 0.01\) for the Vanilla PINNs in Equation 3. Detailed hyperparameters for our proposed methods are in Appendix E. For low-frequency 2D Helmholtz and low-frequency 1D convection equations, we adopt the uniform sampling strategy settings of [9]. For the viscous Burgers’ equation, we follow the setup of [17]. For the high-frequency Helmholtz equation, we employ Latin hypercube sampling [47] to improve domain coverage. We evaluate two variants of our framework: IFeF (Vanilla training) and IFeF-PD (primal-dual weight-balancing proposed by [18]). PDE definitions, datasets, and network architectures are provided in Appendix F. We measure the relative \( L^2\) -error after convergence, defined as \( \frac{\lVert u_\text{pred} - u_\text{real} \rVert_2}{\lVert u_\text{real} \rVert_2}\) . Each method is run five times with independent random seeds, with the best predictions for each approach. All models are implemented in PyTorch and trained on a single NVIDIA GeForce RTX 4090 GPU. The code for all benchmarks is available at https://github.com/CyberAltrumi/IFeF-PINN . Computational aspects are evaluated in Appendix G.2.
We begin with three popular low-frequency benchmark PDEs: 2D Helmholtz equation, 1D convection equation, and the viscous Burgers’ equation. Figure 2 summarizes relative \( L^2\) -errors across baseline methods; box plots display medians and IQRs, and red diamonds denote means. Additional prediction and absolute error maps are provided in Appendix G.
Across all these problems, our proposed method attains the lowest median errors with reduced variability. On Helmholtz, IFeF-PD achieves the best relative \( L^2\) error of \( 3.5 \times10^{-5}\) . On convection, IFeF achieves the best error of \( 4.3 \times10^{-5}\) . Even in the nonlinear case of Burgers’ equation, IFeF obtains the lowest median error. In addition, we conducted an ablation study where we discarded the RFF basis extension but performed a similar iterative two-step optimization process, obtaining results that were similar but slightly better than those of the Vanilla PINN (\( 1.4923\times10^{-2}\) relative \( L^2\) -error) on the low-frequency convection problem. Figure 3 presents the predictions for the low-frequency 2D Helmholtz case. On a logarithmic scale, the gap between IFeF-PINN and other methods is consistent with the box plot summaries. These results highlight the strong approximation capability of the proposed method, especially for linear equations, underscoring its robustness for solving diverse PDEs.
To evaluate challenging cases of spectral bias, we study the failure modes of PINNs on high-frequency and multi-scale PDEs, where vanilla PINNs typically struggle to learn rapidly oscillatory or widely separated frequency components. In particular, we study the high-frequency Helmholtz and convection equations, as well as a multi-scale convection-diffusion equation. Table 2 presents the mean and standard deviation of the relative \( L^2\) -errors over baselines applied to these problems. Additional prediction and absolute error maps are provided in Appendix G.
| Baseline |
Helmholtz (\( a_1=a_2=100\) ) |
Convection (\( \beta=200\) ) |
Convection-Diffusion (\( k_\text{low} = 4\pi\) , \( k_\text{high} = 60\pi\) ) |
| Vanilla | - | 0.9024 (0.0239) | 0.0501 (0.0030) |
| PINNsformer | - | 1.2278 (0.2010) | 0.0525 (0.0001) |
| NTK | - | 0.8685 (0.0318) | 0.0526 (0.0001) |
| PIG | 1.6884 (0.2775) | 1.0009 (0.0003) | 0.0560 (0.0010) |
| IFeF | 0.0156 (0.0055) | 0.0027 (0.0010) | 0.0009 (0.0003) |
| IFeF-PD | 0.0092 (0.0031) | 0.0025 (0.0005) | 0.0010 (0.0002) |
Figure 4 depicts the high-frequency Helmholtz solutions and the corresponding log-scale absolute errors. In the considered scenarios, all baselines exhibit clear failure modes. We also conducted a similar ablation study as described in the previous section, removing the RFF basis extension, and the training did not converge for both the high-frequency Helmholtz and convection equations. In contrast, the proposed IFeF-PINN method effectively mitigates the spectral bias of neural networks. Moreover, when combined with the primal-dual method to adaptively balance the physics-based loss, our method achieves accurate solutions even under very high frequencies, which illustrates the flexibility of the proposed framework in incorporating advanced learning methods. A similar result holds for the multi-scale convection-diffusion equation in Figure 4 in Appendix G, clearly showing that only IFeF-PINN succeeds in learning both low and high frequency components of the solution. In contrast, all baselines suffer from the spectral bias failure mode, where models prioritize learning low-frequency components and tend to ignore the high-frequency components.
To quantitatively demonstrate our method’s ability to mitigate spectral bias, we employ the fast Fourier transform to analyze the frequency-domain distribution of the network’s prediction. We conduct a spectrum analysis similar to [19], designing a challenging multi-scale convection equation with an initial condition composed of a superposition of ten sinusoids of different frequencies and unit amplitude. More details of the setup are in Appendix F.2.
During analysis, we compare the performance of Vanilla PINNs against models where the basis is extended with a varying number of random Fourier features and carry out a one-step solution of the lower-level objective in Equation 6. No additional training is performed for the upper-level problem.
We compute the magnitude of their discrete Fourier transform at frequencies \( k_i\) , denoted as \( |\tilde{f}_{k_i}|\) . Figure 5 presents the average normalized magnitudes \( \frac{|\tilde{f}{k_i}|}{A_i}\) over five independent runs. The results clearly illustrate the spectral bias of Vanilla PINNs, which struggle to accurately capture high-frequency components. In contrast, by extending the network’s basis through RFF, the network can fit high-frequency signals much more effectively, even without the subsequent bi-level training procedure of IFeF-PINN. Furthermore, we observe that increasing the number of random features enhances the network’s ability to approximate high-frequency components, confirming the effectiveness of our basis extension strategy.
In this section, we present experiments to demonstrate the effects of two-stage training in IFeF-PINN and the number of Fourier-enhanced features and the Gaussian sampling parameter \( \sigma\) .
To validate the necessity of two-stage training in IFeF-PINN, we conduct an end-to-end ablation where both network parameters \( \omega\) and coefficients \( \theta\) are jointly optimized. We keep the approximation in Equation 5 but incorporate \( \theta\) as learnable parameters alongside \( \omega\) , and directly minimize \( \hat{\mathfrak{L}}_{\lambda}(u_{\omega, \theta})\) without the two-stage training. Unlike IFeF-PINN where \( \theta\) is always optimal under current features \( \psi_D(x)\) , \( \theta\) is randomly initialized and updated simultaneously with \( \omega\) , losing the optimality guarantee. Table 3 presents the results for low- and high-frequency Helmholtz and Burgers’ equations. This ablation validates the necessity of two-stage training, as IFeF-PINN significantly outperforms end-to-end training in linear PDEs through guaranteed lower-level optimality of \( \theta\) , while showing modest improvements in nonlinear PDEs where the lower-level becomes non-convex.
| Ablation |
Helmholtz (\( a_1=1, a_2=4\) ) |
Helmholtz (\( a_1=a_2=100\) ) |
Viscous Burgers (\( \nu = \frac{0.01}{\pi} \) ) |
| End-to-End | \( 0.0088 (0.0006)\) | - | \( 0.0049 (0.0009)\) |
| IFeF | \( 0.0003(0.0003) \) | \( 0.0156(0.0055) \) | \( 0.0024(0.0011) \) |
| IFeF-PD | \( 0.00005(0.00002) \) | \( 0.0092(0.0031) \) | \( 0.0033(0.0004) \) |
We conduct an ablation on two key hyperparameters in IFeF-PINN: the number of Fourier features \( D\) and the Gaussian sampling parameter \( \sigma\) . We evaluate their impact on performance using the low- and high-frequency Helmholtz equations, with results shown in Table 4. The ablation shows that too few features reduce expressivity while excessive features cause overfitting and may break the rank condition discussed in Appendix B.1. For \( \sigma\) , larger values are essential for high-frequency problems discussed in [15, 16]. Low-frequency problems are robust to both hyperparameters, while high-frequency problems are sensitive, especially to \( \sigma\) .
| Helmholtz (\( a_1=1, a_2=4\) ) | |||||
| \( D\) (\( \sigma=1\) ) | 100 | 400 | 800 | 1200 | 3000 |
| Rel. \( L^2\) error | \( 5.5\times 10^{-4}\) | \( \mathbf{2.1\times 10^{-4}}\) | \( 3.2\times 10^{-4}\) | \( 5.7\times 10^{-4}\) | \( 4.5\times 10^{-4}\) |
| \( \sigma\) (\( D=800\) ) | 2 | 1 | 0.5 | 0.2 | 0.1 |
| Rel. \( L^2\) error | \( 4.0\times 10^{-4}\) | \( \mathbf{3.2\times 10^{-4}}\) | \( 5.5\times 10^{-4}\) | \( 3.3\times 10^{-4}\) | \( 1.5\times 10^{-3}\) |
| Helmholtz (\( a_1=a_2=100\) ) | |||||
| \( D\) (\( \sigma=1\) ) | 800 | 1200 | 1600 | 2400 | 3000 |
| Rel. \( L^2\) error | \( 7.11\times 10^{-2}\) | \( 5.40\times 10^{-2}\) | \( 3.09\times 10^{-2}\) | \( \mathbf{1.56\times 10^{-2}}\) | \( 2.22\times 10^{-2}\) |
| \( \sigma\) (\( D=2400\) ) | 20 | 10 | 5 | 1 | 0.2 |
| Rel. \( L^2\) error | \( 4.6\times 10^{-3}\) | \( \mathbf{3.0\times 10^{-3}}\) | \( 5.7\times 10^{-3}\) | \( 1.56\times 10^{-2}\) | \( 1.05\times 10^{-1}\) |
In this paper, we introduce IFeF-PINN, a novel iterative training method for Fourier-enhanced Features PINNs. By augmenting the network with random Fourier features mapping as a basis extension with the bi-level problem, IFeF-PINN mitigates the spectral bias problem of standard PINNs when capturing the high-frequency and multi-scale components during training. Experimental results demonstrate that IFeF-PINN consistently outperforms advanced baselines across various scenarios, including popular low-frequency benchmarks and handling high-frequency and multi-scale PDEs. Furthermore, it has strong flexibility when integrating with different training strategies for PINNs.
Despite its strengths, IFeF-PINN faces challenges when extended to nonlinear PDEs. For nonlinear PDEs, the lower-level problem becomes nonconvex, precluding a one-step solve and requiring iterative two-stage gradient descent updates that can stall in local minima. Advancing principled bi-level optimization techniques to better handle the nonlinear lower-level problem remains a promising direction for future work.
This work was partially supported by the Wallenberg AI, Autonomous Systems and Software Program (WASP), funded by the Knut and Alice Wallenberg Foundation. It was further supported by the Swedish Research Council through the Distinguished Professor Grant 2017-01078, as well as by the Wallenberg Scholar Grant from the Knut and Alice Wallenberg Foundation. The authors also gratefully acknowledge the support of Digital Futures.
We organize this supplementary document as follows:
Let \( X_u = (x_u^1, \dots x_u^{N_u}) \in \mathbb{R}^{N_u \times n}\) be boundary collocation points and \( X_f = (x_f^1, \dots, x_f^{N_f}) \in \mathbb{R}^{N_f \times n}\) be interior collocation points. We define
Note that the linearity of the \( \mathfrak{B}\) and \( \mathfrak{F}\) operators leads to \( \mathfrak{B}[u_{\omega,\theta}](X_u) = B_u \theta\) and \( \mathfrak{F}[u_{\omega,\theta}](X_f) = R_f \theta\) . Consequently, using the standard PIML loss with boundary and PDE residual terms, we get:
(9)
The loss expands to the quadratic form
(10)
Identifying
leads to \( \mathfrak{L}_{\textrm{\textup{lower}}}(\theta | \omega) = \tfrac{1}{2}\theta^\top Q(\omega) \theta + c(\omega)^\top \theta + b,\) where \( b\) is a constant term and \( \lambda_{\mathrm{LL}}\) is the physics weight used in the lower-level problem.
The positive semi-definiteness of \( Q(\omega)\) follows from the factorization \( Q(\omega) = M(\omega)^\top M(\omega) \in \mathbb{R}^{2D\times 2D}\) , with the stacked design matrices \( M(\omega)\) as follows:
where \( \lambda > 0\) is always ensured. Then we have \( \operatorname{rank}(Q(\omega)) = \operatorname{rank}(M(\omega))\) . Hence, \( Q(\omega)\) is strictly positive definite if and only if \( M(\omega)\) has full column rank, i.e.,
(11)
The loss \( \mathfrak{L}_{\textrm{\textup{lower}}}(\theta | \omega)\) becomes then strongly convex, and its minimization has a unique solution \( \theta^\star = -Q^{-1}c\) .
The rank condition in equation 11 imposes a fundamental constraint: for the stacked design matrix \( M \in \mathbb{R}^{(N_u + N_f) \times 2D}\) to have full column rank \( 2D\) , it is necessary that the number of rows is at least as large as the number of columns. This leads to the critical requirement on the number of sampling points: \( N_u + N_f \geq 2D\) .
When this condition is violated (i.e., \( N_u + N_f < 2D\) ), the system becomes underdetermined. This directly causes the matrix \( Q({\omega})\) to be rank-deficient. Consequently, the lower-level problem becomes ill-posed, lacking a unique solution as \( Q^{-1}\) does not exist. This might lead to an aliased solution (especially true when we add a Tikhonov regularization).
A more subtle cause of rank deficiency occurs even when \( N_u + N_f \geq 2D\) . This happens if the collocation points provide redundant information, failing to create \( 2D\) linearly independent constraints. Such a situation can arise from geometrically poor sampling (e.g., points lying on nodal lines of the basis functions) or from inherent redundancies in the randomly generated RFF basis itself (e.g., two different random vectors being nearly parallel). In these scenarios, although the design matrix \( M\) has enough rows, its columns remain linearly dependent, leading to a singular or, more commonly, a numerically ill-conditioned matrix \( Q\) . However, if \( D\) is large, a solution might be to just discard these redundancies while still keeping the same feature space \( \mathcal{H}_{RFF}\) (see equation 8 of the main paper). To resolve this, we employ Tikhonov regularization, modifying the matrix to \( Q_{\mathrm{reg}}({\omega}) = Q({\omega}) + \gamma {I}\) , where \( \gamma > 0\) is a small regularization parameter. This ensures \( Q_{\mathrm{reg}}\) is always positive definite and invertible, since for any non-zero \( \theta\) , the quadratic form \( \theta^\top Q_{\mathrm{reg}}\theta = \theta^\top Q\theta + \gamma\|\theta\|^2\) is strictly positive. The lower-level problem thus regains a unique, stable solution
(12)
This analysis reveals a fundamental trade-off: while increasing \( D\) enhances representational power, it demands proportionally more sampling points to maintain a well-posed system. When the sampling budget is limited, Tikhonov regularization provides a principled remedy to ensure algorithmic stability, at the cost of introducing a slight bias to the solution.
The hypergradient \( \nabla_{\omega}\mathfrak{L}_{\textrm{\textup{upper}}}(\omega)\) is computed using the chain rule, where the Implicit Function Theorem (IFT) provides the Jacobian of the lower-level solution map \( \theta^\star(\omega)\) .
The lower-level optimality condition is \( F(\theta^\star, \omega) := Q(\omega)\theta^\star + c(\omega) = 0\) . Taking the total derivative with respect to \( \omega\) yields
Solving for the Jacobian \( \frac{\partial \theta^\star}{\partial \omega^\top}\) gives
The full hypergradient is then obtained by the chain rule
(13)
Substituting the expression for the Jacobian, we get
This provides a computable formula for the gradient used in the upper-level optimization.
We first state the key properties required for our convergence analysis.
Assumption 1 (Smoothness and Boundedness Properties)
The bi-level optimization problem satisfies the following regularity conditions:
Assumption 2 (L-Smoothness of the Hypergradient)
The upper-level objective function \( \mathfrak{L}_{\textrm{\textup{upper}}}(\omega)\) is L-smooth, a standard assumption in gradient-based optimization analysis. This means its gradient, the hypergradient \( \nabla_{\omega} \mathfrak{L}_{\textrm{\textup{upper}}}(\omega)\) , is Lipschitz continuous with constant \( L > 0\) :
(14)
These assumptions trivially hold when neural network activation functions are Lipschitz continuous and the loss function is smooth, which is satisfied by our choice of \( \tanh\) activations with MSE losses.
Proof
Since \( \mathfrak{L}_{\textrm{\textup{lower}}}\) is strongly convex and differentiable with respect to \( \theta\) , the unique optimal solution \( \theta^\star(\omega)\) is found by setting the gradient to zero:
(15)
This gives the closed-form solution showed in Proposition 1:
(16)
Then consider two parameter vectors \( \omega_1, \omega_2\) from a compact set \( \mathcal{W}\) . We want to bound the norm of the difference \( \|\theta^\star(\omega_1) - \theta^\star(\omega_2)\|\) . This follows the structure from your provided image:
(17)
We use the matrix identity \( A^{-1} - B^{-1} = A^{-1}(B-A)B^{-1}\) to bound the second term:
(18)
Substituting Equation 18 back into Equation 17:
(19)
(20)
By Assumption 1, on the compact set \( \mathcal{W}\) , there exist constants \( L_Q, L_c > 0\) such that \( \left\lVert {Q}(\omega_1) - {Q}(\omega_2)\right\rVert \le L_Q \left\lVert \omega_1 - \omega_2\right\rVert \) and \( \left\lVert {c}(\omega_1) - {c}(\omega_2)\right\rVert \le L_c \left\lVert \omega_1 - \omega_2\right\rVert \) . Furthermore, due to strong convexity, there is a \( \mu_Q > 0\) such that \( \left\lVert {Q}(\omega)^{-1}\right\rVert \le 1/\mu_Q\) for all \( \omega \in \mathcal{W}\) . Finally, since \( {c}(\omega)\) is continuous on a compact set, its norm is bounded by a constant \( C_{\max} = \sup_{\omega \in \mathcal{W}} \left\lVert {c}(\omega)\right\rVert \) .
Substituting these bounds into Equation 19:
Defining the constant \( K = \frac{L_c}{\mu_Q} + \frac{ L_Q C_{\max}}{\mu_Q^2}\) completes the proof.
The proof relies on the following standard lemma for L-smooth functions.
Lemma 1 (Sufficient Decrease)
If \( \mathfrak{L}_{\textrm{\textup{upper}}}(\omega)\) is L-smooth with constant \( L\) and the step size \( \eta \in (0, 2/L)\) , the gradient descent update rule ensures a sufficient decrease in the objective function:
Proof
From the L-smoothness property (descent lemma) under Assumption 2, we have:
Substituting the gradient descent update \( \omega_{k+1} - \omega_k = -\eta \nabla_{\omega} \mathfrak{L}_{\textrm{\textup{upper}}}(\omega_k)\) :
Proof (Proof of Theorem 1)
Let \( \delta = \eta(1 - L\eta/2)\) . Since \( \eta \in (0, 2/L)\) , we have \( \delta > 0\) . Rearranging the inequality from Lemma 1 gives:
We now sum this inequality from \( k=0\) to \( T\) to form a telescoping series:
The objective function is bounded below by \( \mathfrak{L}_{\inf} \geq 0\) . Therefore, \( \mathfrak{L}_{\textrm{\textup{upper}}}(\omega_{T+1}) \ge \mathfrak{L}_{\inf}\) . This gives us:
As \( T \to \infty\) , the right-hand side is a finite constant. This implies that the infinite series of squared gradient norms is bounded:
For an infinite series of non-negative terms to converge to a finite value, the terms themselves must converge to zero. Therefore, we must have:
which implies that \( \lim_{k \to \infty} \left\lVert \nabla_{\omega} \mathfrak{L}_{\textrm{\textup{upper}}}(\omega_k)\right\rVert = 0\) . This completes the proof that the algorithm converges to a stationary point.
This appendix provides the foundational definitions and detailed proofs for the projection error analysis presented in Section 4.2.
Definition 2 (Universal Kernel)
A continuous kernel \( k \) defined on a compact metric space \( (\mathcal{X}, d) \) is called a universal kernel if the Reproducing Kernel Hilbert Space (RKHS) \( \mathcal{H}_k \) induced by \( k \) is dense in the space of continuous functions \( C(\mathcal{X}) \) with respect to the uniform norm \( \|\cdot\|_{\infty} \).
Mathematically, this means that for any function \( g \in C(\mathcal{X}) \) and any \( \varepsilon > 0 \), there exists a function \( f \in \mathcal{H}_k \) such that:
An equivalent way to state this is that the closure of \( \mathcal{H}_k \) under the uniform norm is \( C(\mathcal{X}) \):
Definition 3
Let \( f \in \mathcal{L}^2(\Omega, \mathbb{R})\) be a target function. The projection error of \( f\) onto an Hilbert space \( \mathcal{H} \subseteq \mathcal{L}^2(\Omega, \mathbb{R})\) is defined as
(21)
If this infimum is attained by some \( g^* \in \mathcal{H}\) , then \( g^*\) is the projection of \( f\) onto \( \mathcal{H}\) .
Theorem 3 (Composition of Universal Kernels)
If \( k(z, z')\) is a universal kernel on a space \( \mathcal{Z}\) , and the mapping \( h:\mathcal{X} \to \mathcal{Z}\) is continuous and sufficiently expressive (e.g., injective), then the composite kernel \( k_h(x, x') := k(h(x), h(x'))\) is universal on \( \mathcal{X}\) .
Remark 3
The universality of the composite kernel relies on the composition theorem from [20].
Theorem 4 (RFF Approximation)
Let \(k: \mathbb{R}^m \times \mathbb{R}^m \to \mathbb{R}\) be a continuous, translation-invariant, positive definite kernel function, i.e.,
where \(\mu\) is a probability measure with compact support. Define the Random Fourier Feature (RFF) map \( \phi_{\mathrm{RFF}}: \mathcal{X} \to \mathbb{R}^{2D}\) as
(22)
where \( w_i \overset{\mathrm{i.i.d.}}{\sim} \mu\) and \( b_i \overset{\mathrm{i.i.d.}}{\sim} \mathrm{Uniform}[0, 2\pi]\) , with \( \{w_i\}\) independent of \( \{b_i\}\) .
Let \(\mathcal{H}_k\) be the RKHS corresponding to \(k\). For any \(f \in \mathcal{H}_k\) and any probability distribution \(\rho\):
i.e., the function space spanned by RFF features is dense in \(\mathcal{H}_k\).
Remark 4
This result is a direct consequence of the uniform convergence of the RFF kernel approximation to the true kernel [1].
Theorem 5 (RFF Approximation for Composite Kernels)
Let \( k\) be a continuous, translation-invariant, positive definite kernel function on \( \mathbb{R}^m\) and \( h: \mathbb{R}^d \to \mathbb{R}^m\) be a continuous mapping. Let \( \mathcal{H}_{k_h}\) be the RKHS of the composite kernel \( k_h(x, x') = k(h(x), h(x'))\) . The function space spanned by the composite RFF features, \( \mathcal{H}_{\mathrm{RFF}}\) defined in Equation 8 of the main paper, is dense in \( \mathcal{H}_{k_h}\) with respect to the \( L^2(\rho)\) norm when \( D \to \infty\) .
Proof
The proof connects the approximation properties in the base space \(\mathcal{H}_k\) to the composite space \(\mathcal{H}_{k_h}\) through the mapping \(h\). The composite RKHS \(\mathcal{H}_{k_h}\) consists of functions formed by composing elements from the base RKHS \(\mathcal{H}_k\) with the mapping \(h\), that is, \(\mathcal{H}_{k_h} = \{ g(h(\cdot)) \mid g \in \mathcal{H}_k \}\). Thus, for any function \(f \in \mathcal{H}_{k_h}\), there exists a corresponding function \(g \in \mathcal{H}_k\) such that \(f(x) = g(h(x))\) for all \(x \in \mathbb{R}^d\).
To proceed, define a standard Random Fourier Feature (RFF) map for the base kernel \(k(z, z')\) on \(\mathbb{R}^m\):
where \(w_i \overset{\mathrm{i.i.d.}}{\sim} \mu\) and \(b_i \overset{\mathrm{i.i.d.}}{\sim} \mathrm{Uniform}[0, 2\pi]\), with \(\{w_i\}\) independent of \(\{b_i\}\). The classic RFF approximation (Theorem 4) guarantees that the linear span of these features is dense in \(\mathcal{H}_k\) with respect to the \(L^2\) norm under suitable measures. Let \(\rho_h\) be the pushforward probability measure of \(\rho\) under the map \(h\). Then, for the function \(g \in \mathcal{H}_k\),
The goal is to show that \(f(x)\) can be approximated by a function of the form \(\psi(x)^\top \theta\). We analyze the squared \(L^2(\rho)\) norm of the error:
Substituting \(f(x) = g(h(x))\) and \(\psi(x) =\psi_D(h(x))\) yields
By the change of variables (or pushforward measure property), this integral equals
From the density in \(L^2(\rho_h)\), this error can be made arbitrarily small as \(D \to \infty\) by choosing appropriate \(\theta\). Therefore, for any \(f \in \mathcal{H}_{k_h}\),
completing the proof.
Lemma 2 (Expressive Power of the RFF-Enhanced Space)
When the number of the RFF features \( D \to \infty\) , the Feature Space \( \mathcal{H}_{f}\) is a subset of the closure of the Composite RFF Function Space \( \mathcal{H}_{\mathrm{RFF}}\) with respect to the \( \mathcal{L}^2(\Omega,\mathbb{R})\) norm.
Proof
Let \(g_1\) be an arbitrary function in \(\mathcal{H}_{f}\). Since \( g_1\) is a linear combination of the continuous functions in \( h(x)\) , \( g_1\) is a continuous function on a compact set \( \mathcal{X}\) , i.e., \( g_1 \in C(\mathcal{X})\) . By Theorem 3, the composite kernel \( k_h\) is universal. Thus, its RKHS \( \mathcal{H}_{k_h}\) is dense in \( C(\mathcal{X})\) under the uniform norm. This means that for any \( \epsilon > 0\) , there exists a function \( f_{k_h} \in \mathcal{H}_{k_h}\) such that:
For any probability measure \( \rho\) , the \( L^2(\rho)\) norm is bounded by the \( L_\infty\) norm, that is:
Thus we have \( \left\lVert g_1 - f_{k_h}\right\rVert _{L^2(\rho)} \le \left\lVert g_1 - f_{k_h}\right\rVert _{\infty} < \frac{\epsilon}{2}\) .
From Theorem 5, the composite RFF space \( \mathcal{H}_{\mathrm{RFF}}\) is dense in the RKHS \( \mathcal{H}_{k_h}\) under the \( L^2(\rho)\) norm. Therefore, for our function \( f_{k_h}\) from the previous step, there exists a function \( f_{\mathrm{RFF}} \in \mathcal{H}_{\mathrm{RFF}}\) such that:
Combining the results using the triangle inequality for the \( L^2\) norm:
Since for any \( g_1 \in \mathcal{H}_{f}\) and any \( \epsilon > 0\) , we have found an element \( f_{\mathrm{RFF}} \in \mathcal{H}_{\mathrm{RFF}}\) that is \( \epsilon\) -close in the \( L^2\) norm, we have proven that \( \mathcal{H}_{f} \subseteq \overline{\mathcal{H}_{\mathrm{RFF}}}\) .
We have shown in Lemma 2 that the premise \(\mathcal{H}_{f} \subseteq \overline{\mathcal{H}_{\mathrm{RFF}}}\) holds. The proof now proceeds as follows.
For any function \( g \in L^2 \), define its \( L^2 \) approximation error with respect to \( f \) as \( E(g) := \|f - g\|_{L^2} \). The function \( E: L^2 \to \mathbb{R} \) is continuous, which follows from the reverse triangle inequality, establishing that the norm is a continuous function.
Let \( g_1 \) be an arbitrary element in \( \mathcal{H}_{f} \). Since \( \mathcal{H}_{f} \subseteq \overline{\mathcal{H}_{\mathrm{RFF}}}\), by the definition of closure, there exists a sequence of functions \( \{g_2^{(n)}\}_{n=1}^{\infty} \) in \( \mathcal{H}_{\mathrm{RFF}} \) such that \( g_2^{(n)} \to g_1 \) in the \( L^2 \) sense, that is,
Because the error function \( E(\cdot) \) is continuous, we can interchange the function with the limit:
For each \( n \), \( g_2^{(n)} \) is an element of \( \mathcal{H}_{\mathrm{RFF}} \), so its error \( E(g_2^{(n)}) \) must be greater than or equal to the infimum of errors over \( \mathcal{H}_{\mathrm{RFF}} \):
This inequality holds for all \( n \). Taking the limit as \( n \to \infty \) on both sides yields
Substituting the continuity result gives
The inequality holds for any arbitrary \( g_1 \in \mathcal{H}_{f} \). This implies that \( \inf_{g \in \mathcal{H}_{\mathrm{RFF}}} E(g) \) is a lower bound for the set of values \( \{E(g) \mid g \in \mathcal{H}_{f}\} \). By the definition of an infimum (greatest lower bound), this value must be less than or equal to the infimum of the set:
The following inequality holds:
The universal approximation theorem by [21] guarantees that for any \( \varepsilon > 0\) , there exists \( p\) and \( \omega_*, W_*\) such that \( \| u - \tilde{u}_{\omega_*,W} \|^2 \leq \varepsilon / 2\) . Theorem 2 of the main paper ensures that there exists \( D\) and \( \theta_*\) such that \( \| \tilde{u}_{\omega_*,W_*} - u_{\omega_*,\theta_*} \|^2 \leq \varepsilon / 2\) . Consequently, the norm between \( u\) and \( u_{\omega_*,\theta_*}\) is smaller than \( \varepsilon\) and that concludes the proof.
This section details the hyperparameters used by the proposed IFeF-PINN method in each experiment (Table 5). Here, \( D\) denotes the number of Fourier-enhanced features; \( \sigma\) is the standard deviation of the sampled frequencies in random Fourier features (RFF); \( \gamma\) is the regularization parameter defined in Eq. equation 12; and Pre-training indicates a warm-up stage where a vanilla PINN is trained for several thousand epochs to provide a good initialization for basis selection in IFeF-PINN.
As discussed in [16], the selection of \( \sigma\) should align with the target function’s frequency content. However, we fix \( \sigma=1\) across all cases in our experiments and obtain accurate approximations. In future work, a more detailed analysis of \( \sigma\) will be presented.
| Problem | Pre-training | \( D\) | \( \sigma\) | \( \lambda_{\mathrm{LL}}\) | \( \gamma\) |
| 2D Helmholtz (\( a_1=1,a_2=4\) ) | No | 800 | 1 | 1e-2 | 1e-6 |
| 2D Helmholtz (\( a_1=a_2=100\) ) | No | 2400 | 1 | 1e-7 | 1e-4 |
| 1D Convection (\( \beta=50\) ) | Yes | 800 | 1 | 1e-2 | 1e-7 |
| 1D Convection (\( \beta=200\) ) | Yes | 1600 | 1 | 1e-2 | le-4/1e-7 |
| Viscous Burgers (\( \nu = \frac{0.01}{\pi} \) ) | Yes | 800 | 1 | 1e-1 | 0 |
|
Convection-Diffusion (\( k_\text{low} = 4\pi\) , \( k_\text{high} = 60\pi\) ) |
Yes | 800 | 1 | 1e-2 | 1e-7 |
In this section, we provide detailed PDE settings used as our benchmarks.
2D Helmholtz Equation. The Helmholtz equation is an elliptic PDE that commonly arises in the study of wave propagation, acoustics, and electromagnetic fields. We consider the 2D Helmholtz equation as follows:
(23)
corresponding to a source term
The parameters \( a_1\) and \( a_2\) define the frequency of the analytic solution \( u(x,y) = \sin(a_1\pi x)\sin(a_2\pi y) \) . We will investigate the following different frequency cases:
The high-frequency case uses a reduced domain to maintain computational tractability. By the Nyquist-Shannon sampling criterion [22], resolving such high-frequency oscillations over a larger domain would require prohibitively dense collocation. Despite the smaller domain, the configuration covers \( 10\times 10\) wavelengths, capturing the extreme oscillatory behavior.
1D Convection Equation. The Convection equation is a hyperbolic PDE that describes the movement of a substance through fluids. We consider the periodic boundary conditions system as follows:
(24)
The closed-form solution is \( u(x,t) = \sin(x - \beta t)\) . We consider a low-frequency case \( \beta=50\) and a high-frequency case \( \beta=200\) on the same domain.
1D Convection-Diffusion Equation. The Convection–Diffusion equation is a parabolic PDE that models the combined effects of transport by fluid motion and spreading due to diffusion. We consider the multi-scale system with periodic boundary conditions as follows:
(25)
The analytic multi-scale solution is
To set a multi-scale problem consists of both low- and high-frequency components, the parameters are chosen as follows:
Viscous Burgers’ Equation. The Viscous Burgers’ equation is a nonlinear parabolic PDE that models fluid motion by combining convection and diffusion effects. We consider the nonlinear system as follows:
(26)
where \( \nu = \frac{0.01}{\pi}\) .
Given frequencies \( \kappa = \{f_i\}_{i=1}^{i=10} = \{1, 2, 5, 10, 30, 40, 50, 60, 70, 80\}\) , where all amplitudes are chosen as \( A_i = 1\) , we consider the Convection equation in 24 with \( \beta =1\) and initial condition as follows:
The corresponding analytic solution is then given by
The problem domain is defined as \( (t,x) \in [0,1] \times [0,1]\) . Our objective is to evaluate and compare the ability of Vanilla PINNs and Fourier-enhanced Features to capture all frequency components at \( t=0\) .
For the neural network architecture, we employ an 8-layer fully connected network with \( \tanh\) activation functions and 64 neurons per layer. The training data consist of \( 201\) uniformly sampled points along the two spatial boundaries (\( x=0\) and \( x=1\) ) and at the final time (\( t=1\) ). In addition, \( 201 \times 201\) collocation points are uniformly sampled within the interior domain to enforce the physics constraints.
To further design this experiment as an ablation study and demonstrate that the incorporation of Fourier-enhanced Features for basis extension is a necessary component of our proposed IFeF-PINN, we discard the iterative training procedure and retain only the basis extension step. Specifically, we first train the Vanilla PINN for 40,000 epochs using the Adam optimizer with a learning rate of \( 10^{-3}\) . We then extend the basis with varying numbers of Fourier-enhanced Features, \( D_j \in \{400, 800, 1600, 2400, 3200, 4000\}\) , and then solve the lower-level problem defined in Equation 6 of the main paper. Moreover, to ensure a more rigorous analysis, we impose the relation \( B_{D_i} \subset B_{D_j}\) whenever \( D_j > D_i\) , so that the RFF mapping matrices are nested.
This section details the model setup for all baselines. Unless otherwise specified, we use a multi-layer perceptron (MLP) whose depth and width are determined by the experimental setting. For the 2D Helmholtz case (\( a_1=1,\,a_2=4\) ), we follow the network structure in [18]; for the viscous Burgers’ equation, we follow [17]. For PINNsformer [9] and PIG [23], since they both have special network architectures, we adopt the original architecture. All experiments use the \( \tanh\) activation function and the Adam optimizer with a learning rate of \( 10^{-3}\) for the network parameters. For IFeF-PD, we adopt the Primal-Dual weight balancing strategy proposed in [18], and optimize the dynamic physics weight with the same setting for Adam at a learning rate of \( 10^{-4}\) . The network architectures used in each experiment are summarized in Table 6.
| Problem | Hidden layers | Hidden width |
| 2D Helmholtz (\( a_1=1,a_2=4\) ) | 3 | [50,50,20] |
| 2D Helmholtz (\( a_1=a_2=100\) ) | 6 | 64 |
| 1D Convection (\( \beta=50\) ) | 6 | 64 |
| 1D Convection (\( \beta=200\) ) | 6 | 64 |
| Viscous Burgers (\( \nu = \frac{0.01}{\pi} \) ) | 8 | 20 |
|
Convection-Diffusion (\( k_\text{low} = 4\pi\) , \( k_\text{high} = 60\pi\) ) |
6 | 64 |
In this section, we detail the dataset setup for each equation and experiment. For the 1D Convection equation, 2D Helmholtz equation (low-frequency), and Convection-Diffusion equation, we follow the setting and strategy of [9]. For the Viscous Burgers’ Equation, we follow [17]. The detailed settings are summarized in Table 7.
| Problem | Sampling | Boundary points | Physics points |
| 2D Helmholtz (\( a_1=1,a_2=4\) ) | Uniform | \( 1000\) | \( 71\times71\) |
| 2D Helmholtz (\( a_1=a_2=100\) ) | LHS | \( 3000\) | \( 23000\) |
| 1D Convection (\( \beta=50\) ) | Uniform |
\( 303^{\dagger}\) \( 153^{\ddagger}\) |
\( (101\times101)^{\dagger}\) \( (51\times51)^{\ddagger}\) |
| 1D Convection (\( \beta=200\) ) | Uniform | \( 303\) | \( 101\times101\) |
| Viscous Burgers (\( \nu = \frac{0.01}{\pi} \) ) | LHS | \( 100\) | \( 10000\) |
|
Convection-Diffusion (\( k_\text{low} = 4\pi\) , \( k_\text{high} = 60\pi\) ) |
Uniform | \( 404\) | \( 101\times101\) |
In this section, we present the true solutions, model predictions, and absolute error maps for all baselines considered in our numerical experiments. Results for the viscous Burgers’ equation, the low- and high-frequency convection equations, and the multi-scale convection-diffusion equation are shown in separate figures. For clarity, each figure contains three panels: (i) the true solution, (ii) the model prediction, and (iii) the absolute error on a log10 scale.
The case presented in Figure 15 is particularly interesting. We observe that the analytical solution is the sum of the two frequencies (\( 20\) and \( 60\) ). If we zoom in on the error plot, it is possible to see that for all other methods than IFeF, the high-frequency component is not caught. Despite visually similar plots, the error can be quite large. This phenomenon does not appear with IFeF-PINN.
We compare IFeF-PINN with the Multi-scale Fourier Features (MFF) method proposed by [16], which applies multiple RFF mappings derived in Equation 4 of the main paper to the input layer of the neural network to mitigate spectral bias.
Table 8 summarizes the relative \( L^2\) -error and standard deviation across the low-frequency, high-frequency and multi-scale benchmarks. IFeF-PINN consistently outperforms MFF in approximation performance.
| Baseline |
Convection (\( \beta=50\) ) |
Convection (\( \beta=200\) ) |
Convection-Diffusion (\( k_\text{low} = 4\pi\) , \( k_\text{high} = 60\pi\) ) |
| MFF | \( 2.14 \times 10^{-2} (4.42\times 10^{-3})\) | \( 3.50 \times 10^{-1} (2.27\times 10^{-1})\) | \( 5.21 \times 10^{-2} (4.21\times 10^{-4})\) |
| IFeF | \( 7.0 \times 10^{-5} (1.6\times10^{-3}) \) | \( 2.7 \times 10^{-3}(1.0\times10^{-3}) \) | \( 9.0 \times 10^{-4}(3.0\times10^{-4}) \) |
| IFeF-PD | \( 9.0 \times 10^{-5} (5.0\times10^{-4}) \) | \( 2.5 \times 10^{-3}(5.0\times10^{-4}) \) | \( 1.0 \times 10^{-3}(2.0\times10^{-4}) \) |
We provide a comparison of the computational costs for the 5 linear benchmarks among IFeF-PINN, vanilla PINNs, and the SOTA baseline PIG proposed by [23]. Tables 9 and 10 summarize the average training time per epoch, total training time, and memory usage for the three methods. To better analyze the computational cost in IFeF-PINN, we decompose the per-epoch training time into the upper-level and lower-level components.
| IFeF-PINN | Per upper (s) | Per lower (s) | Total time (s) | Memory (GB) |
|
2D Helmholtz (\( a_1=1,a_2=4\) ) |
\( 0.015\) | \( 0.003\) | \( 448\) | \( 1.41\) |
|
2D Helmholtz (\( a_1=a_2=100\) ) |
\( 0.154\) | \( 0.042\) | \( 1960\) | \( 18.5\) |
|
1D Convection (\( \beta=50\) ) |
\( 0.024\) | \( 0.003\) | \( 108\) | \( 4.80\) |
|
1D Convection (\( \beta=200\) ) |
\( 0.051\) | \( 0.010\) | \( 610\) | \( 5.85\) |
|
Convection-Diffusion (\( k_\text{low} = 4\pi\) , \( k_\text{high} = 60\pi\) ) |
\( 0.052\) | \( 0.003\) | \( 110\) | \( 5.26\) |
| Vanilla PINN | PIG | |||||
| Problem |
Per epoch (s) |
Total (s) |
Memory (GB) |
Per epoch (s) |
Total (s) |
Memory (GB) |
| 2D Helmholtz (\( a_1=1,a_2=4\) ) | \( 0.003\) | \( 116\) | \( 0.2\) | \( 0.62\) | \( 248\) | \( 6.8\) |
| 2D Helmholtz (\( a_1=a_2=100\) ) | \( 0.006\) | - | \( 0.55\) | \( 1.70\) | - | \( 20.6\) |
| 1D Convection (\( \beta=50\) ) | \( 0.002\) | \( 18\) | \( 0.10\) | \( 1.13\) | \( 565\) | \( 5.8\) |
| 1D Convection (\( \beta=200\) ) | \( 0.002\) | - | \( 0.10\) | \( 1.63\) | - | \( 14.7\) |
|
Convection-Diffusion (\( k_\text{low} = 4\pi\) , \( k_\text{high} = 60\pi\) ) |
\( 0.003\) | \( 27\) | \( 0.19\) | \( 0.85\) | \( 43\) | \( 9.8\) |
The results demonstrate that vanilla PINN achieves the fastest training but the poorest accuracy. PIG with its default L-BFGS optimizer converges in fewer epochs but incurs the highest memory cost due to the evaluation of numerous learnable Gaussian bases at collocation points. IFeF-PINN demonstrates lower memory usage than PIG while maintaining acceptable training time. Notably, IFeF-PINN’s training is dominated by upper-level basis learning, while the lower-level QP solving is highly efficient.
[1] Ali Rahimi and Benjamin Recht. Random features for large-scale kernel machines. Advances in Neural Information Processing Systems, 20, 2007.
[2] John P Boyd. Chebyshev and Fourier spectral methods. Courier Corporation, 2001.
[3] Arieh Iserles and Syvert P Nørsett. Efficient quadrature of highly oscillatory integrals using derivatives. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 461 (2057): 1383–1399, 2005.
[4] E Weinan and Bjorn Engquist. The heterognous multiscale methods. Communications in Mathematical Sciences, 1 (1): 87–132, 2003.
[5] Maziar Raissi, Paris Perdikaris, and George Em Karniadakis. Physics informed deep learning (part i): Data-driven solutions of nonlinear partial differential equations. arXiv preprint arXiv:1711.10561, 2017.
[6] Zongyi Li, Nikola Borislavov Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. In International Conference on Learning Representations, 2021.
[7] Lu Lu, Pengzhan Jin, Guofei Pang, Zhongqiang Zhang, and George Em Karniadakis. Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators. Nature Machine Intelligence, 3 (3): 218–229, 2021.
[8] Xintao Chai, Wenjun Cao, Jianhui Li, Hang Long, and Xiaodong Sun. Overcoming the spectral bias problem of physics-informed neural networks in solving the frequency-domain acoustic wave equation. IEEE Transactions on Geoscience and Remote Sensing, 2024.
[9] Zhiyuan Zhao, Xueying Ding, and B Aditya Prakash. PINNsFormer: A transformer-based framework for physics-informed neural networks. In The Twelfth International Conference on Learning Representations, 2024.
[10] Gregory Kang Ruey Lau, Apivich Hemachandra, See-Kiong Ng, and Bryan Kian Hsiang Low. PINNACLE: PINN adaptive collocation and experimental points selection. In The Twelfth International Conference on Learning Representations, 2024.
[11] Kejun Tang, Jiayu Zhai, Xiaoliang Wan, and Chao Yang. Adversarial adaptive sampling: Unify PINN and optimal transport for the approximation of PDEs. In International Conference on Learning Representations, 2024.
[12] Zhenao Song. RL-PINNs: Reinforcement learning-driven adaptive sampling for efficient training of PINNs. arXiv preprint arXiv:2504.12949, 2025.
[13] Yeonjong Shin, Jérôme Darbon, and George Em Karniadakis. On the convergence of physics informed neural networks for linear second-order elliptic and parabolic type pdes. Communications in Computational Physics, 28 (5): 2042–2074, 2020.
[14] J. Sirignano and K. Spiliopoulos. DGM: A deep learning algorithm for solving partial differential equations. Journal of Computational Physics, 2018.
[15] Matthew Tancik, Pratul Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. Advances in Neural Information Processing Systems, 33: 7537–7547, 2020.
[16] Sifan Wang, Hanwen Wang, and Paris Perdikaris. On the eigenvector bias of Fourier feature networks: From regression to solving multi-scale PDEs with physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering, 384: 113938, 2021.
[17] Maziar Raissi, Paris Perdikaris, and George E Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378: 686–707, 2019.
[18] Matthieu Barreau and Haoming Shen. A control perspective on training PINNs. arXiv preprint arXiv:2501.18582, 2025.
[19] Nasim Rahaman, Aristide Baratin, Devansh Arpit, Felix Draxler, Min Lin, Fred Hamprecht, Yoshua Bengio, and Aaron Courville. On the spectral bias of neural networks. In International Conference on Machine Learning, pp. 5301–5310. PMLR, 2019.
[20] Charles A Micchelli, Yuesheng Xu, and Haizhang Zhang. Universal kernels. Journal of Machine Learning Research, 7 (12), 2006.
[21] Kurt Hornik. Approximation capabilities of multilayer feedforward networks. Neural Networks, 4 (2): 251–257, 1991.
[22] Claude E Shannon. Communication in the presence of noise. Proceedings of the IRE, 37 (1): 10–21, 2006.
[23] Namgyu Kang, Jaemin Oh, Youngjoon Hong, and Eunbyung Park. PIG: Physics-informed gaussians as adaptive parametric mesh representations. In International Conference on Learning Representations, 2025.
[24] Francisco Sahli Costabal, Simone Pezzuto, and Paris Perdikaris. \( \delta\) -PINNs: Physics-informed neural networks on complex geometries. Engineering Applications of Artificial Intelligence, 127: 107324, 2024.
[25] Zheyuan Hu, Khemraj Shukla, George Em Karniadakis, and Kenji Kawaguchi. Tackling the curse of dimensionality with physics-informed neural networks. Neural Networks, 176: 106369, 2024.
[26] Zhi-Qin John Xu, Lulu Zhang, and Wei Cai. On understanding and overcoming spectral biases of deep neural network learning methods for solving PDEs. Journal of Computational Physics, pp. 113905, 2025.
[27] Chensen Lin, Zhen Li, Lu Lu, Shengze Cai, Martin Maxey, and George Em Karniadakis. Operator learning for predicting multiscale bubble growth dynamics. The Journal of Chemical Physics, 154 (10), 2021.
[28] Shaoxiang Qin, Fuyuan Lyu, Wenhui Peng, Dingyang Geng, Ju Wang, Xing Tang, Sylvie Leroyer, Naiping Gao, Xue Liu, and Liangzhu Leon Wang. Toward a better understanding of Fourier neural operators from a spectral perspective. arXiv preprint arXiv:2404.07200, 2024.
[29] Sifan Wang, Yujun Teng, and Paris Perdikaris. Understanding and mitigating gradient flow pathologies in physics-informed neural networks. SIAM Journal on Scientific Computing, 43 (5): A3055–A3081, 2021.
[30] Aditi Krishnapriyan, Amir Gholami, Shandian Zhe, Robert Kirby, and Michael W Mahoney. Characterizing possible failure modes in physics-informed neural networks. Advances in Neural Information Processing Systems, 34: 26548–26560, 2021.
[31] Umair Bin Waheed. Kronecker neural networks overcome spectral bias for PINN-based wavefield computation. IEEE Geoscience and Remote Sensing Letters, 19: 1–5, 2022.
[32] Abdul Hannan Mustajab, Hao Lyu, Zarghaam Rizvi, and Frank Wuttke. Physics-informed neural networks for high-frequency and multi-scale problems using transfer learning. Applied Sciences, 14 (8): 3204, 2024.
[33] Katayoun Eshkofti and Matthieu Barreau. Vanishing stacked-residual PINN for state reconstruction of hyperbolic systems. IEEE Control Systems Letters, 2025.
[34] Yongji Wang and Ching-Yao Lai. Multi-stage neural networks: Function approximator of machine precision. Journal of Computational Physics, 504: 112865, 2024.
[35] Vikas Dwivedi and Balaji Srinivasan. Physics informed extreme learning machine (PIELM)–a rapid method for the numerical solution of partial differential equations. Neurocomputing, 391: 96–118, 2020.
[36] George Em Karniadakis, Ioannis G Kevrekidis, Lu Lu, Paris Perdikaris, Sifan Wang, and Liu Yang. Physics-informed machine learning. Nature Reviews Physics, 2021.
[37] Sifan Wang, Xinling Yu, and Paris Perdikaris. When and why PINNs fail to train: A neural tangent kernel perspective. Journal of Computational Physics, 449: 110768, 2022.
[38] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
[39] Dong C Liu and Jorge Nocedal. On the limited memory bfgs method for large scale optimization. Mathematical programming, 45 (1): 503–528, 1989.
[40] Jonathan F Bard. Some properties of the bilevel programming problem. Journal of Optimization Theory and Applications, 68 (2): 371–378, 1991.
[41] Andrew Gordon Wilson, Zhiting Hu, Ruslan Salakhutdinov, and Eric P Xing. Deep kernel learning. In Artificial Intelligence and Statistics, pp. 370–378. PMLR, 2016.
[42] Carl Jidling, Niklas Wahlström, Adrian Wills, and Thomas B Schön. Linearly constrained gaussian processes. Advances in Neural Information Processing Systems, 30, 2017.
[43] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. Advances in Neural Information Processing Systems, 31, 2018.
[44] Michel X Goemans and David P Williamson. The primal-dual method for approximation algorithms and its application to network design problems. Approximation algorithms for NP-hard problems, pp. 144–191, 1997.
[45] Amanda A. Howard, Sarah H. Murphy, et al. Stacked networks improve physics-informed training: Applications to neural networks and deep operator networks. Foundations of Data Science, 2025.
[46] Ben Moseley, Andrew Markham, and Tarje Nissen-Meyer. Finite basis physics-informed neural networks (fbpinns): a scalable domain decomposition approach for solving differential equations. Advances in Computational Mathematics, 49 (4): 62, 2023.
[47] Michael D McKay, Richard J Beckman, and William J Conover. A comparison of three methods for selecting values of input variables in the analysis of output from a computer code. Technometrics, 42 (1): 55–61, 2000.