2026 Volume 35 Issue 5
Article Contents

Shi-Fang Tian, Ya-Xuan Yu, Biao Li. A residual-based adaptive refinement physics-informed neural networks (RAR-PINNs) method for fifth-order KdV equation[J]. Chinese Physics B, 2026, 35(5): 050201. doi: 10.1088/1674-1056/ae1458
Citation: Shi-Fang Tian, Ya-Xuan Yu, Biao Li. A residual-based adaptive refinement physics-informed neural networks (RAR-PINNs) method for fifth-order KdV equation[J]. Chinese Physics B, 2026, 35(5): 050201. doi: 10.1088/1674-1056/ae1458

A residual-based adaptive refinement physics-informed neural networks (RAR-PINNs) method for fifth-order KdV equation

  • Received Date: 17/09/2025
    Accepted Date: 15/10/2025
    Available Online: 01/05/2026
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Figures(10)  /  Tables(4)

Article Metrics

Article views(286) PDF downloads(5) Cited by(0)

Access History

A residual-based adaptive refinement physics-informed neural networks (RAR-PINNs) method for fifth-order KdV equation

Abstract: In the field of nonlinear partial differential equations (PDEs), the fifth-order Korteweg–De Vries (KdV) equation serves as a fundamental model with significant physical implications, extending the classical KdV framework through the incorporation of high-order spatial derivatives to capture strong dispersion effects. However, the inherent nonlinearity and complexity of this PDE present substantial challenges for obtaining accurate numerical solutions. To address these issues, this paper proposes a residual-based adaptive refinement physics-informed neural networks (RAR-PINNs) method. This approach synergizes the nonlinear approximation capability of PINNs with a residual-driven adaptive sampling strategy. By dynamically redistributing training points according to the magnitude of the PDE residuals, RAR-PINNs effectively concentrate computational resources on “critical regions”, such as soliton peaks and high-gradient zones, where errors are predominant. Furthermore, we construct a composite physics-informed loss function that incorporates initial and boundary conditions, PDE residuals, and, in an enhanced variant, energy conservation laws, to further improve solution fidelity. Numerical experiments on two variants of the fifth-order KdV equation demonstrate that RAR-PINNs significantly outperform conventional PINNs in terms of both accuracy (reducing relative errors by one to two orders of magnitude) and computational efficiency. The conservation-law-enhanced version of the model yields even higher precision, underscoring the efficacy and robustness of the proposed method. This study establishes a powerful deep learning framework for tackling complex PDEs with sharp or singular solution structures.

