Manuscript Offprint
arXiv:2610.27500Soliton Profiles in 1D: Enhanced Neural-Network Solvers and Constrained Deep Ritz Methods
CHANDLER HAIGHT, ALEX DAVID RODRIGUEZ, AND SVETLANA ROUDENKO
ABSTRACT. We develop and compare enhanced neural-network solvers for one-dimensional ground-state profiles, which are solutions of
the stationary profile equation for the nonlinear Schrödinger, generalized Korteweg–de Vries, and nonlinear Klein–Gordon equations. Its explicit sech-type solutions serve as exact reference for error computation and benchmark hyperparameter selection. We improve on the standard Adam-trained physics-informed neural network (PINN) baseline by introducing higher-order optimization via Gauss–Newton/Levenberg–Marquardt and L–BFGS refinements, as well as Fourier-feature PINNs, and constrained Deep Ritz (DR) formulations. In DR approaches we introduce two new neural-network formulations, which implement two classical variational characterizations: a Nehari-constrained Deep Ritz method, in which the height is learned by projecting onto the Nehari/Pokhozhaev manifold, and a Weinstein Deep Ritz method, in which a normalized profile minimizes the Weinstein quotient. The Deep Ritz formulations perform best overall, in particular, the Weinstein variant gives the best error–runtime balance. The neural-network based solvers remain less accurate and efficient than classical Petviashvili iteration in 1D, however, the current study provides a proof of concept: the mesh-free formulation, non-reliance on exact profiles or the related features make them promising in higher dimensions and for more complicated nonlinearities and dispersive operators.
CONTENTS
- Introduction 1
- Ground-state equation and problem setup 4
- PINNs Variations 8
- Deep Ritz Variations 26
- Conclusions and Discussion 44
Appendix A. Newton direction and the strong Wolfe conditions 45
References 46
2020 Mathematics Subject Classification. 65L10, 68T07, 35Q55, 35Q53, 35C08, 65K10.
Key words and phrases. ground states, solitary waves, physics-informed neural networks, Deep Ritz method, Weinstein quotient, Gauss–Newton, nonlinear Schrödinger equation.
analytical solutions are often difficult to obtain or inaccessible with current analytical methods, and thus, accurate numerical solution is highly desirable.
In the one-dimensional setting with a single-power nonlinearity, we are interested in ground state solutions of the second-order ODE
which are positive, smooth, decaying at infinity solutions (e.g., in ), thus, the previous equation can be simplified to
This equation arises, for example, from standing waves in the nonlinear Schrödinger (NLS) equation, traveling solitary waves in the generalized Korteweg–de Vries (gKdV) equation and in the nonlinear Klein–Gordon (NLKG) equation. A key feature of the one-dimensional case is that it admits an explicit exact solution
with an amplitude A and inverse width depending on given b, , and p, see (15). This explicit ground truth makes the 1D case an ideal testing and verification setting for numerical benchmarking.
For the purpose of this paper, we consider integer exponents , typically studying (subcritical), (critical) and (supercritical) cases.
In our previous work [15], we compared neural-network solvers – PINNs and operator learning approaches such as DeepONets and Fourier Neural Operators – with classical methods such as finite-difference with Newton's iterations and Petviashvili method, for computing these 1D profiles. That study showed that while neural-network methods can approximate solitary-wave profiles, classical Petviashvili-based solvers remained substantially more accurate and efficient.
The present paper aims to shrink this gap by introducing, developing and evaluating enhanced neural-network-based algorithms for the ground-state equation (1). This explicitly solvable 1D problem serves as a proof of concept and a controlled benchmark for neural solvers, rather than a setting in which they are expected to replace the Petviashvili iteration. Before advancing to more complicated problems, we, therefore, concisely survey the main methods, introduce new features, and compare them in this setting, in the hope that it will allow future development and comparison in more complicated cases and models. Specifically, we propose three directions of improvement:
- Higher-order optimization: replacing or augmenting standard Adam training with Gauss–Newton (GN) and Levenberg–Marquardt (LM) refinement strategies, applied to the PINN residual after an initial Adam warm-up phase;
• Fourier-feature PINNs (FF-PINNs): embedding the scalar coordinate input into a space with Fourier basis before passing it to the MLP (multilayer perceptron), in order to reduce the spectral bias of standard coordinate-based networks;
• Constrained Deep Ritz formulations: several variational methods that minimize the action functional or related quotients over constrained neural-network trial classes (instead of the profile equation itself), including an action-based constrained Deep Ritz formulation, a Nehari-constrained Deep Ritz formulation, and a Weinstein-quotient-based Deep Ritz formulation.
The last point is worth commenting on further as we develop neural implementations via Deep Ritz (DR) formulations of two classical variational characterizations for obtaining ground state solutions in focusing dispersive PDE: the Nehari-constrained (NDR) and the Weinstein Deep Ritz (WDR).
The WDR formulation is based on minimizing the Weinstein functional quotient (sometimes also called Lyapunov functional or nonlinear Rayleigh, e.g., see [20]) defined as
over a normalized, hard-constrained neural-network trial class. One of the main advantages of the WDR formulation, compared to the action-based constrained Deep Ritz method, is that WDR method does not require prescribing the peak amplitude from the exact solution (so its training objective can be formed without an explicit profile), thus, making it particularly suitable for problems where no closed-form solution is available. The first method, the constrained Deep Ritz, in a general class of solutions may not have a converging result, as it relies on the initial maximum value , which in its turn helps selecting the correct branch of positive ground state solutions. We first improve that in the Nehari-constrained Deep Ritz (NDR) formulation, by incorporating the first Pokhozhaev (also called Nehari) identity (20) into the formulation and the second Pokhozhaev identity (21) into the loss. We then observe that changing the action functional optimization to the Weinstein quotient (3) optimization further improves the results (e.g., gives a more favorable error-runtime balance).
Our results show that these enhanced methods substantially improve upon the standard Adam-trained PINN baseline. Among the methods tested, the complete Deep Ritz procedures, including their final residual refinement, give the strongest overall performance, with the new Weinstein Deep Ritz formulation achieving the best (among DR variants) error–runtime for (cubic) and (quintic). For the sharper (septic) profile, the Weinstein and Nehari-constrained formulations produce errors on the same order, and better compared with the other formulations. The PINN and FF–PINN variants also benefit from higher-order optimization and improved feature representation, but they remain more sensitive to loss formulation, optimizer choice, initialization, and computational device. Overall, although the enhanced neural-network solvers do not yet match the accuracy of Petviashvili-type iterations reported in [15] for the one-dimensional setting, they represent a significant step forward in neural-network-based computation of nonlinear ground states. We expect that in higher-dimensional problems or with more intricate nonlinearities or dispersion, the neural-network-based methods will be an essential addition to the field.
The paper is organized as follows. In Section 2 we set up the ground-state equation and its variational structure, describe the explicit solutions, boundary conditions, domain truncation, the Pokhozhaev identities, and introduce the Weinstein variational characterization used in the Deep Ritz formulations. Section 3 covers PINNs and FF–PINNs, including the use of second-order optimization and comparisons with standard Adam training. In Section 4 we study Deep Ritz formulations, including constrained Deep Ritz, Nehari-constrained Deep Ritz, and Weinstein-type Deep Ritz methods. Section 5 concludes with a discussion of the main findings.
Acknowledgments. We thank Javier Gómez-Serrano for helpful discussions and for suggesting the use of a Fourier-feature-type PINN architecture and higher-order optimization strategies, such as Gauss–Newton, quasi–Newton, and Adam followed by higher-order refinement, as possible ways to improve upon the standard Adam-trained PINN baseline motivated by the strong Petviashvili performance observed in our previous work.
The training on basic neural-network-based approaches for PDE came out of the STEM summer ML seminar that S.R. co-organized in Summer 2025 (with Zhongming Wang), which was partially supported by the NSF grant DUE/EDU-2221491 (PI: S. Roudenko); A.D.R. and C.H. participated in that seminar; A.D.R., C.H. and S.R. were partially supported by the NSF grants DUE/EDU-2221491 and DMS-2452782.
Declaration of usage of Large Language Models. During the preparation of this work the authors used GPT-5.5 and Claude Opus 4.7 in order to assist with code development and debugging. GPT-5.6
Sol and Claude Opus 4.7 were later used for grammar and language editing of the manuscript. While using these tools, the authors reviewed and decided whether the content is relevant, and if it was, it was re-worked and edited before incorporating into the paper; the authors take full responsibility for the content of the article.
2. GROUND-STATE EQUATION AND PROBLEM SETUP
In this section, we describe the profile equation, its origin from the NLS, gKdV (we write this equation with an absolute value in nonlinearity for consistency of notation), and NLKG models, the explicit solutions, the finite-domain formulation used in the numerical experiments, and the variational structure underlying the Deep Ritz methods.
2.1. Dispersive models and profile reduction. The nonlinear dispersive models considered in this paper are the focusing, power-type one-dimensional equations:
(NLS)
(4)
(gKdV)
(5)
(NLKG)
(6)
with parameters , and integer nonlinearity exponent .
The sign convention in front of the nonlinear term is chosen so that these equations are focusing, and hence, possess solitary-wave or ground-state solutions (the defocusing case with the opposite sign does not admit ground states). These models arise in nonlinear optics, plasma physics, and water waves; see, for example, [1, 19, 56, 57, 43, 21, 6] and references therein. The solitary waves or ground states are spatially localized solutions that propagate without changing shape and often play a key role in characterizing the long-time dynamics of the flow, forming the main components of the soliton resolution conjecture [40, 46].
Each of the models (4)–(6) enjoys conservation laws on its maximal interval of existence (see, e.g., the textbooks Cazenave [8], Tao [45], Linares–Ponce [26]). For the NLS equation (4), the conserved mass and Hamiltonian (energy) are given by
while for the gKdV equation (5) one has analogous conservation of the -norm and a suitable Hamiltonian functional. (There is also a momentum in NLS or an integral of the solution in gKdV conservation, but we omit those in this paper.) In the NLKG equation (6), the conserved energy in the phase space is
Solitary-wave or ground-state solutions are obtained by substituting special ansatzes that reduce the PDE to an ODE for a spatial profile Q. For the NLS equation (4), the standing-wave ansatz yields the profile equation
For the gKdV equation (5), the traveling-wave ansatz with speed similarly gives after integration and use of the localization condition as .
For the NLKG equation (6), the traveling-wave ansatz with speed c leads, after rescaling parameters, to the same equation (9).
In all three models, we look for positive solutions of (9), which are known to exist and are unique (e.g., see [4] and [22]), therefore, ground-state profiles satisfy the second-order profile ODE
Under suitable assumptions on , these ground states can be constructed variationally as minimizers of some functionals such as the action functionals (with or without constraints) or the energy functional at fixed mass and are orbitally stable (in 1D for ) in the sense of Weinstein [51, 52] and Grillakis–Shatah–Strauss [12, 13], for a review see [20, §2.2]. For gKdV, well-posedness and scattering are discussed in the work of Kenig–Ponce–Vega [17], and the solitary waves and their (in)stability, for example, in Bona–Souganidis–Strauss [7] and references therein.
In this paper we focus on the accurate numerical solutions of the profile equation (10) via neural-network approaches enhanced with various optimizers and modified with different formulations to achieve more efficient and higher precision results compared to our previous study [15].
2.2. Problem formulation and explicit solutions. We consider localized positive solutions of the one-dimensional nonlinear elliptic equation
with parameters , and exponent . As we mentioned in the introduction, for the purpose of this paper, we consider integer exponents, typically, . The condition corresponds to the even symmetry of the full-line ground state, while imposes localization, which is exponential (in the case of a standard Laplacian or second order derivative operator).
Since as and , the nonlinear term in (11) is asymptotically lower order in the tail. Thus, for large , the decay is governed by the linearized equation
whose localized solution is proportional to , and thus, satisfies
Therefore, on the finite half-interval , it is typical in numerical approaches to replace the second condition in (12) by the mixed asymptotic (sometimes called Robin) boundary condition
We take that into consideration and discuss the boundary conditions in the next subsection.
As we mentioned in the introduction, the ground state profile equation (11) admits an explicit nontrivial solution of the form
where
This explicit profile is used both as a reference solution for computing errors and, in some neural-network formulations, as a way to prescribe the correct peak amplitude . (Specifically, in what follows, we use as input in Dirichlet PINN, FF-PINN, and action-based constrained DR baselines, whereas in NDR and WDR we determine the amplitude variationally. We also point out that apart from the prescribed boundary value in those baselines, no interior solution samples enter the training losses. The present hyperparameter selection uses errors against the exact cubic profile, which we discuss next.)
The cubic case
corresponding to and , is used as the main benchmark for hyperparameter tuning. After suitable configurations are selected from the cubic benchmark, the optimized methods are applied typically to the cubic, quintic , and septic cases in the main comparisons. It should be mentioned that for higher nonlinearities it might also be possible to optimize the parameters for each nonlinearity independently to improve errors and avoid anomalies that we observe later (e.g., see Figure 5).
2.3. Domain truncation and boundary conditions. In our simulations, the infinite-domain problem is approximated on . We use , which is sufficiently large for the benchmark cases considered here; for example, when and , the exact value is on the order of . We note that although all our computations are performed on the interval , the solution profiles are plotted only on in order to enlarge the details from the peak-amplitude region, which is typically the most challenging for the neural-network approximation to resolve accurately.
Consider the following finite-domain boundary conditions:
We refer to (16) as the Dirichlet formulation, (17) as the Neumann–Dirichlet formulation, (18) as the Robin–Dirichlet formulation, and (19) as the Neumann–Robin formulation.
On the truncated interval , the decay condition at infinity may be approximated either by the Dirichlet condition or by the asymptotic Robin condition . Since as , the Robin condition incorporates the leading-order behavior of the linearized tail and is generally more accurate on short computational domains. In our computations, and (typically ), so that is already negligibly small relative to the observed neural-network approximation errors. We therefore retain the Dirichlet condition for simplicity (and use either (16) or (17)), while noting that the Robin condition may be advantageous when a shorter interval is used (e.g., ) or when is very small. We note that in higher-dimensional settings or different nonlinearities, such boundary conditions would need to be taken into account.
2.4. Pokhozhaev identities. For later use in the constrained Deep Ritz formulations in Section 4, we record the two integral identities satisfied by ground state solutions to (11). In 1D, multiplying the equation by Q and integrating by parts gives
The corresponding scaling identity (obtained by multiplying by and integrating) is
We use these identities either as penalties in the action-based and Nehari-constrained DR formulations, and as diagnostics for Weinstein DR formulation in Section 4.
For the purpose of the computations on the finite interval , we denote the following quantities by , , and , and rewrite the above Pokhozhaev identities, which now contain the boundary terms. Assuming a sufficiently smooth solution of the ODE, integration by parts gives the exact finite-interval identities, namely,
and
2.5. Variational characterization via the Weinstein quotient. The ground-state equation (11) admits a variational characterization that plays a key role in the Weinstein Deep Ritz method developed in Section 4. Recalling the equation (11), for a given we define the Weinstein functional quotient
If is a positive optimizer of this quotient, normalized by , then , where , and the Euler–Lagrange equation is
The ground-state profile is then recovered by the rescaling
This classical characterization is related (after spatial rescaling) to the sharp interpolation variational principle of Weinstein [50], and is especially convenient for a Deep Ritz implementation. The quotient (22) is invariant under multiplication of u by a nonzero constant (and thus, does not select the trivial solution), and the normalization constraint removes the remaining scale invariance. For fixed b and p, the variational training is independent of , which enters only through the final amplitude rescaling (24). Crucially, this method does not require prescribing the peak amplitude from the exact solution (14), making it suitable for computing ground states when no closed-form solution is available.
2.6. Related work. Numerical solutions to ODE have been extensively studied in the literature using classical approaches (see discussion in our previous paper [15] on that and references therein). Classical numerical methods, as we showed in [15], typically provide reliable accuracy and convergence for ground state solutions of (10), although usually require mesh design and problem-specific tuning. In contrast, neural-network-based solvers—including physics-informed neural networks (PINNs) [36]—approximate the profile through trainable function classes and can be implemented in a mesh-free manner.
Recent work on PINNs has shown that their accuracy depends strongly on the optimization method and that first-order training followed by higher-order refinement can improve convergence [37]. These findings are directly related to our comparison of Adam [18], L-BFGS [27], and Adam-L-BFGS. PINN training has also been treated as a nonlinear least-squares problem using Gauss-Newton/Levenberg-Marquardt (GN/LM) methods, in which damping is used to improve stability [24, 31, 39]. The successful use of first-order training followed by high-precision GN/LM refinement for challenging nonlinear PDE profiles is closely related to, and motivates, our Adam-GN/LM solver [49]. Related work on Fourier features has shown that they help neural networks represent high-frequency and multiscale functions and can reduce spectral bias in PINNs [44, 48], motivating our Fourier-feature PINN (FF-PINN) formulation. For the variational methods, the Deep Ritz approach trains a neural network by minimizing an energy or an action functional rather than a differential-equation residual [10]. However, direct minimization may not select the desired ground-state branch, unless more conditions or constraints are added. Recent neural approaches that incorporate normalization or projection constraints include [2, 9], and together with recent Deep Ritz work for stationary Schrödinger problems in [55], provide additional methods for the constrained neural variational methods considered here. Variational characterizations based, on the other hand, on sharp Gagliardo-Nirenberg inequalities and normalized gradient flows, and yield approaches that can properly identify the desired ground states [51, 47, 29, 11]. We consider some of these and suggest novel approaches to construct and compare constrained neural solvers to obtain the ground state solutions in the focusing dispersive PDE, for example, by including Nehari or Pokhozhaev manifolds.
or the Weinstein quotient. Neural-network implementations of these constrained formulations have recently been developed in [9], who enforce the -normalization and Nehari manifold constraints as hard constraints through normalization and projection layers. Their setting is the defocusing action ground state, for which the action is bounded below and an unconstrained formulation is also available. In the focusing problem, which we consider, the action is unbounded below (see Section 4.2), so a constraint is not one option among several but a structural necessity. Our contribution is therefore not the variational characterizations themselves, which are classical, but their realization (including the combined implementation and numerical assessment) for the truncated profile equation (10): hard-constrained trial classes that encode symmetry, positivity and the endpoint condition simultaneously, a boundary-corrected finite-interval Pokhozhaev penalty, as well as a staged Adam followed by Gauss–Newton/Levenberg–Marquardt residual refinement. A recent work [28] analyzes the -normalized gradient flow with asymptotic Lagrange multiplier for computing the action ground state of the focusing NLS, using a gradient-flow rather than a neural-network approach.
2.7. Computational setup. All reported runtimes in the tables are recorded as elapsed wall-clock times and measured using time.perf_counter(). Therefore, the reported CPU times should be interpreted as practical implementation-dependent runtimes on the stated hardware, rather than hardware-independent performance measurements. The computations were performed on a device equipped with a 64-bit Windows laptop with an AMD Ryzen 5 7535HS CPU at 3.30 GHz, 6 cores / 12 threads, 16 GB RAM (15.3 GB usable), integrated Radeon graphics, and a dedicated NVIDIA GeForce RTX 4050 Laptop GPU with 6 GB VRAM . In Sections 3.1.3, 3.2.1, and 4.1.1, for comparison purposes we also use a “secondary” device equipped with an AMD Ryzen 7 9700X (3.8 GHz base, 5.5 GHz boost, 8 cores / 16 threads), 32 GB of RAM (31.1 GB usable), and a dedicated NVIDIA GeForce RTX 4070 Super GPU with 12 GB of VRAM.
For CUDA-enabled experiments, the reported elapsed times reflect the end-to-end runtime of the implemented PyTorch computation on this device, including CPU-side launching and synchronization overheads as well as GPU computation. We therefore label all secondary-device timings as GPU+CPU rather than GPU-only: the CUDA device carries the tensor and neural-network computations, but the optimizer control logic, backtracking decisions, checkpointing, logging, data transfers, and any calls to CPU-based linear algebra or NumPy routines remain on the CPU. The reported wall-clock time is thus the combined execution of GPU-accelerated tensor operations and CPU-side back-end work, and should not be read as a measure of processor performance alone. Accordingly, the primary- and secondary-device results should be interpreted as a comparison between the two complete workstation configurations rather than as an isolated comparison of CPU and GPU performance. This convention applies to Sections 3.1.3, 3.2.1, 4.1.1, 4.2.1, and 4.3.1.
All reported computations use double precision (float64) and fixed np.random.seed(42) for reproducibility. The tabulated values correspond to the individual runs reported in the respective experiments.
3. PINNs VARIATIONS
We first study residual-based neural-network solvers for (11). The common benchmark problem, boundary conditions, finite-domain truncation, and timing protocol were specified in Section 2. In this section, we focus on Physics-Informed Neural Networks (PINNs) and Fourier-Feature PINNs (FF-PINNs), together with the optimization strategies used to train them.
For each method, we first describe the neural-network ansatz and loss function. We then perform a hyperparameter study on the cubic trial problem
The purpose is not to use the fastest possible (and costly) computational facilities, but rather make it sufficiently fast and individually accessible.
Then we use the selected configuration for analysis and comparison of the cubic, quintic and septic cases. The purpose of this section is to assess the accuracy, robustness, and computational cost of residual-based neural-network solvers, including with the enhancements, before comparing them with the variational Deep Ritz formulations in Section 4.
Building on our previous study of neural-network-based solvers for solitary wave computation [15], which considered PINNs, DeepONets, and FNOs, we extend the numerical comparison in this section by incorporating higher-order optimization strategies and Fourier-feature PINNs.
The goal of this section is to evaluate the numerical performance in terms of accuracy and computation efficiency, where computation cost is measured using wall-clock elapsed time time.perf_counter(). These baselines results later compared against the results obtained from the Deep Ritz formulations of Section 4.
3.1. Physics-Informed Neural Network (PINN). In the PINN framework [36], we approximate the solitary-wave profile by the standard feedforward multilayer perceptron (MLP) with m hidden layers and n neurons in each layer, namely,
where denotes the collection of trainable network parameters. All spatial derivatives appearing in the loss are evaluated using the reverse-mode automatic-differentiation engine autograd provided by PyTorch [34, Sec. 4.3]. Rather than approximating derivatives by finite differences, autograd records the elementary tensor operations executed during the forward evaluation of and applies the chain rule through the resulting computational graph, so that the computed derivatives are exact up to floating-point error [3, Secs. 1 and 3]. The spatial derivatives and are obtained by differentiating the network output with respect to the input ; computing requires retaining the graph of the first derivative so that can itself be differentiated. The same construction subsequently allows the PINN loss, which depends on and its spatial derivatives, to be differentiated with respect to the trainable parameters .
In the numerical experiments, we test several smooth activation functions, including tanh, SiLU, Gaussian, super-Gaussian, sech, and the nonstandard activation
No single activation function is assumed to be optimal across all neural-network formulations. Instead, the activation is treated as a hyperparameter and selected separately for each method, boundary-condition formulation, and optimizer configuration. The activation chosen for each final setup is reported together with the remaining selected hyperparameters in the corresponding configuration tables.
For the single-power stationary problem, the network minimizes the residual associated with the finite-domain profile ODE (10). Specifically, we define
We evaluate this residual at collocation points , where the computational domain is . The boundary points and are treated separately via the Dirichlet boundary loss
Here, the residuals are scalar, so denotes the usual absolute value. We write the total PINN loss as
(28) where is the boundary-weight parameter. The network parameters are then determined by solving
Building on the PINN results that we obtained in [15], our present work focuses specifically on higher-order optimization strategies for training the PINN loss. In particular, we investigate the Gauss–Newton/Levenberg–Marquardt (GN/LM) method and the quasi-Newton L–BFGS method. We also consider hybrid procedures, in which Adam is used only as an initialization or warm-up stage before refinement with GN/LM or L–BFGS. The general PINN algorithm with second-order optimizers is summarized in Algorithm 1 below.
3.1.1. Higher-order optimizer refinements for PINNs. The PINN loss in (28) has a nonlinear least-squares structure, that is, we can rewrite it as
where is the finite-dimensional vector of rescaled residuals,
Thus, the first components of are the interior ODE residuals evaluated at the collocation points and scaled by , while the final two components are the scaled Dirichlet boundary residuals. With this notation, , so (28) and (30)–(31) describe the same loss.
Since depends on and its spatial derivatives, the parameter gradient of the loss must be propagated through the operations that construct and :
The gradient therefore carries the dependence of both the network values and their spatial derivatives on the weights and biases; this nested differentiation is handled by the same PyTorch automatic-differentiation graph described above [3, 34]. It is this propagation through the spatial derivatives that makes the residual Jacobian below more expensive to form and, in general, more poorly conditioned than in an ordinary regression problem (a point we return to when introducing Levenberg–Marquardt damping in (37)).
Writing , where is the total number of trainable weights and biases, let
denote the Jacobian of the residual vector with respect to the trainable parameters. The chain rule applied to (30) gives
where the sum over residual components is exactly the matrix product .
This least-squares formulation motivates comparing optimizers that use different levels of derivative information. The three families considered here use it differently: Adam is a first-order adaptive-gradient method that uses together with component-wise running estimates formed from present and past gradients; L-BFGS is a quasi-Newton method that infers curvature of the scalar loss from changes in successive parameter gradients; and GN/LM is a nonlinear least-squares method that uses the residual vector directly to build a problem-specific curvature approximation. Throughout, “higher-order” is used broadly for methods that incorporate curvature information, or an approximation to it, rather than in the sense of forming exact second derivatives: L–BFGS estimates curvature from gradient differences, and GN/LM builds its curvature approximation from the residual Jacobian.
We use Adam as the baseline warm-up method, since it is a first-order adaptive-gradient method based on running estimates of the first and second moments of the gradient [18]. (Here, the “second moment” is a running average of squared gradient components, not a second derivative of the loss.) Adam is useful during the initial stage of training because it is relatively robust from random initialization and tolerates poor gradient scaling; however, as a first-order method, it may converge slowly once the iterate is already near a local minimizer. We therefore test two curvature-informed refinement strategies: L–BFGS and damped Gauss–Newton / Levenberg–Marquardt (GN/LM).
• L–BFGS refinement. L–BFGS is a limited-memory quasi-Newton method for large-scale optimization [27, Sec. 2], [33, Secs. 6.1 and 7.2]. Rather than forming the Hessian , which is impractical to store for large networks, it maintains an implicit approximation to the inverse Hessian built from a limited number of recent parameter and gradient differences, and produces search directions
The parameters are then updated by , where the step length is selected by a strong Wolfe line search [53, 54, 32]. The strong Wolfe conditions enforce both a sufficient decrease in the loss and a curvature condition that keeps the BFGS inverse-Hessian approximation positive definite, and hence the search direction a descent direction; we use the strong Wolfe line search provided by the PyTorch implementation of L-BFGS. The derivation of (33) from the Newton direction and the precise Wolfe conditions are standard and are collected in Appendix A. The stability of the strong Wolfe search is particularly helpful for the FF-PINNs of Section 3.2, where the Fourier-feature embedding makes the optimization landscape more sensitive to step size. Unlike GN/LM, however, L-BFGS is a general-purpose method for smooth scalar objectives and does not exploit the decomposition of the loss into the individual residuals in .
• Gauss–Newton/Levenberg–Marquardt refinement. The GN/LM method is especially natural here because the PINN loss has the nonlinear least-squares form (30). Linearizing F near the current iterate ,
which follows by stacking the first-order component expansions , whose gradient rows are exactly the rows of . Gauss–Newton chooses the increment by minimizing the linearized residual norm , giving the normal equations
Equivalently, , which states that the remaining linearized residual is orthogonal to the column space of . Geometrically, is chosen to approximate as closely as the first-order model allows: if exact cancellation is attainable the linearized residual is zero, and otherwise the step yields the smallest attainable -norm. Since the components of are the ODE and boundary residuals, would mean the network satisfies the equation and boundary conditions exactly at all sampled points; thus zero is the ideal, and Gauss–Newton seeks the best locally attainable reduction toward it.
The connection to the Hessian follows by differentiating (32):
Gauss–Newton neglects the second term and uses as a curvature approximation, which is especially appropriate near a solution where the residual components are small. Unlike L–BFGS, which infers curvature from successive loss gradients, Gauss–Newton builds its approximation directly from the residual Jacobian.
In practice we use the damped Levenberg–Marquardt modification
in which regularizes the linear system and improves stability when is ill-conditioned or the linearization (34) is inaccurate. For large the increment approaches , a scaled negative-gradient step by (32), while as the update approaches the Gauss–Newton step; the undamped method is recovered at [24, 31]. This damping is particularly relevant for PINN training because, as noted above, the residual depends on derivatives of the network output and the residual Jacobian can be poorly conditioned.
Algorithm 1 PINN Method with Second-Order Optimizers for
1 Choose domain , collocation points , and boundary condition type. 2 Define a neural network . 3 Define the PINN approximation by
.
4 Define the ODE residual
.
5 Define
.
6 Define the boundary loss
,
7 Define the total loss
.
8 Choose one of the optimizer modes
.
9 for do
10 Use automatic differentiation to compute and .
11 Compute , , and .
12 Update the trainable parameters according to the selected optimizer mode Opt.
13 Periodically resample the random subset of the collocation points and store checkpoint diagnostics.
14 end for
15 Return the trained approximation .
In summary, Adam uses first-order gradients with component-wise adaptive scaling but does not model curvature coupling between parameter directions; L–BFGS constructs an implicit inverse-Hessian approximation from parameter and gradient differences; and GN/LM exploits the nonlinear least-squares structure to form the problem-specific curvature approximation directly from the residual Jacobian.
In addition to applying L–BFGS and GN/LM directly from the network initialization, we consider hybrid strategies in which an Adam warm-up precedes L–BFGS or GN/LM refinement. Such hybrid procedures are common in PINN practice and have been reported to improve accuracy and/or training efficiency relative to a single optimizer; see, e.g., [30, 38, 37]. Recent work indicates that stronger second-order optimizers can substantially outperform the classical Adam–L–BFGS procedure in demanding high-accuracy regimes [16, 49]. When L–BFGS or GN/LM is applied directly from the network initialization, without an Adam warm-up, we refer to the resulting procedure as pure -BFGS or pure GN/LM, respectively.
3.1.2. Implementation of PINN with second order optimizers. In our implementation in the following sections, we record specific parameters and errors, mostly described in tables, such as Table 1. Throughout the numerical results, we report the standard relative error and error, namely,
For the higher-order optimizer PINN comparison, the selected L-BFGS, Adam-L-BFGS, GN/LM, and Adam-GN/LM configurations from Tables 2 and 5 were evaluated with the Dirichlet boundary condition (16) for the ODE , with , and 7. The results in Tables 3 and 6 show that all four refinement strategies are capable of reducing the training loss to small values, but the resulting profile accuracy depends strongly on the optimizer family. We use the term training loss here because is the residual-based loss minimized by the PINN, whether the network is trained directly with Adam or further refinement using L-BFGS or GN/LM. More generally, training objective is used when referring to both the PINN losses and the variational objectives minimized in the Deep Ritz methods as seen in Section 4.
| Parameter | Values tested / description |
|---|---|
| Domain length L | 30 |
| Pure L-BFGS runs | L-BFGS initialized directly from the network initialization |
| Adam-L-BFGS runs | Adam warm-up followed by L-BFGS refinement |
| Activation functions | tanh(x), SiLU(x), SiLUPLUS(x), , , and sech(x) |
| Number of hidden layers | 3, 4, or 5 |
| Neurons per layer | 32, 64, or 96 |
| Number of collocation points | , , , or |
| Adam warm-up length | 2,500, 5,000, 7,500, 10,000, 12,500, and 15,000 epochs |
| Adam learning rate lr | initial; StepLR decay |
| Boundary condition weight | 0.1, 1, 5, or 25 |
| L-BFGS refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| L-BFGS history size | 20, 50, or 100 |
| L-BFGS max iterations per step | 1, 5, 10, 20, or 30 |
| L-BFGS learning rate | 0.5 and 1.0 |
| Selection criterion | Smallest error, with runtime used to break near-ties |
TABLE 1. Schedule quantities varied in the L-BFGS and Adam-L-BFGS optimizer tests.
For these higher-order PINN refinement methods, hyperparameter selection was performed using the representative cubic problem . We fixed and swept through the PINN, L-BFGS, and GN/LM optimizer parameters summarized in Tables 1 and 4. After selecting the best configurations according to the smallest error, with runtime used to break near-ties, the same optimizer settings were then held fixed and evaluated on the cases , and 7. Although the cubic case was used during hyperparameter selection, the final selected configuration was rerun for on the primary computational device so that all three reported benchmark cases were obtained using the same finalized setup and timing environment. We remark that when no exact profile is available, hyperparameters could instead be selected using the ODE and boundary residuals on an independent, finer validation grid, together with Pokhozhaev identities (or one of them, which is not algebraically enforced by the trial function). Then properties such as positivity, localization, centering of the computed profile under domain and quadrature refinement could also be checked. In this paper, we do not address this, and will consider this elsewhere, e.g., see an example of equations with combined potentials in [14].
The internal L-BFGS settings were fixed throughout our computations: strong-Wolfe line search, gradient tolerance , and change tolerance . These lower-level internal settings were not swept. The optimizer-schedule comparison varied the optimizer type, activation function, network architecture, number of collocation points, Adam warm-up length, and L-BFGS refinement schedule. For the checkpoint-based Adam-L-BFGS tests, Adam checkpoints were compared at different warm-up lengths, followed by L-BFGS refinement checkpoints. The selected configurations are therefore optimizer-dependent rather than common to all L-BFGS-based runs. For the pure L-BFGS case, the selected Dirichlet configuration used 50 L-BFGS steps, history size 100, a maximum of 10 inner iterations per step, L-BFGS learning rate 1.0, and . For the Adam-L-BFGS case, the selected Dirichlet configuration used a 15,000-step Adam warm-up followed by 25 L-BFGS refinement steps, history size 100, and a maximum of 5 inner iteration per step, L-BFGS learning rate 1.0, and . In both cases, the strong-Wolfe line search was used for the L-BFGS updates. Table 1 summarizes the L-BFGS schedule quantities considered in the optimizer tests, while Table 2 reports the selected Dirichlet configurations for each L-BFGS-based optimizer.
| Optimizer | Activation | Hidden Layer | Neurons per Layer | Adam Warm-up | L-BFGS Steps | History size | Max Iters per Step | L-BFGS LR | ||
|---|---|---|---|---|---|---|---|---|---|---|
| L-BFGS | tanh(x) | 4 | 32 | - | 50 | 100 | 10 | 1.0 | 5.0 | |
| Adam-L-BFGS | tanh(x) | 4 | 64 | 15,000 | 25 | 100 | 5 | 1.0 | 1.0 |
TABLE 2. Selected L-BFGS and Adam-L-BFGS for Dirichlet boundary conditions.
| PINN with L-BFGS optimization | PINN with Adam-L-BFGS optimization | |||||||
|---|---|---|---|---|---|---|---|---|
| p | CPU time | error | error | CPU time | error | error | ||
| 3 | 1.314525e-08 | 15.328056 | 7.162973e-03 | 5.864162e-03 | 5.917457e-08 | 353.818283 | 7.896724e-03 | 6.463914e-03 |
| 5 | 1.679169e-07 | 14.411380 | 8.026411e-03 | 7.032712e-03 | 2.705050e-07 | 338.015580 | 5.668667e-03 | 4.915231e-03 |
| 7 | 9.080274e-08 | 10.815290 | 2.407888e-03 | 2.187603e-03 | 2.613929e-07 | 326.965276 | 2.374574e-03 | 2.225127e-03 |
TABLE 3. Comparison of PINN performance with L-BFGS and Adam-L-BFGS optimization and Dirichlet boundary conditions (16) for .
In Table 3, the left group of columns reports the pure L-BFGS results, while the right group reports the Adam-L-BFGS results. For the L-BFGS-based methods, the pure L-BFGS runs are substantially cheaper than Adam-L-BFGS, and the added Adam warm-up does not uniformly improve the final accuracy. For , the pure L-BFGS run gives the smaller and errors despite requiring much less CPU time.
For , Adam-L-BFGS gives the smaller and errors. For , Adam-L-BFGS gives a slightly smaller error, whereas pure L-BFGS gives a slightly smaller error, with both methods producing errors of the same order. We therefore find that the Adam warm-up does not uniformly improve the L-BFGS refinement stage, even though it can help for the case.
Figure 1 shows in the left panel that pure L-BFGS rapidly decrease the PINN training loss during the initial refinement steps before reaching a plateau. The profile plot in the right panel shows the learned profiles converging toward the exact ground state given by (14) as the number of L-BFGS steps increases. We observe that the final profile after 50 L-BFGS steps agrees closely with the exact profile, up to the errors reported in the left group of columns in Table 3. For , the final and errors are and , respectively, and are therefore both of order . We show the computations for the representative quintic case in Figure 1, as it is the -critical (borderline) case in one dimension, with similar convergence behavior observed for the cubic and septic cases.

