TL;DR
A physics-informed neural network (PINN) is a network trained to approximate the solution of a differential equation. Its loss adds three things: how badly the network breaks the equation at sample points, how badly it breaks the boundary or starting conditions, and how far it sits from any measured data. Cuomo and colleagues (2022) review the literature on these networks, covering their building blocks, the theory behind them, the problems they have been applied to, and the problems that remain open. Their main finding is that most of the work customizes the basic recipe, and that the theory and the question of when a PINN is more useful than a classical solver are still unsettled.
Builds on: Physics-Informed Neural Network, Gradient Descent · Leads to: no lesson in the graph builds on it yet
Why it mattered
Partial differential equations describe heat flow, fluid flow, elasticity and many other physical systems, and classical solvers such as the Finite Element Method handle them by cutting space into a mesh and solving a large system of equations. That works well but is costly when the geometry is complex, the problem is high dimensional, or the same model must be solved again and again. The review's premise is that a trained network can give a solution at any point on demand, and that the same code can solve the forward problem (find the solution) and the inverse problem (find the unknown parameters from data).
The field grew quickly. The review's Figure 1 counts PINN papers by year and reports that the number more than quintupled between 2019 and 2020, and that there were twice as many new papers in 2021 as in 2020. The problems solved include the Allen–Cahn, Korteweg–de Vries and nonlinear Schrödinger equations in the first PINN papers, the Euler equations for high-speed aerodynamic flows (Mao and colleagues, 2020), the incompressible Navier–Stokes equations (Jin and colleagues, 2021), and Navier–Stokes coupled with heat convection (Cai and colleagues, 2021). The review also mentions applications in industry, such as anticipating grease maintenance.
The problem
The review opens with why PDEs are hard. Some are notoriously difficult to solve with standard numerical methods because they have strong nonlinearities, convection that dominates diffusion, or shocks. Problems with many input dimensions also run into the Curse of Dimensionality, which Bellman first described for optimal control. Neural networks had been used for PDEs since the 1990s, but early methods were limited. Lagaris and colleagues (1998) expressed the solution as a fixed term plus an adjustable term, and their method worked only for regular boundaries; their 2000 extension handled irregular ones.
The key question the review raises is whether the learning view of PDEs is sound. A PINN replaces an exact solver with an optimiser, so the questions move from "is the scheme consistent and stable?" to "does training converge to the right answer, and how accurate is the result?". Those questions are much less settled than the classical ones.
How it works
The walkthrough below uses one of the simplest possible problems, so that every number can be checked by hand. The equation is on with , whose exact solution is . The "network" is the straight line , with two parameters . A real PINN uses a deep network instead, and it gets its derivatives by automatic differentiation, but the loss has the same form.
- Choose sample points. Pick a collocation point , where the equation will be enforced. Check: the equation is enforced at points inside the domain, not on a grid.
- Write the residual. The residual of the equation at that point is . Check: if the residual is zero, the equation holds exactly there.
- Write the boundary term. The starting condition gives . Check: this is zero when the boundary condition holds.
- Add the terms into one loss. With equal weights, . Check: the loss is zero only when both the equation and the condition hold.
- Take a gradient step. Start at , , so . The gradients are and . With learning rate 0.1, the new point is and , and the loss is . Check: the loss went down.
- Repeat. A second step gives and , with . Check: the loss keeps falling, and the parameters move toward and , which is the exact solution .
flowchart LR X["Sample points x"] --> N["Network u_theta(x)"] N --> D["Automatic differentiation: derivatives in x"] D --> R["PDE residual"] N --> B["Boundary and initial terms"] N --> Y["Measured data, if any"] R --> L["Loss: weighted sum"] B --> L Y --> L L --> G["Gradient step on theta"] G --> N
The loop in the diagram is the whole method. The only physics enters through the residual term, so a different equation means a different residual but the same training loop. The review's point about structure is that the network does not need to know the solution in advance; it is pushed toward the solution by the equation at the sample points.
The math
Problem and residual
The review writes a general problem as for in a domain , with a boundary condition on its boundary. Here holds the space and time coordinates, is the unknown solution, holds the physical parameters, and is a nonlinear differential operator. A forward problem asks for when is known. An inverse problem also asks for from data.
The network approximates , and its residuals are
For the exact solution both residuals are zero. This is the link between the residual and the solution: a network with small residuals is an approximate solution.
Step 2 in symbols: derivatives by automatic differentiation
The residual needs derivatives of the network with respect to its inputs. The review lists four ways to get them: by hand, symbolically, numerically (finite differences), and by automatic differentiation. Finite differences have an approximation error, and symbolic expressions can grow very large, so PINNs use automatic differentiation, which applies the Chain Rule to the computation graph and gives derivatives to floating-point accuracy. For the time-dependent case the review writes the residual as .
Step 4 in symbols: the combined loss
The network parameters are found by minimising
where each term is a mean squared error. The physics term is
over collocation points. The walkthrough is the case with one collocation point, , , and , with all weights equal to 1. The data term is present only when measurements are given, which makes the problem supervised rather than unsupervised.
Step 5 in symbols: the gradient step
Each step moves the parameters against the gradient of the loss, , with learning rate . In the walkthrough . The review notes that the loss has many local minima in general, and that a gradient method will usually end in one of them.
Soft and hard boundary conditions
The walkthrough enforces the boundary condition as a penalty, which is the soft form. The review contrasts it with a hard form, where the condition is encoded in the network design so that it holds by construction. Soft enforcement does not guarantee that the boundary condition is met accurately, and the review lists this as the first disadvantage of the soft approach. Hard enforcement avoids that problem, but it needs a construction for each kind of boundary.
Results
The review is a literature survey, not an experiment, so its "results" are its findings about the field. Each finding below is the review's own statement.
What people change. The abstract says most research has customised the PINN through activation functions, gradient optimisation, network structure, and loss structure. The review's network section finds that feed-forward networks are the usual choice, with a much smaller body of work on convolutional, recurrent and Bayesian variants.
Optimisers. Many papers train with Adam and then with L-BFGS, a quasi-Newton method. One study found that for noisy data, increasing the sample size and training with L-BFGS alone gave the best learning. Another used Adam first and then L-BFGS-B, and reported that L-BFGS-B converges faster with less data and fewer residual points.
Loss forms. Energy-based losses are reported to be simpler to minimise and cheaper to compute than residual-based losses, but they are more sensitive to the size and resolution of the training samples.
Theory. The review says the theory is at an early stage. One result shows that a predefined network with tanh activations converges to the solution as its width grows. A separate result shows that minimisers converge to the solution of a linear second-order elliptic or parabolic PDE. The review states that for a general PINN there is no guarantee that the minimiser matches the solution, even when the exact solution lies in the network class.
Failures. A study cited by the review analyses diffusion and convection problems and shows that a PINN can fail when the convection or viscosity coefficients are large. The loss landscape becomes harder as the coefficients grow, and posing the problem as a sequence-to-sequence learning task, instead of solving the whole space-time domain at once, gives lower errors. The review also says that PINNs struggle with multi-scale, chaotic and turbulent behaviour.
Cost against classical methods. The review lists the advantages of PINNs as mesh-free solving, on-demand evaluation after training, analytic derivatives, and a single code for forward and inverse problems. The main disadvantage is that training can take much longer than a classical solver.
Open problems. The review lists whether a PINN converges to the correct solution, how to set the loss weights (dynamic weighting is named as a promising direction), how the placement of training points affects accuracy, and what happens when boundary conditions change, since a new network must then be created.
Limits of the review. The literature was collected by a Scopus search for physics-informed and physics-constrained neural networks. The authors also drew on outputs from the CRUNCH group at Brown and the PhILMs center, and on broader physics-guided learning. The literature stops around 2021 to 2022, so later work is not fully covered.
Reading guide
The paper's sections in order, each with the lessons it needs.
- 1 Introduction and 1.1 What the PINNs are: the PDE setting, the mesh-free idea and the history from Lagaris to Raissi. Needs Partial Differential Equation and Ordinary Differential Equation.
- 1.2 What is this review about: the search method and scope. No prerequisite.
- 2 The building blocks: the general problem and the three-part structure of network, physics term and feedback. Needs Physics-Informed Neural Network and Loss Function.
- 2.1 Neural network architecture: feed-forward, convolutional, recurrent and other networks, and the universal approximation claim. Needs Universal Approximation Theorem, Activation Function, Convolutional Neural Network and Recurrent Neural Network.
- 2.2 Injection of physical laws: automatic differentiation and the residual terms. Needs Automatic Differentiation and Chain Rule.
- 2.3 Model estimation by learning approaches: the loss, soft and hard constraints, and the optimisers. Needs Gradient Descent, Stochastic Gradient Descent and Adam Optimizer.
- 2.4 Learning theory: convergence and error analysis. Needs Double Descent for the generalisation discussion and Bias-Variance Tradeoff.
- 3 Differential problems: ODEs, steady and unsteady PDEs, fractional equations and uncertainty estimation. Needs Partial Differential Equation for the time-dependent cases and Bayesian Neural Network or Uncertainty Quantification for the uncertainty part.
- 4 Data, applications and software: where PINNs have been used and which packages exist. Needs Finite Element Method for the comparison, and Finite Difference Method for the finite-difference derivatives discussed in 2.2.
- 5 Future challenges: theory, implementation, the scientific machine learning framework and the wider AI framework. Needs Neural Operator and The Deep Ritz Method for Solving Variational Problems for the alternatives the review mentions.
- 6 Conclusion: the summary of the field.