Picking an architecture by the numbers
Learning objectives
- Set Part 2's 13 networks on the column side by side, each read at its training depths and between them
- Rank them by the error between the samples and find the two-scale embedding first and Section 0.9's network eleventh
- See the ranking by the error at the training depths reward the networks that ring
- Choose an aim before a network, and score a network where it was not trained
Scored Where It Was Not Trained
An architecture is picked by scoring every candidate against an aim, where it was not trained. Read at the depths halfway between their training depths, Part 2's 13 networks on the column rank Section 2.5's two-scale embedding first, 3.0 m/s RMS between the samples, and Section 0.9's network eleventh, 105 m/s. Ranked instead by the error at the training depths, the score a fit is usually given, the first is a network that rings: two scales at and , 0.6 m/s at the samples and 16 m/s between them.
The Candidates
Section 0.9's 1-16-16-1 and 1-64-64-1 vanilla networks and Section 2.1's two runs of 30000 steps; Fourier features at , and (Section 2.2); SIRENs at and (Section 2.3); the water built into the vanilla network and into Fourier features at (Section 2.4); and two scales, and or and (Section 2.5). Each is read by the kernel at 351 depths every 5 m, 176 of them its training depths and 175 halfway between, with Section 0.9's wavelength bands.
Three Aims
By the error between the samples the two-scale embedding is first, Fourier features at with the water built in second at 3.5 m/s, Fourier features at third at 4.7 m/s, and the four-layer vanilla network fourth at 6.8 m/s, after ten times the steps. By the error at the training depths the order turns over: the pair at and at 0.6 m/s, Fourier features at at 1.2 m/s and at at 2.8 m/s, the last 248 m/s between the samples. By the finest layers, the wavelengths shorter than 125 m, the two-scale embedding is first again at 14 %, and the networks that ring fall past 100 %, their error holding more of the band than the column does.
The Rule
Choose the aim before the network, and score the network where it was not trained. Rahaman et al. (2019) and Xu et al. (2019) explain why a plain network starts from the long wavelengths; Sitzmann et al. (2020) and the Fourier layer of Section 2.2 change where it starts. On the column the numbers pick a two-scale Fourier embedding at Section 0.9's 3000 steps. A PINN is scored the same way, against a reference solver at points it was not trained on, as Part 4 does.
What Comes Next
Part 3 turns from the network to its training: why PINNs that are well built still fail to converge.
References
- Rahaman, N., Baratin, A., Arpit, D., Draxler, F., Lin, M., Hamprecht, F. A., Bengio, Y. and Courville, A. (2019). On the spectral bias of neural networks. arXiv:1806.08734.
- Xu, Z.-Q. J., Zhang, Y., Luo, T., Xiao, Y. and Ma, Z. (2019). Frequency principle: Fourier analysis sheds light on deep neural networks. arXiv:1901.06523.
- Sitzmann, V., Martel, J. N. P., Bergman, A. W., Lindell, D. B. and Wetzstein, G. (2020). Implicit neural representations with periodic activation functions. arXiv:2006.09661.