FIGURE 1. Training loss (left) and ground state solution profile convergence (right) for L-BFGS PINN (with parameters as seen in Table 2) for . The (black dashed) curve labeled Exact in the right panel is the explicit solution given by (14).

FIGURE 2. Training loss (left) and ground state solution profile convergence (right) for Adam–L–BFGS PINN (with parameters as seen in Table 2) for . The (black dashed) curve labeled Exact in the right panel is the explicit solution given by (14). The final learned profile corresponds to 15,000 Adam steps followed by 25 L–BFGS steps.
Figure 2 shows in the left panel that the Adam warm-up gradually reduces the training loss before the L–BFGS refinement stage produces the final decrease. In the profile plot in the right panel of the same figure, we observe that the learned profiles improve across the recorded Adam and L–BFGS checkpoints and approach the exact ground state given by (14). The labels of the form denote the total optimizer-step count, with the first 15,000 epochs corresponding to Adam and the subsequent j steps corresponding to the L–BFGS refinement. The final profile after the 15,000-epoch Adam warm-up and 25 L–BFGS steps agrees closely with the exact profile, up to the errors reported in the right group of columns of Table 3. For , the final and errors are and , respectively, and are therefore both of order . Similar qualitative behavior was also observed for and .
For the GN/LM PINN refinements, the optimizer comparison varied the optimizer type, activation function, network architecture, number of collocation points, Adam warm-up length, GN/LM refinement length, and damping parameters. For the pure GN/LM case, the method was initialized directly from the random network initialization, while in the Adam–GN/LM case, the GN/LM refinement was applied after an Adam warm-up. The damping-related quantities, including the initial damping, maximum number of backtracking steps, damping shrink factor, damping growth factor, and minimum damping, were swept as part of the optimizer tuning.
| Parameter | Values tested / description |
|---|---|
| Domain length L | 30 |
| Pure GN/LM runs | GN/LM initialized directly from the network initialization |
| Adam-GN/LM runs | Adam warm-up followed by GN/LM refinement |
| Activation functions | tanh(x), SiLU(x), SiLUPLUS(x), , , and sech(x) |
| Number of hidden layers | 3, 4, or 5 |
| Neurons per layer | 32, 64, or 96 |
| Number of collocation points | , , , or |
| Adam warm-up checkpoints | 2,500, 5,000, 7,500, 10,000, 12,500, and 15,000 epochs |
| Adam learning rate lr | initial; StepLR decay |
| Boundary condition weight | 0.1, 1.5 or 25 |
| GN/LM refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| Initial damping | , , and |
| Maximum backtracking steps | 2, 4, 6, 8, and 10 |
| Damping shrink factor | Values in [0.4, 1.1] |
| Damping growth factor | 5, 10, and 15 |
| Minimum damping | , , and |
| Selection criterion | Smallest error, with runtime time used to break near-ties |
TABLE 4. Schedule and damping quantities varied in the GN/LM and Adam-GN/LM optimizer tests.
The selected GN/LM-based Dirichlet configurations shared the collocation size, refinement length, damping parameters, and boundary-condition weight, but not the activation function. In both cases, the selected runs used , 150 GN/LM refinement steps, initial damping , 2 maximum backtracking steps, damping shrink factor 0.6, damping growth factor 10, and . Pure GN/LM was started directly from the random network initialization and used sech(x) activation with 4 hidden layers with 64 neurons per layer. Adam-GN/LM used tanh(x) activation with 5 hidden layers and 32 neurons per layer, following a 15,000-epoch Adam warm-up. Table 4 summarizes the tuning ranges, and Table 5 reports the selected configurations.
| Optimizer | Activation | Hidden Layer | Neurons per Layer | Adam Warm-up | GN/LM Steps | Max Backtracks | Damping Shrink | Damping Growth | Initial Damping | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| GN/LM | sech(x) | 4 | 64 | - | 150 | 2 | 0.6 | 10 | 5 | ||
| Adam-GN/LM | tanh(x) | 5 | 32 | 15,000 | 150 | 2 | 0.6 | 10 | 5 |
TABLE 5. Selected GN/LM and Adam-GN/LM configurations for Dirichlet boundary conditions.
The GN/LM-based methods give smaller errors than the L-BFGS-based methods in most cases, but at a much higher computational cost when run on the primary CPU device. In particular, pure GN/LM obtains errors near for and , while Adam-GN/LM gives the best result among the PINN optimizers for . The corresponding convergence plots in Figures 3 and 4 show a rapid reduction of the training objective under GN/LM refinement and close agreement between the computed profile, that the neural network learned, and the exact ground state given by (14). Overall, we find that these results suggest GN/LM refinement is the most accurate PINN refinement mechanism tested here, while the Adam warm-up can improve robustness for the more difficult higher-power case.
In Table 6, the left group of columns reports the pure GN/LM results, while the right group reports the Adam-GN/LM results. We observe that the two methods give errors of comparable order for ,
| PINN with GN/LM optimization | PINN with Adam-GN/LM optimization | |||||||
|---|---|---|---|---|---|---|---|---|
| p | CPU time | error | error | CPU time | error | error | ||
| 3 | 2.763789e-11 | 4532.584975 | 1.193728e-04 | 9.808560e-05 | 6.763931e-13 | 1639.024311 | 1.417711e-04 | 1.158408e-04 |
| 5 | 1.015142e-10 | 4940.055658 | 6.839973e-05 | 5.982481e-05 | 1.328934e-10 | 1872.362646 | 5.831789e-04 | 5.065382e-04 |
| 7 | 3.184690e-08 | 5205.814115 | 2.681668e-03 | 2.388390e-03 | 4.723684e-10 | 1812.308855 | 9.558302e-04 | 8.583382e-04 |
TABLE 6. Comparison of PINN performance with GN/LM and Adam-GN/LM optimization and Dirichlet boundary conditions (16) for .
while pure GN/LM gives the more accurate profile for . In particular, the pure GN/LM errors for the quintic case are of order , compared with order for Adam-GN/LM. For , however, the Adam warm-up produces the smaller errors. Thus, we find that, although pure GN/LM attains the smallest error for the cubic and quintic cases, Adam-GN/LM is more robust across the increasing nonlinear test cases.

