Scinovex
article Open Access

Adaptive L1-physics-informed neural network for nonlinear time-fractional diffusion-reaction equations: Numerical accuracy and stability analysis

Abstract

Here, an Improved Adaptive L1-Physics-Informed Neural Network framework for solving nonlinear time-fractional diffusion-reaction equations is proposed. The proposed approach merges the L1 approximation of the Caputo fractional derivative with the physics-informed training architecture for neural networks. The motivation behind this is to overcome the challenge of nonlocal temporal behavior of fractional derivatives in which the solution at present time depends on a system's previous history. Although the classical L1 scheme is reliable as a deterministic approximation and the proposed approach is deterministic and stable, the standard Physics-Informed Neural Networks can suffer from the training instability, i.e., if the fractional memory effect does not have a correct representation in the residual function. Our proposed framework embeds the L1 approximation directly into the physics-informed residual and adds adaptive weights during training to balance the equation residual, initial state, and boundary state. A synthetic exact solution is employed to check the numerical results of the methods. Numerical experiments are done for four fractional orders: =0.3,0.5,0.7, and 0.9, fixed model parameters =0.01 and =1 on the computational domain 0 x1, 0 t1. Performance of the classical L1 scheme with the standard PINN and the Improved Adaptive L1-PINN will be examined by MSE, RMSE, MAE, R2, CPU time and in the training behavior. It is shown that classical L1 scheme achieves the highest deterministic accuracy and lowest computational cost for the manufactured test problem. Nonetheless the Improved Adaptive L1-PINN improves substantially the conventional PINN in majority cases particularly for =0.3, =0.5 and =0.7. Moreover, the hybrid approach for learning-based approximation is also more stable as it is informed by fractional memory information in neural residual. This support that the Improved Adaptive L1-PINN represents a neural numerical framework for nonlinear time-fractional models, especially when a flexible approximation structure is needed.

Full Text

Tables and figures are in the full-text PDF.

Introduction

Fractional differential equations have become a valuable tool in the mathematical modeling of memory effects and nonlocal temporal phenomena of systems. These are systems present in instances of anomalous diffusion, heat transfer, biological interactions, financial modeling and material dynamics. Classical integer-order derivatives are typically inappropriate to represent such phenomena as the current state of a system relies on the time in past. Consequently, fractional derivatives, especially the Caputo derivative, offer a better framework (which allows a more valid approximation for building realistic mathematical models). For fractional differential equations, numerical methods would typically need special techniques for timediscretization. In contrast, Physics-Informed Neural Networks PINNs offer an advanced computational approach for solving differential equations. PINNs mainly embed the governing equation in the loss function when its input, thus training this approach relies on physical and mathematical laws of the model, which relies on the training on top of the existing data. Raissi et al. [1] described basic formulation of PINNs for the forward-and-inverse problems based on nonlinear partial differential equations. Subsequent work showed their suitability for heat transfer applications [2] , and reviewed the evolution of them and computational developments [3] , as well as their methods, applications, and difficulties [4] . Most recent reviews have established PINNs have now been emerging as a key methodology for scientific computing and multidisciplinary modeling [5,6], as well as for using complex materials, such as polymers [7] . Despite their flexibility, using PINNs for fractional differential equations, like any other problem, must be approached with care. The main difficulty lies in the nonlocal nature of the fractional derivative: the residual of a fraction depends on the entire temporal history of the solution. This makes creating a differential residual more challenging than in the classical integer-order case. Furthermore, the loss function in PINNs sometimes includes multiple components like equation residual, the initial condition and boundary conditions. In case of the balance of these components is not observed, the training process may fail and the numerical approximation of the training may not be accurate. The L1 scheme is one of these techniques, as a simple and practical means of approximating the Caputo time-fractional derivative, it is among the most commonly used methods within which to approximate the derivative. Stynes [8] conducted a comprehensive survey of the L1 scheme and related issues for discretizing time-fractional problems. Recently, the L1 scheme was extended and improved for other classes of fractional models, such as nonlinear time-fractional Schrödinger delay equations [9] , memory-termbased subdiffusion equations [10] , convection-diffusion-reaction equations [11] , and semilinear stochastic subdiffusion problems [12] . These works demonstrate the ongoing and stable utility of the L1 scheme in contemporary fractional numerical computation. The central problem tackled in this study is the difficulty of accurately and efficiently solving nonlinear time-fractional diffusionreaction equations. This challenge surfaces in two main forms. The first of these is numerical because the fractional derivative encodes a cumulative memory effect which increases both the computational cost, as well as sensitivity of approximation to time step selection. The second element focuses on the training of neural networks as standard PINNs may fail to represent the nonlocal structure of the fractional derivative when the loss function is not designed in a balanced and stable way. Hence, the question sought by this research is: How can the stability of the L1 scheme be combined with the flexibility of Physics-Informed Neural Networks to produce an accurate and stable method for nonlinear time-fractional diffusion-reaction equations? This study therefore sets out a hybrid L1-PINN framework to solve nonlinear time-fractional diffusion-reaction equations. The paper combines the L1 approximation of the Caputo derivative with a physics-informed training strategy of neural networks and adds adaptive residual weights to balance the equation residual, initial condition, and boundary conditions during the training. The study formulates the mathematical model, constructs the fractional numerical approximation, designs the neural network loss function, and compares the proposed method to both the classical L1 scheme and the standard PINN method. It also studies how the fractional order α impacts the accuracy and stability of the numerical solution.

