Causality weighting for time-domain PINNs

Part 3, Training pathologies and remedies

Learning objectives

  • Split the residual's points into time bins and weight each bin by how well the bins before it are fitted
  • Compute the causal weights from the time-binned residual and read how they fall along the record
  • Compare two strengths and read the error over the record's first and second halves
  • Say what the strength buys and what it costs in a fixed budget of steps

Let the Record Wait Its Turn

A PINN of a wave minimises its residual at every time at once, so nothing stops it fitting a late time before the early ones that cause it. Causal weights put the residual's points in ten time bins and weigh each bin by the exponential of −ε-\varepsilon times the earlier bins' losses: a bin counts once the bins before it are fitted. At ε=10\varepsilon = 10 the last bin weighs 0.76 of the first at step 1900; at ε=100\varepsilon = 100 2.4 × 10⁻⁸. The network ends 0.32 from FD at ε=10\varepsilon = 10 and 0.81 at ε=100\varepsilon = 100, against 0.31 without the bins: in 2000 steps the order bought nothing here.

Causal Time BinsInteractive figure, enable JavaScript to interact.

The Weights

Before every step the residual is evaluated at its 800 points, each point falls in the bin of its time, and each bin's loss is the weighted mean square of its residuals. The weights ωb=exp⁡(−ε∑b′<bℒb′)\omega_b = \exp\big(-\varepsilon \sum_{b' < b} \mathcal L_{b'}\big) are then held fixed through the step. The first bin always weighs 1; a running sum only grows, so the weights never rise along the record.

The Strength Is a Budget

At ε=10\varepsilon = 10, at ε=100\varepsilon = 100 and without the bins, the error over the first half 0.32, 0.46 and 0.31; over the second half of the record 1.06 at ε=100\varepsilon = 100, against 0.36 without the bins, and 0.38 at ε=10\varepsilon = 10. Neither strength bought the early record anything in 2000 steps, and the stronger left the late record unlearnt: causal weights move the training's effort toward the early times, and a budget of steps decides whether the late times are ever reached.

In the Book's Terms

Wang, Sankaran and Perdikaris (2022) argue that existing PINN formulations fail to respect the spatio-temporal causal structure of physical systems, and re-formulate the loss to account for physical causality. The book's weights are a form of that idea on the column; the ten bins, both strengths and holding each strength fixed are the book's own, and the result above is the book's measurement, not theirs.

What Comes Next

Section 3.6 orders the training by frequency instead of by time: a wider pulse first, then the one scored.

References

  • Wang, S., Sankaran, S. and Perdikaris, P. (2022). Respecting causality is all you need for training physics-informed neural networks. arXiv:2203.07404.

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