FIGURE 3. Training loss (left) and ground state solution profile convergence (right) for GN/LM PINN (with parameters as seen in Table 5) for . The (black dashed) curve labeled Exact in the right panel is the explicit solution given by (14).
Figure 3 shows in the left panel that pure GN/LM produces a sharp and sustained decrease in the PINN training loss over the refinement steps. In the right panel, we observe that the successive learned profiles approach the exact ground state given by (14). By step 50, the learned and exact curves are already visually indistinguishable at the plotting scale. We nevertheless continue the optimization to the selected final value of 150 GN/LM steps and report the errors at that final step in the left group of columns of Table 6 because the order of error at step 50 is only , compared with at step 150. For , the final and errors are and , respectively, and are therefore both of order . The error at step 50 is not reported because this curve is an intermediate visualization checkpoint rather than the final trained configuration used in the comparison table, although the secondary-device results in Section 3.1.3 show that pure GN/LM can be sensitive to damping and branch selection.
Figure 4 shows that Adam-GN/LM combines the gradual stabilization provided by Adam with a rapid final decrease in the training loss during the GN/LM refinement. In the right panel, we compare the profiles at the recorded Adam and GN/LM checkpoints with the exact ground state given by (14). The labels of the form denote the total optimizer-step count, with the first 15,000 steps corresponding to the Adam warm-up and the subsequent steps corresponding to GN/LM refinement. We retain only a subset of the available checkpoints in the legend, with no more than eight displayed curves, so that

FIGURE 4. Training loss (left) and ground state solution profile convergence (right) for Adam-GN/LM PINN (with parameters as seen in Table 5) for . The (black dashed) curve labeled Exact in the right panel is the explicit solution given by (14). The final learned profile corresponds to 15,000 Adam steps followed by 150 GN/LM steps.
the plot remains readable. Thus, the displayed refinement-step values need not be equally spaced. We observe that the final profile after 150 GN/LM refinement steps agrees closely with the exact profile, up to the errors reported in the right group of columns of Table 6. For , the final and errors are and , respectively, thus, both are of order , supporting Adam-GN/LM as the most robust PINN refinement strategy (among the tested methods). Although pure GN/LM gives the smaller error for the quintic case, we regard Adam-GN/LM as more robust among the cases tested, since Adam warm-up provides a more reliable initialization for the GN/LM refinement stage.
3.1.3. Comparison with the “secondary” computational device for PINNs with higher-order optimizer refinements. As a secondary-device check, we repeated the selected higher-order PINN refinement experiments on the separate GPU-capable workstation described in Section 2.7. The purpose of this comparison is not to introduce a new hyperparameter sweep, but to evaluate the same selected PINN configurations under a different hardware and linear algebra environment. Therefore, the architecture, collocation size, boundary-condition weight, optimizer schedule, and stopping criteria were kept fixed, while only the computational device was changed. The larger-damping GN/LM experiments considered below are reported separately as a sensitivity test and are not part of this fixed-configuration device comparison. As in the preceding subsection, we may refer to L-BFGS or GN/LM applied directly from the network initialization, without an Adam warm-up, as pure L-BFGS or pure GN/LM, respectively.
As explained in Section 2.7, these timings are reported as GPU+CPU rather than GPU-only, and are not directly comparable to CPU-only timings as a measure of processor performance alone.
| PINN with L-BFGS optimization | PINN with Adam-L-BFGS optimization | |||||||
|---|---|---|---|---|---|---|---|---|
| p | GPU+CPU time | error | error | GPU+CPU time | error | error | ||
| 3 | 5.329101e-08 | 7.505031 | 6.583645e-03 | 5.421850e-03 | 3.593178e-08 | 62.361742 | 3.780430e-03 | 3.079454e-03 |
| 5 | 7.202707e-08 | 6.157369 | 5.845897e-03 | 5.090068e-03 | 1.164522e-07 | 63.238091 | 2.992726e-03 | 2.691600e-03 |
| 7 | 4.067500e-08 | 6.788750 | 1.609846e-03 | 1.493517e-03 | 2.353134e-07 | 61.959399 | 9.146505e-04 | 1.052700e-03 |
TABLE 7. Secondary-device GPU+CPU comparison of PINN performance with L-BFGS and Adam-L-BFGS optimization and Dirichlet boundary conditions (16) for .
Tables 7 and 8 show that the secondary GPU+CPU runs substantially reduce the reported wall-clock time for the higher-order refinement experiments. This reduction is especially clear for the Adam-L-BFGS and GN/LM-based methods, where the secondary device gives much shorter run times than the corresponding primary-device CPU runs. The L-BFGS-based methods remain broadly comparable to the primary-device CPU runs, with errors of the same general order. The Adam-GN/LM runs are also stable across the secondary-device comparison and remain close to the exact ground state given by (14) for , 5, and 7.
In Table 7, the left group of columns reports the pure L-BFGS results, while the right group reports the Adam-L-BFGS results. We observe that all of the profile errors are of order . On the secondary device, the Adam warm-up reduces the profile errors for each value of , but it also increases the GPU+CPU time from 6 – 8 seconds for pure L-BFGS to approximately 62 – 63 seconds for Adam-L-BFGS. Thus, we find the same general trade-off observed on the primary device: the Adam warm-up can improve the final profile, but at a substantially greater computational cost.
The main discrepancy in the secondary-device PINN runs occurs for the pure GN/LM optimizer. With the selected initial damping used in Table 5, the septic case does not converge to the centered ground-state branch. Instead (although the profile preserves the prescribed value ), the GN/LM iterates develop an additional bump further to the right. This produces the large and errors reported for the entry, even though the training loss is still reduced. Hence, we have to distinguish between reduction of the sampled residual-based loss and convergence to the desired ground-state profile.
| PINN with GN/LM optimization | PINN with Adam-GN/LM optimization | |||||||
|---|---|---|---|---|---|---|---|---|
| p | GPU+CPU time | error | error | GPU+CPU time | error | error | ||
| 3 | 4.025347e-11 | 538.109242 | 9.699502e-05 | 7.902533e-05 | 1.294946e-12 | 506.161066 | 5.594483e-05 | 4.555836e-05 |
| 5 | 4.330355e-11 | 534.144825 | 2.525764e-04 | 2.192186e-04 | 1.701413e-10 | 511.624151 | 5.432745e-04 | 4.717845e-04 |
| 7 | 5.115845e-06 | 538.628306 | 1.256511 | 1.411610 | 1.485399e-10 | 531.554408 | 6.169997e-04 | 5.539982e-04 |
TABLE 8. Secondary-device GPU+CPU comparison of PINN performance with GN/LM and Adam-GN/LM optimization and Dirichlet boundary conditions (16) for .
In Table 8, the left group of columns reports the pure GN/LM results, while the right group reports the Adam-GN/LM results. For , both methods give errors between orders of to , while for both give errors of order . The most significant difference occurs for : pure GN/LM profile has errors of order one because it converges to the incorrect branch, whereas Adam-GN/LM gives and errors of and , respectively, both of order . Thus, one can note that the Adam warm-up prevents the branch-selection failure in the septic case without increasing the secondary-device run time relative to pure GN/LM.
| PINN with GN/LM optimization | ||||
|---|---|---|---|---|
| p | GPU+CPU time | error | error | |
| 3 | 2.483710e-08 | 591.697312 | 1.413589e+00 | 1.414096e+00 |
| 5 | 1.058034e-06 | 586.388381 | 1.318001e+00 | 1.417144e+00 |
| 7 | 1.221674e-09 | 574.305437 | 6.810766e-04 | 6.118432e-04 |
TABLE 9. Secondary-device GPU+CPU comparison of PINN performance with GN/LM with larger initial damping ( ) and Dirichlet boundary conditions (16) for .
To test whether this failure was caused by insufficient damping, we repeated the pure GN/LM runs with larger initial damping values and . Table 9 reports the results obtained with initial damping
. This change corrects the septic case and yields an accurate profile. We note, however, that the same damping choice destabilizes the lower-power cases. For the learned solution develops a secondary bump away from the origin, while for the optimizer converges to a negative, off-centered profile rather than the positive, centered at ground state. We show representative non-ground state profiles in Figure 5. We note that increasing the damping resolves the branch-selection issue for the septic (supercritical) case but introduces the same type of non-ground state convergence for the cubic and quintic cases.
From Table 9, we observe that the larger damping reverses the behavior seen with the selected damping. The cubic and quintic profiles now have and errors of order one, while the septic profile has errors of order . Thus, no single one of these two initial damping choices reliably selects the desired branch for all three powers when pure GN/LM is initialized directly from the random network parameters.
A plausible explanation is that the pure GN/LM PINN loss does not uniquely select the ground-state branch. We interpret the observed failure as evidence of the branch-selection ambiguity. In the Dirichlet setting, the loss enforces the residual together with and , but it does not directly impose positivity, monotone decay, or . As a result, the network can satisfy the boundary conditions and maintain a small residual at the sampled collocation points while developing a secondary interior bump, producing a non-ground-state profile.
This issue is more pronounced for pure GN/LM because it starts from the random initialization and takes large linearization-based correct steps in a nonconvex least-squares landscape. Small numerical differences between the devices or linear algebra back-ends may therefore alter the accepted GN/LM steps and steer the iteration toward a different local minimizer. Thus, the secondary device double-bump profile does not necessarily indicate a change in the equation or code; rather, we interpret it as showing that pure GN/LM is branch-sensitive unless the desired ground-state structure is enforced or reached through a more stable path such as Adam-GN/LM. In the left panel of Figure 5, we compare the pure
Ground State Solution Profile
PINN (with GN/LM) solution vs Exact for