Mathematical Model

This study considers the following nonlinear time-fractional diffusion-reaction equation: Where D C,t α denotes the Caputo time-fractional derivative of order α, κ > 0 is the diffusion coefficient, λ is the nonlinear reaction coefficient, and f(x, t) is the source term. The problem is completed by the initial and boundary conditions 𝑢(𝑥, 0) = 𝑢 0 (𝑥), 0 ≤ 𝑥 ≤ 1, 𝑢(0, 𝑡) = 𝑔 1 (𝑡), 𝑢(1, 𝑡) = 𝑔 2 (𝑡), 0 < 𝑡 ≤ 𝑇.

For 0 < α < 1, the Caputo derivative is defined by

This formulation allows the model to represent memory-dependent diffusion-reaction dynamics, since the fractional derivative depends on the entire temporal history of the solution.

Exact Solution for Numerical Verification

To verify the accuracy of the proposed method, the following manufactured exact solution is considered:

Accordingly, the initial and boundary conditions become 𝑢(𝑥, 0) = 0, 𝑢(0, 𝑡) = 0, 𝑢(1, 𝑡) = 0.

Using the Caputo derivative property

Moreover, the second spatial derivative of the exact solution is

Therefore, the source term is determined from 𝑓(𝑥, 𝑡) = 𝐷 𝐶,𝑡 𝛼 𝑢(𝑥, 𝑡) -𝜅𝑢 𝑥𝑥 (𝑥, 𝑡) -𝜆𝑢(𝑥, 𝑡)(1 -𝑢(𝑥, 𝑡)).

Substituting the exact solution into the above expression gives 𝑓(𝑥, 𝑡) = 𝑓 1 (𝑥, 𝑡) + 𝑓 2 (𝑥, 𝑡) -𝑓 3 (𝑥, 𝑡),

This source term ensures that the chosen function u(x, t) = t 2 sin(πx) satisfies the governing equation exactly.

Numerical Approximation Using the L1 Scheme

The time interval [0, T] is divided into N uniform subintervals such that

The Caputo derivative at t = t n is approximated using the classical L1 scheme as follows:

Where the convolution coefficients are given by

The second-order spatial derivative can be approximated by the central difference formula

This discretization provides a classical numerical reference for comparison with the proposed hybrid neural framework.

Standard PINN Formulation

Let the approximate solution be represented by a neural network of the form 𝑢 ̂(𝑥, 𝑡; 𝜃) = NN(𝑥, 𝑡; 𝜃),

Where θ denotes the trainable parameters of the neural network. The differential residual associated with the governing equation is defined as 𝑅(𝑥, 𝑡; 𝜃) = 𝐷 𝐶,𝑡 𝛼 𝑢 ̂(𝑥, 𝑡; 𝜃) -𝜅𝑢 ̂𝑥𝑥 (𝑥, 𝑡; 𝜃) -𝜆𝑢 ̂(𝑥, 𝑡; 𝜃)(1 -𝑢 ̂(𝑥, 𝑡; 𝜃)) -𝑓(𝑥, 𝑡).

The total loss function is written as

The equation residual loss is defined by

The initial-condition loss is

The boundary-condition loss is given by

This formulation embeds the governing equation, the initial condition, and the boundary conditions directly into the neural network training process.

Proposed L1-PINN Method

