Causality weighting for time-domain PINNs
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 times the earlier bins' losses: a bin counts once the bins before it are fitted. At the last bin weighs 0.76 of the first at step 1900; at 2.4 × 10⁻⁸. The network ends 0.32 from FD at and 0.81 at , against 0.31 without the bins: in 2000 steps the order bought nothing here.
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 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 , at 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 , against 0.36 without the bins, and 0.38 at . 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.