Ground State Solution Profile
PINN (with GN/LM) solution vs Exact for

FIGURE 5. Secondary device ground state solution profile convergence for GN/LM PINN with p = 7 with parameters as seen in Table 5 (left) and p = 5 with GN/LM initial damping (right) for . The (black dashed) curve labeled Exact in the right panel is the explicit solution given by (14).
GN/LM profile for , obtained using the selected damping from Table 4, with the exact ground state given by (14). The final learned profile develops an additional positive bump and does not align with the exact profile; the corresponding and errors in the left group of columns of Table 8 are 1.256511 and 1.411610, respectively, and are therefore of order one. In the right panel, we compare the profile obtained with the larger initial damping with the exact solution from (14). The final learned solution profile is negative and off-centered rather than positive and centered at the origin, and its and errors from Table 9 are 1.318001 and 1.417144, respectively, again of order one.
In conclusion, we find that pure GN/LM is highly sensitive to damping, initialization, and device-dependent numerical details. We observe that this is indeed the case when testing higher order powers in the nonlinear term, where changing the initial damping yields results similar to those in Figure 5. In contrast, Adam–GN/LM is more robust because the Adam warm-up moves the network closer to the desired ground-state branch before the GN/LM refinement begins. We emphasize that our secondary-device comparison supports the main conclusion that Adam–GN/LM is the more reliable PINN refinement strategy, while pure GN/LM can achieve high accuracy only when the damping and initialization place the iteration on the correct solution branch.
3.2. Fourier-Feature Physics-Informed Neural Network (FF–PINN). We also test a Fourier-feature physics-informed neural network (FF–PINN), in which the scalar coordinate input is first embedded into a trigonometric feature space before being passed to the multilayer perceptron. In our implementation, the physical coordinate is scaled by the computational length L. When the raw coordinate is included, the embedding is
where is a frequency matrix in dimensions. In our 1D case, should be referred to as a frequency vector as we are studying the one-dimensional ground state problem.
We also test the corresponding embedding without the raw coordinate,
The entries of B are initialized from a Gaussian distribution whose scale is determined by . We consider both fixed-frequency embeddings, where B is kept fixed after initialization and trainable-frequency embeddings, where B is optimized together with the neural-network weights and biases. This construction is related to random Fourier features for kernel approximation [35] and to Fourier-feature embeddings used to reduce the spectral bias of coordinate-based neural networks [44]. Fourier and multiscale feature embeddings have also been studied in the PINN setting for problems where standard PINNs may struggle to represent high-frequency or multiscale components [48]. Thus, inclusion of the raw coordinate x/L is treated as a hyperparameter in the FF–PINN study.
The role of this embedding is to provide the network with oscillatory building blocks before training the MLP. With fixed random frequencies, one obtains a richer input representation without introducing additional trainable frequency parameters. More generally, one could instead treat B as trainable, so that the optimization adjusts the frequencies themselves rather than only the network weights. This may be advantageous when the relevant frequency scale is not known in advance, since the model can adapt its embedding to the problem. However, it also makes the optimization more delicate, because the network must then learn both the shape of the solution and the frequencies used to represent it. In particular, trainable frequencies may drift toward unnecessarily large values, which can produce oscillatory artifacts and reduce stability.
This issue is especially important because the residual contains the second derivative . Indeed, a high-frequency component of the form satisfies
so high frequencies are amplified in the differential operator through the factor . Consequently, overly large Fourier frequencies can have a disproportionate effect on the residual, making the optimization more sensitive and potentially favoring oscillatory low-residual profiles that do not correspond to the desired ground state. For this reason, the Fourier-feature scale and the number of features must be chosen with care.
The motivation for testing this architecture is that our target equation is a stationary profile problem, i.e., , and Fourier-based classical methods, such as Petviashvili iterations combined with FFT discretizations, perform very effectively for localized solitary-wave profiles. The FF–PINN is therefore used to test whether enriching the input representation with sinusoidal features improves the PINN approximation relative to the standard coordinate-input architecture. At the same time, this advantage is not automatic in the present setting: the desired ground state is smooth, positive, centered, and localized, rather than highly oscillatory. Thus, Fourier features increase the expressive power of the network, but they can also introduce unnecessary oscillations.
For this reason, we pair the FF–PINN experiments with ground-state-oriented constraints incorporated directly into the neural network trial function. To target the nontrivial ground-state branch, we use the structured trial function
This type of hard-constraint trial function is consistent with PINN approaches that encode boundary behavior directly in the network ansatz rather than enforcing all constraints only through penalty terms [42, 5]. This ansatz (38) has three useful features. First, the factor
enforces , also its derivative vanishes at . In particular, we take because near this factor behaves like a constant multiple of , so the envelope and its first two derivatives vanish at the right boundary. Since the residual involves the second derivative , this stronger flattening reduces boundary-induced curvature and leads to more stable and accurate training. In our experiments, the choice also satisfied the boundary conditions, but produced less favorable numerical performance. Second, is the fixed peak amplitude from (15), not a trainable parameter. Thus, the reported FF–PINN experiments use exact peak information, a freely trained positive amplitude would require a separate nonzero normalization to rule out collapse toward the trivial solution. Third, the denominator
is positive and has zero derivative at , so it preserves the condition . Additionally, the use of softplus lets the network reshape the profile in the interior regions of the domain, so the ansatz is not just one fixed polynomial envelope. We note that since the hard-constrained ansatz satisfies and identically, no separate boundary loss or boundary-penalty parameter is required. All FF–PINN results reported below use this hard-constrained formulation.
In this way, the ansatz (38) biases the optimization toward a positive, nontrivial ground-state profile rather than the trivial solution. In particular, the residual and boundary losses alone may not select the positive ground-state branch, especially when the Fourier embedding gives the network additional oscillatory flexibility. Thus, we use a hard ground-state trial function to bias the admissible profiles toward positive, localized, boundary-compatible solutions. This is consistent with the broader PINN literature on enforcing constraints through the architecture or trial function rather than relying only on soft penalty terms, see, e.g., [23, 42]. Recent hard-constrained Fourier-feature PINN formulations provide further motivation for combining Fourier-type embeddings with built-in boundary or structural constraints, as in [25, 41]. We also tested the simpler linear Dirichlet hard ansatz
however, the hard-constrained decay ansatz (38) performed better for FF–PINN and was used for its final comparisons. The action-based DR baseline instead uses the linear trial (41), as specified in Section 4.1.
We note that the FF–PINN should be viewed not as a replacement for the classical Fourier spectral method, but as an architectural modification of the PINN: the differential-equation residual and boundary conditions remain the training objective, while the neural network is supplied with a richer trigonometric input representation. Its performance is therefore assessed by the same diagnostics used for the standard PINN, including the error and the error.
We summarize the implementation of the FF–PINN used in our numerical experiments in Algorithm 2.
Algorithm 2 Fourier-feature PINN with Second-Order Optimizer for
1 Choose domain , collocation points , Fourier-feature dimension , Fourier scale , and whether to include the raw coordinate
2 Initialize a fixed frequency matrix with entries drawn from a Gaussian distribution with scale .
3 Choose whether B is kept fixed after initialization or trained together with the neural-network parameters.
4 Define the scaled coordinate
.
5 Define the Fourier-feature mapping by
6 Define a neural network
.
7 Define the FF–PINN approximation by
,
where from (15) is fixed throughout training.
8 Define the ODE residual
.
9 Define the residual loss
.
10 Define the total loss
.
11 Choose one of the optimizer modes
.
12 for do
13 Use automatic differentiation to compute and .
14 Compute .
15 Update the parameters using the selected optimizer mode Opt.
16 Periodically resample collocation points and store checkpoint diagnostics.
17 end for
18 Return the trained approximation .
To optimize the FF–PINN implementation, we carried out the parameter sweeps summarized in Table 10, while fixing p = 3. These tests varied the Fourier-feature dimension, Fourier scale, raw-coordinate inclusion, fixed versus trainable frequency matrices, optimizer schedule, collocation resolution, and refinement settings. To keep FF–PINN comparison consistent with the standard PINN baseline in section 3.1, while also using the best-performing FF–PINN settings from the sweeps, the working FF–PINN parameters were chosen with total residual points, depth = 4, and width = 32.
The Dirichlet boundary condition formulation favors and the SiLU activation. For this formulation, Adam–L–BFGS with gave the best balance between accuracy and runtime. Although some more expensive refinements produced slightly smaller errors, the improvement was
| Parameter | Values tested / Description |
| Domain length | 30 |
| Boundary condition | Dirichlet |
| Activation functions | , , , , , and |
| Number of hidden layers | 3, 4, or 5 |
| Neurons per layer | 32, 64, or 96 |
| Optimizer | Adam, L-BFGS, GN/LM, Adam-L-BFGS, or Adam-GN/LM |
| Fourier feature count | 4, 8, 16, or 32 |
| Fourier scale | 0.05, 0.1, 0.25, or 0.5 |
| Raw coordinate input | Tested both with and without the raw coordinate included |
| Fourier matrix | Fixed or trainable |
| Number of residual points | , , , or |
| Adam warm-up length | 2,500, 5,000, 7,500, 10,000, 12,500, and 15,000 epochs |
| Adam learning rate | initial; StepLR decay |
| L-BFGS refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| L-BFGS history size | 20, 50, or 100 |
| L-BFGS max iterations per step | 1, 5, 10, 20, or 30 |
| L-BFGS learning rate | 0.5 or 1.0 |
| GN/LM refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| GN/LM initial damping | , , or |
| GN/LM Maximum backtracking steps | 2, 4, 6, 8, and 10 |
| GN/LM Damping shrink factor | Values in [0.4, 1.1] |
| GN/LM Damping growth factor | 5, 10, and 15 |
| Selection criterion | Smallest error, with runtime used to break near-ties |
TABLE 10. FF-PINN architecture and optimization hyperparameters tested for solving (10) on [0, 30].
small compared with the additional CPU time. We therefore use the faster near-tie Adam-L-BFGS configuration as the current FF-PINN baseline. For the optimizer internals, the best Dirichlet results were obtained using an L-BFGS history size of 20 and a maximum of 30 inner iterations per outer step. The selected FF-PINN baseline configurations for our investigations are found in Table 11.
| Optimizer | Activation | Hidden Layers | Neurons per Layer | Adam Warm-up | Train B | Include Raw | L-BFGS Steps | History Size | Internal Iteration | L-BFGS LR | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Adam-L-BFGS | SiLU(x) | 4 | 32 | 2,500 | 32 | 0.25 | yes | no | 75 | 20 | 30 | 1.0 |
TABLE 11. Selected FF-PINN configurations for Dirichlet boundary conditions.
Additionally, we found that including the raw scaled coordinate alongside the Fourier features did not give better accuracy than using only the sinusoidal embedding, so the following FF-PINN results do not include the raw input together with the trigonometric features.
| FF-PINN with Dirichlet boundary conditions | ||||
|---|---|---|---|---|
| p | CPU time | error | error | |
| 3 | 1.756630e-07 | 219.333194 | 5.093381e-04 | 6.852868e-04 |
| 5 | 1.004573e-07 | 200.046171 | 4.623447e-04 | 7.603941e-04 |
| 7 | 5.792016e-08 | 234.282703 | 3.989951e-04 | 7.267693e-04 |
TABLE 12. Comparison of FF-PINN performance with Dirichlet 16 boundary conditions (with parameters as in Table 11) for .
We find that the FF-PINN gives accurate approximations for all tested powers , and 7. As shown in Table 12, the final losses remain on the order of , with errors below and errors below . The CPU times are comparable across the three cases, ranging from approximately 200 to 234 seconds. We obtain the smallest error for , while the smallest error is obtained for . The errors remain of the same order across all three tested powers.

