Abstract
Physics-Informed Neural Networks (PINNs) have emerged as a powerful mesh-free alternative to traditional numerical solvers for partial differential equations (PDEs). Despite their success, PINNs often suffer from "spectral bias," where the optimization process favors low-frequency components, making it difficult to capture high-frequency or multi-scale target solutions. In this work, we analyze the impact of enforcing strong boundary conditions (BCs) on the frequency-learning capabilities of PINNs. Our theoretical analysis, rooted in the Fourier transform and convolution theorem, reveals that strong BCs allow the network to better capture high-frequency amplitudes. Motivated by these findings, we propose Fourier PINNs, a hybrid architecture that augments neural networks with a dense, adaptive set of Fourier bases. By utilizing a hybrid optimization scheme and an automated pruning algorithm, Fourier PINNs can solve complex PDEs with high precision where standard methods fail.
The Challenge of Spectral Bias in PINNs
While PINNs offer a flexible framework for solving PDEs, they are notoriously poor at handling solutions with sharp transitions or high-frequency oscillations. This phenomenon, known as spectral bias, arises because the neural network's loss landscape is typically dominated by low-frequency errors. Standard approaches often attempt to mitigate this by "softly" weighting boundary conditions in the loss function, but this frequently fails to provide the necessary guidance for the network to learn complex, oscillating solutions.
From Strong Boundary Conditions to Frequency Learning
The authors first investigate the use of "strong" boundary conditions, where the BC is mathematically forced into the network's architecture. This is typically achieved by multiplying the neural network output by a distance function $\phi$ that vanishes at the boundaries.
Theoretical analysis using the convolution theorem shows that this multiplication in the spatial domain corresponds to a convolution in the frequency domain. This "smears" the frequency spectrum of the network's output, effectively acting as a high-pass filter that enables the model to capture high-frequency amplitudes more effectively than a standard PINN.
Experimental results on 1D Poisson and Allen-Cahn equations demonstrate that as the frequency $k$ of the target solution increases, standard PINNs quickly lose accuracy, whereas strong BC variants maintain significantly lower relative errors.
Proposed Method: Fourier PINNs
While strong BCs are beneficial, constructing the necessary distance functions for complex geometries and various BC types can be difficult. To generalize these benefits, the authors propose Fourier PINNs. This architecture combines a standard deep neural network ($u_N$) with a dense set of Fourier bases (sines and cosines).
Hybrid Optimization and Adaptive Selection
A key innovation of Fourier PINNs is its hybrid optimization strategy. While the neural network weights are updated via standard gradient descent (e.g., Adam or L-BFGS), the coefficients of the Fourier bases are solved using Linear Least Squares. This approach is significantly faster and more precise than training all parameters via gradient descent.
Furthermore, the model employs an adaptive basis selection algorithm. It starts with a broad range of candidate frequencies and automatically "prunes" those with insignificant coefficients during training. This ensures the model remains sparse and efficient, focusing only on the frequencies actually present in the target solution's power spectrum.
Key Results and Performance
The Fourier PINN approach was evaluated against several benchmark PDE problems, including 1D and 2D Poisson equations, the Allen-Cahn equation, and the wave equation.
- High-Frequency Accuracy: In tests on the 1D Poisson equation with $k=100$, Fourier PINNs achieved relative $l_2$ errors of approximately $10^{-4}$, while standard PINNs and other baselines failed completely, with errors near $1.0$.
- Handling Nonlinearity: On the "stiff" non-steady Allen-Cahn equation, which features sharp transitions, Fourier PINNs successfully captured the complex dynamics where standard PINNs plateaued at high error levels.
- Efficiency and Scalability: The pruning mechanism proved highly effective. For multi-scale solutions, the model could start with hundreds of candidate bases and prune down to just the few significant frequencies required, maintaining computational efficiency.
Conclusion and Future Directions
Fourier PINNs provide a robust solution to the spectral bias problem by integrating adaptive Fourier bases into the PINN framework. This hybrid approach offers superior accuracy and faster convergence for high-frequency and multi-scale PDEs.
Future work will focus on addressing the "curse of dimensionality." As the number of dimensions increases, the number of Fourier basis functions grows exponentially. The authors suggest that tensor decomposition techniques, such as Tensor-Train or Tucker decomposition, could be employed to scale the method to 3D and higher-dimensional problems. Additionally, extending the Fourier basis setup to irregular, non-rectilinear domains remains an important area for further research.
Summary updated