Skip to text

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 t∈[0,T],

(6.8)ds1dt=s2,
(6.9)ds2dt=−bms2−gLsin(s1),

where s1 and s2 are the position and velocity of the pendulum, respectively. We employ the same parameters used in [29], that is, m=L=1, b=0.05, g=9.81, and T=20. We take s1(0)=s2(0)=1. 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 ℓ2 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 ℓ2 error of 7.4·10−3 with only 34 570 trainable parameters. In comparison, the best case stacking PINN from [13] requires four stacking levels to reach a relative ℓ2 error of 1.3·10−2 with 63 018 trainable parameters.

Figure 6.3 Stacking FBPINN results for the pendulum problem: Left: Stacking FBPINN results for an illustrative example of s1 (top) and s2 (bottom) as a function of time for the pendulum problem up to five stacking FBPINN levels. Right: Pendulum relative ℓ2 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]:

dsdx=ω1cos(ω1x)+ω2cos(ω2x),s(0)=0,

on domain Ω=[0,20] with ω1=1 and ω2=15. The exact solution for this problem is s(x)=sin(ω1x)+sin(ω2x).

The results are shown in Figure 6.4. After two stacking levels, the stacking FBPINN reaches a relative ℓ2 error of 4.2·10−3, with 7 822 trainable parameters. A comparable relative ℓ2 error of 6.1·10−3 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 ℓ2 error of 9.5·10−2 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 ℓ2 error of 8.3·10−4, 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 ℓ2 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

st−0.0001sxx+5s3−5s=0,t∈(0,1],x∈[−1,1],s(x,0)=x2cos(πx),x∈[−1,1],s(x,t)=s(−x,t),t∈[0,1],x=−1,x=1,sx(x,t)=sx(−x,t),t∈[0,1],x=−1,x=1.

The Allen–Cahn equation presents difficulties for PINNs when attempting to learn the full solution from t=0 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 ℓ2 error for applying two levels of the stacking FBPINN is 5.9·10−3. Previously reported values for the relative error in literature include 1.68·10−2 for the backward compatible PINN [20] and 2.33·10−2 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 t=0.25 (top) and t=0.75 (bottom).