All models

PINN MLP baseline

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

Physics and weather · 7 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 (9 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
5.3K
Operations
7
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
m2109
Graph hash
2708d11e641b16addf3d25d56766011bb31c630ec9d96e6b8e9aa99a4f8827c0
Skeleton hash
e0d4b213367708a564e5c781f65deff78fc3d459255cc2b911b579f2d885ae51
Architecture hash
7c0f18d37bcac77fcdc9ff36d0c64a2c4ef3ceee5ed06c0a3a4401ff59201b70
Diagram SHA-256
c8b599a97a101713670adacfa5e84086ce9e1f7d5bde7f07851e5fcf581b4607
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}, 
}