Author Contributions
Conceptualization, M.A. and I.S.C.; methodology, M.A.; software, M.A. and M.S.A.; validation, I.S.C., K.A. and M.S.A.; formal analysis, K.A.; investigation, M.A. and M.S.A.; resources, K.A.; data curation, M.A.; writing—original draft preparation, M.A.; writing—review and editing, M.A. and I.S.C.; visualization, M.S.A.; supervision, K.A. and M.S.A.; project administration, I.S.C.; funding acquisition, K.A. All authors have read and agreed to the published version of the manuscript.
Figure 1.
Schematic of the standard PINN architecture.
Figure 1.
Schematic of the standard PINN architecture.
Figure 2.
Schematic of the standard gPINN architecture.
Figure 2.
Schematic of the standard gPINN architecture.
Figure 3.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions.
Figure 3.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions.
Figure 4.
Training Dynamic: gPINN loss drops below at epoch 200 vs. 350 for PINN.
Figure 4.
Training Dynamic: gPINN loss drops below at epoch 200 vs. 350 for PINN.
Figure 5.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of the diffusion equation evaluated over a computational domain defined by spatial coordinate x and temporal variable t.
Figure 5.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of the diffusion equation evaluated over a computational domain defined by spatial coordinate x and temporal variable t.
Figure 6.
Training Dynamic: gPINN achieves error < 6 × 10−3 by epoch 100, while PINN requires 250 epochs.
Figure 6.
Training Dynamic: gPINN achieves error < 6 × 10−3 by epoch 100, while PINN requires 250 epochs.
Figure 7.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of the Allen–Cahn Equation over spatial coordinate x and temporal variable t.
Figure 7.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of the Allen–Cahn Equation over spatial coordinate x and temporal variable t.
Figure 8.
Training Dynamic: gPINN final loss is 0.0715 vs. standard PINNs 0.0714, with 20% faster early convergence.
Figure 8.
Training Dynamic: gPINN final loss is 0.0715 vs. standard PINNs 0.0714, with 20% faster early convergence.
Figure 9.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Helmholtz interface problem over a cartesian domain (x,y).
Figure 9.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Helmholtz interface problem over a cartesian domain (x,y).
Figure 10.
Training Dynamic: standard PINN shows more stable loss descent; gPINN has 30% higher loss variance.
Figure 10.
Training Dynamic: standard PINN shows more stable loss descent; gPINN has 30% higher loss variance.
Figure 11.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Burger’s equation.
Figure 11.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Burger’s equation.
Figure 12.
Training Dynamic: gPINN has 25% higher initial loss but reaches 15% lower final error.
Figure 12.
Training Dynamic: gPINN has 25% higher initial loss but reaches 15% lower final error.
Figure 13.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Huxley equation over spatial coordinate x and temporal variable t.
Figure 13.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Huxley equation over spatial coordinate x and temporal variable t.
Figure 14.
Training Dynamic: gPINN converges 40% faster and reduces final error by 18%.
Figure 14.
Training Dynamic: gPINN converges 40% faster and reduces final error by 18%.
Figure 15.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Fisher equation.
Figure 15.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Fisher equation.
Figure 16.
Training Dynamic: gPINN error is 0.00107 vs. standard PINN 0.00162, with similar convergence speed.
Figure 16.
Training Dynamic: gPINN error is 0.00107 vs. standard PINN 0.00162, with similar convergence speed.
Figure 17.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Burger’s–Huxley equation.
Figure 17.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Burger’s–Huxley equation.
Figure 18.
Training Dynamic: gPINN achieves 0.00547 error vs. standard PINN 0.00740.
Figure 18.
Training Dynamic: gPINN achieves 0.00547 error vs. standard PINN 0.00740.
Figure 19.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Burger’s–Fisher equation, where x shows spatial coordinate and t shows temporal variable.
Figure 19.
Comparison of the exact solution with standard PINN and gPINN predictions, along with absolute error distributions of Burger’s–Fisher equation, where x shows spatial coordinate and t shows temporal variable.
Figure 20.
Training Dynamic: gPINN final L_2 error is 0.00145 vs. standard PINN 0.00740.
Figure 20.
Training Dynamic: gPINN final L_2 error is 0.00145 vs. standard PINN 0.00740.
Table 1.
Sensitivity of gPINN to gradient-loss weight for the fourth-order PDE (gPINN).
Table 1.
Sensitivity of gPINN to gradient-loss weight for the fourth-order PDE (gPINN).
| Error | Max Absolute Error | | Stability |
|---|
| | | | Stable |
| | | | Optimal |
| | | | Occasional spikes |
| | | | Unstable |
Table 2.
Comparison of relative and absolute error for standard PINN and gPINN.
Table 2.
Comparison of relative and absolute error for standard PINN and gPINN.
| Method | Max Absolute Error | |
|---|
| PINN | 0.0091 | 0.0066 |
| gPINN | 0.0058 | 0.0058 |
Table 3.
Computational Cost Comparison: Standard PINN vs. gPINN.
Table 3.
Computational Cost Comparison: Standard PINN vs. gPINN.
| Problem | Method | Epoch Time (ms) | GPU Memory (MB) | Total Time (s) |
|---|
| Fourth-Order PDE | PINN | 12.5 | 1450 | 187.5 |
| | gPINN | 28.7 | 2880 | 229.6 |
| Burger’s Equation | PINN | 8.3 | 1210 | 166.0 |
| | gPINN | 19.1 | 2150 | 229.2 |
| Helmholtz Interface | PINN | 10.1 | 1320 | 181.8 |
| | gPINN | 24.5 | 2450 | 343.0 |
Table 4.
Comparison of relative and maximum absolute error between standard PINN and gPINN for diffusion equation.
Table 4.
Comparison of relative and maximum absolute error between standard PINN and gPINN for diffusion equation.
| Method | Max Absolute Error | |
|---|
| PINN | 0.0098 | 0.0058 |
| gPINN | 0.0078 | 0.0058 |
Table 5.
Comparison of relative and maximum absolute error between standard PINN and gPINN for Allen_Cahn equation.
Table 5.
Comparison of relative and maximum absolute error between standard PINN and gPINN for Allen_Cahn equation.
| Method | Max Absolute Error | |
|---|
| PINN | 0.0714 | 0.0092 |
| gPINN | 0.0715 | 0.0091 |
Table 6.
Comparison of relative and maximum absolute error between standard PINN and gPINN for Helmholtz Interface problem example.
Table 6.
Comparison of relative and maximum absolute error between standard PINN and gPINN for Helmholtz Interface problem example.
| Method | Max Absolute Error | |
|---|
| PINN | 0.0373 | 0.0036 |
| gPINN | 0.0322 | 0.0011 |
Table 7.
Comparison of relative and maximum absolute error between standard PINN and gain for Burger’s equations example.
Table 7.
Comparison of relative and maximum absolute error between standard PINN and gain for Burger’s equations example.
| Method | Max Absolute Error | |
|---|
| PINN | 0.0183 | 0.0073 |
| gPINN | 0.0174 | 0.0055 |
Table 8.
Comparison of relative and absolute error between standard PINN and gPINN for Huxley equation example.
Table 8.
Comparison of relative and absolute error between standard PINN and gPINN for Huxley equation example.
| Method | Max Absolute Error | |
|---|
| PINN | 0.0252 | 0.0061 |
| gPINN | 0.0125 | 0.0056 |
Table 9.
Comparison of relative and maximum absolute error between standard PINN and gPINN for Fisher equation example.
Table 9.
Comparison of relative and maximum absolute error between standard PINN and gPINN for Fisher equation example.
| Method | Max Absolute Error | |
|---|
| PINN | 0.0541 | 0.0016 |
| gPINN | 0.0318 | 0.0010 |
Table 10.
Comparison of relative and absolute error between standard PINN and gPINN for Burger’s–Huxley equation example.
Table 10.
Comparison of relative and absolute error between standard PINN and gPINN for Burger’s–Huxley equation example.
| Method | Max Absolute Error | |
|---|
| PINN | 0.0244 | 0.0074 |
| gPINN | 0.0147 | 0.0054 |
Table 11.
Comparison of relative and maximum absolute error between standard PINN and gPINN for Burger’s–Fisher Equation example.
Table 11.
Comparison of relative and maximum absolute error between standard PINN and gPINN for Burger’s–Fisher Equation example.
| Method | Max Absolute Error | |
|---|
| PINN | 0.0141 | 0.0039 |
| gPINN | 0.0118 | 0.0014 |
Table 12.
Comparison of relative and absolute error for standard PINN and gPINN.
Table 12.
Comparison of relative and absolute error for standard PINN and gPINN.
| PDE Example | Method | Max Absolute Error | Error | Remarks |
|---|
| Fourth-Order PDE | PINN | 0.0092 | 0.0067 | gPINN showed better error control. |
| | gPINN | 0.0059 | 0.0059 | |
| Diffusion Equation | PINN | 0.0099 | 0.0059 | gPINN more accurate.
|
| | gPINN | 0.0079 | 0.0059 | |
| Allen–Cahn Equation | PINN | 0.0725 | 0.0093 | Comparable performance, gPINN slightly better. |
| | gPINN | 0.0713 | 0.0091 | |
| Helmholtz Interface Problem | PINN | 0.0373 | 0.0036 | gPINN achieves lower and max absolute error, showing improved accuracy for interface problems. |
| | gPINN | 0.0322 | 0.0011 | |
| Burger’s Equation | PINN | 0.0183 | 0.0073 | Clear gPINN advantage. |
| | gPINN | 0.0174 | 0.0055 | |
| Huxley Equation | PINN | 0.0252 | 0.0061 | gPINN significantly reduced max error. |
| | gPINN | 0.0125 | 0.0056 | |
| Fisher Equation | PINN | 0.0541 | 0.0016 | gPINN outperformed PINN.
|
| | gPINN | 0.0318 | 0.0010 | |
| Burger’s–Huxley Equation | PINN | 0.0244 | 0.0074 | gPINN showed clear improvement. |
| | gPINN | 0.0147 | 0.0054 | |
| Burger’s–Fisher Equation | PINN | 0.0140 | 0.0039 | gPINN lower , PINN slightly lower max. |
| | gPINN | 0.0158 | 0.0014 | |
Table 13.
Algorithm selection framework based on PDE properties.
Table 13.
Algorithm selection framework based on PDE properties.
| PDE Challenge | Test Problem | Recommended Solver | Rationale |
|---|
| High-Order Derivative | Fourt-Order PDE | gPINN | Gradient constraints improve stability and accuracy; optimal with . |
| Strong Nonlinearity | Burger’s, Huxley, Fisher | PINN (robust)/ gPINN (smooth) | PINN more stable for sharp fronts; gPINN better for smooth waves. |
| Interface Conditions | Helmholtz Interface | gPINN | Simpler loss, reliable convergence with moderate gradient regularization. |
| Data Sparsity | All Problems | gPINN | Gradient terms inject physical prior, improving accuracy in sparse regimes. |