FIGURE 6. Training loss (left) and ground state solution profile convergence (right) for FF–PINN (with parameters as seen in Table 11) with . The (black dashed) curve labeled Exact in the right panel is the explicit solution given by (14). The final learned profile corresponds to 2,500 Adam steps followed by 75 L–BFGS steps.
We mention that we use the term training loss in Figure 6 because is the residual-based loss minimized by the FF–PINN. As described above, training objective is the more general term that we use when referring collectively to residual-based PINN and FF–PINN losses and the variational objectives used for the Deep Ritz methods.
In the left panel of Figure 6, we observe that the Adam warm-up stage steadily reduces the loss before the L-BFGS refinement stage further decreases it. In the right panel, we observe that the FF-PINN profiles rapidly converge to the exact ground state give by (14). By the final iterate, the numerical and exact curves are visibly indistinguishable on the plotted scale. The remaining discrepancy is consistent with the p = 5 errors reported in Table 12, which is orders . The representative convergence plot in Figure 6 illustrates this behavior for p = 5: we see the gradual decrease during the Adam stage followed by the final L-BFGS refinement in the left panel, while the final profile in the right panel aligns closely with the exact solution throughout the plotted domain.
3.2.1. Comparison with the “secondary” computational device for FF–PINN. The FF–PINN experiments in this section use the same baseline hyperparameters selected in Table 11, but are run on the secondary GPU-capable workstation. No additional tuning was performed for these runs. In particular, the Fourier-feature dimension, Fourier-feature scaling, raw-coordinate inclusion, activation function, network architecture, collocation size, boundary-condition weight, Adam warm-up, and refinement parameters were all kept fixed to the previously selected FF–PINN baseline. The purpose of this test was to check whether the selected FF–PINN baseline gives comparable accuracy when moved to the GPU+CPU workstation, rather than to search for a new optimal configuration on the secondary device.
Table 13 reports the FF–PINN results on the secondary GPU+CPU device. We observed that the method produces accurate ground-state approximations for all three power cases , with the learned profiles remaining positive, centered at , and visually consistent with the exact solution given by (14). The errors decrease as increases, with the smallest and errors obtained for .
From Table 13, we observe that the errors remain of order for all three powers. The errors are also of order for p = 5 and p = 7, while the p = 3 value is of order . Thus, the errors
| FF-PINN with Dirichlet boundary conditions | ||||
|---|---|---|---|---|
| p | GPU+CPU time | error | error | |
| 3 | 1.284711e-07 | 67.670952 | 7.727327e-04 | 1.107474e-03 |
| 5 | 1.017865e-07 | 67.329122 | 4.419572e-04 | 7.254083e-04 |
| 7 | 6.116914e-08 | 72.062521 | 2.975830e-04 | 5.681980e-04 |
TABLE 13. Secondary-device GPU+CPU comparison of FF-PINN performance with Dirichlet boundary conditions 16 (with parameters as in Table 11) for .
decrease with , and the fixed FF-PINN configuration continues to approximate the exact ground state accurately across the three tested powers. We also observe that GPU+CPU time remains comparable across the three cases, ranging from approximately 67 to 72 seconds.
Compared with the corresponding primary-device results in Table 12, the secondary device runs have substantially have shorter the wall-clock times. In particular, the secondary-device times of approximately 67–72 seconds are considerably smaller than the approximately 200–234-second primary-device times. For p = 3, the primary-device run gives smaller and errors, whereas for p = 5 and p = 7, the secondary-device runs give smaller errors for both and . Although the two workstations produce somewhat different numerical results, the errors remain of comparable magnitude across the two devices, indicating that the selected FF-PINN configuration gives similar accuracy on both systems while the secondary-device runs require less wall-clock time. Unlike the higher-order optimization PINN secondary-device runs, the FF-PINN experiments do not show evidence of convergence to a non-ground-state branch; some numerical variation between the two workstation runs is expected because of different hardware, back-end execution, and other numerical details, but these differences do not substantially change the accuracy of the FF-PINN solutions.
Overall, we find that the secondary-device FF-PINN comparison supports the stability of the selected FF-PINN baseline: when the hyperparameters are held fixed, the GPU+CPU implementation preserves the same accuracy behavior observed on the primary CPU device while achieving shorter run times.
4. DEEP RITZ VARIATIONS
In this section we study the Deep Ritz formulations, which differ substantially from the residual-based PINN and FF-PINN methods studied above. In the PINN-type methods, the neural network is trained by minimizing a least-squares loss built directly from the pointwise ODE residual together with the relevant boundary residuals. By contrast, the Deep Ritz method is variational: the neural-network approximation of the profile is trained by minimizing a scalar objective derived from the variational structure of the ground state equation, rather than from the equation itself. This changes both the optimization landscape and the interpretation of the reported training objective.
The variational formulation cannot be minimized naively over an unconstrained neural-network class. This is because in the action-based formulation, the negative nonlinear term (see, for example, (40)) can drive the action away from the desired ground-state branch unless additional structure is imposed. Therefore, we use constrained Deep Ritz formulations, which are designed to select the positive, localized ground-state profile. The constraints that we use include hard boundary conditions, prescribed peak-amplitude information, positivity or branch selection, and, in the Nehari and Weinstein variants, additional integral constraints derived from the structure of the ground state equation.
A common feature of all Deep Ritz variants considered below is that the Adam training stage and the GN/LM refinement optimize different quantities. During the Adam stage, the method minimizes the scalar training objective associated with the selected formulation: the constrained action-based Deep Ritz loss, the Nehari-constrained objective, or the Weinstein quotient objective. These quantities are variational objectives rather than pointwise residual losses, thus, their final values are not expected to vanish even when the computed profile is accurate.
Here, GN/LM is used only as a final residual-based refinement stage. Accordingly, the GN/LM steps act on a separate, formulation-dependent least-squares residual vector. We define the corresponding refinement objective by
where is a finite-dimensional residual vector. Note that it has the same least-squares structure as the PINN residual vector (31), but its entries depend on the Deep Ritz formulation. For the constrained and Nehari-constrained Deep Ritz methods, it contains the residual components specified in Algorithm 3 and 4, including, where applicable, the ODE, boundary-condition, non-negativity, and normalized Pokhozhaev residuals. For the Weinstein formulation, instead consists of quadrature-weighted values of the Euler-Lagrange residual of the normalized profile
evaluated at the GN/LM residual points. Thus, the Weinstein refinement acts on the normalized profile rather than directly on the ODE residual of the reconstructed ground-state profile . By (66) the two residuals differ only by the positive constant factor , so they have the same zero set, but the choice does affect the scaling of the Jacobian relative to a fixed damping parameter .
Throughout this section the Adam-stage quantity and the GN/LM stage quantity should be interpreted separately: the former measures the variational training objective of the selected Deep Ritz formulation, while the latter measures the residual-refinement objective. This distinction is especially important when interpreting the training-objective curves and the reported values of the Deep Ritz variational objectives and the separate GN/LM refinement objective .
We point out that the comparisons below concern complete, separately tuned training procedures (not a controlled comparison in which only the variational objective is changed). Every reported Deep Ritz configuration includes GN/LM refinement, and the methods differ in trial parameterization, architecture, penalties, and optimization budget. Thus, the final errors and runtimes cannot be attributed to the variational pretraining alone. Instead we wanted to show a more complete comparison of how well the methods could perform.
4.1. Constrained Deep Ritz Formulation. To find the (unique) positive ground state branch, we use an action-based Deep Ritz formulation. Instead of training directly on the pointwise ODE residual, we use the action associated with the ground state profile equation (11): for a profile Q on , the action is defined as
The Deep Ritz stage performs local action-based optimization over a neural-network trial, satisfying the prescribed boundary values, we supplement the action with Pokhozhaev identity penalties.
The boundary conditions and are used to follow the positive ground state branch and are enforced exactly by the trial function below. Although these conditions alone do not make lower bounded, we show below that the prescribed height together with the Pokhozhaev penalties makes the desired ground state a strict local minimizer of the corresponding half-line objective.
For the Dirichlet formulation, we use the hard-constrained trial function
This ansatz enforces the boundary conditions at 0 and at L exactly for all trainable parameters. Indeed, the first term satisfies the prescribed endpoint values , while the second term is a trainable correction as we indicated in (41) that vanishes at both endpoints, thus, putting them together we get and . Therefore, for the hard Dirichlet trial function in (41), the boundary residual is identically zero (i.e., it leaves these boundary values unchanged).
One can observe that this trial function does not enforce positivity, monotonicity, or an upper bound , in particular, the network can take in (41), giving
and furthermore, the normalized Pokhozhaev penalty in Algorithm 3 remains bounded along this family, and thus, for every fixed finite penalty weight, the total objective also tends to along this family.
To explain why this constrained formulation works, we first set the constrained Deep Ritz objective to be
where penalizes violations of the Pokhozhaev identities (20)–(21), which are evaluated on the domain . (Note that a boundary penalty would normally appear in (42) as well, however, for the trial function in (41) it vanishes identically, so we drop it from the objective (42).)
Next, we note that the ground-state branch is searched via the prescribed central value and the Pokhozhaev penalties. Indeed, the condition
excludes the trivial solution and fixes the correct ground state height, while the trainable correction determines the profile shape. Moreover, the amplitude variation is no longer admissible. The two Pokhozhaev penalties encourage the integral equalities satisfied by the ground state, including
Thus, the boundary value provides the correct height, while the variational objective and the integral penalties guide the remaining shape approximation.
We now give a more precise local variational argument. For this calculation, consider the exact ground state Q on , and interpret , , , and from (40), (20), (21) and (42), correspondingly, as their counterparts defined on the half line, i.e., with all integrals taken over . Then perturbations (preserving the prescribed height) have the form , where is real-valued and satisfies . Since solves the profile equation (11), the first variation of the action vanishes for every such perturbation, namely,
Thus, Q is a critical point of the action among profiles with the prescribed boundary value at the origin. Differentiating the profile equation gives
Recall that for the branch that we are looking for, it holds for . Then integration by parts yields the following representation of the second variation
(To justify this, we first consider smooth perturbations supported away from the endpoints and then extend by density to with .) Note that the equality holds precisely when is a multiple of . Thus, prescribing the central value removes the negative quadratic directions of the action, leaving only this one-dimensional degeneracy (i.e., ).
To control this remaining zero direction, we invoke the first Pokhozhaev penalty: using the profile equation, we obtain
and hence,
Since , the second variation of the penalized objective is
where
is the analog of the normalization scale for the half line, which we use in Algorithm 3, evaluated at the exact ground state. (In the implementation, we use , and the scale is computed from the current neural approximation.)
The first term in (44) is nonnegative, and its only zero direction is detected by the first penalty. Consider the linearized operator on , with domain . The boundary condition corresponds to perturbations that preserve the height . The identity (43) shows that this operator is nonnegative and has kernel span . Since as , its essential spectrum is . Therefore, zero is a simple isolated eigenvalue, and the quadratic form is bounded below by a positive multiple of on the -orthogonal complement of . Thus, for every fixed , there exists such that
Then using the Taylor expansion, for sufficiently small , we obtain
In particular, Q is an isolated strict local minimizer of the penalized half-line objective among profiles with the height . (In our implementation, the normalization denominator is recomputed from the current neural approximation at each evaluation but treated as constant when computing derivatives. Although this omits derivatives of the denominator, the resulting gradient has the same linearization at Q as the gradient of the fully differentiated objective, since both Pokhozhaev residuals vanish there.)
In summary, the given height together with the Pokhozhaev penalties is sufficient to select the desired ground state locally, for every (including the cubic, quintic, and septic cases that we consider here). For the finite-interval problem, functions satisfying can be extended by zero to the half-line, and a smooth cutoff of near gives an admissible approximation, whose error is exponentially small as the length . The local coercivity then gives a nearby local minimizer of the continuous truncated objective for sufficiently large . This gives an analytical justification for the local action-based training. In our computations, Adam pretraining produces a profile near the desired ground state, and GN/LM subsequently refines it by reducing the ODE residual, the normalized Pokhozhaev residuals, and a nonnegativity penalty while retaining the prescribed boundary values. The agreement with the ground state is verified by Figure 7 and the profile errors in Table 16.
This method can be referred to as a constrained Deep Ritz formulation with ground-state branch selection (rather than a standard residual-based PINN). Our implementation of this DR method, which we use in the numerical experiments, is summarized in Algorithm 3.
We mention that we use the whole line expressions and in Algorithm 3 as ground state regularizers, evaluated by quadrature on as ground state regularizers rather than exact finite interval identities. For the trial function (41), the omitted boundary terms are and , neither of which is forced to vanish by the given boundary values. For comparison, the exact benchmark satisfies and . At , (and ), we have and , therefore, these estimates motivate the use of the uncorrected expressions as regularizers for the intended whole line profiles. We note that, for example, our Nehari-constrained approach in Section 4.2, in contrast, retains the exact finite interval second Pokhozhaev identity correction.
Algorithm 3 Constrained Deep Ritz Method with Pokhozhaev Penalties
1 Choose , quadrature points , , , , and a Pokhozhaev penalty weight .
2 Compute the peak value from the condition
,
whose positive root is , in agreement with (15).
3 Define a neural network and the hard linear trial in (41), only and are imposed exactly.
4 Choose .
5 for do
6 Use automatic differentiation and quadrature to compute
, , .
7 Compute
.
8 Compute the whole-line Pokhozhaev expressions, truncated to , used as regularizers
, .
9 Define
, .
where nondimensionalizes the residuals by the magnitude of the individual bulk terms and is a numerical safeguard (its precise definition is formulation-dependent).
10 Set
The hard trial makes the boundary loss identically zero.
11 Take a local optimizer step with on the fixed quadrature grid and store checkpoint diagnostics.
12 end for
13 if GN/LM refinement is selected then
14 On at most uniform points, form from the quadrature ODE residual, the two normalized Pokhozhaev residuals, and non-negativity residual.
15 for do
16 Form and solve the residual-space system , then set , with step clipping.
17 Accept (after backtracking) when it decreases , shrink on acceptance and grow it otherwise.
18 end for
19 end if
20 Return the trained approximation .
The terms “soft”, “hard”, and “decaying” in the Trial function line in Table 14 describe how the boundary conditions are imposed. In the soft formulation, the network output is unconstrained and the boundary conditions are enforced through penalty terms. In the hard formulation, the trial function is constructed so that the boundary conditions are satisfied exactly for every choice of the trainable parameters, as in (41). In the decay formulation, the trial function also satisfies the boundary conditions exactly, but uses the stronger built-in decay structure in (38) instead of the linear boundary interpolator. We tested all three formulations; however, the hard formulation with the linear constraint (41) produced the smallest errors, therefore, in the actual algorithm (see Algorithm 3) we drop the boundary condition term from the loss .
As discussed above, the Adam stage minimizes the action-based Deep Ritz objective, while the optional GN/LM stage is used only as a residual-based refinement of the pretrained profile. Therefore, the GN/LM parameters in Table 14 should be interpreted as refinement parameters for the least-squares residual system, not as parameters of the scalar action minimization itself.
| Parameter | Values tested / Description |
|---|---|
| Domain length L | 30 |
| Boundary condition | Dirichlet |
| Trial function | Soft penalty trial, hard or decaying Dirichlet ansatz |
| Optimizer | Adam, L-BFGS, or Adam-L-BFGS |
| Refinement strategy | GN/LM or Adam-GN/LM |
| Activation functions | tanh(x), SiLU(x), SiLUPLUS(x), , , and sech(x) |
| Number of hidden layers | 3, 4, or 5 |
| Neurons per layer | 32, 64, or 96 |
| Number of quadrature points | , , , , or |
| Adam warm-up length | 2,500, 5,000, 7,500, 10,000, 12,500, and 15,000 epochs |
| Adam learning rate lr | initial; StepLR decay |
| Pokhozhaev penalty weight | 0.1, 1, 5, 10, or 25 |
| L-BFGS refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| L-BFGS history size | 20, 50, or 100 |
| L-BFGS max iterations per step | 1, 5, 10, 20, or 30 |
| L-BFGS learning rate | 0.5 or 1.0 |
| GN/LM refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| GN/LM initial damping | , , or |
| GN/LM Maximum backtracking steps | 2, 4, 6, 8, and 10 |
| GN/LM Damping shrink factor | Values in [0.4, 1.1] |
| GN/LM Damping growth factor | 5, 10, and 15 |
| Selection criterion | Smallest error, with runtime used to break near-ties |
TABLE 14. Deep Ritz architecture, constraint, and optimization hyperparameters tested for solving (10) on [0, 30].
The hyperparameter sweep in Table 14 was used to select the final Deep Ritz configurations. The collocation sweeps gave similar errors for , , , , and action quadrature points, so , was retained. The GN/LM residual refinement uses an initial damping of , at most 8 backtracking steps, and a fixed maximum of 128 GN residual points to control memory usage. Increasing the GN/LM residual or quotient grid did not materially change the final reported or errors, but increasing either grid increased memory usage and runtime. Therefore, we retained the reduced 128-point GN/LM grid as a computationally efficient refinement grid, while verifying the final solution on an independent uniform evolution grid of 4096 points on , with the reported error evaluated by composite trapezoid quadrature. All reported Deep Ritz results therefore use the selected configurations in Table 15.
| Constraint | Optimization | Refinement | Activation | Hidden Layers | Neurons per Layer | Adam Warm-up | GN/LM Steps | Max Backtracks | Damping Shrink | Damping Growth | Initial Damping | Residual Points | Quotient Points | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Hard | Adam | GN/LM | SiLU(x) | 5 | 32 | 2,500 | 200 | 8 | 0.7 | 10 | 128 | 128 | 25 |
TABLE 15. Selected Deep Ritz configurations for Dirichlet boundary conditions (16).
Table 16 reports the performance of the constrained Deep Ritz method for , and 7. The reported values correspond to the final action-based Deep Ritz objective and are not expected to converge to zero. The residual quality after refinement is instead measured by , which is the least-squares objective used in the GN/LM refinement stage.
We find that the constrained Deep Ritz method gives very accurate results for the cubic and quintic cases. For , the method produces of order , with and errors both of order . For the residual-refinement objective is reduced further to order , while the and errors are of and , respectively. The septic case is slightly more challenging: although reaches order , the final errors increase to order . We interpret this as indicating that the sharper higher-power profile is harder to approximate accurately, even when the residual-based refinement objective is very small. In particular, these results show that a smaller value of does not necessarily imply a smaller profile error across different values of .
| p | CPU time | error | error | ||
|---|---|---|---|---|---|
| 3 | 6.666667e-01 | 9.620502e-11 | 264.092212 | 4.302695e-06 | 9.264227e-06 |
| 5 | 6.801746e-01 | 2.375216e-14 | 252.688689 | 1.224911e-05 | 6.049316e-06 |
| 7 | 6.679167e-01 | 4.063798e-16 | 246.570857 | 3.198027e-03 | 2.417198e-03 |
TABLE 16. Performance of the constrained Deep Ritz method with Dirichlet boundary conditions (16) for .
The CPU runtimes are relatively consistent across the three powers, ranging from around 246–264 seconds. Thus, we find that the main cost is determined primarily by the fixed network architecture, quadrature size, and GN/LM refinement settings, rather than by the particular value of .

