All models

pinn_pfnn

A tanh multilayer perceptron over space-time coordinates whose loss enforces a differential equation.

Physics and weather · 11 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 (13 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

Family
pinn
Parameters
1K
Operations
11
Framework
PyTorch
Recurrent
No
Published
2017
Cited by
2,095 (as of 19 November 2026)
Authors
Maziar Raissi, Paris Perdikaris, George Em Karniadakis
License
GPL-2.0
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
m8181
Graph hash
92e4e33d358a0eda78c5faf6abbc083e040e42c258ad1940447e85a0d45601d3
Skeleton hash
e823bc89fdd885beb2651d5081d13ff7e5c0e393dba6451a019824521c9811ba
Architecture hash
883b7d5369877884b071c61aef2c40569001f20bc65a36c8e9d074791a092e88
Diagram SHA-256
7c89b11bcd27baec6050dae0e86cf48dd734d45181dd31879e5a003b91bfceb3
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

About this model's family

Physics informed neural networks, or PINNs, are neural networks trained to solve supervised learning tasks while respecting a given law of physics described by general nonlinear partial differential equations. The network itself is a plain multilayer perceptron over space and time coordinates, and the physics lives entirely in the loss. The paper frames the result as a new class of data-efficient universal function approximators that encode physical laws as prior information.

The trick is to approximate the solution u(t, x) with a deep network and then define a second network f(t, x) from the residual of the governing equation, derived by applying the chain rule through automatic differentiation. The two networks share parameters and are trained by minimizing a mean squared error that sums a data term and a residual term. The data term fits the initial and boundary data, while the residual term enforces the equation at a finite set of collocation points. In the paper's benchmarks the total number of training data is small, a few hundred to a few thousand points, and all losses are optimized with L-BFGS. Its motivating example is the one dimensional Burgers' equation, which arises in fluid mechanics, nonlinear acoustics, gas dynamics and traffic flow.

The traced members are built with DeepXDE, a Python library for PINNs designed to serve both as a classroom education tool and a research tool for computational science and engineering. DeepXDE offers a feed-forward neural network, maps.FNN, and a residual network, maps.ResNet, and the members here are the feed-forward kind. The library supports five tensor libraries as backends, including PyTorch, which is the backend these traces use. Because the traced graph is only the forward pass of the network, the automatic differentiation that forms the PDE residual happens at training time and does not appear in it. DeepXDE's paper also proposes residual-based adaptive refinement to improve PINN training efficiency.

Key idea. PINNs turn a differential equation into a training signal: the network approximating the solution is differentiated with respect to its inputs by automatic differentiation, and the equation residual at collocation points is minimized alongside the data misfit.

  • PINN
  • physics informed neural network
  • physics-informed neural network
  • DeepXDE
  • FNN
  • PFNN
  • Burgers equation
  • PDE solver
  • Raissi
  • Karniadakis
  • scientific machine learning

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

Cite the paper

@misc{raissi2017physicsinformeddeeplearning,
      title={Physics Informed Deep Learning (Part I): Data-driven Solutions of Nonlinear Partial Differential Equations}, 
      author={Maziar Raissi and Paris Perdikaris and George Em Karniadakis},
      year={2017},
      eprint={1711.10561},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/1711.10561}, 
}