Loss-weight sensitivity in PINN-FWI

Part 6, Velocity inversion with PINNs

Learning objectives

  • Write the PINN-FWI loss on the column: a data term and the wave equation's residual, over a network for the field and the velocity beside it
  • Train it at three weightings of the physics against the data and compare the velocities and fields they reach
  • Say why only the physics term moves the velocity, and what too much of it does to the fit
  • Treat the weights as part of the method, chosen and reported, not a detail

One Loss, Two Terms

PINN-FWI trains one loss over a network for the wavefield and the velocity beside it: a data term, the misfit of the network's field at the receivers, and a physics term, the wave equation's residual at points inside. Only the physics term ties the field to the velocity, so the ratio of their weights decides what is learnt. On the column of the Marmousi2 window, from FWI2D's start 325 m/s RMS from the truth over the first 1480 m, three runs that differ only in that ratio end 254, 242 and 424 m/s from it: weighted 10βˆ’510^{-5} the physics barely moves the velocity, weighted 10βˆ’110^{-1} it pulls the field off the records and the velocity with it, and at 10βˆ’310^{-3} the velocity moves furthest.

Pinn Fwi Loss WeightsInteractive figure, enable JavaScript to interact.

The Problem

The problem is the book's own, on the column at x = 3600 m: Part 4's 1D wave, a Gaussian pulse at rest in the water 300 m deep, followed for 0.5 s, the free surface and the pulse held exactly by the network's output transform. The observed field is the kernel's finite-difference solution in the true column at the book's own receivers, every 200 m from 200 m to 1600 m and every 20 ms, 208 values. It is a 2D acoustic, constant-density slice of a synthetic model, not field data, here cut to one dimension. The network is 2-24-24-1 with tanh, 697 weights; beside them are the velocity's 27 free nodes, every 50 m below the sea floor, starting at the column of FWI2D's start. The physics term is the residual of βˆ‚t2uβˆ’c(z)2βˆ‚z2u\partial_t^2 u - c(z)^2 \partial_z^2 u at 400 seeded points. All three runs take 3000 Adam steps, the velocity held for the first 500 so the network meets the data first. The velocity is scored over its nodes to 1480 m, where the pulse arrives at 30 % of its peak.

The Weights

The loss, in the book's nondimensional units, is

β„’(ΞΈ,c)=Ξ»d 1Ndβˆ‘i(uΞΈ(zi,ti)βˆ’di)2+Ξ»p 1Npβˆ‘k(βˆ‚t2uΞΈβˆ’c(z)2β€‰βˆ‚z2uΞΈ)2,\mathcal L(\theta, c) = \lambda_d\,\frac1{N_d} \sum_i \big(u_\theta(z_i, t_i) - d_i\big)^2 + \lambda_p\,\frac1{N_p} \sum_k \big(\partial_t^2 u_\theta - c(z)^2\,\partial_z^2 u_\theta\big)^2,

with Ξ»d=1\lambda_d = 1. Weighted to the data, Ξ»p=10βˆ’5\lambda_p = 10^{-5}, the network fits the records best of the three, its field 0.09 from the reference in relative L2, but the velocity, which only the second term moves, ends 254 m/s from the truth. Weighted to the physics, Ξ»p=10βˆ’1\lambda_p = 10^{-1}, the data term ends at 0.010, 22 times the balanced run's: the field drifts from the records, 0.33 from the reference, and the velocity ends 424 m/s from the truth, worse than the start. Between, Ξ»p=10βˆ’3\lambda_p = 10^{-3}, the velocity ends 242 m/s from the truth, with the field 0.10 from the reference.

The best run is not much better than the data-heavy one, and none comes near Section 6.2's classical inversion of the same column, which uses different data. What the three show is the sensitivity: a factor of a hundred in one weight separates a run that improves on the start from one that is worse than it. Rasht-Behesht et al. (2021) report excellent PINN results on the inversions they considered; here the weights were part of what made a run good, and a PINN-FWI result should say what they were and how they were chosen.

What Comes Next

Section 6.9 asks how to defend an inversion's result when there is no truth to compare it with.

References

  • Rasht-Behesht, M., Huber, C., Shukla, K. and Karniadakis, G. E. (2021). Physics-informed neural networks (PINNs) for wave propagation and full waveform inversions. arXiv:2108.12035.

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