1.   Introduction
  • In the field of nonlinear partial differential equations (PDEs), the fifth-order Korteweg–De Vries (KdV) equation,[1–4] as a significant class of PDEs, has garnered widespread attention in recent years. Serving as a higher-order extension of the classical KdV equation, it embodies rich physical background and implications. While the classical KdV equation primarily models weakly nonlinear and weakly dispersive long-wave propagation in shallow water, the fifth-order KdV equation incorporates higher-order spatial derivatives, enabling more accurate descriptions of physical processes with strong dispersion effects. It also maintains a close relationship with the classical KdV equation in one spatial and one temporal dimension.

    A general form of the fifth-order KdV equation can be written as

    where f is a smooth function, and α, β, γ are real constants with γ ≠ 0. Besides this broad formulation, several specific forms are also commonly studied, such as

    which more directly capture particular physical phenomena.

    Unlike integrable KdV systems, the fifth-order KdV equation supports a variety of soliton structures. Various methods have been employed to investigate its solution properties. For instance, the variational approach has been used to establish the existence of ground state traveling wave solutions and to analyze their stability.[5,6] By applying Wu Wenjun’s characteristic set method[7] in conjunction with computer algebra systems, solitary and soliton solutions for a class of generalized fifth-order KdV equations have been derived, leading to refinements and improvements of prior results. Nevertheless, the inherent nonlinearity and complexity of the equation continue to pose substantial challenges for obtaining accurate solutions.

    Recent advances in deep learning have opened new pathways for addressing PDEs. The physics-informed neural networks (PINNs) framework, introduced by Raissi et al., integrates the expressive power of neural networks with physical constraints derived from conservation laws. By incorporating equation residuals, along with initial and boundary conditions, into the loss function, PINNs ensure that the solution conforms to the underlying physics during training. This approach allows the network to learn solution functions directly without reliance on spatial discretization. Owing to their inherent flexibility in handling high-dimensional problems and complex boundaries, PINNs[8] have been successfully applied to classical systems such as the KdV equation and the nonlinear Schrödinger equation.

    However, when addressing equations involving nonlinear or multi-order derivative coupling, physics-informed neural networks (PINNs) often encounter performance bottlenecks due to suboptimal sampling point distributions. Uniform or random sampling strategies frequently fail to concentrate on “critical regions” exhibiting large residuals, such as shock wave fronts or solitary wave peaks, leading to inefficient allocation of computational resources and insufficient solution accuracy.

    To mitigate this limitation, several enhanced strategies have been proposed. For instance, Jagtap et al.[9,10] applied an improved PINNs model to simulate an inverse problem in supersonic flow. Chen and collaborators introduced a modified PINNs framework to obtain data-driven localized wave solutions for the N-double pole solutions of the nonlocal Hirota equation under nonzero boundary conditions,[11] and further simulated vector localized waves in the Manakov system[12] using upgraded PINNs. Yan et al.[13–15] developed an enhanced PINN approach by refining the loss function and incorporating first-order derivative boundary constraint terms, successfully predicting peakon and periodic solutions of Camassa–Holm-like equations. Wen et al.[16] developed an extended physics-informed neural networks with twin subnets (EPINN-TS) to predict seven types of vector solitons and discover model parameters for the coupled mixed derivative nonlinear Schrödinger equation. Guo et al.[17] proposed a temporal causality-based adaptive sampling method (TCAS-PINN), which effectively enhanced the model’s capability to solve time-evolution problems. To further improve accuracy, Zhou et al.[18] developed a multi-distributed sampling strategy and successfully applied it to obtain exact solutions such as optical solitons.

    Building upon standard PINNs, Li’s team proposed gradient-optimized PINNs,[19,20] mixed-training PINNs, and prior-information hybrid training PINNs,[21,22] all contributing to improved accuracy of learned solutions. The physically-informed adaptive sampling approach (exemplified by PIPINNs) constructs hybrid training domains by enriching sampling points within steep regions of the solution inside initial-boundary (IB) condition areas. This enables more comprehensive learning in high-gradient zones. Meanwhile, integrating physical constraints, such as energy conservation laws, into the loss function further elevates solution precision. These methods draw inspiration from adaptive mesh refinement techniques, effectively strengthening PINNs’ capacity to capture complex solution structures through targeted computational resource allocation.

    The residual-based adaptive refinement (RAR) method[23] emerges as a solution to these issues. Its core idea is to dynamically adjust sampling point distribution during training based on PDE residual magnitudes: after each iteration, new sampling points are added in regions with large residuals, enabling the model to capture critical local details more effectively and improving solution accuracy and convergence speed. Compared to traditional fixed sampling, RAR provides a more flexible and efficient data-driven approach for PINNs. Xu at el.[24] proposes a parallel hard-constraint physics-informed neural network (phPINN) that effectively addresses both forward and inverse problems of the nonlinear Schrödinger–Maxwell–Bloch (NLS–MB) equation by integrating a parallel fully-connected neural network (PFNN) architecture with the RAR method.

    Building on this background, this paper focuses on solving the fifth-order KdV equation and proposes a PINNs method incorporating the RAR sampling strategy (RAR-PINNs). The innovation of RAR-PINNs in the following aspects: The original model[23] proposed a general RAR framework, which primarily offers a universal structure applicable to various types of PDEs, without specific optimization for particular high-order PDEs. In contrast, RAR-PINNs constructs a physics-informed loss function that incorporates high-order derivative constraints, specifically addressing higher-order terms such as uxxxxx in the fifth-order KdV equation. Furthermore, it introduces the energy conservation law as an additional constraint into the mean squared error (MSE).

    The structure of this paper is as follows: (i) a detailed introduction to the physical background and mathematical model of the fifth-order KdV equation; (ii) the proposal of the RAR-PINNs implementation framework, including the specific workflow of the RAR adaptive sampling strategy and its integration with PINNs; (iii) validation of the proposed method’s accuracy and ability to simulate complex solution structures through numerical experiments, with comparison to traditional PINNs; (iv) summary of research conclusions and prospects for the method’s application in broader nonlinear evolution equations.

