Accelerating Physics-Informed Neural Network Training with Prior Dictionaries

Wei Peng, Weien Zhou, Jun Zhang, Wen YaoarXiv 2020

Abstract

Physics-Informed Neural Networks (PINNs) can be regarded as general-purpose PDE solvers, but it might be slow to train PINNs on particular problems, and there is no theoretical guarantee of corresponding error bounds. In this manuscript, we propose a variant called Prior Dictionary based Physics-Informed Neural Networks (PD-PINNs). Equipped with task-dependent dictionaries, PD-PINNs enjoy enhanced representation power on the tasks, which helps to capture features provided by dictionaries so that the proposed neural networks can achieve faster convergence in the process of training. In various numerical simulations, compared with existing PINN methods, combining prior dictionaries can significantly enhance convergence speed. In terms of theory, we obtain the error bounds applicable to PINNs and PD-PINNs for solving elliptic partial differential equations of second order. It is proved that under certain mild conditions, the prediction error made by neural networks can be bounded by expected loss of PDEs and boundary conditions.

Introduction

Physics-Informed Neural Networks (PINNs) have revolutionized how we solve partial differential equations (PDEs) by treating the laws of physics as a loss function. However, they are notoriously slow to train and often lack the theoretical "guarantees" that traditional numerical solvers provide. While PINNs are flexible, they are "blank slates" at the start of training. They often struggle to capture high-frequency oscillations or complex geometries, leading to slow convergence or total failure on seemingly simple problems. Furthermore, the deep learning community has long grappled with a "trust" issue: just because a PINN’s loss function (the residual of the PDE) is small, does that mathematically guarantee the predicted solution is accurate?

Methodology: From PINNs to PD-PINNs

The standard PINN architecture, as shown in Figure 1, maps input coordinates directly to a solution $u$ through a series of hidden layers. The training process minimizes a composite loss function consisting of PDE residuals, boundary conditions (BC), and initial conditions (IC).

Standard Physics-Informed Neural Network (PINN) architecture.

To address the limitations of standard PINNs, the authors propose Prior Dictionary based PINNs (PD-PINNs). Instead of the neural network directly outputting the solution $u(x)$, they introduce a Dictionary Fusion Layer (Figure 2).

Proposed PD-PINN architecture featuring a Dictionary Fusion Layer.

The PD-PINN approach involves three main components:

  1. The Dictionary ($D$): A set of fixed "word functions" (basis functions) chosen based on the problem type (e.g., sines and cosines for periodic problems).
  2. The Trainable Part ($N_\Theta$): A standard Multi-Layer Perceptron (MLP) that outputs coefficients.
  3. The Fusion: The final output is the inner product of the dictionary and the MLP output: $F_\Theta(x) = \langle D(x), N_\Theta(x) \rangle$.

This hybrid approach leverages the spectral convergence of traditional methods (like Fourier transforms) while using the universal approximation power of neural networks to "mop up" any truncation errors that a finite dictionary might leave behind. By using a dictionary, the network is effectively "pre-trained" to understand the relevant frequencies of the problem.

Theoretical Error Bounds

A key contribution of this work is closing the theory gap. The authors prove Theorem 2.1 and 2.4, establishing that for second-order elliptic PDEs, the maximum error is bounded by the PDE and Boundary Condition (BC) losses. This provides a rigorous mathematical foundation for why PINNs work for this class of problems, proving that minimizing PINN loss actually guarantees a solution close to the ground truth.

Experimental Results

The paper evaluates the method on several synthetic PDE benchmarks:

  • 1D Poisson’s Equation: Standard PINNs failed to recover the ground truth even after 1,000 iterations for highly oscillatory functions. PD-PINNs, using a Fourier dictionary, captured the solution almost immediately.
  • Spherical Poisson’s Equation: On the surface of a sphere, the PD-PINN recovered the ground truth with an error below 0.001, while the standard PINN failed to converge entirely. The authors found that "lifting" the input from 2D $(\theta, \phi)$ to 3D $(x, y, z)$ coordinates before feeding it into the network significantly improved stability.
  • Convergence Speed: Across all tests, including 2D Poisson and 1D Diffusion equations, PD-PINNs reached lower loss values orders of magnitude faster than standard PINNs.

Conclusion

PD-PINNs accelerate training by baking mathematical intuition directly into the network architecture. While the method currently requires prior knowledge to select an effective dictionary, it significantly enhances convergence speed and reliability. Future work may focus on Learnable Dictionaries—using techniques like Principal Component Analysis (PCA) or Dictionary Learning to automatically extract "word functions" from data, making the method more "plug-and-play" for unknown physics.

Summary updated

BibTeX
@misc{peng2020accelerating,
  author = {Wei Peng and Weien Zhou and Jun Zhang and Wen Yao},
  title = {{Accelerating Physics-Informed Neural Network Training with Prior Dictionaries}},
  year = {2020},
  eprint = {2004.08151},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.08151},
}
Figure