All models

DeepXDE FNN PINN

A small feed-forward network that maps coordinates to the solution of a differential equation, as DeepXDE builds it.

Physics and weather · 59 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 (56 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
2.2K
Operations
59
Framework
PyTorch
Recurrent
Yes
Published
2021, SIAM Review
Authors
Lu Lu, Xuhui Meng, Zhiping Mao, George Em Karniadakis
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
m11624
Graph hash
5033dd170787301e3add05807ba8c84b15655e7d46e5e8d2a1343d5801e1e222
Skeleton hash
9453b69df5837eb100e1a13e1bfed67994c757f6e44eb1f4d2f886a07f8aeb09
Architecture hash
ed84ad69db12837690134f0b100280cb56277690178b748bab67af9516715ca4
Diagram SHA-256
68890ce363bff9184ea93c886c1b4f63fcc6d8713c5639aeeb2ad51f4f0e414a
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.deepxde_fnn_pinn:build: build({})

What it is

This model is a physics-informed neural network (PINN) of the kind the DeepXDE library builds: a network that takes a point x as input and stands in for the solution of a differential equation at that point. The network itself is a plain feed-forward network (FNN), also called a multilayer perceptron, which the paper considers sufficient for most PDE problems.

The physics enters through the training loss, since PINNs embed a PDE into the loss of the network using automatic differentiation. That loss sums the weighted L2 norm of the equation residuals and the boundary condition residuals. No mesh is generated, and the paper contrasts this with the finite element method, which typically requires one.

The paper presents DeepXDE, a Python library for PINNs, intended both for classroom teaching and for research. It also proposes residual-based adaptive refinement (RAR), which improves the distribution of the residual points during training. All of the paper's examples use tanh as the activation function. The authors note that for forward problems PINNs are currently slower than finite elements.

Key idea. The paper presents DeepXDE, a Python library for physics-informed neural networks, designed as both a classroom teaching tool and a research tool.

  • DeepXDE
  • PINN
  • physics-informed neural network
  • differential equation solver
  • PDE solver
  • scientific machine learning
  • feed-forward neural network
  • residual-based adaptive refinement

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

Cite the paper

@misc{lu2020deepxdedeeplearninglibrary,
      title={DeepXDE: A deep learning library for solving differential equations}, 
      author={Lu Lu and Xuhui Meng and Zhiping Mao and George E. Karniadakis},
      year={2020},
      eprint={1907.04502},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.1137/19M1274067},
      url={https://arxiv.org/abs/1907.04502}, 
}