Fourier PINNs: From Strong Boundary Conditions to Adaptive Fourier Bases
Madison Cooley, Varun Shankar, Robert M. Kirby, Shandian Zhe
TL;DR
This work targets the spectral bias of Physics-Informed Neural Networks (PINNs) by combining a theoretical Fourier analysis of strong boundary condition PINNs with a practical Fourier PINN framework. The authors show, both analytically and numerically, that multiplying a neural network by a boundary function enhances learning of high-frequency components, and they introduce Fourier PINNs that augment the NN with trainable Fourier bases to flexibly capture dominant frequencies. An adaptive basis selection algorithm jointly optimizes neural and Fourier coefficients with basis pruning and L2 regularization, enabling robust identification of significant frequencies across problems. Empirically, Fourier PINNs outperform standard PINNs and several baselines on 1D/2D Poisson and Allen-Cahn problems, including high-frequency and multi-scale cases, while remaining BC- and domain-agnostic. The approach lays a path toward scalable, mesh-free PDE solvers with strong spectral fidelity, with future work focusing on tensor-decomposition strategies to extend to higher dimensions.
Abstract
Interest is rising in Physics-Informed Neural Networks (PINNs) as a mesh-free alternative to traditional numerical solvers for partial differential equations (PDEs). However, PINNs often struggle to learn high-frequency and multi-scale target solutions. To tackle this problem, we first study a strong Boundary Condition (BC) version of PINNs for Dirichlet BCs and observe a consistent decline in relative error compared to the standard PINNs. We then perform a theoretical analysis based on the Fourier transform and convolution theorem. We find that strong BC PINNs can better learn the amplitudes of high-frequency components of the target solutions. However, constructing the architecture for strong BC PINNs is difficult for many BCs and domain geometries. Enlightened by our theoretical analysis, we propose Fourier PINNs -- a simple, general, yet powerful method that augments PINNs with pre-specified, dense Fourier bases. Our proposed architecture likewise learns high-frequency components better but places no restrictions on the particular BCs or problem domains. We develop an adaptive learning and basis selection algorithm via alternating neural net basis optimization, Fourier and neural net basis coefficient estimation, and coefficient truncation. This scheme can flexibly identify the significant frequencies while weakening the nominal frequencies to better capture the target solution's power spectrum. We show the advantage of our approach through a set of systematic experiments.