FIGURE 7. Training objective (left) and ground state solution profile convergence (right) for constrained Deep Ritz method (with parameters as seen in Table 15) for . The (black dashed) curve labeled Exact in the right panel is the explicit solution given by (14). The final learned profile corresponds to 2,500 Adam steps followed by 200 GN/LM steps.
Figure 7 illustrates the two-stage behavior of the method. In the left panel, we observed that, during the Adam warm-up, the action-based Deep Ritz objective decreases and stabilizes near its final variational value. Once GN/LM refinement begins, the residual-based objective decreases by several additional orders of magnitude. In the right panel, we compare the learned profiles with the exact ground state given by (14). We observe that the Adam-trained approximation already visually captures the main ground-state shape, while the GN/LM stage visually improves the agreement with the exact solution. The final profile after 2,500 Adam steps and 200 GN/LM steps aligns closely with the exact curve throughout the plotted domain. The remaining discrepancy is consistent with the errors in Table 16: the final error is , while the error is .
4.1.1. Comparison with the “secondary” computational device for constrained Deep Ritz. Table 17 reports the same constrained Deep Ritz configuration on the secondary GPU+CPU workstation. No additional hyperparameter tuning was performed on this device. The purpose of this test is to determine whether the selected constrained Deep Ritz baseline transfers reliably to a different computational environment and to quantify the corresponding runtime change. We observe that the secondary device substantially reduces the elapsed runtime for all three powers. The resulting primary-to-secondary runtime ratios correspond to speed-ups of approximately 6.4, 6.5, and 5.8 for , 5, and 7, respectively.
| p | GPU+CPU time | error | error | ||
|---|---|---|---|---|---|
| 3 | 6.666667e-01 | 7.300457e-11 | 41.048747 | 3.697873e-06 | 7.913867e-06 |
| 5 | 6.801749e-01 | 1.826449e-12 | 38.984522 | 2.828127e-05 | 1.107741e-05 |
| 7 | 6.677846e-01 | 1.326228e-09 | 42.222312 | 1.397995e-03 | 1.007490e-03 |
TABLE 17. Secondary-device GPU+CPU performance of the constrained Deep Ritz method with Dirichlet boundary conditions (16) for .
The final errors on the secondary device remain comparable to those obtained on the primary device. For , both the and errors improve slightly and remain of order , while for , the secondary run give slightly larger errors: error remains of order , while the error increases from order to order . For , both errors decrease relative to the primary-device values but remain of order . Thus, we find that the secondary-device runs preserve the same accuracy patterns as the primary device runs: strong accuracy for and , with a more challenging approximation for the sharper profile.
We also observe that the relationship between the residual-refinement objective and the profile error is not monotone across the two devices. For example, for , the secondary-device value of is of order rather than , yet the secondary-device and errors are smaller. This again indicates that the magnitude of the sampled residual objective alone does not completely determine the error relative to the exact ground state (14).
Overall, we find that the constrained Deep Ritz method transfers well to the secondary GPU+CPU workstation. The main effect of the secondary device is a large runtime reduction, while the final errors remain comparable to the primary-device results. On the secondary device, we also observe that the constrained Deep Ritz method improves substantially over the corresponding FF-PINN results for and , while the comparison is less decisive for the sharper case.
4.2. Nehari-Constrained Deep Ritz Formulation. For the ground-state solution which we consider on , of equation (11), we consider the associated action
The ground state profile equation (11) is the Euler–Lagrange equation for this action, . However, the focusing ( ) action is not bounded from below on the full trial space. To show that, consider any nonzero u to get
Thus, the ground state cannot be described as an unconstrained minimizer of . In the previous section, in the constrained DR algorithm, we considered a specific branch, where the initial condition helped us locate the correct branch, which was possible since we knew the explicit solutions, and hence, the appropriate branch of solutions (although we also showed why fixing the gives the appropriate branch). However, if we did not have explicit solutions, and thus, the peak height explicitly, then we would need to add extra constraints or other conditions.
A possible constraint is, for example, to use one of the Pokhozhaev identities. Taking the first identity (20), sometimes also called the Nehari identity (and to distinguish it from the second Pokhozhaev identity, we denote it here via ), we define it on a finite interval
The corresponding Nehari manifold is
Then the nontrivial ground state is characterized variationally by minimizing over nonzero profiles on the Nehari manifold . With this constraint, we have
Thus, the value of the action at the trained ground state is not expected to converge to zero.
To avoid prescribing the unknown amplitude , we first construct a positive shape with a unit height. For that we set
and define
Then we get
We note that the symmetry condition at the origin and the truncated Dirichlet condition at x = L are now imposed exactly, while the amplitude remains to be determined by the variational problem.
Define
Then the Nehari projection is obtained by setting
From scaling it follows that
and thus, (50) gives
Therefore, the first Pokhozhaev identity is enforced by the above Nehari projection, and we do not need to include it as a penalty in constrained Deep Ritz approach. The projected action can be evaluated as
For the truncated Dirichlet problem, the second Pokhozhaev identity contains a boundary correction as we discussed in §2.4, thus, it becomes . Note that the last term vanishes completely only in the infinite-domain. If we omit it, it may introduce a small truncation error. We therefore use
The Nehari-constrained Deep Ritz loss is
We note that no boundary penalty is required for the hard-constrained ansatz (48).
Algorithm 4 Nehari-Constrained Deep Ritz Method for
1 Choose , , , the domain , quadrature points , and . 2 Define a neural network for and set . 3 Define the positive hard-constrained shape
4 Choose the variational optimizer
5 for do 6 Use automatic differentiation and quadrature to compute
7 Compute the differentiable Nehari amplitude
and set .
8 Keep in the automatic-differentiation graph; do not detach it from the trainable parameters. 9 Compute
10 Compute the projected action
11 Compute the finite-interval Pokhozhaev residual
and the normalized penalty
where
and is a small numerical safeguard (the precise definition of the normalization scale is formulation-dependent).
12 Form
13 Update using . 14 Using the fixed quadrature grid, store , and . 15 end for 16 Evaluate the pointwise ODE diagnostic
17 Optionally apply a GN/LM residual refinement while retaining the hard boundary conditions and the Nehari projection. 18 Return , together with , and the Nehari residual.
After the variational training stage, we evaluate the pointwise equation residual
In this formulation, the network first represents a positive shape with a unit height, satisfying the hard boundary and symmetry constraints, and the physical amplitude is then determined through the Nehari projection. Thus, unlike the constrained Deep Ritz formulation above, the peak value is not prescribed from the exact solution. Instead, the amplitude is selected variationally through (50), which enforces the Nehari identity up to quadrature and floating-point error.
Remark 1. The Nehari-projected action is directly related to the Weinstein quotient. Eliminating from (51) gives
Hence, the Nehari-constrained DR method and the Weinstein DR method produce equivalent minimizers, in the sense that when and the same raw shape and quadrature are used, the Nehari-projected action is a strictly increasing function of the Weinstein quotient and they have the same minimizing shapes. (We mention that our reported NDR and WDR procedures nevertheless differ through the additional second-identity penalty in NDR, the residuals used in GN/LM refinement, and their separately selected parameterizations and hyperparameters.)
| Parameter | Values tested / Description |
|---|---|
| Domain length | 30 |
| Boundary condition | mixed |
| Trial function | Soft penalty trial, hard or decaying Dirichlet ansatz |
| Optimizer | Adam, L-BFGS, or Adam-L-BFGS |
| Refinement strategy | GN/LM or Adam-GN/LM |
| Activation functions | , , , , , and |
| Number of hidden layers | 3, 4, or 5 |
| Neurons per layer | 32, 64, or 96 |
| Number of quadrature points | |
| Adam warm-up length | 2,500, 5,000, 7,500, 10,000, 12,500, or 15,000 steps |
| Adam learning rate | initial; StepLR decay |
| Pokhozhaev penalty weight | 0.1, 1, 5, 10, or 25 |
| L-BFGS refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| L-BFGS history size | 20, 50, or 100 |
| L-BFGS max iterations per step | 1, 5, 10, 20, or 30 |
| L-BFGS learning rate | 0.5 or 1.0 |
| GN/LM refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| GN/LM initial damping | |
| GN/LM Maximum backtracking steps | 2, 4, 6, 8, and 10 |
| GN/LM Damping shrink factor | Values in [0.4, 1.1] |
| GN/LM Damping growth factor | 5, 10, and 15 |
| Selection criterion | Smallest error, with runtime used to break near-ties |
TABLE 18. Nehari-constrained Deep Ritz architecture, constraint, and optimization hyperparameters tested for solving (10) on [0, 30].
Table 18 lists the architecture, quadrature, constraint, and optimizer parameters tested in the hyperparameter sweep. The sweep varied the activation function, network depth and width, number of quadrature points, Adam warm-up length, L-BFGS settings, GN/LM refinement parameters, and the Pokhozhaev penalty weight . Since the Nehari projection enforces the first identity directly and the hard trial function enforces the boundary conditions, the remaining penalty is used only to control the finite-interval second Pokhozhaev residual.
| Optimization | Refinement | Activation | Hidden Layers | Neurons per Layer | Adam Warm-up | GN/LM Steps | Max Backtracks | Damping Shrink | Damping Growth | Initial Damping | Residual Points | Quotient Points | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Adam | GN/LM | tanh(x) | 5 | 64 | 10,000 | 200 | 6 | 0.7 | 15 | 128 | 128 | 0.1 |
TABLE 19. Selected Nehari-constrained Deep Ritz configuration for mixed boundary conditions (17).
The final configuration selected from this sweep is reported in Table 19. This baseline uses Nehari-constrained Adam training followed by GN/LM residual refinement, with the quadrature and residual-point counts fixed to balance accuracy, runtime, and memory usage. All Nehari-constrained Deep Ritz results below use this fixed configuration unless otherwise stated, so the following tables measure the performance of the selected Nehari baseline across the nonlinear powers rather than a separate hyperparameter search for each value of .
Table 20 reports the primary-device results for the Nehari-constrained Deep Ritz method. Unlike the constrained Deep Ritz formulation above, this method does not prescribe the exact peak amplitude . Instead, the amplitude is determined dynamically through the Nehari projection (50), while the hard trial function enforces positivity, symmetry at the origin, and the endpoint condition at . Thus, this formulation tests whether the ground-state branch can be selected variationally without inserting the known exact amplitude.
| p | CPU time | error | error | ||
|---|---|---|---|---|---|
| 3 | 6.666667e-01 | 2.141298e-13 | 313.008810 | 1.690701e-07 | 2.733932e-07 |
| 5 | 6.801748e-01 | 1.853534e-11 | 315.139802 | 5.223740e-06 | 4.561398e-06 |
| 7 | 6.677478e-01 | 1.803535e-09 | 300.718944 | 2.275145e-04 | 1.384767e-04 |
TABLE 20. Performance of the Nehari-constrained Deep Ritz method with mixed boundary conditions (17) for .
We observe that the Nehari projection gives a more stable approximation across the nonlinear powers tested. The method achieves errors of orders , , and for , 5, and 7, respectively. The higher-power case remains the most difficult, but the deterioration from to is much less severe than that observed for the constrained Deep Ritz method in Table 16. In particular, for , the Nehari-constrained method reduces the error from order to . We interpret this as evidence that the Nehari projection provides a more effective mechanism for selecting the correct branch when the profile becomes sharper.
More specifically, Table 20 shows that, for , both the and errors are of order . For , both errors are of order , while for they are of order . Thus, we obtain a gradual deterioration in profile accuracy as increases, rather than the larger loss of accuracy observed for the constrained Deep Ritz formulation at .
The improvement in robustness comes with a moderate increase in runtime. On the primary device, the Nehari-constrained runs require approximately 301–315 seconds, compared with approximately 247–264 seconds for the constrained Deep Ritz method. Thus, the Nehari formulation is not the fastest Deep Ritz variant, but we find that it gives a better balance of accuracy across all three powers.
In the left panel of Figure 8, one can observe that the Adam stage stabilizes the Nehari-constrained variational objective, after which the GN/LM stage further reduces the residual-refinement objective. In the right panel of the same figure, we compare the learned profiles with the exact ground state given by (14). The learned profiles are approaching the exact curve throughout the plotted interval, including near

