Hard-constraint enforcement via reparameterisation
Learning objectives
- Write a network output as a given part that satisfies the conditions and a part that vanishes on them, and say why each condition then holds whatever the weights
- Build the given part for the Marmousi2 column's start and free surface, and say why the pulse alone does not serve
- Read two stored runs, the conditions built in and the same conditions as soft terms, and compare what each holds and how close each is to finite differences
- Say what a hard constraint costs and when a soft term is the better choice
Exact Whatever the Weights
A condition built into the network's output holds exactly, whatever the weights, at every step of training, before the first as after the last. On the Marmousi2 column the book's network of 2241 parameters, with the pulse at rest, its rate and the free surface written into its output, holds all three at exactly 0 at every stored checkpoint and ends 0.15 from the finite-difference field; the same network with the three as soft terms misses the start by up to 0.041 and the surface by up to 0.030, and ends 0.12 from it. A hard constraint buys exactness where it is imposed, not accuracy elsewhere.
Two Parts
The network's output is written as a given part that satisfies the conditions and a part that cannot disturb them:
The factor is zero at with its rate, so the start is and at rest whatever is; the factor is zero at the surface, so there the output is . The given part must therefore satisfy the conditions itself. The pulse alone does not: 300 m deep and 200 m wide, its tail at the surface is 0.105 of its peak. The pulse less its mirror image above the surface, , is zero there, and it is the start a free surface asks for (Section 4.5 builds it, and this section's transform run is Section 4.5's, to the bit). With it the three conditions hold by construction, and the loss keeps the residual alone. Lagaris, Likas and Fotiadis (1997) wrote a trial solution this way: a part that satisfies the boundary and initial conditions with no adjustable parameters, and a network term built so as not to change them. Sukumar and Srivastava (2021) impose such conditions exactly with a distance function multiplying the network; the factor is the distance to the surface.
The Same Conditions as Soft Terms
The column is the Marmousi2 window's at x = 3600 m, a 2D acoustic, constant-density slice of a synthetic model (Martin, Wiley and Marfurt), not field data; the pulse, its image and both runs are the book's own. The control is the same network, seed, 800 collocation points and schedule, with the transform taken away and the three conditions written as Section 1.4's soft terms: the image pulse at rest at 91 depths and the surface at 51 times, each weighted 1, beside the residual at . Before training it misses the start by up to 1.332 and the surface by up to 0.334; after 2500 Adam steps the start by 0.086, and after 500 L-BFGS steps more by 0.041, its surface by 0.030. The transform's network is 1.52 from the field before training, 0.23 after the Adam steps and 0.15 at the end; the soft one 1.24, 0.24 and 0.12.
What a Transform Costs
A transform has to be built for each condition and each boundary, and both its parts must agree with every condition at once: here the start and the surface meet at the corner , , and only the image pulse satisfies both there. A plane surface and a start in time are the easy case; a condition on a curved boundary or on a derivative needs a factor that vanishes on that boundary in the right way, and Part 2 returns to such hard-constrained architectures. A soft term needs only points and a weight, and holds only approximately: the two are the trade this section measures.
What Comes Next
Section 1.6 turns the same machinery round: a velocity of the column unknown, learned with the network from the data.
References
- Lagaris, I. E., Likas, A. and Fotiadis, D. I. (1997). Artificial neural networks for solving ordinary and partial differential equations. arXiv:physics/9705023.
- 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.
- Sukumar, N. and Srivastava, A. (2021). Exact imposition of boundary conditions with distance functions in physics-informed deep neural networks. arXiv:2104.08426.