
pinn_pfnn
Physics and weather11 ops1K params
A tanh multilayer perceptron over space-time coordinates whose loss enforces a differential equation.
Physics and weather · 7 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}