Why most beginner PINNs do not converge
Learning objectives
- Train one PINN of the column's 1D wave with every loss weight 1 and read its loss and its error against FD side by side
- Explain why a field that barely moves keeps the wave equation's residual small, and why that makes it a trap
- Compute the loss of the zero field and see which term it leaves unsatisfied
- Show that the same network, seed and points with the residual weighted down learn the wave
Converged, to the Wrong Field
A PINN that does not converge has usually converged: to a field that satisfies most of its loss and is not the wave. On the Marmousi2 column with every loss weight 1, the network's loss falls 49 times in 2000 Adam steps and its error against the FD field stays at 0.85 in relative L2, from 1.24 before training. At 250 ms its field reaches 30 % of FD's largest amplitude and at 500 ms 12 %. With the residual of the wave equation weighted down and nothing else changed, the same network ends 0.31 from FD.
One Problem for the Part
Every figure of Part 3 trains the same network on the same problem: Section 4.1's 2241 parameters, three hidden layers of 32 tanh units from one seeded start, on the 1D acoustic wave through the column at x = 3600 m, the pulse at rest in the water as T0 sets it. Here every condition is a soft term of the loss: the residual at 800 collocation points, the pulse and its zero rate at 91 depths at , and the free surface at 51 times. Each run is 2000 Adam steps at 0.002, and each is scored against FD, a solver that is not the network. Raissi et al. (2017) introduced physics informed neural networks as networks trained to solve supervised tasks while respecting the laws of physics described by partial differential equations; the loss here is that idea, written as four terms.
Why the Zero Field Is a Trap
A field that is zero everywhere satisfies the wave equation, its rate at the start and the free surface exactly. Only the start term asks for the pulse, and the zero field's loss is the pulse's mean square at the 91 depths of the start term, 1.4 × 10⁻¹. With every weight 1 the residual, summed over the most points and largest at the start, pulls the network toward fields whose second derivatives cancel, and a field that barely moves is the nearest one. The loss falls because the terms are being satisfied; the error stays because the field is not the wave.
The Same Network, the Weights Changed
Weighted at the pulse's curvature scale, 3.8 × 10⁻⁵, the residual no longer drowns the start term, and the network learns a pulse that travels: at 500 ms with the residual weighted down it reaches 78 % of FD's largest amplitude, against 12 % with every weight 1. The weights decided which field the training converged to. Section 3.2 sweeps that one weight over six decades.
What to Look For
A falling loss is not a converging field. A PINN is judged by its error against a solver that is not the network, at the times and places the loss does not reach; a residual that is small while the field is flat is the first sign of the trap.
What Comes Next
Section 3.2 fixes the residual's weight at seven values from 1 down to a millionth and finds where the balance lies.
References
- Raissi, M., Perdikaris, P. and Karniadakis, G. E. (2017). Physics informed deep learning (Part I): data-driven solutions of nonlinear partial differential equations. arXiv:1711.10561.