4 Results
4.1 Pendulum
While a relatively simple system, accurately training a PINN to predict the movement of a pendulum for long times presents challenges [29]. The pendulum movement is governed by a system of two first-order ODEs for ,
where and are the position and velocity of the pendulum, respectively. We employ the same parameters used in [29], that is, , , , and . We take . We compare the results with those for the stacking PINN from [13], which uses the same multifidelity architecture but only a single PINN on each level. As shown in Figure 6.3, the stacking FBPINN is able to reach a significantly lower relative error. In addition, each network in the stacking FBPINN is significantly smaller than the networks used in the stacking PINN with the result that, at three stacking layers, the stacking FBPINN reaches a relative error of with only 34 570 trainable parameters. In comparison, the best case stacking PINN from [13] requires four stacking levels to reach a relative error of with 63 018 trainable parameters.

Figure 6.3 Stacking FBPINN results for the pendulum problem: Left: Stacking FBPINN results for an illustrative example of (top) and (bottom) as a function of time for the pendulum problem up to five stacking FBPINN levels. Right: Pendulum relative training errors comparing the work in the current paper (solid line) with the approach from [13] (dashed lines).
4.2 Multiscale problem
We now consider a toy model problem with a low and high frequency component, inspired by [22]:
on domain with and . The exact solution for this problem is .
The results are shown in Figure 6.4. After two stacking levels, the stacking FBPINN reaches a relative error of , with 7 822 trainable parameters. A comparable relative error of is reached after 10 stacking levels with a stacking PINN with 11 179 trainable parameters. Also shown in Figure 6.4 (right) is the best case SF network from [13], which has a relative error of with 16 833 trainable parameters. The stacking FBPINN outperforms the SF PINN with an error more than an order of magnitude lower, with less than half the trainable parameters. Additionally, the final stacking FBPINN reaches a relative error of , an order of magnitude lower than the final stacking PINN.

Figure 6.4 Stacking FBPINN results for the multiscale problem: Left: Stacking FBPINN results for the single fidelity level 0 and the first four stacking FBPINN levels. Right: Multiscale relative training errors comparing the work in the current paper with [13].
4.3 Allen–Cahn equation
Our third example is based on the Allen–Cahn equation and is given by
The Allen–Cahn equation presents difficulties for PINNs when attempting to learn the full solution from to 1 with a single PINN; see, for example, [32], [20], [26].
We solve the Allen–Cahn equation by dividing the time domain into subdomains, as presented in Section 3. The corresponding results for the stacking FBPINN are shown in Figure 6.5. The relative error for applying two levels of the stacking FBPINN is . Previously reported values for the relative error in literature include for the backward compatible PINN [20] and for PINNs with adaptive resampling [32].

Figure 6.5 Stacking FBPINN results for the Allen–Cahn equation. Left: Stacking FBPINN results for the single fidelity level 0 and the first two stacking FBPINN levels. Right: Line plots of the results from the stacking FBPINN at (top) and (bottom).