2.   Establishing RAR-PINNs model
  • Residual-based adaptive refinement (RAR) is an adaptive sampling strategy proposed to address the accuracy deficiency of physics-informed neural networks (PINNs) in solving PDEs. Its core objective is to dynamically adjust the distribution of training points, allowing the neural network to allocate more computational resources to “critical regions” of the solution (such as regions with sharp gradients or large residuals), thereby improving solution accuracy while maintaining efficiency. The following describes the RAR algorithm for the model (see Algorithm 1).

  • The accuracy of PINNs highly depends on the distribution of training points: if the solution changes dramatically in local regions (such as near shock waves, boundary layers, or singular points), uniformly sampled training points often fail to capture these details, causing the PDE residual (deviation between predicted and true solutions) to increase significantly in these regions. The RAR method adaptively adds sampling points in regions with large residuals by monitoring the spatial distribution of PDE residuals in real-time, enabling the neural network to focus more on complex features of the solution, ultimately achieving the effect of “on-demand allocation” of computational resources.

  • Using multilayer perceptron (MLP) as the base model, with input being spatiotemporal coordinates ((x, t), and output being the predicted value of physical quantity u^(x,t;θ)). The network structure is:

    (i) Input layer: 2 neurons (corresponding to x, t);

    (ii) Hidden layers: L layers, each containing N neurons, activation function using tanh or ReLU (enhancing nonlinear fitting capability);

    (iii) Output layer: 1 neuron (corresponding to u^).

  • The total loss function of PINNs consists of boundary condition loss, initial condition loss, and PDE residual loss, where the PDE residual loss is directly related to the residual calculation of RAR method:

    (I) Boundary condition loss Lbc

    Measures deviation between predicted values and boundary conditions:

    where |Xbc| is the number of boundary points, g(xb, tb) is the known boundary value.

    (II) Initial condition loss Lic

    Measures deviation between predicted values and initial conditions:

    where |Xic| is the number of initial points, h(xi) is the known initial value.

    (III) Mix-training region (initial condition and boundary condition) loss Lib

    (IV) PDE residual loss Lpde

    Measures how well the predicted solution satisfies the PDE, calculated based on the dynamically updated residual points Xpde by RAR:

    where r(x, t; θ) is the PDE residual defined in the RAR method.

    For the specific fifth-order KdV equation, the residual is expressed as

    (V) Total loss function

  • The entire RAR-PINNs training process should be divided into two stages: preliminary experiments with PINNs and the RAR-based adaptive sampling point update, with the specific procedure as shown in (Fig. 1).

  • To enhance the accuracy of numerical results simulated by RAR-PINNs (see Algorithm 1), we add constraints to the loss function Losstotal by introducing the local conservation law.

    In this work, the local conservation law is formulated as

    We define the conservation residual c(x, t, θ) as

    At this point, the conservation law error Lossc is as follows:

    where Xc = Xpde.

    After incorporating the conservation law, the new loss function Losstotal becomes:

