[Paper Review] PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networks
PINNsFormer introduces a Transformer-based sequence-to-sequence framework with a pseudo sequence generator and Wavelet activation to capture temporal dependencies in PDEs, improving generalization and accuracy over traditional PINNs.
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.
Motivation & Objective
- Motivate and address the neglect of temporal dependencies in standard PINNs when solving time-dependent PDEs.
- Propose a Transformer-based architecture (PINNsFormer) to capture temporal dependencies in PDE solutions.
- Introduce a novel Wavelet activation to enhance universal approximation and derivative estimation.
- Demonstrate improved generalization and performance across convection, reaction, wave, and high-dimensional PDEs, plus compatibility with existing PINN learning schemes.
Proposed method
- Transform pointwise spatiotemporal inputs into pseudo sequences via a Pseudo Sequence Generator.
- Use a Spatio-Temporal Mixer to embed and mix features in a higher-dimensional space.
- Employ an Encoder-Decoder with multi-head attention to learn dependencies across the sequence.
- Introduce Wavelet activation to better approximate PDE solutions and derivatives.
- Adopt a sequential PINN loss that differentiates residual, boundary, and initial conditions.
- Allow integration with existing PINN learning schemes (e.g., NTK) for enhanced performance.

Experimental results
Research questions
- RQ1Can a Transformer-based model capture temporal dependencies in PDE solutions better than traditional PINNs?
- RQ2How does the pseudo-sequence representation affect accuracy and stability in solving time-dependent PDEs?
- RQ3What is the impact of the Wavelet activation on approximation power and derivative fidelity in PINNsFormer?
- RQ4How does PINNsFormer perform on high-dimensional PDEs and when combined with other learning schemes (e.g., NTK)?
Key findings
- PINNsFormer achieves lower training loss and test errors than PINNs, QRes, and FLS on convection and 1D-reaction PDEs, mitigating PINN failure modes.
- In 1D-wave with NTK, PINNsFormer+NTK yields the best rMAE and rRMSE across reported metrics.
- For 2D Navier–Stokes, PINNsFormer outperforms baselines with faster convergence and better shape/magnitude consistency in pressure predictions.
- Loss landscape analysis shows PINNsFormer has a smoother landscape and a smaller Lipschitz constant than PINNs, suggesting easier optimization.
- The approach remains computationally heavier than standard PINNs but remains practical, with ~2.9x cost and ~2.15x memory increase at k=5.
- PINNsFormer retains compatibility with existing PINN learning strategies, enabling flexible hybrids.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.