The proposed method incorporates the L1 approximation of the Caputo derivative into the physics-informed residual. Therefore, the numerical physical residual is expressed as 𝑅 𝐿1 (𝑥 𝑖 , 𝑡 𝑛 ; 𝜃) = 𝐴 𝐿1 (𝑥 𝑖 , 𝑡 𝑛 ; 𝜃) -𝜅𝑢 ̂𝑥𝑥 (𝑥 𝑖 , 𝑡 𝑛 ; 𝜃) -𝜆𝑢 ̂(𝑥 𝑖 , 𝑡 𝑛 ; 𝜃)(1 -𝑢 ̂(𝑥 𝑖 , 𝑡 𝑛 ; 𝜃)) -𝑓(𝑥 𝑖 , 𝑡 𝑛 ),

The adaptive loss function is then defined as

Where w f , w i , and w b are adaptive weights updated during the training process. These weights can be updated according to the softmax-type rule

Where r denotes the iteration number and η > 0 controls the sensitivity of the adaptive weighting mechanism. This adaptive structure prevents one part of the loss function from dominating the training process and improves the balance between the physical residual, the initial condition, and the boundary conditions.

Algorithm of the Proposed Method

The implementation steps are given as follows: The accuracy of the numerical methods is evaluated using the following standard error measures:

Here, u k represents the exact solution value, u ̂k represents the predicted numerical value, u is the mean of the exact solution values, and N is the total number of testing points.

Numerical Experiments and Simulation Study

This section presents the numerical experiments designed to evaluate the accuracy, stability, and computational efficiency of the proposed Improved Adaptive L1-PINN method for solving nonlinear time-fractional diffusion-reaction equations. The simulation is constructed using a manufactured exact solution, which allows a direct comparison between the exact solution and the numerical approximations obtained by the classical L1 scheme, the standard PINN, and the proposed Improved Adaptive L1-PINN method. The software used for this simulation is MATLAB R2020a, and the application code is attached as Appendix A.

The numerical experiments are carried out for four representative values of the fractional order. These values examine the behavior of the numerical methods under weak, moderate, and strong memory effects. The selected fractional orders are 𝛼 = 0.3, 0.5, 0.7, 0.9.

The physical and computational parameters are fixed throughout the experiments as follows:

The governing equation is given by 𝐷 𝐶,𝑡 𝛼 𝑢(𝑥, 𝑡) = 𝜅𝑢 𝑥𝑥 (𝑥, 𝑡) + 𝜆𝑢(𝑥, 𝑡)(1 -𝑢(𝑥, 𝑡)) + 𝑓(𝑥, 𝑡), 0 < 𝑥 < 1, 0 < 𝑡 ≤ 1.

To validate the numerical results, the exact solution is chosen as

This solution satisfies the homogeneous initial and boundary conditions 𝑢(𝑥, 0) = 0, 𝑢(0, 𝑡) = 0, 𝑢(1, 𝑡) = 0.

The source term is defined consistently with the exact solution. Since

The corresponding fractional derivative of the exact solution is

Moreover,

𝑢 𝑥𝑥 (𝑥, 𝑡) = -𝜋 2 𝑡 2 sin(𝜋𝑥).

Therefore, the source function is written as

𝑡 2-𝛼 sin(𝜋𝑥) + 𝜅𝜋 2 𝑡 2 sin(𝜋𝑥) -𝜆𝑡 2 sin(𝜋𝑥)(1 -𝑡 2 sin(𝜋𝑥)).

Three numerical approaches are compared in this study. The first method is the classical L1 finite difference scheme, which is used as a deterministic numerical reference. The second method is the standard Physics-Informed Neural Network, where the residual is constructed directly from the governing differential equation. The third method is the proposed Improved Adaptive L1-PINN, where the L1 approximation of the Caputo derivative is embedded into the physics-informed residual and adaptive weights are used to balance the equation residual, the initial condition, and the boundary conditions during training. The simulation is organized in a structured computational procedure. For each fractional order 𝛼, the classical L1 scheme is first applied on a uniform spatio-temporal grid. The standard PINN and the Improved Adaptive L1-PINN are then trained using the same initial and boundary information. The trained neural networks are evaluated on the full computational grid, and their outputs are compared with the exact solution. The comparison is performed using the above error measures and the computational time required by each method. The Improved Adaptive L1-PINN method uses the following numerical residual:

