The gallery of residuals

Part 1, The PINN formulation

Learning objectives

  • Evaluate a network's wave-equation residual by its exact derivatives over the column and the record, whether or not it was trained on it
  • Compare the residual with the error against finite differences for Part 1's six runs on the Marmousi2 column
  • Say why a wave can satisfy the equation and still be the wrong wave, and what picks the right one
  • Read a small residual or a low training loss as a check, not a proof

The Equation, Not the Answer

A network's residual measures how well it satisfies its equation, not how close it is to the answer. Part 1's six networks on the Marmousi2 column leave residuals of RMS 3.6 to 17 and are 0.12 to 0.39 from their finite-difference fields, and the two do not order them alike: Section 1.2's network leaves a smaller residual than Section 1.4's, 3.9 against 5.2, and is 1.9 times as far from its field, 0.27 against 0.14.

Residuals Against ErrorsInteractive figure, enable JavaScript to interact.

One Residual, Six Runs

Each network is replayed at its last stored checkpoint and its residual r=utt−c2uzzr = u_{tt} - c^2 u_{zz} evaluated by its own exact derivatives at every 50 m of the column and every 50 ms of the record, 36 depths by 11 times, with the column's velocity (Section 1.6's with its trained water velocity), whether or not the run was trained on the residual; its error is the network less its own finite-difference field at the same nodes. The six are Section 1.1's network fitted to the array alone, Section 1.2's with the residual added, Section 1.4's from the residual and soft conditions, Section 1.5's with the conditions built in and its soft control, and Section 1.6's with the water's velocity trained. All are the book's own runs on the column at x = 3600 m of the Marmousi2 window, a 2D acoustic, constant-density slice of a synthetic model (Martin, Wiley and Marfurt), not field data.

What Picks the Wave

The wave equation has many solutions; the start, the surface and the data pick one. Section 1.1's network was never asked to satisfy the equation and leaves the largest residual, 17, and is 0.39 from its field. Section 1.2's adds the residual and lowers it to 3.9, but below the array nothing tells it which wave to be, and it is 0.27 from its field. Section 1.4's has no data at all, yet the start and the surface hold it everywhere: a larger residual, 5.2, and an error of 0.14. Section 1.5's two networks leave 5.1 and 5.3 and are 0.18 and 0.12 from their field, and Section 1.6's 3.6 and 0.25.

Reading a Residual

A large residual says where a network breaks its equation; a small one is a check, never a proof. With the conditions and the data that make the solution unique held, a field that satisfies the equation everywhere is the solution, and only then does a small residual mean a small error. A network's training loss is a residual at its own points, so a low loss is the same kind of evidence: it shows the equation is nearly satisfied there, and says nothing of a condition the loss does not hold. Mishra and Molinaro (2020) prove bounds of this kind: they bound a network's error by its training error and its number of training points through the stability of the equation, which its conditions and data supply.

What Comes Next

Part 2 turns to the network itself: what its architecture can and cannot represent.

References

  • Martin, G. S., Wiley, R. and Marfurt, K. J. (2006). Marmousi2: An elastic upgrade for Marmousi. The Leading Edge, 25(2), 156-166. doi:10.1190/1.2172306.
  • Mishra, S. and Molinaro, R. (2020). Estimates on the generalization error of physics informed neural networks (PINNs) for approximating PDEs. arXiv:2006.16144.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.