PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networks

Zhiyuan Zhao, Xueying Ding, B. Aditya Prakash
7/21/2023
cs.CEcs.LG

Official code: AdityaLab/pinnsformer (224 stars, last commit 2024-10-20).

Abstract

Physics-Informed Neural Networks (PINNs) have emerged as a promising deep learning framework for approximating numerical solutions to partial differential equations (PDEs). However, conventional PINNs, relying on multilayer perceptrons (MLP), neglect the crucial temporal dependencies inherent in practical physics systems and thus fail to propagate the initial condition constraints globally and accurately capture the true solutions under various scenarios. In this paper, we introduce a novel Transformer-based framework, termed PINNsFormer, designed to address this limitation. PINNsFormer can accurately approximate PDE solutions by utilizing multi-head attention mechanisms to capture temporal dependencies. PINNsFormer transforms point-wise inputs into pseudo sequences and replaces point-wise PINNs loss with a sequential loss. Additionally, it incorporates a novel activation function, Wavelet, which anticipates Fourier decomposition through deep neural networks. Empirical results demonstrate that PINNsFormer achieves superior generalization ability and accuracy across various scenarios, including PINNs failure modes and high-dimensional PDEs. Moreover, PINNsFormer offers flexibility in integrating existing learning schemes for PINNs, further enhancing its performance.

View on arXivView PDF

Code Implementations(1)

22447PythonJul 14, 20232 years ago

Similar Papers

Cite this paper

@article{zhao2023pinnsformer,
  title  = {PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networks},
  author = {Zhiyuan Zhao and Xueying Ding and B. Aditya Prakash},
  year   = {2023},
  eprint = {2307.11833},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.11833v3},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.11833.svg)](https://codeofpaper.com/paper/2307.11833)

Discussion