Adaptive collocation point sampling (RAR/RAD)
Learning objectives
- Start from half of Section 4.1's collocation points and add more every 250 steps where the residual is largest
- Add them instead by drawing in proportion to the residual, and compare where each rule puts its points
- Read the residual ranking that chooses the first addition at the seed's network
- Compare both rules with the same number of points drawn evenly
Points Where the Residual Is
The residual is enforced only at the collocation points, so where they sit decides where the network is held to the wave equation. Starting from 400 of Section 4.1's 800 points, every 250 steps the network gains 50 more where its residual is large. With the largest-residual rule (RAR) the first 50 points sit at a median depth of 1523 m and the last at a median depth of 162 m and a median time of 408 ms. With 800 points in the end it ends 0.25 from FD, the proportional draw 0.29 and Section 4.1's even points 0.31.
Two Rules
Every 250 steps the residual is evaluated at 2000 candidates drawn once over the column and the record. The largest-residual rule adds the 50 unused candidates of largest ; the proportional rule (RAD) draws 50 with probability in proportion to over its mean plus 1, repeats allowed, so it still reaches where the residual is small. The last additions are spread 434 m in depth against 508 m.
The First Addition
At step 0 the network is the seed's, and its residual is largest where its random field curves most against the column's velocity: the first 50 points sit where the seed put that curvature, not where the wave will be. The rule follows the residual, whatever makes it; later additions follow the network's misses as it learns the wave.
Every Point Counts Alike
The residual term stays a mean over its points, so an added point counts as much as any other: the rules move the points, not their weights. Lu et al. (2019) proposed residual-based adaptive refinement (RAR) to improve the training efficiency of PINNs; Wu et al. (2022) found the distribution of the residual points highly important to their performance and proposed residual-based adaptive sampling, RAD and RAR-D. The book's two rules, their schedule and their candidates are its own versions, measured here.
What Comes Next
Section 3.8 splits the column instead: four small networks, each in its window of depth, summed.
References
- Lu, L., Meng, X., Mao, Z. and Karniadakis, G. E. (2019). DeepXDE: a deep learning library for solving differential equations. arXiv:1907.04502. doi:10.1137/19M1274067.
- Wu, C., Zhu, M., Tan, Q., Kartha, Y. and Lu, L. (2022). A comprehensive study of non-adaptive and residual-based adaptive sampling for physics-informed neural networks. arXiv:2207.10289. doi:10.1016/j.cma.2022.115671.