FIGURE 8. Training objective (left) and ground state solution profile convergence (right) for the Nehari-constrained Deep Ritz method (with parameters as seen in Table 19) for . The (black dashed) curve labeled Exact in the right panel is the explicit solution given by (14). The final learned profile corresponds to 10,000 Adam steps followed by 200 GN/LM steps.
the peak at the left endpoint, even though the exact peak amplitude is not prescribed by the formulation. The final profile after 10,000 Adam steps and 200 GN/LM steps is not only visually indistinguishable from the exact solution at the plotting scale, but also its remaining numerical discrepancy is consistent with the errors reported in Table 20: the final and errors are and , respectively, and are therefore, both of order .
4.2.1. Comparison with the “secondary” computational device for Nehari-constrained Deep Ritz. Table 21 shows that the Nehari-constrained Deep Ritz method benefits substantially from the secondary GPU+CPU workstation. On the primary device, the three runs require approximately 301–315 seconds, while on the secondary device the runtime is reduced to approximately 95–97 seconds. We find that this corresponds to a speedup of about three across the powers tested, with very little variation between , , and . Thus, we observe that the secondary device provides a consistent acceleration rather than an improvement limited to a single exponent.
| GPU+CPU time | error | error | |||
|---|---|---|---|---|---|
| 3 | 6.666667e-01 | 5.934479e-13 | 96.631522 | 3.255530e-07 | 5.289161e-07 |
| 5 | 6.801748e-01 | 1.871966e-11 | 94.922791 | 5.221092e-06 | 4.573099e-06 |
| 7 | 6.677480e-01 | 2.051331e-09 | 96.848960 | 2.730569e-04 | 1.542854e-04 |
TABLE 21. Secondary-device GPU+CPU performance of the Nehari-constrained Deep Ritz method with mixed boundary conditions (17) for .
Importantly, this reduction in runtime does not substantially change the accuracy pattern. The final errors remain close to the primary-device values and preserve the same ordering across the nonlinear powers: the method is most accurate for , remains highly accurate for , and is least accurate for the sharper profile. For , both the secondary-device errors remain of order ; for , both remain of order ; and for , both remain of order . Thus, we observe exactly the same error orders as on the primary device. We find that the main effect of moving the Nehari-constrained Deep Ritz method to the secondary device is a roughly threefold reduction in wall-clock time, while the numerical accuracy remains essentially comparable.
The close agreement between the two devices is also reflected in the residual-refinement objective. The values of remain of the same order on both devices for every power tested: for , for , and for , differing only in the leading constant. Thus, unlike pure GN/LM in Section 3.1.3, the Nehari-constrained formulation does not exhibit a device-dependent change of solution branch.
4.3. Weinstein Deep Ritz Formulation. We next introduce a variational neural-network method based on the Weinstein quotient rather than on the action. Following the classical variational characterization [50], we use the Weinstein quotient to define the best constant as
where the quadratic form q is defined as
For brevity, we drop the dependence of on , and simply write . If is a positive optimizer normalized by , then , and the corresponding Euler–Lagrange equation is
Consequently,
solves the initial ground state equation (11).
This characterization is especially convenient for a Deep Ritz implementation. The quotient is invariant under multiplication of u by a nonzero constant, so it does not select the trivial solution. We remove the remaining scale invariance by normalizing the neural-network trial function exactly. The optimization determines the normalized shape v and the value ; the physical amplitude of Q is then recovered from (59). In particular, for fixed b and p, the variational training is independent of , which enters only through the final amplitude rescaling.
Since the ground state is even, we work on and interpret each trial function by its even extension to . Let be a neural network and let be a smooth positivity map, for example, . We use the hard-constrained raw trial function
which gives
We normalize the even extension of by defining
We then have .
The truncated Weinstein quotient, evaluated on the even extension, is
The Weinstein Deep Ritz loss is then defined as
We point out that no other normalization penalty, amplitude condition, or Dirichlet boundary penalty is needed because we built these constraints into (60)–(61).
After minimizing (63), following the definition of Q in (59), we set
At an exact constrained minimizer (i.e., a minimizer of the underlying function space variational problem, rather than a minimizer over a fixed neural-network class), the normalized profile satisfies
and also
During and after training, we monitor the Euler–Lagrange residual
The corresponding profile residual satisfies
Thus, either residual (66) or (67) may be used as a post-training diagnostic. If a GN/LM stage is used, it is applied only after the Weinstein-quotient pretraining to a least-squares vector assembled from at residual points. The normalization and the hard boundary structure are retained during this refinement, so that the optimization cannot collapse to the zero solution.
Unlike the action-based Deep Ritz formulation, the Weinstein Deep Ritz method does not require the value as input. It obtains the normalized profile shape from the quotient minimization and then recovers the correct amplitude through (64). Thus, forming the WDR loss and reconstruction does not require an explicit profile, which makes this approach promising for computing ground states with no explicit solutions, which, for example, we investigate in the follow-up work [14]. The Weinstein Deep Ritz implementation is summarized in Algorithm 5.
The method first trains a normalized profile by minimizing the truncated Weinstein quotient and then reconstructs the physical ground-state amplitude from the computed quotient value.
For the GN/LM refinement, the residual points are uniformly spaced on and the residual vector is formed using the square-root composite-trapezoidal weights,
where , for , and . No additional normalization is used, unlike in the PINN formulation. The general GN/LM damping and backtracking procedure is the one described above. During the variational stage, denotes the fixed quadrature grid used to evaluate the Weinstein quotient. During GN/LM refinement, the residual grid is used to form , while a separate quotient grid is used to recompute the normalization and at each trial parameter vector.
Thus, the hyperparameter sweep in Table 22 varies both the neural-network approximation parameters and the optimization parameters that affect the quotient minimization and subsequent residual refinements. In particular, we varied the activation function, network depth and width, number of quadrature points used to evaluate the quotient, Adam warm-up length, L-BFGS settings, and GN/LM refinement parameters. Since the normalization and boundary structure are built into the Weinstein trial function, no separate amplitude penalty, normalization penalty, or boundary penalty is required.
The selected configuration is reported in Table 23. This baseline uses an Adam-trained Weinstein quotient stage followed by GN/LM residual refinement, with the quadrature and residual-point counts fixed in order to balance accuracy with memory usage and runtime. All Weinstein Deep Ritz results reported
Algorithm 5 Weinstein Deep Ritz Method for
1 Choose , , , a truncated domain , quadrature points , and optional residual-refinement points .
2 Define a neural network and a smooth positivity map such that
.
3 Define the hard-constrained raw trial function
,
which satisfies and .
4 Use automatic differentiation to compute .
5 Compute the normalization
, .
6 Compute the truncated Weinstein quotient
.
7 Define the variational loss
.
8 Choose a quotient-minimization strategy
.
9 for do
10 Evaluate the quadrature approximations of and on the fixed uniform quadrature grid.
11 Differentiate with respect to and update using the variational stage of .
12 Store together with the normalization and boundary diagnostics.
13 end for
14 if GN/LM refinement is selected then
15 Recompute , , and and form the Euler–Lagrange residual
.
16 Form from the quadrature-weighted values of at the GN/LM residual points.
17 Apply GN/LM to minimize
,
while retaining the normalized, hard-constrained representation of .
18 end if
19 Reconstruct the ground-state profile
.
20 Evaluate the pointwise ground-state residual and the mass, energy, and finite-interval Pokhozhaev diagnostics for .
21 Return , , and the reconstructed profile
below use this fixed configuration unless otherwise stated, so the subsequent tables measure the performance of the selected Weinstein baseline across the nonlinear powers rather than a new hyperparameter search for each case.
Table 24 reports the performance of the Weinstein Deep Ritz method for , with , and 7. Unlike the action-based Deep Ritz and Nehari-constrained formulations, this method does not minimize the action directly. Instead, the Adam stage minimizes the Weinstein quotient , which selects a normalized profile shape. The physical amplitude is then recovered from the computed quotient value using the reconstruction formula (64). As before, denotes the separate residual-based GN/LM refinement objective, not the quotient itself.
We find that the selected Weinstein Deep Ritz configuration gives the most favorable error–runtime balance among the Deep Ritz variants tested. For the cubic case, the method achieves errors of order , while for the quintic case the errors are of order . The septic case remains the most challenging, with
| Parameter | Values tested / Description |
|---|---|
| Domain length L | 30 |
| Boundary condition | mixed |
| Trial function | Soft penalty trial, hard or decaying Dirichlet ansatz |
| Optimizer | Adam, L-BFGS, or Adam-L-BFGS |
| Refinement strategy | GN/LM or Adam-GN/LM |
| Activation functions | tanh(x), SiLU(x), SiLUPLUS(x), , , and sech(x) |
| Number of hidden layers | 3, 4, or 5 |
| Neurons per layer | 32, 64, or 96 |
| Number of quadrature points | , , , , or |
| Adam warm-up length | 2,500, 5,000, 7,500, 10,000, 12,500, or 15,000 steps |
| Adam learning rate lr | initial; StepLR decay |
| L-BFGS refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| L-BFGS history size | 20, 50, or 100 |
| L-BFGS max iterations per step | 1, 5, 10, 20, or 30 |
| L-BFGS learning rate | 0.5 or 1.0 |
| GN/LM refinement steps | 25, 50, 75, 100, 125, 150, or 200 |
| GN/LM initial damping | , , or |
| GN/LM Maximum backtracking steps | 2, 4, 6, 8, and 10 |
| GN/LM Damping shrink factor | Values in [0.4, 1.1] |
| GN/LM Damping growth factor | 5, 10, and 15 |
| Selection criterion | Smallest error, with runtime used to break near-ties |
TABLE 22. Weinstein Deep Ritz architecture, constraint, and optimization hyperparameters tested for solving (10) on [0, 30].
| Optimization | Refinement | Activation | Hidden Layers | Neurons per Layer | Adam Warm-up | GN/LM Steps | GN/LM Max Backtracks | Damping Shrink | Damping Growth | Initial Damping | Residual Points | Quotient Points | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Adam | GN/LM | SiLU(x) | 5 | 32 | 5,000 | 200 | 6 | 0.5 | 15 | 128 | 128 |
TABLE 23. Selected Weinstein Deep Ritz configurations for mixed boundary conditions 17.
| p | CPU time | error | error | ||
|---|---|---|---|---|---|
| 3 | 2.309401e+00 | 5.781202e-15 | 148.970724 | 4.832268e-08 | 6.092994e-08 |
| 5 | 2.553766e+00 | 3.953484e-14 | 150.616751 | 5.235757e-06 | 2.322385e-06 |
| 7 | 2.592439e+00 | 1.687038e-09 | 145.797130 | 2.802301e-04 | 1.451584e-04 |
TABLE 24. Performance of the Weinstein Deep Ritz method with mixed boundary conditions (17) for .
errors increasing to the level. Thus, we observe a gradual deterioration in accuracy as the profile becomes sharper, but the Weinstein formulation still remains accurate across all three nonlinear powers.
More precisely, Table 24 shows that both errors are of order for and order for . For , both errors increase to order . Thus, we obtain the same gradual loss of accuracy with increasing as in the Nehari-constrained formulation, but without the order error observed for the action-based constrained Deep Ritz method.
The runtime is also substantially lower than for the other Deep Ritz variants. The Weinstein runs require approximately 146–151 seconds, whereas the constrained Deep Ritz method requires approximately 247–264 seconds and the Nehari-constrained method requires approximately 301–315 seconds. Hence, among the selected configurations, the Weinstein formulation is the most accurate Deep Ritz variant for p = 3 and the fastest for all three powers. We observe that for p = 5, the Nehari-constrained formulation gives the slightly smaller error, while the Weinstein formulation gives the smaller . For p = 7, its errors are comparable to those of the Nehari-constrained method, with both methods producing errors of order , while the Weinstein method retains the shorter runtime. Hence, we find that the Weinstein formulation gives the best overall balance between profile accuracy and computational cost among the three selected Deep Ritz variants we consider in this paper.