3.   Numerical experiment
  • We employ deep neural networks with 4 to 6 hidden layers and 32 to 64 neurons per layer, using the hyperbolic tangent (tanh) as the activation function. The training process consists of the following stages: initially, the Adam optimizer (with default learning rate) is applied for 104 iterations, followed by the L-BFGS optimizer for another 104 iterations. After updating the sampling regions using the RAR adaptive method, a final fine-tuning is performed with the Adam optimizer (default learning rate) for an additional 2 × 104 iterations. Network parameters are initialized via the Xavier method. The sample sizes are configured as follows: initial PDE residual sampling points Nf = 3000, RAR-updated PDE residual sampling points Nf*=1.8×104, and Dirichlet boundary data points NIB = 200.

    The relative error (relative L2 norm) is defined as:

    where ui is the predicted solution and u(xi, t) is the exact solution.

  • We consider the first type fifth-order KdV equation with Dirichlet boundary conditions (r = 15, β = 15, α = 45)

    where u(x, t) depends on space x and time t.

    Firstly, we take the soliton solution of the first fifth-order KdV equation[25,26] as an example, when T ∈ [1.0, 2.0], X ∈ [1, 25]. The three-dimensional (3D) diagram (Fig. 2) of the soliton solution is described in the following

    where

    where C0 = 6, C1 = 1, q(t) = 1, p1 = 1.04, p2 = 1.005, p3 = 1.34, ξ1 = 1.05, ξ2 = 2.09, ξ3 = 3.21.

    It is worth noting that we choose a neural networks with 6 hidden layers and 64 neurons in each layer, and add some training points in the sharp area for the new sampling area as the prior information.

    We use the PINNs and RAR-PINNs, combined with the training conditions and optimization methods described above, to conduct numerical experiments.

    From Table 1, we can obtain the experimental results of the prediction performance of PINNs and RAR-PINNs for the soliton solution under all neural networks conditions. Through Table 1, we find that RAR-PINNs are superior to PINNs when the number of neurons in the hidden layer and each layer is the same. RAR-PINNs not only have high accuracy, but also take less time. It is worth noting that in order to better and more clearly observe the performance of the model RAR-PINNs, we present the updated RAR sampling area and absolute error of the RAR-PINNs model in Fig. 3.

    According Fig. 3(a), we observe that after applying the RAR adaptive method, the sampling region, initially distributed uniformly across the entire domain, becomes concentrated primarily near points with larger errors from the preliminary training phase.

    For the second type fifth-order KdV equation (r = 5, β = 5, α = 5, T ∈ [1.0,2.0], X ∈ [1,25]):

    where u(x, t) contains variables x and t, which are space and time variables, respectively.

    The specific format and three-dimensional diagram (Fig. 4) of the soliton solution[25,26] are described in the following:

    where

    where C0 = 2, C1 = 1, q(t) = 1, p1 = 5, p2 = 0.5, p3 = 3.3, ξ1 = 11.05, ξ2 = 21.09, ξ3 = 3.21.

    We follow the same experimental method mentioned above. The experimental results for the predictive performance of RAR-PINNs for soliton solution of second type fifth-order KdV equation under all neural network conditions are listed in Table 2. From Table 2, we also find that RAR-PINNs are still more accurate than PINNs. It is worth noting that in order to better and more clearly observe the performance of the model RAR-PINNs, we present the updated RAR sampling area and absolute error of the RAR-PINNs model in Fig. 5.

    According to the numerical results, we find that the performance of the RAR-PINNs model is still very good and the accuracy is improved again. In terms of time consumption, it is still better than that of PINNs. In conclusion, when simulating soliton solutions of these fifth-order KdV equations, the accuracy and performance of RAR-PINNs are better than PINNs.

  • We use PIPINNs with two conservation laws (where γ = 1, α = 45, β = 15; γ = 1, α = 5, β = 5) of energy to carry out numerical experiments on soliton solutions of two type fifth-order KdV equations, respectively. At this point, the conservation laws of the two fifth-order KdV equations (2) and (4) are as follows:

    Through numerical experiments, we present the results in the following. To facilitate readers in observing the performance of the new RAR-PINNs, we still present the absolute error (Figs. 6 and 8) from the numerical experiments on the two fifth-order KdV equations and corresponding RAR sampling region (Figs. 7 and 9).

    From Tables 3 and 4, it is evident that when simulating soliton solutions of two-type fifth-order KdV equations, the RAR-PINNs with conservation laws (8) and (9) are more accurate than the original RAR-PINNs, and the new RAR-PINNs can obtain better accuracy over a slightly longer time than the original RAR-PINNs, which is very meaningful.

4.   Discussion and conclusion
  • In this study, we introduced the RAR-PINNs framework, which integrates residual-based adaptive refinement with PINNs to effectively solve the fifth-order KdV equation. By dynamically concentrating sampling points in regions with large PDE residuals, such as soliton peaks and high-solution-gradient areas, the proposed method overcomes key limitations of conventional PINNs related to inefficient sampling and poor error localization. Numerical experiments conducted on two types of fifth-order KdV equations confirm that RAR-PINNs achieve significantly higher accuracy than standard PINNs, with relative errors reduced by one to two orders of magnitude, while also reducing computational time in most scenarios.

    Furthermore, the enhanced version of our model, which incorporates local conservation laws into the loss function, demonstrated additional improvements in solution accuracy. This confirms that embedding physical constraints not only enriches the learning paradigm but also endows the model with better generalization capability and mathematical consistency. The ability of RAR-PINNs to accurately capture complex soliton dynamics, even under varying network architectures and hyperparameters, highlights its robustness and adaptability.

    In conclusion, RAR-PINNs represent a viable and efficient deep learning-based approach for solving challenging nonlinear evolution equations. By adaptively refining training sets based on residual feedback and incorporating physical priors, this framework offers a flexible and accurate alternative to traditional numerical methods, opening new avenues for computational modeling in applied mathematics and theoretical physics.

Figure (10)  Table (4) Reference (26)

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return