𝑅 𝐿1 (𝑥 𝑖 , 𝑡 𝑛 ; 𝜃) = 𝐴 𝐿1 (𝑥 𝑖 , 𝑡 𝑛 ; 𝜃) -𝜅𝑢 ̂𝑥𝑥 (𝑥 𝑖 , 𝑡 𝑛 ; 𝜃) -𝜆𝑢 ̂(𝑥 𝑖 , 𝑡 𝑛 ; 𝜃)[1 -𝑢 ̂(𝑥 𝑖 , 𝑡 𝑛 ; 𝜃)] -𝑓(𝑥 𝑖 , 𝑡 𝑛 ).

The L1 approximation of the Caputo derivative is expressed as

[𝑢 ̂(𝑥 𝑖 , 𝑡 𝑛-𝑗 ; 𝜃) -𝑢 ̂(𝑥 𝑖 , 𝑡 𝑛-𝑗-1 ; 𝜃)],

Where 𝑎 𝑗 = (𝑗 + 1) 1-𝛼 -𝑗 1-𝛼 , 𝑗 = 0,1,2, … , 𝑛 -1.

The adaptive loss function is expressed as

where 𝑤 𝑓 , 𝑤 𝑖 , and 𝑤 𝑏 are updated during training according to the relative contribution of each loss component. This adaptive mechanism reduces the imbalance between the equation residual and the constraint residuals. Tables 1234present the error comparison between the three methods for each fractional order. Table 5 reports the computational time and the number of iterations used in the numerical experiments. Table 6 studies the effect of the number of hidden layers and hidden neurons on the accuracy of the Improved Adaptive L1-PINN method. The graphical analysis provides a visual interpretation of the numerical behavior of the three methods. Figures 1234display the exact and approximate surfaces over the computational domain. Figures 5-7 compare the exact and numerical solutions at fixed time levels. Figure 8 illustrates the decrease of the loss function during training, while Figure 9 shows the effect of the fractional order on numerical accuracy. The classical L1 scheme shows the least errors for all the values in fractional order. With α = 0.3, the MSE is 2.301777 × 10 -7 and the R 2 is 0.99999599, which shows very little variation from the exact solution. The error over time for classical L1 methods also gradually increases at higher α, reaching an MSE of 5.828853 × 10 -5 at α = 0.9 but maintaining high accuracy.

Standard PINN generally yields the worst approximation. For α = 0.3, it displays the MSE 0.05421355, and R 2 = 0.05443552, suggesting poor agreement with the correct solution. It can perform well even if α changes. At α = 0.9, the MSE falls to 0.002501686, and the R 2 increases to 0.956366898. This means that for higher fractional orders in the current experiment both standard PINN can become more stable, but it is still less accurate than the deterministic L1 scheme.

The Improved Adaptive L1-PINN improves the normal PINN significantly in the vast majority of cases. For α = 0.3, the MSE decreases from 0.05421355 for the standard PINN to 0.0004810526 for the Improved Adaptive L1-PINN. With α = 0.7, the reported learning process lowers the MSE from 0.01222870 to 0.0002484893 and increases R 2 to 0.99566598 from 0.78671333. This demonstrates the utility of embedding the L1 approximation into the physics-informed residual and applying adaptive loss weights in training. When α = 0.9, the standard PINN is close to the Improved Adaptive L1-PINN when error is present. The Improved Adaptive L1-PINN gives a slightly lower MSE and RMSE, whilst the standard PINN presents a slightly lower MAE. This indicates that the overall advantage of adaptive hybrid structure becomes less pronounced at one fractional order value, although also a marginally better global squared-error pattern is retained. It is clear the computational time results indicate an evident tradeoff between accuracy and cost. The traditional L1 model is fast; it directly solves the discretized problem on a structured grid. The traditional PINN is slower due to its reliance on neural network training. As the L1 memory term is evaluated continuously throughout the training process, the Improved Adaptive L1-PINN requires the most computational time. Hence, the proposed approach indicates to be the optimal neural-network-based approximation in this experiment, however the classical L1 method is still the most accurate and fastest deterministic grid-based solver. The improved Adaptive L1-PINN performs much better with an increase in its network size according to Table 6. Thus when the architecture is changed from two hidden layers with 20 neurons to four hidden layers with 40 neurons, the MSE reduces from 0.02962717 to 0.00130057, and R 2 grows from 0.48325833 to 0.97731605. This indicates a direct impact on the performance of the hybrid approximation due to the expressive capabilities of the neural network. Nonetheless, this enhancement raises the CPU time from 3890.04897 seconds to 6515.28789 seconds. We observe from numerical experiments that classical L1 method provides the best accuracy and lowest computational cost for the manufactured test problem. The Improved Adaptive L1-PINN has substantially improved the standard PINN, as well as a much more faithful learning-based approximation for nonlinear time-fractional diffusion-reaction equations. And its main superiority over the deterministic L1 scheme does not lie in the fact that it is superior, but rather that it augments traditional PINN which has introduced fractional memory representation in residual. This also serves as a robust way to do a mesh-based problem in which all solvers are difficult to implement or a flexible neural representation of the solution is needed.

