All models

PINNsFormer

A Transformer encoder-decoder that solves PDEs by predicting over short pseudo sequences of time steps.

Physics and weather · 138 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (21 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
453.6K
Operations
138
Framework
PyTorch
Recurrent
No
Published
ICLR 2024
Cited by
31 (as of 23 October 2026)
Authors
Zhiyuan Zhao, Xueying Ding, B. Aditya Prakash
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m2111
Graph hash
c507ff1e940cb027238f32ebcca4fa3646fa822ac78c40e915862e41891624f9
Skeleton hash
bfc2d8bdfc9fffe965bd2f807af4618133e99f4c686b5649e5fa5dbbd24f7bdf
Architecture hash
1a6a10398247651ab947b32d4a58b674fbf0d402bb2e8078b6c358f0ca3288c7
Diagram SHA-256
4d1a9ee40fdb3c4e2d9212c8e018c0f6bac6f241855f5439c8b5c82663e12223
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

PINNsFormer is a Transformer-based take on physics-informed neural networks (PINNs), which are trained to approximate solutions of partial differential equations (PDEs). Conventional PINNs rely on multilayer perceptrons, and the paper argues that they neglect the temporal dependencies in physical systems. PINNsFormer replaces point-to-point prediction with prediction over a sequence.

Each input point is first extended into a pseudo sequence of evenly spaced later time steps; the paper uses a length of k = 5 in all of its experiments. A linear projection called the Spatio-Temporal Mixer maps each element into a higher-dimensional space. An encoder and a decoder follow, and each decoder layer contains only encoder-decoder attention and a feedforward layer. The activation is new: Wavelet(x) = ω1 sin(x) + ω2 cos(x), with the two weights learned. The model uses only linear layers and non-linear activations, with no convolutional or recurrent layers.

Training uses a sequential version of the PINNs loss, and at test time the first element of the output sequence is the value for the queried point. The paper evaluates on convection, 1D-reaction, 1D-wave and Navier–Stokes equations; on convection and 1D-reaction it reports that PINNsFormer outperforms all baseline methods in training loss, rMAE and rRMSE.

Key idea. PINNsFormer recasts physics-informed neural networks as a Transformer that predicts over pseudo sequences of time steps, so the network can capture temporal dependencies in a PDE solution.

  • pinnsformer
  • pinn transformer
  • physics-informed neural network
  • pinn
  • pinns
  • pde solver
  • partial differential equations
  • wavelet activation

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhao2024pinnsformertransformerbasedframeworkphysicsinformed,
      title={PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networks}, 
      author={Zhiyuan Zhao and Xueying Ding and B. Aditya Prakash},
      year={2024},
      eprint={2307.11833},
      archivePrefix={arXiv},
      primaryClass={cs.CE},
      url={https://arxiv.org/abs/2307.11833}, 
}