FIGURE 9. Training objective (left) and ground state solution profile convergence (right) for the Weinstein Deep Ritz method (with parameters as seen in Table 23) for . The (black dashed) curve labeled Exact in the right panel is the explicit solution given by (14). The final learned profile corresponds to 5,000 Adam steps followed by 200 GN/LM steps.
Figure 9 illustrates the two-stage behavior of the method. In the left panel, we observe that the Adam warm-up reduces the Weinstein quotient, thereby improving the normalized profile shape and quotient value. The GN/LM stage then acts as a residual-refinement step and sharply reduces the residual-based objective. In the right panel of Figure 9, we compare the reconstructed profiles with the exact ground state given by (14). We observe that the Adam-trained approximation already captures the main shape and amplitude of the ground state, while the GN/LM stage further improves the agreement with the exact profile. This behavior is consistent with the structure of the method: the variational stage determines the normalized shape, while the final amplitude is obtained only after the quotient minimization. The final profile after 5,000 Adam steps and 200 GN/LM steps is visually indistinguishable from the exact solution at the plotting scale. Its remaining discrepancy agrees with the values in Table 24: the final and errors are and , respectively, and are hence, both of order . Although the computations are performed on the full interval [0, 30], the solution profiles are displayed on [0, 10] to emphasize the left side of the profile and the peak-amplitude region.
4.3.1. Comparison with the “secondary” computational device for Weinstein Deep Ritz. Table 25 reports the same Weinstein Deep Ritz baseline on the secondary GPU+CPU workstation. We observe that the main effect of the secondary device is a reduction in runtime from approximately 146–151 seconds to approximately 40–44 seconds. This corresponds to a speedup of about 3.3–3.7 across the three nonlinear powers. The acceleration is consistent across p = 3, p = 5, and p = 7, indicating that the secondary device improves the practical wall-clock cost without changing the qualitative behavior of the method.
The secondary-device errors remain of the same orders as the corresponding primary-device results. For , the error remains of order , while the error changes from order to order . For , both errors remain of order , and for , both remain of order . Thus, we find that the GPU+CPU implementation mainly improves runtime while preserving the same accuracy pattern. In particular, the higher-power case remains the most difficult, but the secondary-device result stays comparable to the original Weinstein run.
| p | GPU+CPU time | error | error | ||
|---|---|---|---|---|---|
| 3 | 2.309401e+00 | 1.934108e-14 | 40.420787 | 9.883258e-08 | 1.186556e-07 |
| 5 | 2.553766e+00 | 5.054238e-14 | 44.468209 | 5.204065e-06 | 2.321890e-06 |
| 7 | 2.592439e+00 | 1.258231e-09 | 44.377295 | 3.016073e-04 | 1.542014e-04 |
TABLE 25. Secondary-device GPU+CPU performance of the Weinstein Deep Ritz method with mixed boundary conditions (17) for .
The quotient values are also essentially unchanged between the two devices for all three powers. Similarly, the primary- and secondary-device residual-refinement objectives remain of the same orders for and . For , changes from order to order , while the corresponding profile errors remain very small. Thus, we observe no evidence of a device-dependent change in the selected solution branch.
Overall, we find that the Weinstein Deep Ritz method gives the best error–runtime combination among the Deep Ritz variants considered here for the selected runs. It is the fastest formulation and gives the smallest errors for , while remaining comparable to the Nehari-constrained formulation for and . The Nehari-constrained Deep Ritz method, however, remains competitive for the sharper profile and selects the same solution branch in the reported runs without prescribing the exact peak amplitude. Thus, we regard the Weinstein formulation as the most efficient and often the most accurate variant, among the selected runs, while Nehari provides a robust constrained alternative whose accuracy remains comparable for the higher-power case.
5. CONCLUSIONS AND DISCUSSION
We have developed and compared enhanced neural-network-based methods for computing one-dimensional ground-state profiles for several classical models in nonlinear dispersive equations. The profile equation , arising from the NLS, gKdV, and NLKG models, admits explicit sech-type solutions for all integer power , thus, providing exact benchmarks for systematic error analysis. Building on the comparison in [15], we investigated three directions of improvement over the standard Adam-trained PINN baseline: (i) higher-order optimization (GN/LM refinement), (ii) Fourier-feature PINNs, and (iii) constrained Deep Ritz formulations.
The main findings of this study are as follows.
Higher-order optimization improves PINN accuracy. Replacing or supplementing standard Adam training with Gauss–Newton/Levenberg–Marquardt refinement consistently reduces the pointwise and errors of standard PINNs. An Adam warm-up followed by GN/LM refinement (Adam–GN/LM) is generally more robust than pure GN/LM, which is sensitive to the damping parameter and initialization and may converge to an incorrect solution branch, such as a double-bump profile. GN/LM refinement generally gives the best results for the standard PINN and Deep Ritz formulations, whereas L–BFGS performs better for the FF–PINN formulation.
Fourier-feature PINNs provide modest additional gains. Embedding the spatial coordinate into a trigonometric feature space before passing it through the multilayer perceptron is designed to reduce the spectral bias of coordinate-based networks and, in some configurations, we observe improved convergence. However, the gains from Fourier features are smaller than those from higher-order optimization, and the method introduces additional hyperparameters including the scale of the frequency matrix and whether the raw spatial coordinate is included.
Deep Ritz variants outperform residual-based methods. Among all neural-network methods tested, the variational Deep Ritz formulations produce the strongest overall performance. By minimizing the action or related variational objectives instead of a pointwise residual, these methods exploit the variational structure of the ground-state equation and yield lower errors for comparable or shorter runtimes.
The Weinstein Deep Ritz method gives the best error–runtime balance overall. The Weinstein Deep Ritz formulation, based on minimizing the Weinstein quotient (22) over a normalized, hard-constrained trial class, achieves the smallest errors among the tested neural-network methods for p = 3, while also requiring the shortest runtimes, among the Deep Ritz variants (approximately 146–151 seconds on the primary device versus 247–264 seconds for the constrained Deep Ritz and 301–315 seconds for the Nehari-constrained variant). For p = 5 and p = 7, the Weinstein and Nehari-constrained formulations produce errors on the same order ( and , respectively). A key advantage of the Weinstein method is that it does not require prescribing the exact peak amplitude ; the normalized profile shape is determined by the quotient minimization, and the physical amplitude is recovered through the reconstruction formula (24). This makes the method promising to problems where no explicit solution is available.
The Nehari-constrained Deep Ritz method provides a robust alternative. The Nehari-constrained formulation, which projects the amplitude onto the Nehari manifold and supplements the action with a Pokhozhaev penalty, provides a stable branch-selection mechanism without prescribing the exact peak amplitude. Its accuracy remains competitive, particularly for the sharper p = 7 profile.
The dependence of accuracy on the nonlinear power is method-dependent. The numerical results do not show a uniform deterioration in accuracy as p increases from 3 to 7. For the Deep Ritz formulations, the higher-power cases generally produce larger errors. For the PINN formulations, the trend depends on the optimizer: the pure L-BFGS errors are smaller at p = 7 than at p = 3, the pure GN/LM errors decrease from p = 3 to p = 5 before increasing at p = 7, and the Adam-L-BFGS and Adam-GN/LM configurations exhibit different trends across the tested powers. The FF-PINN errors remain of comparable order across the three powers. Thus, the observed dependence on the nonlinear power varies with the selected formulation and optimizer.
GPU acceleration preserves accuracy while reducing runtime. Moving from the primary CPU-based device to the secondary GPU+CPU workstation consistently reduces wall-clock runtimes, with primary-to-secondary runtime ratios ranging from approximately 1.6 to 9.7 across the reported configurations, while the profile errors remain of comparable order for most of the reported configurations.
Neural-network methods do not yet match classical Petviashvili solvers. Although the enhanced neural-network methods substantially improve upon the Adam-trained PINN baseline, they do not yet achieve in 1D the accuracy or computational efficiency of the Petviashvili iteration reported in [15]. For the one-dimensional benchmark problem, the Petviashvili method achieves machine-precision accuracy, on the order of , in shorter runtimes. Further studies would be needed, for example, for higher dimensions and more complex nonlinearities.
The methods developed here provide a one-dimensional proof of concept, they are intended to establish a foundation for extending neural-network-based ground-state computation to settings where classical methods face greater challenges: higher-dimensional problems subject to the curse of dimensionality, equations with combined or non-standard nonlinearities where explicit solutions are unavailable, and problems involving fractional or higher-order differential operators. The Weinstein Deep Ritz method, which we introduced in this paper, does not rely on knowledge of the exact solution and is therefore prospectively well-suited for such extensions.
APPENDIX A. NEWTON DIRECTION AND THE STRONG WOLFE CONDITIONS
For reader’s convenience in this appendix we give a standard derivation of the quasi-Newton search direction (33) and the strong Wolfe conditions used in the L–BFGS refinement stage (though the material is by now classical, see, e.g., [33] for a full treatment).
Newton search direction. First, note that the Hessian is the matrix of second derivatives of the loss at the given current iterate , thus, it describes its local second-order behavior. The second-order Taylor expansion about gives the quadratic expansion
whose stationary point solves
If is positive definite, this stationary point is the unique minimizer of the quadratic model. When is non-singular, then , see [33, Sec. 2.2, Eqs. (2.14)–(2.15)]. In practice, however, the search direction is obtained by solving (69) without forming the inverse. Forming and storing the full Hessian is impractical for large networks, so L-BFGS instead uses a limited number of recent parameter and gradient differences
A first-order expansion of the gradient gives , so gradient changes carry information about the action of the Hessian. Then the corresponding inverse secant relation is with , see [27, Sec. 2], [33, Sec. 7.2, Algs. 7.4–7.5] for more details. This yields the search direction (33).
Strong Wolfe conditions. Once is fixed, a line search minimizes over . Writing and , and assuming is a descent direction ( ), the strong Wolfe conditions require
Condition (70) is for sufficient decrease, and the one in (71) is for the strong curvature, which rules out two things: short steps where the loss is still decreasing steeply, and long steps where the directional derivative becomes large and positive, see [32, Sec. 1, Eqs. (1.1)–(1.2)]. Setting and , the curvature condition implies . This keeps the BFGS inverse-Hessian approximation positive definite and preserves a descent direction in the next iteration, as shown in [33, Sec. 6.1, Eq. (6.8)]. Fixed steps or backtracking either depend more strongly on the learning rate or do not by themselves enforce , which is why the strong Wolfe search is used.
REFERENCES
[1] AGRAWAL, G. Nonlinear Fiber Optics, 3rd ed. Academic Press, San Diego, 2001.
[2] BAO, W., CHANG, Z., AND ZHAO, X. Computing ground states of Bose–Einstein condensation by normalized deep neural network. J. Comput. Phys. 520 (2025), 113486.
[3] BAYDIN, A. G., PEARLMUTTER, B. A., RADUL, A. A., AND SISKIND, J. M. Automatic differentiation in machine learning: A survey. J. Mach. Learn. Res. 18, 153 (2018), 1–43.
[4] BERESTYCKI, H., AND LIONS, P.-L. Nonlinear scalar field equations. I. existence of a ground state. Archive for Rational Mechanics and Analysis 82, 4 (1983), 313–345.
[5] BERRONE, S., CANUTO, C., PINTORE, M., AND SUKUMAR, N. Enforcing dirichlet boundary conditions in physics-informed neural networks and variational physics-informed neural networks. Heliyon 9, 8 (2023), e18820.
[6] BLANCO-REDONDO, A., DE STERKE, C. M., XU, C., WABNITZ, S., AND TURITSYN, S. K. The bright prospects of optical solitons after 50 years. Nature Photonics 17 (2023), 937–942.
[7] BONA, J. L., SOUGANIDIS, P. E., AND STRAUSS, W. A. Stability and instability of solitary waves of Korteweg-de Vries type. Proc. Roy. Soc. London Ser. A 411, 1841 (1987), 395–412.
[8] CAZENAVE, T. Semilinear Schrödinger Equations, vol. 10 of Courant Lecture Notes in Mathematics. American Mathematical Society, Providence, RI, 2003.
[9] CHANG, Z., WEN, Z., AND ZHAO, X. Deep neural network approaches for computing the defocusing action ground state of nonlinear Schrödinger equation. Ann. Appl. Math 41, 1 (2025), 42–76.
[10] E, W., AND YU, B. The Deep Ritz method: A deep learning-based numerical algorithm for solving variational problems. Comm. Math. Stat. 6, 1 (2018), 1–12.
[11] GOMES, A., AND PASTOR, A. Solitary wave solutions and global well-posedness for a coupled system of generalized Korteweg-de Vries equations. J. Evolut. Equ. 21 (2021), 2167–2193.
[12] GRILLAKIS, M., SHATAH, J., AND STRAUSS, W. Stability theory of solitary waves in the presence of symmetry. I. Journal of Functional Analysis 74, 1 (1987), 160–197.
[13] GRILLAKIS, M., SHATAH, J., AND STRAUSS, W. Stability theory of solitary waves in the presence of symmetry. II. Journal of Functional Analysis 94, 2 (1990), 308–348.
[14] HAIGHT, C., RODRIGUEZ, A. D., AND ROUDENKO, S. Ground states in dispersive equations with combined nonlinearities, 2026. Preprint.
[15] HAIGHT, C., ROUDENKO, S., AND WANG, Z. Soliton profiles in 1D: Classical numerical schemes vs. neural network-based solvers. Chaos, Solitons and Fractals 210 (2026), 118646.
[16] JNINI, A., VELLA, F., AND ZEINHOFER, M. Gauss-Newton natural gradient descent for physics-informed computational fluid dynamics, 2024. arXiv:2402.10680.
[17] KENIG, C. E., PONCE, G., AND VEGA, L. Well-posedness and scattering results for the generalized Korteweg-de Vries equation via the contraction principle. Comm. Pure Appl. Math. 46, 4 (1993), 527–620.
[18] KINGMA, D. P., AND BA, J. Adam: A method for stochastic optimization. In International Conference on Learning Representations (2015). arXiv:1412.6980.
[19] KIVSHAR, Y., AND AGRAWAL, G. Optical Solitons: From Fibers to Photonic Crystals. Academic Press, San Diego, 2003.
[20] KLEIN, C., AND ROUDENKO, S. Ground states to biharmonic nonlinear Schrödinger equation with competing dispersion, 2026. arXiv:2609.13783.
[21] KLEIN, C., AND SAUT, J.-C. Nonlinear dispersive equations—inverse scattering and PDE methods, vol. 209 of Applied Mathematical Sciences. Springer, Cham, 2021.
[22] KWONG, M. K. Uniqueness of positive solutions of in . Arch. Rational Mech. Anal. 105, 3 (1989), 243–266.
[23] LAGARIS, I. E., LIKAS, A., AND FOTIADIS, D. I. Artificial neural networks for solving ordinary and partial differential equations. IEEE Transactions on Neural Networks 9, 5 (1998), 987–1000.
[24] LEVENBERG, K. A method for the solution of certain non-linear problems in least squares. Quarterly of Applied Mathematics 2, 2 (1944), 164–168.
[25] LI, X., DENG, J., WU, J., ZHANG, S., LI, W., AND WANG, Y.-G. Physical informed neural networks with soft and hard boundary constraints for solving advection-diffusion equations using Fourier expansions. Computers & Mathematics with Applications 159 (2024), 60–75.
[26] LINARES, F., AND PONCE, G. Introduction to Nonlinear Dispersive Equations, 2nd ed. Universitext. Springer, New York, 2015.
[27] LIU, D. C., AND NOCEDAL, J. On the limited memory BFGS method for large scale optimization. Mathematical Programming 45, 1 (1989), 503–528.
[28] LIU, W., WANG, T., AND ZHAO, X. Convergence analysis of -normalized gradient flow for action ground state of nonlinear Schrödinger equation, 2026. arXiv:2602.20820.
[29] LIU, W., YUAN, Y., AND ZHAO, X. Computing the action ground state for the rotating nonlinear Schrödinger equation. SIAM Journal on Scientific Computing 45, 2 (2023), A397–A426.
[30] LOU, Q., MENG, X., AND KARNIADAKIS, G. E. Physics-informed neural networks for solving forward and inverse flow problems via the Boltzmann-BGK formulation. Journal of Computational Physics 447 (2021), 110676.
[31] MARQUARDT, D. W. An algorithm for least-squares estimation of nonlinear parameters. J. of SIAM 11, 2 (1963), 431–441.
[32] MOR'E, J. J., AND THUENTE, D. J. Line search algorithms with guaranteed sufficient decrease. ACM Trans. Math. Software 20, 3 (1994), 286–307.
[33] NOCEDAL, J., AND WRIGHT, S. J. Numerical Optimization, 2 ed. Springer, New York, 2006.
[34] PASZKE, A., GROSS, S., MASSA, F., LERER, A., BRADBURY, J., CHANAN, G., KILLEEN, T., LIN, Z., GIMELSHEIN, N., ANTIGA, L., DESMAISON, A., KÖPF, A., YANG, E., DEVITO, Z., RAISON, M., TEJANI, A., CHILAMKURTHY, S., STEINER, B., FANG, L., BAI, J., AND CHINTALA, S. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems (2019), vol. 32, pp. 8024–8035.
[35] RAHIMI, A., AND RECHT, B. Random features for large-scale kernel machines. In Advances in Neural Information Processing Systems (2007), vol. 20.
[36] RAISSI, M., PERDIKARIS, P., AND KARNIADAKIS, G. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 378 (2019), 686–707.
[37] RATHORE, P., LEI, W., FRANGELLA, Z., LU, L., AND UDELL, M. Challenges in training PINNs: A loss landscape perspective. In Proceedings of the 41st International Conference on Machine Learning (2024), vol. 235 of Proc. of Mach. Learn. Res., pp. 42159–42191.
[38] SAHIN, T., VON DANWITZ, M., AND POPP, A. Solving forward and inverse problems of contact mechanics using physics-informed neural networks. Advanced Modeling and Simulation in Engineering Sciences 11, 1 (2024), 11.
[39] SHAHAB, M. L., MUKHLASH, I., AND SUSANTO, H. Do physics-informed neural networks (PINNs) need to be deep? shallow PINNs using the Levenberg–Marquardt algorithm, 2026. arXiv:2602.08515.
[40] SOFFER, A. Soliton dynamics and scattering. In International Congress of Mathematicians. Vol. III. Eur. Math. Soc., Zürich, 2006, pp. 459–471.
[41] STRAUB, C., BRENDEL, P., MEDVEDEV, V., AND ROSSKOPF, A. Hard-constraining neumann boundary conditions in physics-informed neural networks via Fourier feature embeddings. In ICLR 2025 Workshop on Machine Learning Multiscale Processes (2025). arXiv:2504.01093.
[42] SUKUMAR, N., AND SRIVASTAVA, A. Exact imposition of boundary conditions with distance functions in physics-informed deep neural networks. Computer Methods in Applied Mechanics and Engineering 389 (2022), 114333.
[43] SULEM, C., AND SULEM, P.-L. The Nonlinear Schrödinger Equation: Self-Focusing and Wave Collapse, vol. 139 of Applied Mathematical Sciences. Springer-Verlag, 1999.
[44] TANCIK, M., SRINIVASAN, P. P., MILDENHALL, B., FRIDOVICH-KEIL, S., RAGHAVAN, N., SINGHAL, U., RAMAMOORTHI, R., BARRON, J. T., AND NG, R. Fourier features let networks learn high frequency functions in low dimensional domains. In Advances in Neural Information Processing Systems (2020), vol. 33.
[45] TAO, T. Nonlinear Dispersive Equations: Local and Global Analysis, vol. 106 of CBMS Regional Conference Series in Mathematics. American Mathematical Society, Providence, RI, 2006.
[46] TAO, T. Why are solitons stable? Bull. Amer. Math. Soc. (N.S.) 46, 1 (2009), 1–33.
[47] WANG, C. Computing the least action ground state of the nonlinear Schrödinger equation by a normalized gradient flow. J. Comput. Phys. 471 (2022), 111675.
[48] WANG, S., WANG, H., AND PERDIKARIS, P. On the eigenvector bias of Fourier feature networks: From regression to solving multi-scale pdes with physics-informed neural networks. Comput. Meth. Appl. Mech. Eng. 384 (2021), 113938.
[49] WANG, Y., BENNANI, M., MARTENS, J., RACANIÈRE, S., BLACKWELL, S., MATTHEWS, A., NIKOLOV, S., CAO-LABORA, G., PARK, D. S., ARJOVSKY, M., WORRALL, D., QIN, C., ALET, F., KOZLOVSKII, B., TOMASEV, N., DAVIES, A., KOHLI, P., BUCKMASTER, T., GEORGIEV, B., GÓMEZ-SERRANO, J., JIANG, R., AND LAI, C.-Y. Discovery of unstable singularities, 2025. arXiv:2509.14185.
[50] WEINSTEIN, M. I. Nonlinear schrödinger equations and sharp interpolation estimates. Comm. Math. Phys. 87, 4 (1983), 567–576.
[51] WEINSTEIN, M. I. Modulational stability of ground states of nonlinear Schrödinger equations. SIAM Journal on Mathematical Analysis 16, 3 (1985), 472–491.
[52] WEINSTEIN, M. I. Lyapunov stability of ground states of nonlinear dispersive evolution equations. Comm. Pure Appl. Math. 39, 1 (1986), 51–67.
[53] WOLFE, P. Convergence conditions for ascent methods. SIAM Review 11, 2 (1969), 226–235.
[54] WOLFE, P. Convergence conditions for ascent methods. II: Some corrections. SIAM Review 13, 2 (1971), 185–188.
[55] YAO, Y., LU, Y., AND LERMAN, G. Feature learning for the high dimensional stationary Schrödinger equation with Deep Ritz method, 2026. arXiv:2607.06369.
[56] ZAKHAROV, V. Collapse of Langmuir waves. Zh. Eksp. Teor. Fiz. 62 (1972), 1745–1751 [transl. in Sov. Phys. JETP 35, 908–914 (1972)].
[57] ZAKHAROV, V., AND RUBENCHIK, A. Instability of waveguides and solitons in nonlinear media. Zh. Eksp. Teor. Fiz. 65 (1973), 997–1011 [transl. in Sov. Phys. JETP 38, 1974, no. 3, 494–500].
DEPARTMENT OF MATHEMATICS & STATISTICS, FLORIDA INTERNATIONAL UNIVERSITY, MIAMI, FL 33199, USA
Email address: chaig004@fiu.edu
DEPARTMENT OF MATHEMATICS & STATISTICS, FLORIDA INTERNATIONAL UNIVERSITY, MIAMI, FL 33199, USA
Email address: arodr1128@fiu.edu
DEPARTMENT OF MATHEMATICS & STATISTICS, FLORIDA INTERNATIONAL UNIVERSITY, MIAMI, FL 33199, USA
Email address: sroudenko@fiu.edu