Conclusion

We proposed an Improved Adaptive L1-PINN method for solving nonlinear time-fractional diffusion-reaction equations. The method combines the L1 approximation of the Caputo derivative with a physics-informed neural network and adaptive loss weights. The numerical results showed that the classical L1 scheme achieved the smallest errors and the lowest computational time for the manufactured test problem. This confirms its strength as a deterministic grid-based solver. The standard PINN provided weaker results because it could not fully capture the nonlocal memory effect of the fractional derivative. In contrast, the Improved Adaptive L1-PINN clearly improved the standard PINN, especially for 𝛼 = 0.3, 𝛼 = 0.5, and 𝛼 = 0.7. The results also showed that increasing the network size improves the accuracy of the proposed method, but increases the CPU time. Therefore, the proposed method offers a useful balance between neural flexibility and fractional-memory representation, although it remains computationally more expensive than the classical L1 scheme. Overall, the classical L1 method is the most accurate deterministic solver, while the Improved Adaptive L1-PINN is the best neural-network-based method in this comparison.

References

  1. Raissi M, Perdikaris P, Karniadakis GE. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J Comput Phys. 2019;378:686-707.
  2. Cai S, Wang Z, Wang S, Perdikaris P, Karniadakis GE. Physics-informed neural networks for heat transfer problems. J Heat Transfer. 2021;143(6):060801.
  3. Lawal ZK, Yassin H, Lai DTC, Che Idris A. Physics-informed neural network (PINN) evolution and beyond: A systematic literature review and bibliometric analysis. Big Data Cogn Comput. 2022;6(4):140.
  4. Farea A, Yli-Harja O, Emmert-Streib F. Understanding physics-informed neural networks: Techniques, applications, trends, and challenges. AI. 2024;5(3):1534-1557.
  5. Luo K, Zhao J, Wang Y, Li J, Wen J, Liang J, et al. Physics-informed neural networks for PDE problems: A comprehensive review. Artif Intell Rev. 2025;58(10):323.
  6. Ren Z, Zhou S, Liu D, Liu Q. Physics-informed neural networks: A review of methodological evolution, theoretical foundations, and interdisciplinary frontiers toward next-generation scientific computing. Appl Sci. 2025;15(14):8092.
  7. Malashin I, Tynchenko V, Gantimurov A, Nelyub V, Borodulin A. Physics-informed neural networks in polymers: A review. Polymers (Basel). 2025;17(8):1108.
  8. Yao Z, Yang Z, Cheng L. On the stability preserving of L1 scheme to nonlinear time-fractional Schrödinger delay equations. Math Comput Simul. 2025;231:209-220.
  9. Stynes M. A survey of the L1 scheme in the discretisation of time-fractional problems. Numer Math Theory Methods Appl. 2022;15(4):1173-1192.
  10. Chen X, Chen A, Yan Y, Jin S. A modified L1 scheme for subdiffusion equations with a positive-type memory term. J Comput Appl Math. 2026;437:117729.
  11. Wang J, Meng X, Yu Y. Local error estimate of L1 scheme for time-fractional convection-diffusion-reaction equation on a star-shaped pipe network. Chin J Phys. 2025;89:245-262.
  12. Wu X, Yan Y. L1 scheme for semilinear stochastic subdiffusion with integrated fractional Gaussian noise. Fractal Fract. 2025;9(3):173.
Model Reduction and Neural NetworksFractional Differential Equations SolutionsNeural Networks and Applicationsphysics-informed neural networksCaputo fractional derivativeL1 approximationnumerical accuracy
Citations
0
FWCI
0.00
field-weighted impact
References
0
Percentile
54%
vs. same field & year
Citation Network

How this paper connects to the literature. Drag to explore, click any node to open that paper.