Preprint
Article

This version is not peer-reviewed.

Symmetry-Preserving Physics-Informed Neural Network Framework for Relativistic Charged-Particle Dynamics in 3+1 Dimensions

A peer-reviewed version of this preprint was published in:
Symmetry 2026, 18(8), 1303. https://doi.org/10.3390/sym18081303

Submitted:

22 June 2026

Posted:

23 June 2026

You are already at the latest version

Abstract
Standard pushers for the relativistic equations of motion of a charged particle in an electromagnetic field—Boris, Vay, Higuera–Cary—do not, in general, preserve the full symplectic structure of the underlying Hamiltonian system, while high-order non-symplectic schemes such as Runge–Kutta accumulate secular error over long times. We propose a symmetry-preserving physics-informed neural network framework (SP-PINN) for the 3+1-dimensional relativistic dynamics of a charged particle in a prescribed field, including a focused Gaussian laser pulse. The method is two-stage: an unsupervised physics-informed neural network learns a surrogate relativistic Hamiltonian from the covariant equations of motion using a Lorentz-invariant loss that enforces the mass-shell constraint H=mc2γ; the surrogate is then advanced with an explicit symplectic map built on Tao’s extended phase space, valid for the non-separable relativistic Hamiltonian. We benchmark against the Boris pusher and Runge–Kutta on three test problems. The magnetic-field test illustrates the contrast between bounded and secular error growth: Runge–Kutta drifts secularly, the Boris pusher conserves the invariants to machine precision as a volume-preserving gyro-integrator, and the symplectic map keeps the error bounded for all time; on a non-integrable magnetic trap, where no exact volume-preserving rotation exists, the symplectic map alone keeps the energy error bounded. The learned surrogate is the current accuracy bottleneck; for the demanding laser case a vector-potential light-cone reformulation reduces its error to (3.0±0.1)×10−4 (three seeds) and yields learned trajectories that remain phase-coherent over essentially the whole interaction. The framework targets laser–plasma acceleration, synchrotron-radiation modeling, and particle tracking.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

Relativistic charged-particle dynamics in intense electromagnetic fields constitutes one of the central challenges of modern plasma physics, laser–matter interaction physics, and high-energy accelerator science. The rapid development of petawatt-class laser facilities has made it experimentally feasible to accelerate electrons to GeV-scale energies over centimeter-scale distances via laser wakefield acceleration (LWFA), generating ultra-short, high-brightness particle beams unattainable with conventional radio-frequency accelerators [1,2]. In these extreme regimes—where the normalized laser vector potential satisfies a 0 = e A / m c 2 1 —the particle dynamics become intrinsically relativistic, and even small numerical errors in the equations of motion accumulate rapidly, leading to qualitatively incorrect physical predictions. Accurate long-term integration of the relativistic Lorentz-force equation is therefore of paramount importance for the predictive simulation of such systems.
The standard workhorse of particle-in-cell (PIC) codes for solving the relativistic equations of motion is the Boris pusher [3], supplemented by the later improvements of Vay [4] and Higuera and Cary [5]. The Boris algorithm is volume preserving and second-order accurate in time, but it is not symplectic in the strict sense: it does not exactly preserve the symplectic two-form ω = d P d q of the underlying Hamiltonian system [6,7]. As a consequence, long-time integrations with the Boris pusher can accumulate a non-physical secular drift of geometric phase-space invariants, even while the gyro-orbit radius itself is preserved with remarkable accuracy [8,9]. The Vay integrator correctly preserves the E × B drift velocity but likewise does not satisfy strict symplecticity, and higher-order Runge–Kutta (RK4) methods, while accurate over short intervals, fail to conserve the geometric structure of phase space for nonlinear Hamiltonian systems over long integration times [10].
To overcome these limitations, structure-preserving numerical methods—symplectic integrators—have been developed, which preserve the symplectic form exactly and hence, through backward error analysis, conserve the corresponding integrals of motion up to exponentially small corrections over arbitrarily long times [10,11]. For non-relativistic charged particles, explicit high-order symplectic integrators of the Yoshida and Forest–Ruth type are well established [11,12]. For relativistic dynamics the situation is more complex, since the relativistic Hamiltonian H = c ( P e A / c ) 2 + m 2 c 2 + e φ is non-separable in general electromagnetic fields, precluding a straightforward splitting. Explicit high-order symplectic integrators for charged particles in general fields were constructed by Tao through an extended phase-space formulation [13]; structure-preserving second-order methods for relativistic trajectories were derived by Higuera and Cary [5]; volume-preserving algorithms for charged-particle dynamics were developed by He et al. [14]; and a comprehensive comparison of relativistic particle pushers was performed by Ripperda et al. [15]. Nevertheless, a framework that simultaneously guarantees (i) a Lorentz-invariant Hamiltonian structure, (ii) explicit high-order symplecticity, and (iii) applicability to prescribed, time-dependent fields such as Gaussian laser pulses remains an open problem.
In parallel, the paradigm of physics-informed neural networks (PINNs), introduced by Raissi, Perdikaris, and Karniadakis [16] (see [17] for a comprehensive review), has provided a powerful approach to embedding physical laws directly in neural-network training through residual loss functions. In Hamiltonian mechanics, Hamiltonian Neural Networks [18] and symplectic networks (SympNets) [19] learn the system Hamiltonian and enforce energy conservation by construction; subsequent work has extended these ideas to generalized and constrained Hamiltonian systems [23,24,25]. In particular, unsupervised Hamiltonian neural networks learn the Hamiltonian surrogate H θ ( q , p ) directly from the governing equations of motion—requiring no trajectory data [20]—which can then be advanced with a structure-preserving integrator. To date, however, these approaches have been developed for classical low-dimensional systems and have not been combined with an explicit symplectic map for relativistic dynamics governed by Lorentz-covariant Hamiltonian structure in 3+1 dimensions, which is the gap addressed here.
The present work builds directly on the Lorentz-invariant Lagrangian–Hamiltonian framework developed by the authors. In [36] we derived the Lagrangian and Hamiltonian formalisms for relativistic mechanics in terms of Lorentz-invariant evolution parameters, establishing the covariant canonical structure. In [37] we introduced a coupled-parameter hyperbolic parametrization of the Lorentz coordinates in terms of rapidity θ and Lorentz factor γ , demonstrating the mutual invertibility γ ( θ ) and θ ( γ ) as analytic integrals of motion. More recently [38], integrals of motion for a relativistic particle in 1+1 dimensions were obtained in terms of generalized inverse energy–momentum functions, and the dynamics of a relativistic particle in the field of a Gaussian laser pulse were analyzed in [39]. Invariant descriptions of the classical relativistic particle motion in 3+1 dimensions were subsequently derived in [40], and the dynamics of relativistic particles in an ion-cyclotron trap driven by an external ultrashort laser pulse were studied in [41]. The SP-PINN framework proposed here integrates these results into a unified, symmetry-preserving numerical integrator for the 3+1-dimensional problem.
The main contributions of this work are as follows:
  • We formulate the SP-PINN integrator for a relativistic charged particle in a 3+1-dimensional prescribed electromagnetic field, including a Gaussian laser pulse, within the Lorentz-invariant Hamiltonian framework of [36,37].
  • An unsupervised PINN learns the relativistic Hamiltonian surrogate H θ from a loss incorporating the covariant equations of motion, the mass-shell constraint H = m c 2 γ , and boundary conditions from the analytic integrals of motion.
  • The learned Hamiltonian is advanced with an explicit symplectic map [11,13], preserving the Poincaré–Cartan invariant and the Lorentz-group orbit structure of phase space; promoting time to a canonical coordinate restores exact symplecticity for time-dependent fields, improving conservation of the light-front invariant by about three orders of magnitude (Appendix A.1).
  • Performance is benchmarked against RK4 and the Boris pusher in terms of geometric-invariant conservation, symplecticity diagnostics, and trajectory accuracy, with all simulation code released openly [44].
We delimit the novelty explicitly. The Stage-2 geometric integrator is Tao’s explicit extended-phase-space symplectic map [13], used here unchanged, and the two-stage idea of learning a Hamiltonian surrogate and then integrating it symplectically follows the structure-preserving neural-integrator line [18,19,20]. Most directly, the unsupervised-PINN-Hamiltonian-plus-fourth-order-Yoshida combination has very recently been proposed independently by Liang et al. (SPINI [21]) for non-relativistic, separable systems (a nonlinear pendulum), and symplectic neural networks have been applied to charged-particle dynamics in electromagnetic fields by Drimalas et al. [22], who learn the symplectic map directly and report sub-gyroperiod accuracy against the Boris pusher. Relative to these, the present work is specifically relativistic and covariant: the learned object is a Lorentz-covariant Hamiltonian for the non-separable relativistic problem—where the standard separable Yoshida splitting does not apply and Tao’s extended phase space is required—demonstrated in 3+1 dimensions including a focused laser pulse.
The new elements of the present work are: (i) the formulation of the surrogate-learning loss for a relativistic, Lorentz-covariant Hamiltonian with an explicit mass-shell constraint H = m c 2 γ , which ties the learned object to the coadjoint-orbit (mass-hyperboloid) geometry of the Lorentz group; and (ii) the demonstration of the symplectic pipeline on 3+1-dimensional charged-particle dynamics in prescribed fields (including a focused Gaussian laser pulse), both with the analytic Hamiltonian—which isolates the geometric integrator—and, for the laser, with a learned vector-potential surrogate driven end-to-end through the complete two-stage map. We do not claim a new symplectic integrator; we claim a symmetry-aware way of supplying one with a relativistic Hamiltonian, and an assessment of where this currently helps and where it does not. In particular, every comparison figure uses the analytic Hamiltonian in Stage 2; the learned Stage-1 surrogate is assessed separately (Section 6), where a vector-potential light-cone formulation reproduces the demanding time-dependent 3+1D laser trajectory phase-coherently over essentially the whole interaction, leaving only the final closing of the surrogate-accuracy gap ( ε θ 10 4 ) to future work. We also flag at the outset that, in the coupled limit Ω Δ t 1 used to drive the binding floor to zero, the realized order of the Stage-2 map on the true trajectory is second, not fourth: although the map is built from a fourth-order Yoshida composition—and at fixed binding constant Ω integrates the extended Hamiltonian to fourth order down to an Ω -dependent error floor—the residual binding error of the extended phase space then scales linearly with Δ t and caps the realized convergence order at two, so the benefit of the method is the absence of secular error growth, not a higher formal order (Section 4; Appendix A.2).
The remainder of the paper is organized as follows. Section 2 presents the covariant Lagrangian–Hamiltonian framework and the field configuration. Section 3 discusses the symplectic structure and the Poincaré–Cartan invariant. Section 4 describes the SP-PINN architecture, loss function, and integration scheme. Section 5 presents numerical results, Section 6 discusses their implications, and Section 7 concludes.

2. Relativistic Hamiltonian Formalism in 3+1 Dimensions

2.1. Covariant Lagrangian and Hamiltonian of a Charged Particle

The classical relativistic mechanics of a charged particle in an external electromagnetic field is naturally formulated within the variational Lagrangian–Hamiltonian framework, which makes the Lorentz symmetry of the equations of motion explicit [34,35]. The action must be a Lorentz scalar, so that the equations derived from δ S = 0 are covariant under the Poincaré group; this requirement, up to gauge freedom, determines the form of the Lagrangian. In an inertial frame parametrized by coordinate time t, the Lagrangian of a particle of mass m and charge e in a field with four-potential A μ = ( φ / c , A ) reads [33,35]
L ( r , r ˙ , t ) = m c 2 1 r ˙ 2 c 2 + e c A · r ˙ e φ ,
where γ = ( 1 r ˙ 2 / c 2 ) 1 / 2 . The canonical momentum conjugate to r is
P = L r ˙ = γ m r ˙ + e c A = p + e c A ,
where p = γ m r ˙ is the kinetic momentum. The distinction between canonical and kinetic momenta is fundamental for the Hamiltonian formulation and for the identification of conserved quantities under gauge transformations. The Legendre transformation yields
H ( r , P , t ) = P · r ˙ L = c P e c A 2 + m 2 c 2 + e φ ,
the exact relativistic Hamiltonian, from which Hamilton’s canonical equations follow:
r ˙ = H P = c ( P e c A ) ( P e c A ) 2 + m 2 c 2 , P ˙ = H r .
Upon substitution these reproduce the relativistic Lorentz-force equation d p / d t = e E + 1 c r ˙ × B  [33]. Along any physical trajectory H = γ m c 2 + e φ ; in the radiation gauge ( φ = 0 ) this reduces to H = γ m c 2 . Following [36], the proper time τ may be employed as the evolution parameter, rendering the canonical equations manifestly covariant first-order ordinary differential equations on the extended phase space ( r , P , t , H ) .

2.2. Lorentz Symmetry and Integrals of Motion

The Lorentz-invariant structure of the system admits exact first integrals that are direct manifestations of Poincaré symmetry [36,37]. The mass-shell constraint
p μ p μ = E c 2 | p | 2 = m 2 c 2 ,
with E = γ m c 2 and p μ = ( E / c , p ) , expresses the conservation of the Lorentz norm of the four-momentum and is preserved exactly along every physical trajectory. In terms of the Lorentz factor it reads γ 2 | p | 2 / ( m c ) 2 = 1 and furnishes the fundamental constraint enforced by the SP-PINN loss. In [37], a coupled-parameter hyperbolic parametrization was introduced in which the rapidity θ —the additive parameter of Lorentz boosts in the Lie algebra of SO ( 1 , 3 ) —plays the central role:
γ = cosh θ , p m c = sinh θ ,
so that the phase-space point ( γ , p / m c ) lies on the unit hyperbola γ 2 ( p / m c ) 2 = 1 (the p = 0 restriction of the mass-shell), a coadjoint orbit of the Lorentz group [37,38]. The additivity of θ under boosts makes it the natural coordinate on the mass hyperboloid. For a field invariant under transverse translations—such as a plane wave or, approximately, a broad laser beam propagating along z—the transverse canonical momenta P x and P y are exact integrals of motion by Noether’s theorem, and together with θ form a complete set of first integrals used below to define the PINN boundary conditions.

2.3. Electromagnetic Field Configuration: Gaussian Laser Pulse

As a physically motivated and numerically demanding test case we consider a focused, linearly polarized Gaussian laser pulse propagating along z, consistent with the configuration analyzed in [39,43]. In the paraxial approximation, the vector potential A = A x x ^ takes the form
A x = A 0 w 0 w ( z ) exp x 2 + y 2 w ( z ) 2 ( z c t ) 2 c 2 τ L 2 cos k 0 ( z c t ) + ψ ( x , y , z ) ,
with A 0 = m c 2 a 0 / e , beam waist w 0 , pulse duration τ L , carrier wavenumber k 0 = ω 0 / c , and
w ( z ) = w 0 1 + ( z / z R ) 2 , z R = k 0 w 0 2 2 , ψ = k 0 ( x 2 + y 2 ) 2 R ( z ) arctan z z R ,
where z R is the Rayleigh length. The fields follow from E = ( 1 / c ) t A and B = × A . In the plane-wave limit ( w 0 ) the field is invariant under transverse translations, implying exact conservation of P x and P y ; for a finite beam this symmetry is weakly broken by diffraction, while a discrete Z 2 symmetry under x x is retained. In the regime a 0 1 the dynamics become strongly relativistic—the transverse quiver Lorentz factor is of order a 0 , while an initially stationary electron acquires a ponderomotive energy gain γ 1 a 0 2 / 4 (cycle-averaged), with instantaneous peaks γ 12 for a 0 = 5 (Figure 3)—making long-time structure preservation particularly important. The parameters used in Section 5 are summarized in Table 1.

3. Symplectic Structure and the Poincaré–Cartan Invariant

3.1. Symplectic Form in Relativistic Phase Space

The geometric foundation of Hamiltonian mechanics is the symplectic structure of phase space [30,31,32]. For canonical coordinates ( q , P ) R 2 n the canonical symplectic two-form ω = i d P i d q i is closed and non-degenerate, and Hamilton’s equations are equivalent to ι X H ω = d H . The flow generated by any Hamiltonian vector field is a symplectomorphism: it preserves ω exactly. The Poincaré–Cartan integral invariant is built from the canonical one-form Θ = P μ d q μ ,
I 1 = C ( t ) Θ = C ( t ) P · d q H d t ,
and is conserved exactly along the flow for any closed co-moving curve C ( t )  [30]. At fixed time it reduces to the first Poincaré invariant I 1 = C P · d q = const , which provides the central computable diagnostic of symplecticity. Liouville’s theorem—preservation of the phase-space volume ω n / n ! —is a corollary of symplecticity, but is strictly weaker: a map can preserve volume without preserving ω  [7,9].

3.2. Violation of Symplecticity in Conventional Solvers

Standard integrators used in plasma physics do not, in general, preserve the symplectic form. The Boris pusher is volume preserving but not symplectic [7]; Qin et al. [7] showed that it conserves phase-space volume while its energy error is bounded for integrable systems but can grow secularly for non-integrable ones. RK4 is neither symplectic nor volume preserving: its per-step deviation from a symplectomorphism is O ( Δ t 5 ) , and because it admits no modified Hamiltonian the geometric invariants drift secularly (linearly in the number of steps) rather than remaining bounded [10]. The first Poincaré invariant is monitored numerically by evolving an ensemble of M nearby phase-space points forming a closed loop C and evaluating
I 1 ( k ) = j = 1 M P j ( k ) + P j + 1 ( k ) 2 · q j + 1 ( k ) q j ( k ) , C M + 1 C 1 ,
at each step k [28,29]. For a truly symplectic integrator I 1 ( k ) = I 1 ( 0 ) up to the discretization error of the loop quadrature. The relative deviation δ I 1 ( t ) = | I 1 ( t ) I 1 ( 0 ) | / | I 1 ( 0 ) | provides a rigorous symplecticity diagnostic; for the integrable benchmarks considered below, the bounded versus secular growth of the exact scalar invariants (the Lorentz factor and the Larmor radius) is a robust signature of the same structure-preserving-versus-non-structure-preserving distinction—necessary though, since a volume-preserving non-symplectic map such as the Boris pusher also keeps them bounded, not by itself sufficient to certify symplecticity—and is the quantity we actually report in Section 5, so the reported evidence does not depend on the loop-discretization size M.

4. SP-PINN: Proposed Method

4.1. Architecture Overview

The SP-PINN integrator is a two-stage hybrid algorithm that decouples system identification from geometric integration [20]. In Stage 1 an unsupervised PINN H θ ( r , P ; t ) is trained on collocation points in the extended phase space, with a loss combining the residual of Hamilton’s equations, the relativistic mass-shell constraint, and boundary conditions from the analytic integrals of motion [16,36,37]. In Stage 2 the trained surrogate is advanced with an explicit symplectic map. Because the symplectic map is a composition of exact canonical sub-flows, the generated discrete map is exactly symplectic with respect to H θ , independently of the training error [11,13]; it is the fidelity of H θ to the true Hamiltonian—not the symplecticity of the map—that is governed by ε θ , which can be reduced by improving the surrogate parametrization and collocation density. The workflow is illustrated in Figure 1; the dashed boundary separates the offline training phase from the online integration phase, the latter requiring only forward evaluations of H θ and its gradients via automatic differentiation.

4.2. Stage 1—Unsupervised PINN for Hamiltonian Learning

The surrogate H θ : R 7 R is a fully connected feedforward network with tanh activations,
H θ ( r , P , t ) = W ( L + 1 ) σ σ W ( 1 ) [ r ; P ; t ] + b ( 1 ) + b ( L + 1 ) ,
with σ = tanh . The smoothness of tanh guarantees that all derivatives entering the loss are well defined and computable by automatic differentiation [16]. Weights are initialized with the Xavier scheme. Concretely, the static (free-particle, magnetic-field, and non-integrable) surrogates use L = 5 hidden layers of width 128, whereas the time-dependent vector-potential laser surrogate of Section 6 uses L = 6 layers of width 256 ( 3.4 × 10 5 trainable parameters); these and the remaining hyperparameters are specified in the released code [44]. The total objective is
L total = L eqs + λ 1 L constraint + λ 2 L bc ,
with the residual of Hamilton’s equations
L eqs = 1 N c k r ˙ k H θ P | k 2 + P ˙ k + H θ r | k 2 ,
the relativistic mass-shell constraint
L constraint = 1 N c k H θ ( r k , P k , t k ) m c 2 γ k 2 , γ k = 1 + | p k | 2 / ( m c ) 2 ,
and boundary conditions L bc enforcing the analytic integrals of motion (initial energy, rapidity, and—for the laser case—the conserved transverse momenta) at the initial collocation points [37,38]. The mass-shell term is the central symmetry-preserving ingredient: enforcing it throughout training biases H θ toward the hyperbolic mass-hyperboloid geometry of relativistic momentum space, the coadjoint orbit of the Lorentz group. (Here p k = P k e c A ( r k , t k ) is the kinetic momentum, formed from the canonical network input and the known field. This φ = 0 form applies to the magnetic-field and laser cases trained here; for a static scalar potential the surrogate target carries the additional e φ term, H θ = γ m c 2 + e φ , and the constraint is imposed on the kinetic mass-shell.) Collocation points are drawn quasi-randomly (Sobol sequence) over the physically relevant domain; optimization proceeds with Adam followed by L-BFGS, with λ 1 = 10 , λ 2 = 1 following the adaptive-weighting practice of [24,26,27]. We quantify a trained surrogate by ε θ , the root-mean-square error of H θ (or, for the vector-potential variant of Section 4.4, of A θ ) together with its gradients, evaluated over a held-out test set.

4.3. Stage 2—Explicit Symplectic Integration

Once H θ has converged it is treated as a fixed, differentiable Hamiltonian and advanced with an explicit symplectic integrator. Because the relativistic Hamiltonian (3) is non-separable, we employ the extended phase-space construction of Tao [13]: two copies ( r , P ) and ( x , y ) are introduced with the extended Hamiltonian
H ¯ = H θ ( r , y ) + H θ ( x , P ) + Ω 2 r x 2 + P y 2 ,
whose three parts each admit an explicit symplectic flow; a binding constant Ω keeps the two copies synchronized (its value must be chosen with care, as the bounded-error floor depends non-monotonically on Ω and develops sharp resonances; see Appendix A.2). A symmetric Strang composition of these flows yields a second-order symplectic map Φ Δ t ( 2 ) , which is promoted to fourth order by the Yoshida triple-jump
Φ Δ t ( 4 ) = Φ w 1 Δ t ( 2 ) Φ w 0 Δ t ( 2 ) Φ w 1 Δ t ( 2 ) , w 1 = 1 2 2 1 / 3 , w 0 = 1 2 w 1 ,
with w 1 1.3512 , w 0 1.7024  [11,12]. All gradients of H θ are obtained by automatic differentiation. For an autonomous Hamiltonian (the free-particle and magnetic-field cases) the resulting map is exactly symplectic by construction, independently of the accuracy of H θ : even with a small approximation error the discrete flow is symplectic with respect to H θ . While the Yoshida triple-jump is a fourth-order composition for the extended (binding) Hamiltonian, the order realized for the true trajectory is limited by the binding error of the extended phase space; we measure it directly in Appendix A.2 and find a realized second-order convergence in the coupled limit Ω Δ t 1 . This is consistent with the central message of the paper: the value of the symplectic map is not a higher formal order—a high-order non-symplectic method is more accurate at short times—but the absence of secular error growth. For an explicitly time-dependent Hamiltonian (the Gaussian-pulse case) the field is held fixed at the step time within each composition, so the present implementation is non-autonomously frozen; the exact symplecticity and fourth-order guarantees then apply rigorously only to the static problems, while the laser results in Section 5.2 should be read as those of a high-order structure-aware scheme. Promoting time to a canonical coordinate—extending the phase space by the pair ( t , H ) as in Section 2—restores exact symplecticity for the time-dependent case; we implement this autonomized variant and validate it on a plane wave in Appendix A.1 (Figure A1), where it conserves the light-front invariant γ p z roughly three orders of magnitude better than the frozen map—a three-order improvement quantified there.

4.4. Surrogate Variant for Time-Dependent Fields: The Vector-Potential Light-Cone Form

For the static (free-particle, magnetic-field, and non-integrable) problems the surrogate H θ is learned directly as above. The time-dependent 3+1D laser is substantially harder: the carrier cos [ k 0 ( z c t ) ] produces tens of oscillations across the domain—the spectral bias of plain tanh networks—and the quiver is resonantly forced, so a small force error accumulates into a carrier-phase slip (analyzed in Section 6). For this case we therefore adopt a lower-dimensional, structurally exact reformulation, which is the configuration behind the learned-pipeline result of Figure 7. Rather than the seven-dimensional Hamiltonian, the network represents the four-dimensional vector potential in light-cone (light-front) form,
A θ ( x , y , z , t ) = A pw ( η ) + NN ( x , y , z , t ) , η = z c t ,
where the analytic plane-wave potential A pw ( η ) supplies the carrier exactly and the network learns only the slow focusing correction; the Hamiltonian is then reconstructed analytically as H θ = c ( P e c A θ ) 2 + m 2 c 2 , so the mass-shell constraint holds by construction and the Lorentz force is an exact function of A θ . Training (full hyperparameters in the released code [44]) uses collocation points sampled in a tube around a reference trajectory of the prescribed field—used only to concentrate the sampling domain, not as supervised targets, so the loss remains the unsupervised equation-residual form of Stage 1 and no trajectory data is fitted—together with Fourier features of the carrier phase η and a stabilized optimizer—learning-rate warmup, gradient clipping, an upweighted gradient-matching term, residual-based adaptive resampling of the collocation points, and an L-BFGS polish from the best checkpoint. The resulting accuracy and its diagnosis are reported in Section 6.

4.5. Lorentz Symmetry Preservation

Proposition 1 
(Mass-shell preservation). Let H θ satisfy H θ = m c 2 γ to within ε θ , and let the Hamiltonian beautonomous(the free-particle, magnetic-field, and non-integrable cases; the time-dependent laser case is treated by the frozen-in-time map of Section 4 and is excluded here). Then, under the symplectic map Φ Δ t , the invariant p μ p μ = ( H θ / c ) 2 | p | 2 is preserved with aboundederror O ( ε θ + δ Ω + Δ t r ) —where δ Ω = O ( Ω 1 ) (away from the resonances of Appendix A.2) is the bounded binding-floor of the extended-phase-space map at fixed Ω, and the realized order r = 2 is attained in the coupled limit Ω Δ t 1 that sends δ Ω 0 (Appendix A.2)—with no secular growth up to integration times exponentially long in 1 / Δ t (the standard backward-error horizon for symplectic maps—a finite, though exponentially large, time, rather than all t 0 ).
Proof 
(Proof sketch). The map preserves ω exactly, hence is a canonical transformation. Backward error analysis for symplectic integrators guarantees that the numerical trajectory lies on the level set of a modified Hamiltonian H ˜ = H θ + O ( Δ t r ) , which is conserved with a bounded, non-accumulating error over times exponentially long in 1 / Δ t  [10]; the realized order r is examined in Appendix A.2. Hence H θ , and the constraint p μ p μ derived from it, do not drift secularly. The mass-shell constraint is enforced at training to O ( ε θ ) , so p μ p μ = m 2 c 2 + O ( ε θ ) initially; combining the two estimates gives the stated bound [10,13]. This bounded behavior—in contrast to the linear-in-N drift of non-symplectic schemes—is exactly what Figure 2 demonstrates.    □
Proposition 2 
(Rapidity integral, longitudinal sector). In the purely longitudinal (1+1-dimensional) case p = 0 , where the rapidity θ = arcsinh ( p / m c ) obeys γ = cosh θ , the SP-PINN map satisfies | θ n θ exact ( t n ) | = O ( ε θ + Δ t 2 ) with bounded, non-secular error.
We emphasize that the relation γ = cosh θ with θ = arcsinh ( p / m c ) holds only in the longitudinal sector; in the general 3+1-dimensional case with transverse momentum the genuinely Lorentz-invariant statement is the mass-shell constraint p μ p μ = m 2 c 2 of Proposition 1, of which γ = cosh θ is the p = 0 restriction. Proposition 2 then follows from Proposition 1 in that sector. Together the two propositions establish that the SP-PINN integrator preserves the Lorentz-group orbit structure—the mass hyperboloid p μ p μ = m 2 c 2 —to within errors controlled by the training tolerance ε θ and the time step, in contrast to the unbounded constraint drift of non-symplectic schemes.

5. Numerical Experiments

Throughout this section we work in code units ( c = m = k 0 = ω 0 = 1 ; cf. Table 1), whereas the analytical development of Section 2, Section 3 and Section 4 is written in Gaussian (CGS) units. All experiments use Python with NumPy, SciPy, and PyTorch in double precision; the complete code is openly available [44] (see Data Availability). The Boris pusher follows the standard relativistic algorithm [3,6] and RK4 is the classical explicit scheme. Throughout this section the curve labeled “SP-PINN” is the Stage-2 explicit symplectic map driven by the analytic relativistic Hamiltonian—that is, the ε θ 0 idealization of the learned pipeline—so that the figures isolate the geometric properties of the integrator from neural-network approximation error. The realistic training-error floor ε θ of the actual Stage-1 surrogate is reported in Section 5.4; no figure here uses the learned surrogate, because at the presently attainable ε θ 4 × 10 2 (static magnetic case) it is not competitive (Section 5.4). A DOP853 (eighth-order) solver with tight tolerances provides the reference trajectory where an analytic solution is unavailable (for the laser ensemble spectrum, a fine-step integration is used as reference, as noted in Figure 4). For the laser case the fields E = 1 c t A and B = × A are evaluated by central finite differences of the analytic vector potential, common to all schemes; the resulting field error ( 10 8 at the step h = 10 4 used) is well below the integrator differences reported in Figure 3Figure 4.

5.1. Test Case 1: Uniform Magnetic Field

The first case is a relativistic particle in a uniform field B = B 0 z ^ , the prototype integrable relativistic Hamiltonian system. The magnetic force does no work, so the Lorentz factor and the Larmor radius r L = p / ( e B 0 ) are exact constants of motion; the cyclotron frequency is ω c = e B 0 / ( γ m c ) . We take γ 0 = 5 (so p = 24 m c ), p = 0 , and integrate for 4 × 10 3 cyclotron periods at Δ t = T c / 100 (the SP-PINN map uses a binding constant Ω = 15 ). At this fixed Ω the SP-PINN error saturates at a bounded floor rather than converging with Δ t ; the realized second-order convergence of the map (Proposition 1) is a distinct property of the coupled limit Ω Δ t 1 , examined separately in Appendix A.2. Figure 2 reports the relative error of the Larmor radius and of the Lorentz factor as functions of the number of gyrations.
Figure 2 is the textbook contrast between bounded and secular error growth. RK4, being neither symplectic nor volume preserving, accumulates a secular error in both the Larmor radius and the Lorentz factor that grows linearly with the number of gyrations n (the per-step amplitude defect of a non-symplectic Runge–Kutta map applied to rotational motion accumulates coherently, producing the observed n drift). The Boris pusher conserves both invariants to machine precision: for pure gyration it is an exactly volume-preserving rotation, which is its celebrated property and makes it optimal for this special integrable case [7,8]. The symplectic SP-PINN map keeps the error bounded ( 3 × 10 5 ) for all time at the level set by the binding tolerance of the extended-phase-space construction; it does not match the machine-precision conservation of Boris on this linear problem, but unlike RK4 it exhibits no secular drift and therefore overtakes RK4 within a few hundred gyrations, ending a few times below it at n = 4 × 10 3 . We emphasize what this test does and does not show: on a benign, linear, integrable benchmark a high-order method such as RK4 is highly accurate at short times, and the Boris pusher is unbeatable for the magnetic sub-problem; the distinctive value of the symplectic SP-PINN scheme is the absence of secular drift together with its applicability to the general non-separable relativistic Hamiltonian, for which exact volume-preserving rotations are not available [9,13,30]. We return to this point in Section 6.

5.2. Test Case 2: Gaussian Laser Pulse (3+1D)

The most demanding case is the 3+1-dimensional motion of an electron in the focused Gaussian pulse of Table 1 ( a 0 = 5 ; the Stage-2 map uses a binding constant Ω = 40 , chosen in a low-error window away from the Ω = 20 , 50 resonances of Appendix A.2). The pulse, centered at z = c t , overtakes an electron initially at rest at the origin; the interaction window is | t | τ L . As discussed in Section 4, for this time-dependent field the present Stage-2 map is frozen-in-time within each step, so it is here a high-order structure-aware scheme rather than a strictly symplectic one. Consequently one should not expect SP-PINN to achieve the smallest energy error in this time-dependent case: panel (c) of Figure 3 accordingly shows it lying between RK4 and Boris rather than below both, which is the expected behavior of a frozen (non-strictly-symplectic) map and not a deficiency of the integrator. Figure 3 compares the longitudinal coordinate z ( t ) , the Lorentz factor γ ( t ) , and the post-interaction energy error against the DOP853 reference.
All three integrators reproduce the qualitative dynamics—transverse quiver at the carrier frequency, longitudinal ponderomotive acceleration, and partial post-pulse deceleration—and track the reference closely over the moderate interaction time, with RK4 attaining the smallest absolute energy error and SP-PINN remaining within a few × 10 5 of the reference. Figure 4 examines an ensemble of electrons and the preservation of the transverse translational symmetry. Panel (a) shows the final kinetic-energy spectrum d N / d γ for 256 electrons with initial transverse positions uniformly distributed in [ w 0 , w 0 ] 2 ; all schemes reproduce the reference spectrum closely (mean-energy error below 10 4 ). Panel (b) tracks the conserved transverse canonical momentum P x = p x + ( e / c ) A x —the Noether invariant of transverse translations, exactly conserved in the plane-wave limit—for an on-axis electron, plotting its deviation from the reference. Here an apparent separation appears: the Boris pusher exhibits the largest deviation of this Lorentz-related quantity (of order 10 2 ), whereas the structure-aware schemes—high-order RK4 and the SP-PINN map—track it several orders of magnitude better. We note a caveat: for the finite focused beam used here ( w 0 = 5 λ 0 ), P x is conserved only approximately—diffraction weakly breaks the transverse translational symmetry—so panel (b) measures the deviation from the reference trajectory, which conflates a small physical symmetry breaking with numerical error; a strict plane-wave control ( w 0 ), in which P x is exactly conserved, isolates the purely numerical violation, and we provide exactly this control in Appendix A.1 (Figure A1b), where the Boris pusher again shows by far the largest, purely numerical, deviation—confirming that the ordering seen here is a numerical effect rather than the residual physical symmetry breaking of the finite beam.

5.3. Test Case 3: A Non-Integrable System

The uniform-field test of Section 5.1 is integrable, and there the Boris pusher is unbeatable; the regime in which symplecticity is genuinely decisive is non-integrable dynamics, where no exact volume-preserving rotation exists. To exhibit this we consider an autonomous but non-integrable system: a charged particle in a uniform magnetic field B = B 0 z ^ plus a static anharmonic electrostatic well
φ ( r ) = 1 2 k ( x 2 + y 2 ) + ϵ x 2 y 2 .
The coupling ϵ x 2 y 2 (a Hénon–Heiles-type term) breaks integrability, so the motion is chaotic at moderate energy (Figure 5a), while the total energy H = γ m c 2 + e φ is an exact constant of motion. We take B 0 = 1 , k = 1 , ϵ = 0.3 , and integrate for 3 × 10 5 steps at Δ t = 0.05 (the SP-PINN map uses Ω = 10 ). Figure 5b shows the relative energy error: RK4 drifts secularly, the Boris pusher—volume-preserving but not symplectic, and tuned for pure magnetic rotation rather than the nonlinear, inhomogeneous force of the ϵ x 2 y 2 coupling, so that (consistent with [7]) its energy error, bounded for the integrable gyration of Section 5.1, grows secularly here—exhibits the largest error, and the symplectic SP-PINN map keeps the energy error bounded for all time. This is the qualitative advantage promised by backward error analysis (Proposition 1), now realized on a system where, unlike the pure gyration of Section 5.1, no scheme can fall back on an exact volume-preserving rotation.

5.4. Computational Cost

Figure 6 reports the total wall-clock time per integration step as a function of the number of particles integrated in parallel (batched NumPy), measured on the magnetic-field problem. Per single particle (mean ± standard deviation over five trials), Boris is cheapest ( 0.108 ± 0.003  ms), RK4 intermediate ( 0.217 ± 0.004  ms), and the SP-PINN symplectic map most expensive ( 0.726 ± 0.004  ms), because each step evaluates the Hamiltonian gradients several times within the Yoshida composition. The total per-step time grows sublinearly with the batch size, so the per-particle cost decreases under batching—to 2.2 × 10 3  ms for SP-PINN at N p = 10 3 —but the SP-PINN/Boris cost ratio stays roughly constant ( 3 7 × ) across all batch sizes; the symplectic map is, and remains, several times more expensive per particle than Boris. These figures are single-CPU; on a GPU the ratio is expected to narrow appreciably, because the dominant per-step cost—the several automatic-differentiation evaluations of H θ inside the Yoshida composition—maps directly onto the highly parallel batched tensor kernels for which PyTorch is optimized, whereas the Boris rotation is already arithmetically minimal and benefits less from massive parallelism. For the PIC-style workloads that motivate this work—many particles pushed simultaneously—a GPU implementation should therefore reduce the relative overhead of the symplectic map below the single-CPU ratio reported here; we leave a dedicated GPU benchmark to future work. The one-time Stage-1 training of the PINN surrogate is a fixed offline cost. Training the compact network of Section 4 on the magnetic-field Hamiltonian over the domain r , P [ 6 , 6 ] 3 for about 3.5  min per seed on a single CPU (an Intel Core i7-4770; 2500 Adam epochs followed by 80 L-BFGS iterations) reaches, over five random seeds, a root-mean-square test error of only ε θ = ( 4.1 ± 0.5 ) × 10 2 in H θ and its gradients, with a larger worst-case error ( 0.3 ) near the domain boundary. This surrogate accuracy—not the geometric integrator—is the present bottleneck of the fully learned pipeline: at ε θ 4 × 10 2 the learned-Hamiltonian integration does not yet match the conventional pushers, and the headline curves of Figure 2, Figure 3 and Figure 4 accordingly use the analytic Hamiltonian, i.e. the ε θ 0 limit. Driving ε θ down for the full 3+1D surrogate—primarily by reformulating what the network represents (the vector-potential light-cone form of Section 6), together with adaptive collocation and improved optimization rather than raw network size—is the principal direction of ongoing work. Representative timings are collected in Table 2.

6. Discussion

6.1. Symplecticity Versus Volume Preservation

The central lesson of Section 5 is the distinction between bounded and secular error growth, and the complementary roles of the three integrators. A common simplification in the particle-pushing literature equates energy conservation, volume preservation, and symplecticity [7]; the magnetic-field test makes the distinctions concrete. The Boris pusher is exactly volume preserving for pure gyration and conserves the Larmor radius and Lorentz factor to machine precision, making it the method of choice for the magnetic sub-problem; it is, however, not symplectic in the strict sense, and its favorable behavior does not automatically extend to general non-separable fields [7,9]. RK4 is highly accurate at short times but drifts secularly, because its discrete map is not structure preserving. The symplectic SP-PINN map, through backward error analysis, keeps the error bounded for all time and therefore overtakes RK4 at long integration times. We deliberately avoid overstating the magnitude of the advantage on this benign, integrable benchmark: a high-order non-symplectic method is competitive here, and the symplectic gain is qualitative (bounded versus secular) rather than a dramatic short-time accuracy improvement. The regime in which symplecticity becomes decisive is long-time integration and non-integrable dynamics in complex fields, where no exact volume-preserving rotation is available and where secular drift of non-symplectic schemes dominates the error budget [9,10,28]. The principal practical contribution of SP-PINN is to make explicit, structure-preserving integration available for the general non-separable relativistic Hamiltonian through the learned surrogate, rather than to outperform Boris on the special magnetic case.

6.2. Role of the Mass-Shell Constraint

The mass-shell term L constraint = ( H θ m c 2 γ ) 2 , weighted by λ 1 1 , is the single most important design choice for Lorentz-symmetry preservation in Stage 1. Enforcing it throughout training biases the learned Hamiltonian toward the mass-hyperboloid geometry; omitting it allows the surrogate to reproduce the equations of motion while letting p μ p μ drift. This is consistent with the broader experience that high-weight constraint residuals improve the geometric fidelity of constrained-Hamiltonian PINNs [24,26].

6.3. Limitations

Several limitations deserve emphasis. First, and most importantly, the surrogate H θ has so far been trained only for the static magnetic-field Hamiltonian, where it reaches only ε θ = ( 4.1 ± 0.5 ) × 10 2 (root-mean-square over the training domain, five seeds) with about 3.5  min of single-CPU training per seed; at this accuracy the learned pipeline is not competitive with conventional pushers, which is why every figure here uses the analytic Hamiltonian in Stage 2. Training a surrogate for the time-dependent 3+1D laser Hamiltonian is markedly harder still, and exposes a sharper obstacle: a plain tanh network over the full phase-space–time box fails to learn it, because the laser carrier cos [ k 0 ( z c t ) ] produces tens of oscillations across the domain that the network cannot represent—the well-known spectral bias of multilayer perceptrons. With a plain network the loss stalls near ε θ 0.8 and the resulting Hamiltonian yields trajectories whose amplitude is wrong by a factor of two. This obstacle is substantially mitigated by (i) sampling collocation points in a tube around the integrated trajectory, concentrating capacity where the integrator evaluates H θ , and (ii) augmenting the input with Fourier features of the carrier phase η = z c t . On a single GPU these two changes restore healthy training (the loss falls by four orders of magnitude rather than stalling) and reduce the in-tube error to ε θ 9 × 10 3 (root-mean-square; worst case 0.7 near the tube boundary), recovering the correct trajectory amplitude (peak γ 12 ); the learned trajectory tracks the exact one closely early in the interaction.
However, a further, more demanding obstacle remains, and we have isolated its origin. The laser-driven quiver is a resonantly forced oscillation, so the ∼1% residual error in the learned force accumulates into a carrier-phase slip; the integrated trajectory keeps the right amplitude but loses phase coherence with the exact solution as the interaction proceeds. Crucially, integrating the learned Hamiltonian with the symplectic Stage-2 map gives the same phase drift as a non-symplectic Runge–Kutta integration: the two learned trajectories are indistinguishable from each other, sharing the same peak instantaneous relative error max t | γ learned γ exact | / γ exact 12 (we use this dimensionless quantity throughout as the trajectory-error metric; a value of order unity corresponds to a full carrier-cycle phase slip, so 12 signals a multi-cycle slip). The drift is therefore not an integration artifact but a direct consequence of the surrogate error—both integrators faithfully follow the slightly incorrect learned Hamiltonian. Faithful integration of this strongly resonant system thus requires the surrogate force to be far more accurate (we estimate ε θ 10 4 ) than the mass-shell fit alone provides. A substantial improvement comes from a light-cone residual formulation: the analytic plane-wave Hamiltonian—a function of the light-cone phase η = z c t —supplies the carrier exactly, and the network learns only the slow focusing correction (a residual that is ∼0.6% of H ). This supplies the carrier phase from closed-form physics rather than from the network, and roughly halves the surrogate error ( ε θ 5 × 10 3 ) while substantially reducing the trajectory error (to 7 , from the 12 of the tube/Fourier surrogate), with the learned trajectory tracking the exact one further into the interaction. It confirms the light-cone idea as the right direction, but does not by itself fully close the gap. To determine whether the residual drift is a deficiency of the integrator or of the surrogate, we also recast the evolution in the light-cone phase: taking η as the independent variable and tracking the slowly varying light-front invariants ( P x , P y , γ p z ) —from which γ is reconstructed algebraically together with the analytic field A x ( η ) —so that the carrier phase is carried by the exact independent variable and cannot accumulate. With the analytic Hamiltonian this scheme reproduces the reference trajectory to 0.25 % , confirming both the derivation and that the formulation is phase-coherent by construction; with the learned Hamiltonian it nonetheless drifts essentially as before. Together with the symplectic-versus-Runge–Kutta comparison above, this isolates the bottleneck unambiguously: no reformulation of the integration—time-domain, symplectic, or light-cone—can compensate for the ∼1% surrogate force error, which the resonant quiver inevitably amplifies.
Acting directly on this diagnosis, we obtain our best result by reformulating what the network represents: instead of the seven-dimensional Hamiltonian (or its residual), we learn the four-dimensional vector potential in light-cone form (the surrogate variant specified in Section 4.4), A θ ( x , y , z , t ) = A pw ( η ) + NN ( x , y , z , t ) , and reconstruct the Hamiltonian analytically as H θ = c ( P e c A θ ) 2 + m 2 c 2 . This formulation is lower-dimensional and structurally exact—the mass-shell constraint holds by construction and the Lorentz force is an exact function of the learned A θ , so the network need only fit a smooth four-dimensional scalar. On a single GPU, with a stabilized optimizer (learning-rate warmup, gradient clipping, an upweighted gradient-matching term, residual-based adaptive resampling of the collocation points, and an L-BFGS polish from the best checkpoint), it reaches ε θ = ( 3.0 ± 0.1 ) × 10 4 (root-mean-square over the in-tube test set, mean ± standard deviation over three seeds), at a training cost of about 20 min per seed on a single NVIDIA Tesla T4 GPU—roughly 2 × 10 4 Adam iterations followed by a short L-BFGS polish. The learned-Hamiltonian trajectory then tracks the analytic reference phase-coherently over essentially the whole interaction, with only the final field peak marginally out of phase (Figure 7); the maximum relative γ error falls to 0.9 ( 0.87 ± 0.19 over three seeds—the mean below unity and the worst seed only marginally above, so the learned and analytic trajectories stay within about one carrier cycle), from 12 for the tube/Fourier surrogate and 7 for the Hamiltonian residual—and this worst-case figure is dominated by the sharp γ -troughs, where a sub-cycle phase offset produces a large instantaneous relative error even though the envelope is tracked throughout. That lowering the surrogate force error—by changing what the network represents, with the integrator left untouched—is precisely what restores trajectory fidelity is the clearest confirmation of the diagnosis above; we also find that naively enlarging the network and prolonging training does not help and can destabilize the fit—starting from the same 3.4 × 10 5 -parameter network at its pre-stabilization accuracy ( ε θ 1.2 × 10 3 , before the learning-rate warmup, gradient-clipping, and adaptive-sampling fixes that yield the headline ( 3.0 ± 0.1 ) × 10 4 ), doubling the parameter count to 7.5 × 10 5 degraded the surrogate error to ε θ 3.5 × 10 2 , the Adam optimization diverging mid-training and never recovering the earlier minimum (training log in [44])—so the effective levers are the reformulation and a stabilized optimizer, not raw capacity. Table 3 summarizes the surrogate variants and the corresponding errors.
Finally, driving this best surrogate through the actual Stage-2 Tao symplectic map—rather than the Runge–Kutta integration used to evaluate it—changes the trajectory by at most 6 × 10 4 in γ , three orders of magnitude below the surrogate-limited error: the complete two-stage SP-PINN pipeline thus reproduces the single-integrator result, confirming directly that the residual error lies entirely in the learned surrogate and not in the geometric integrator. Reaching full quantitative reliability ( ε θ 10 4 , now within about a factor of three), for which this vector-potential light-cone formulation is the most promising route, is therefore the single remaining prerequisite for the learned pipeline in the laser regime, and the principal direction of future work.
Second, the surrogate is trained on a bounded phase-space domain; outside it neural-network extrapolation is uncontrolled, and the Poincaré-invariant diagnostic δ I 1 ( t ) can serve as an online detector of such excursions.
Third, the method carries hyperparameter sensitivity: the constraint weight λ 1 , network size, learning-rate schedule, and collocation distribution all affect ε θ . A distinct, integrator-level sensitivity is the binding constant Ω of the extended-phase-space map: the bounded error floor depends non-monotonically on Ω and develops sharp parametric (Floquet) resonances at 2 Ω Δ t = k π , i.e. along the comb Ω k π / ( 2 Δ t ) (near Ω 20 and Ω 50 here)—derived and numerically verified in Appendix A.2 (Figure A2b)—where the error degrades severely, so Ω must be placed between bands; this delicacy is a genuine practical limitation of the explicit construction and motivates an adaptive or resonance-avoiding choice of Ω for production use. The residual-based adaptive collocation refinement [27] adopted for the laser surrogate above is precisely what brought the trajectory error below unity, and a principled automated loss weighting [26] is a natural further step for production use. The supporting numerical studies—a multi-seed assessment of ε θ (Section 5.4), the realized second-order convergence of the Stage-2 map, and the dependence of the bounded error floor on the binding constant Ω (Appendix A.2)—confirm the robustness of the single-trajectory results reported in the main text.

6.4. Symmetry of the Loss and Geometric Preservation

A conceptual thread directly relevant to this journal connects the symmetry of the training objective to the geometric properties of the resulting integrator. The constraint term is a Lorentz scalar (built from the invariant p μ p μ m 2 c 2 ) and the residual term is formulated from covariant canonical equations, so the loss is Lorentz invariant by construction. Enforcing a Lorentz-covariant objective biases the network toward a Lorentz-covariant surrogate, yielding a hierarchical chain: Lorentz symmetry of the losscovariant surrogate Hamiltonianmass-shell conservationLorentz-group orbit preservation under the symplectic map. In classical symplectic integration the geometric structure is guaranteed by the algorithm alone; in SP-PINN the physical symmetry of the system is encoded in the loss and transferred, through the trained network, into the geometric structure of the integrator.

6.5. Prospects

Natural extensions include radiation reaction via the Landau–Lifshitz force, which breaks Hamiltonian structure and could be accommodated by a conformal symplectic Stage 2 with an auxiliary dissipation network [42]; application to accelerated (Rindler) frames building on the hyperbolic formalism of [37]; and implementation as a drop-in Boris-pusher replacement in open-source PIC codes, with the Poincaré-invariant diagnostic acting as a self-monitoring symplecticity guard. The preservation of the Poincaré–Cartan invariant at the single-particle level is expected to improve the long-term fidelity of collective laser–plasma simulations [1,2].

7. Conclusions

We have proposed and tested SP-PINN, a two-stage symmetry-preserving framework for the relativistic equations of motion of a charged particle in 3+1-dimensional electromagnetic fields. An unsupervised physics-informed neural network learns a Lorentz-covariant surrogate Hamiltonian from a mass-shell-constrained loss, and an explicit symplectic map—built on Tao’s extended phase space and therefore applicable to the non-separable relativistic Hamiltonian—advances it while preserving the symplectic structure by construction. On a uniform magnetic field the method exhibits the bounded-versus-secular error contrast: RK4 drifts secularly in the Lorentz factor and Larmor radius, the Boris pusher conserves them to machine precision as a volume-preserving gyro-integrator, and the symplectic SP-PINN map keeps the error bounded for all time, overtaking RK4 within a few hundred gyrations. On a focused Gaussian laser pulse the method reproduces the ponderomotive dynamics, the energy spectrum, and the conserved transverse canonical momentum, tracking the high-order reference closely. The Lorentz-invariant mass-shell constraint p μ p μ = m 2 c 2 —whose longitudinal restriction is the integral γ ( θ ) = cosh θ of [37]—is preserved to within the training and time-step tolerances, in agreement with Propositions 1 and 2. We have been explicit that on benign integrable benchmarks a high-order non-symplectic method is competitive and the Boris pusher is optimal for the magnetic sub-problem; the distinctive value of SP-PINN is the absence of secular drift combined with structure-preserving integration of the general non-separable relativistic Hamiltonian. We demonstrated this on a non-integrable magnetic trap, where—no exact volume-preserving rotation being available—the symplectic map alone keeps the energy error bounded while both RK4 and the Boris pusher drift. For the time-dependent laser surrogate, a vector-potential light-cone reformulation brings the learned-Hamiltonian trajectory into phase coherence with the reference over essentially the whole interaction ( ε θ = ( 3.0 ± 0.1 ) × 10 4 over three seeds), leaving the final approach to ε θ 10 4 as the principal open task. Planned extensions include radiation reaction through conformal symplectic integration, non-inertial reference frames, and integration into a full particle-in-cell loop.

Author Contributions

Conceptualization, N.S.A. and A.P.N.; methodology, N.S.A., A.P.N. and S.N.A.; software, A.P.N. and N.S.A.; validation, S.N.A. and Q.-H.Q.; formal analysis, N.S.A. and A.P.N.; investigation, N.S.A., A.P.N. and S.N.A.; writing—original draft preparation, N.S.A. and A.P.N.; writing—review and editing, S.N.A., Q.-H.Q., G.Y. and V.S.I.; visualization, A.P.N.; supervision, Q.-H.Q.; project administration, N.S.A. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partially supported by the State Assignment of the Ministry of Education and Science of the Russian Federation (Project No. FZEN-2023-0006), the Nantong Science and Technology Plan Project (Grant Nos. JC2020137 and JC2020138), the Key Research and Development Program of Jiangsu Province of China (Grant No. BE2021013-1), the National Natural Science Foundation of Jiangsu Province of China (Grant No. BK20201438), and in part by the Natural Science Research Project of Jiangsu Provincial Institutions of Higher Education (Grant Nos. 1120KJA510002 and 20KJB510010).

Data Availability Statement

The complete Python source code reproducing all figures, tables, and numerical results of this paper—including the field configurations, the Boris, RK4, DOP853, and Tao symplectic integrators, the Stage-1 PINN training (including the vector-potential light-cone laser surrogate of Section 6 and the script that reproduces Figure 7), and the end-to-end pipeline-closure check—is openly available on GitHub (https://github.com/NewArtY/SP-PINN-RelativisticDynamics) and permanently archived on Zenodo (Version 1.0.0, https://doi.org/10.5281/zenodo.20746308) [44]. No experimental data were generated.

Acknowledgments

Part of this work was presented at the International Conference on Symmetry (Symmetry 2025), Hangzhou, China, 2025 (https://sciforum.net/event/symmetry2025).

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

    The following abbreviations are used in this manuscript:
PINN Physics-informed neural network
SP-PINN Symmetry-preserving physics-informed neural network integrator
PIC Particle-in-cell
RK4/RK8 Fourth-/eighth-order Runge–Kutta
LWFA Laser wakefield acceleration

Appendix A. Supplementary Methodological Studies

Appendix A.1. Time as a Canonical Coordinate; Plane-Wave Symmetry Tests

For a time-dependent field, the frozen-in-time Stage-2 map of Section 4 is no longer exactly symplectic. Exact symplecticity is restored by adjoining time as a canonical coordinate: the extended position is ( r , t ) and the extended momentum ( P , p t ) , with the autonomous extended Hamiltonian H ¯ = H ( r , P , t ) + p t , so that d t / d τ = 1 and d p t / d τ = H / t ; the Tao map is then applied in the enlarged phase space. We validate this on a linearly polarized plane wave A = a 0 cos [ k 0 ( z c t ) ] x ^ ( a 0 = 2 ) driving an electron from rest over 10 3 wave periods (Figure A1). The plane wave has two exact invariants: the light-front (equivalently light-cone) quantity K = γ p z (sensitive to the explicit time dependence) and the transverse canonical momentum P x (the Noether invariant of transverse translations). Panel (a) shows that the frozen map drifts in K to 2 × 10 2 , whereas the autonomized (time-as-coordinate) map keeps | K 1 | 2 × 10 5 —about three orders of magnitude better—confirming the construction. Panel (b) addresses the interpretation of Figure 4b: for a true plane wave P x is exactly conserved, so any deviation is purely numerical, and the Boris pusher again shows by far the largest violation ( 4 × 10 2 ), confirming that the ordering seen for the focused beam is a numerical effect of the rotation splitting, not the residual physical symmetry breaking of the finite beam.
Figure A1. Plane-wave symmetry tests over 10 3 wave periods ( a 0 = 2 ). (a) Error of the light-front invariant K = γ p z : the frozen Tao map (green dotted) drifts to 2 × 10 2 , while the autonomized time-as-coordinate map (green solid) stays bounded at 10 5 . (b) Error of the transverse canonical momentum P x , exactly conserved for a plane wave: the Boris pusher (orange) shows the largest, purely numerical, violation.
Figure A1. Plane-wave symmetry tests over 10 3 wave periods ( a 0 = 2 ). (a) Error of the light-front invariant K = γ p z : the frozen Tao map (green dotted) drifts to 2 × 10 2 , while the autonomized time-as-coordinate map (green solid) stays bounded at 10 5 . (b) Error of the transverse canonical momentum P x , exactly conserved for a plane wave: the Boris pusher (orange) shows the largest, purely numerical, violation.
Preprints 219624 g0a1

Appendix A.2. Order of Convergence and the Binding Constant

Figure A2a reports the global trajectory error at a fixed short final time T = 4 (short enough that the error stays in the convergent regime rather than saturating at the orbit scale). RK4 exhibits its expected fourth-order slope. The Tao symplectic map, integrated in the coupled limit Ω = 5 / Δ t so that the binding floor vanishes with Δ t , converges at second order: although the Yoshida triple-jump is a fourth-order composition for the extended Hamiltonian, the residual binding error of the extended phase space scales linearly with Δ t in this limit and caps the realized order at two. This quantifies the trade-off at the heart of the method—the symplectic map is of lower formal order than RK4, and is accordingly less accurate at short times, but it preserves the geometric structure and therefore avoids the secular drift that dominates the error budget at long times (Figure 2 and Figure 5). Figure A2b shows the bounded long-time Larmor-error floor of the Tao map at fixed Δ t = T c / 100 as a function of the binding constant Ω . The dependence is non-monotonic and exhibits sharp resonances (e.g. near Ω = 20 and Ω = 50 ), where the binding rotation resonates parametrically with the integration step. This structure is now understood quantitatively. For the uniform field the motion is linear (the Hamiltonian is quadratic and γ is constant along the gyro-orbit), so one step of the extended-phase-space map is a constant symplectic matrix; its monodromy develops a parametric (Floquet) instability whenever the binding rotation—which the construction performs at angular frequency 2 Ω —is commensurate with the step,
2 Ω Δ t = k π , k = 1 , 2 , 3 , Ω k = k π 2 Δ t ,
giving narrow instability bands at Ω 5 k for Δ t = T c / 100 . While the band positions follow directly from this commensurability, their relative strengths are organized—empirically, from the computed monodromy eigenvalues—by k mod 3 , a three-fold pattern traced to the three-substep Yoshida composition and its negative central weight w 0 : the k 1 ( mod 3 ) bands ( Ω 5 , 20 , 35 , 50 ) are the most violent—hence the pronounced spikes at Ω 20 and Ω 50 —whereas the k 0 ( mod 3 ) bands ( Ω 15 , 30 , 45 ) are the weakest, so Ω 15 (off the strong family and at a band edge) yields the lowest long-time error, and values of Ω lying off the comb (e.g. Ω 2 ) are linearly stable to machine precision. A direct parameter sweep (study_omega_resonance.py in [44]) confirms Eq. (A1): the resonance locations scale as Ω Δ t 1 —halving or doubling Δ t doubles or halves the band spacing, collapsing all bands onto fixed 2 Ω Δ t = k π —and are independent of the cyclotron frequency ω c . The binding constant should therefore be kept off the strong k 1 ( mod 3 ) bands; the value Ω = 15 used in Section 5.1 sits in a low-error window between teeth—clear of the strong family, with the nearest tooth being the weakest ( k 0 ) one ( k = 3 ), whose narrow width and a small cyclotron detuning of the band centers leave the integer value effectively off-resonance, at the floor minimum. For the time-dependent laser and the nonlinear trap the linear (Floquet) analysis provides only the leading guide, so the values Ω = 40 and Ω = 10 were selected empirically in low-error windows; an adaptive or resonance-avoiding selection of Ω would be valuable in production use.
Figure A2. (a) Global trajectory error at T = 4 versus time step Δ t for the uniform-magnetic-field problem: RK4 is fourth order, while the Tao symplectic map (in the coupled limit Ω = 5 / Δ t ) is second order, its realized order capped by the binding error; reference slopes 4 (dashed) and 2 (dotted) are shown. (b) Bounded Larmor-error floor of the Tao map at Δ t = T c / 100 versus the binding constant Ω : the dependence is non-monotonic with sharp resonances (near Ω = 20 , 50) that must be avoided, and a robust low-error minimum near Ω 15 .
Figure A2. (a) Global trajectory error at T = 4 versus time step Δ t for the uniform-magnetic-field problem: RK4 is fourth order, while the Tao symplectic map (in the coupled limit Ω = 5 / Δ t ) is second order, its realized order capped by the binding error; reference slopes 4 (dashed) and 2 (dotted) are shown. (b) Bounded Larmor-error floor of the Tao map at Δ t = T c / 100 versus the binding constant Ω : the dependence is non-monotonic with sharp resonances (near Ω = 20 , 50) that must be avoided, and a robust low-error minimum near Ω 15 .
Preprints 219624 g0a2

Appendix A.3. Free-Particle Baseline

As a zero-force baseline confirming the absence of implementation bias, consider a free particle ( E = B = 0 ): the canonical force vanishes identically, so the momentum is constant and every consistent integrator reproduces the exact solution. We verified that for γ 0 = 10 over N = 10 4 steps all three schemes conserve γ and | p | 2 to machine precision ( 10 15 , Table A1); the discriminating tests are the state-dependent magnetic-field and laser cases of the main text (Section 5), where the force depends on the state.
Table A1. Lorentz-factor error Δ γ = | γ ( N ) γ 0 | and relative momentum-invariant error after N = 10 4 steps for a free relativistic particle ( γ 0 = 10 ). All schemes are exact to machine precision because the force vanishes.
Table A1. Lorentz-factor error Δ γ = | γ ( N ) γ 0 | and relative momentum-invariant error after N = 10 4 steps for a free relativistic particle ( γ 0 = 10 ). All schemes are exact to machine precision because the force vanishes.
Integrator Δ γ Δ | p | 2 / p 0 2
RK4 < 10 15 < 10 15
Boris < 10 15 < 10 15
SP-PINN < 10 15 < 10 15

References

  1. Gong, Z.; Cao, S.; Palastro, J.P.; Edwards, M.R. Laser Wakefield Acceleration of Ions with a Transverse Flying Focus. Phys. Rev. Lett. 2024, 133, 265002. [Google Scholar] [CrossRef] [PubMed]
  2. Aniculaesei, C.; Ha, T.; Yoffe, S.; Labun, L.; Milton, S.; et al. The Acceleration of a High-Charge Electron Bunch to 10 GeV in a 10-cm Nanoparticle-Assisted Wakefield Accelerator. Matter Radiat. Extrem. 2024, 9, 014001. [Google Scholar] [CrossRef]
  3. Boris, J.P. Relativistic Plasma Simulation—Optimization of a Hybrid Code. In Proceedings of the 4th Conference on Numerical Simulation of Plasmas; Naval Research Laboratory: Washington, DC, USA, 1970; pp. 3–67. [Google Scholar]
  4. Vay, J.-L. Simulation of Beams or Plasmas Crossing at Relativistic Velocity. Phys. Plasmas 2008, 15, 056701. [Google Scholar] [CrossRef]
  5. Higuera, A.V.; Cary, J.R. Structure-Preserving Second-Order Integration of Relativistic Charged Particle Trajectories in Electromagnetic Fields. Phys. Plasmas 2017, 24, 052104. [Google Scholar] [CrossRef]
  6. Zenitani, S.; Umeda, T. On the Boris Solver in Particle-in-Cell Simulation. Phys. Plasmas 2018, 25, 112110. [Google Scholar] [CrossRef]
  7. Qin, H.; Zhang, S.; Xiao, J.; Liu, J.; Sun, Y.; Tang, W.M. Why Is Boris Algorithm So Good? Phys. Plasmas 2013, 20, 084503. [Google Scholar] [CrossRef]
  8. Hairer, E.; Lubich, C. Energy Behaviour of the Boris Method for Charged-Particle Dynamics. BIT Numer. Math. 2018, 58, 969–979. [Google Scholar] [CrossRef]
  9. Xiao, J.; Qin, H. Slow Manifolds of Classical Pauli Particle Enable Structure-Preserving Geometric Algorithms for Guiding-Center Dynamics. Comput. Phys. Commun. 2021, 265, 107981. [Google Scholar] [CrossRef]
  10. Hairer, E.; Lubich, C.; Wanner, G. Geometric Numerical Integration: Structure-Preserving Algorithms for Ordinary Differential Equations, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar] [CrossRef]
  11. Yoshida, H. Construction of Higher Order Symplectic Integrators. Phys. Lett. A 1990, 150, 262–268. [Google Scholar] [CrossRef]
  12. Chin, S.A. Complete Characterization of Fourth-Order Symplectic Integrators with Extended-Linear Coefficients. Phys. Rev. E 2006, 73, 026705. [Google Scholar] [CrossRef] [PubMed]
  13. Tao, M. Explicit Symplectic Approximation of Nonseparable Hamiltonians: Algorithm and Long Time Performance. Phys. Rev. E 2016, 94, 043303. [Google Scholar] [CrossRef] [PubMed]
  14. He, Y.; Sun, Y.; Liu, J.; Qin, H. Volume-Preserving Algorithms for Charged Particle Dynamics. J. Comput. Phys. 2015, 281, 135–147. [Google Scholar] [CrossRef]
  15. Ripperda, B.; Bacchini, F.; Teunissen, J.; Xia, C.; Porth, O.; et al. A Comprehensive Comparison of Relativistic Particle Integrators. Astrophys. J. Suppl. Ser. 2018, 235, 21. [Google Scholar] [CrossRef]
  16. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-Informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
  17. Karniadakis, G.E.; Kevrekidis, I.G.; Lu, L.; Perdikaris, P.; Wang, S.; Yang, L. Physics-Informed Machine Learning. Nat. Rev. Phys. 2021, 3, 422–440. [Google Scholar] [CrossRef]
  18. Greydanus, S.; Dzamba, M.; Yosinski, J. Hamiltonian Neural Networks. Adv. Neural Inf. Process. Syst. 2019, 32, 15353–15363. Available online: https://proceedings.neurips.cc/paper/2019/hash/26cd8ecadce0d4efd6cc8a8725cbd1f8-Abstract.html.
  19. Jin, P.; Zhang, Z.; Zhu, A.; Tang, Y.; Karniadakis, G.E. SympNets: Intrinsic Structure-Preserving Symplectic Networks for Identifying Hamiltonian Systems. Neural Netw. 2020, 132, 166–179. [Google Scholar] [CrossRef] [PubMed]
  20. Mattheakis, M.; Sondak, D.; Dogra, A.S.; Protopapas, P. Hamiltonian Neural Networks for Solving Equations of Motion. Phys. Rev. E 2022, 105, 065305. [Google Scholar] [CrossRef] [PubMed]
  21. Liang, C.; Wen, X.; Zhu, Z.; Shen, L.; Wang, Y. SPINI: A Structure-Preserving Neural Integrator for Hamiltonian Dynamics and Parametric Perturbation. Sci. Rep. 2025, 15, 43842. [Google Scholar] [CrossRef] [PubMed]
  22. Drimalas, E.G.; Fraschetti, F.; Huang, C.; Tang, Q. Symplectic Neural Network and Its Application to Charged Particle Dynamics in Electromagnetic Fields. Phys. Plasmas 2025, 32, 103901. [Google Scholar] [CrossRef]
  23. Choudhary, A.; Lindner, J.F.; Holliday, E.G.; Miller, S.T.; Sinha, S.; Ditto, W.L. Physics-Enhanced Neural Networks Learn Order and Chaos. Phys. Rev. E 2020, 101, 062207. [Google Scholar] [CrossRef] [PubMed]
  24. Mattheakis, M.; Protopapas, P.; Sondak, D.; Di Giovanni, M.; Kaxiras, E. Physical Symmetries Embedded in Neural Networks. arXiv. 2019. Available online: https://arxiv.org/abs/1904.08991.
  25. Toth, P.; Rezende, D.J.; Jaegle, A.; Racanière, S.; Botev, A.; Higgins, I. Hamiltonian Generative Networks. In Proceedings of the International Conference on Learning Representations (ICLR), Addis Ababa, Ethiopia, 26–30 April 2020; Available online: https://openreview.net/forum?id=HJenn6VFvB.
  26. Wang, S.; Teng, Y.; Perdikaris, P. Understanding and Mitigating Gradient Flow Pathologies in Physics-Informed Neural Networks. SIAM J. Sci. Comput. 2021, 43, A3055–A3081. [Google Scholar] [CrossRef]
  27. Wu, C.; Zhu, M.; Tan, Q.; Kartha, Y.; Lu, L. A Comprehensive Study of Non-Adaptive and Residual-Based Adaptive Sampling for Physics-Informed Neural Networks. Comput. Methods Appl. Mech. Eng. 2023, 403, 115671. [Google Scholar] [CrossRef]
  28. Burby, J.W.; Tang, Q.; Maulik, R. Fast Neural Poincaré Maps for Toroidal Magnetic Fields. Plasma Phys. Control. Fusion 2021, 63, 024001. [Google Scholar] [CrossRef]
  29. Fitzpatrick, R. Plasma Physics: An Introduction Poincaré Invariants; CRC Press: Boca Raton, FL, USA, 2014; Available online: https://farside.ph.utexas.edu/teaching/plasma/ (accessed on 12 June 2026).
  30. Arnold, V.I. Mathematical Methods of Classical Mechanics, 2nd ed.; Springer: New York, NY, USA, 1989. [Google Scholar] [CrossRef]
  31. Abraham, R.; Marsden, J.E. Foundations of Mechanics, 2nd ed.; AMS Chelsea Publishing: Providence, RI, USA, 2008. [Google Scholar] [CrossRef]
  32. Frankel, T. The Geometry of Physics: An Introduction, 3rd ed.; Cambridge University Press: Cambridge, UK, 2011. [Google Scholar] [CrossRef]
  33. Jackson, J.D. Classical Electrodynamics, 3rd ed.; Wiley: New York, NY, USA, 1999. [Google Scholar]
  34. Goldstein, H.; Poole, C.P.; Safko, J.L. Classical Mechanics, 3rd ed.; Addison-Wesley: San Francisco, CA, USA, 2001. [Google Scholar]
  35. Landau, L.D.; Lifshitz, E.M. The Classical Theory of Fields, 4th ed.; Butterworth-Heinemann: Oxford, UK, 1975. [Google Scholar]
  36. Akintsov, N.S.; Nevecheria, A.P.; Kopytov, G.F.; Yang, Y. Lagrangian and Hamiltonian Formalisms for Relativistic Mechanics with Lorentz-Invariant Evolution Parameters in 1+1 Dimensions. Symmetry 2023, 15, 1691. [Google Scholar] [CrossRef]
  37. Akintsov, N.S.; Nevecheria, A.P.; Kopytov, G.F.; Yang, Y.; Cao, T. Special Relativity in Terms of Hyperbolic Functions with Coupled Parameters in 3+1 Dimensions. Symmetry 2024, 16, 357. [Google Scholar] [CrossRef]
  38. Akintsov, N.S.; Nevecheria, A.P.; Kozhevnikov, V.Yu.; Kopytov, G.F.; Cao, T. Integrals of Motion of a Relativistic Particle in 1+1 Dimensions with Coupled Parameters. St. Petersburg Polytech. Univ. J. Phys. Math. 2025, 18, 107–126. [Google Scholar] [CrossRef]
  39. Akintsov, N.S.; Nevecheria, A.P.; Yang, Y. Dynamics of a Relativistic Particle in the Field of a Gaussian Laser Pulse in 3+1 Dimensions. Proc. SPIE 2025, 13543, 135430C. [Google Scholar] [CrossRef]
  40. Akintsov, N.S.; Nevecheria, A.P.; Kopytov, G.F.; Andreev, S.N.; Yang, Y.; Qin, Q.-H. Invariant Descriptions of Classical Relativistic Particle Motion in 3+1 Dimensions. Mod. Phys. Lett. A 2026. [Google Scholar] [CrossRef]
  41. Akintsov, N.S.; Nevecheria, A.P.; Andreev, S.N.; Kopytov, G.F. Dynamics of Relativistic Particles in an Ion–Cyclotron Trap in the Presence of an External Ultrashort Laser Pulse. Phys. Plasmas 2025, 32, 082105. [Google Scholar] [CrossRef]
  42. Zhou, G.; Wang, W.-M.; Li, Y.-T. Solution to the Landau–Lifshitz Equation in Laser and Electrostatic Fields. Phys. Lett. A 2025, 550, 130588. [Google Scholar] [CrossRef]
  43. Quesnel, B.; Mora, P. Theory and Simulation of the Interaction of Ultraintense Laser Pulses with Electrons in Vacuum. Phys. Rev. E 1998, 58, 3719–3732. [Google Scholar] [CrossRef]
  44. Akintsov, N.S.; Nevecheria, A.P. SP-PINN-RelativisticDynamics: Reference Implementation and Reproducibility Package for Symmetry-Preserving Relativistic Charged-Particle Integration, Version 1.0.0; Zenodo. 2026. Available online: https://github.com/NewArtY/SP-PINN-RelativisticDynamics (accessed on 12 June 2026). [CrossRef]
Figure 1. Schematic overview of the SP-PINN two-stage architecture. Stage 1 (offline, left): an unsupervised physics-informed neural network H θ ( r , P , t ) is trained on collocation points using the composite loss L total = L eqs + λ 1 L constraint + λ 2 L bc ; no trajectory data are required. Stage 2 (online, right): the frozen surrogate Hamiltonian is embedded in an explicit symplectic map, generating an exactly symplectic discrete flow Φ Δ t ( 4 ) through automatic differentiation. The dashed boundary separates the one-time training phase from the repeated integration phase.
Figure 1. Schematic overview of the SP-PINN two-stage architecture. Stage 1 (offline, left): an unsupervised physics-informed neural network H θ ( r , P , t ) is trained on collocation points using the composite loss L total = L eqs + λ 1 L constraint + λ 2 L bc ; no trajectory data are required. Stage 2 (online, right): the frozen surrogate Hamiltonian is embedded in an explicit symplectic map, generating an exactly symplectic discrete flow Φ Δ t ( 4 ) through automatic differentiation. The dashed boundary separates the one-time training phase from the repeated integration phase.
Preprints 219624 g001
Figure 2. Long-term conservation of the exact invariants for a relativistic particle ( γ 0 = 5 ) in a uniform magnetic field over 4 × 10 3 cyclotron periods ( Δ t = T c / 100 , binding constant Ω = 15 ), on log–log axes. (a) Relative Larmor-radius error Δ r L / r L ( 0 ) and (b) relative Lorentz-factor error Δ γ / γ 0 for RK4 (blue, solid), Boris (orange, dashed), and SP-PINN (green, dotted); each method is identified by both colour and line style throughout. RK4 (neither symplectic nor volume preserving) drifts secularly ( n ), reaching 10 4 ; the Boris pusher conserves both invariants to machine precision ( 10 14 ) as an exactly volume-preserving gyro-integrator; and the symplectic SP-PINN map keeps the error bounded ( 3 × 10 5 ) for all time, overtaking RK4 within a few hundred gyrations.
Figure 2. Long-term conservation of the exact invariants for a relativistic particle ( γ 0 = 5 ) in a uniform magnetic field over 4 × 10 3 cyclotron periods ( Δ t = T c / 100 , binding constant Ω = 15 ), on log–log axes. (a) Relative Larmor-radius error Δ r L / r L ( 0 ) and (b) relative Lorentz-factor error Δ γ / γ 0 for RK4 (blue, solid), Boris (orange, dashed), and SP-PINN (green, dotted); each method is identified by both colour and line style throughout. RK4 (neither symplectic nor volume preserving) drifts secularly ( n ), reaching 10 4 ; the Boris pusher conserves both invariants to machine precision ( 10 14 ) as an exactly volume-preserving gyro-integrator; and the symplectic SP-PINN map keeps the error bounded ( 3 × 10 5 ) for all time, overtaking RK4 within a few hundred gyrations.
Preprints 219624 g002
Figure 3. Relativistic electron in a focused Gaussian laser pulse ( a 0 = 5 , w 0 = 5 λ 0 , τ L = 30 ω 0 1 ). (a) Longitudinal coordinate z ( t ) and (b) Lorentz factor γ ( t ) for RK4, Boris, SP-PINN, and the DOP853 (RK8) reference (black dashed); all four curves overlap. (c) Relative energy error Δ E / E 0 in the post-interaction phase ( t > τ L ). All schemes capture the ponderomotive acceleration and post-pulse return over this moderate interaction time; RK4 attains the smallest absolute error, Boris the largest, and SP-PINN lies in between, all well below the percent level.
Figure 3. Relativistic electron in a focused Gaussian laser pulse ( a 0 = 5 , w 0 = 5 λ 0 , τ L = 30 ω 0 1 ). (a) Longitudinal coordinate z ( t ) and (b) Lorentz factor γ ( t ) for RK4, Boris, SP-PINN, and the DOP853 (RK8) reference (black dashed); all four curves overlap. (c) Relative energy error Δ E / E 0 in the post-interaction phase ( t > τ L ). All schemes capture the ponderomotive acceleration and post-pulse return over this moderate interaction time; RK4 attains the smallest absolute error, Boris the largest, and SP-PINN lies in between, all well below the percent level.
Preprints 219624 g003
Figure 4. (a) Final kinetic-energy spectrum d N / d γ of 256 electrons with uniformly distributed initial transverse positions after the Gaussian pulse has passed, for RK4, Boris, SP-PINN, and a fine-step reference. (b) Numerical violation of the transverse canonical momentum P x = p x + ( e / c ) A x , the Noether invariant of the transverse translational symmetry, for an on-axis electron, measured as the deviation from the DOP853 reference. The Boris pusher shows the largest symmetry violation; the high-order RK4 and the symplectic SP-PINN map preserve the invariant far better.
Figure 4. (a) Final kinetic-energy spectrum d N / d γ of 256 electrons with uniformly distributed initial transverse positions after the Gaussian pulse has passed, for RK4, Boris, SP-PINN, and a fine-step reference. (b) Numerical violation of the transverse canonical momentum P x = p x + ( e / c ) A x , the Noether invariant of the transverse translational symmetry, for an on-axis electron, measured as the deviation from the DOP853 reference. The Boris pusher shows the largest symmetry violation; the high-order RK4 and the symplectic SP-PINN map preserve the invariant far better.
Preprints 219624 g004
Figure 5. Non-integrable autonomous system: a charged particle in B = B 0 z ^ plus the anharmonic well φ = 1 2 k ( x 2 + y 2 ) + ϵ x 2 y 2 ( B 0 = k = 1 , ϵ = 0.3 ). (a) A representative chaotic orbit in the ( x , y ) plane (gray; computed with the SP-PINN map, shown to illustrate the dynamics rather than as a method comparison). (b) Relative energy error | H ( t ) H 0 | / | H 0 | over 3 × 10 5 steps ( Δ t = 0.05 , Ω = 10 ): RK4 (blue, solid) drifts secularly, the Boris pusher (orange, dashed) shows the largest error for this nonlinear static field, and the symplectic SP-PINN map (green, dotted) keeps the error bounded.
Figure 5. Non-integrable autonomous system: a charged particle in B = B 0 z ^ plus the anharmonic well φ = 1 2 k ( x 2 + y 2 ) + ϵ x 2 y 2 ( B 0 = k = 1 , ϵ = 0.3 ). (a) A representative chaotic orbit in the ( x , y ) plane (gray; computed with the SP-PINN map, shown to illustrate the dynamics rather than as a method comparison). (b) Relative energy error | H ( t ) H 0 | / | H 0 | over 3 × 10 5 steps ( Δ t = 0.05 , Ω = 10 ): RK4 (blue, solid) drifts secularly, the Boris pusher (orange, dashed) shows the largest error for this nonlinear static field, and the symplectic SP-PINN map (green, dotted) keeps the error bounded.
Preprints 219624 g005
Figure 6. Total wall-clock time per integration step for Boris, RK4, and the SP-PINN symplectic map (analytic- H Stage-2 map) as a function of the number of particles N p integrated in parallel (batched NumPy, single CPU), on the magnetic-field problem. The total time grows sublinearly with N p , so the per-particle cost decreases under batching; the SP-PINN/Boris cost ratio nonetheless remains 3 7 × at all batch sizes. The one-time offline Stage-1 training cost is not included.
Figure 6. Total wall-clock time per integration step for Boris, RK4, and the SP-PINN symplectic map (analytic- H Stage-2 map) as a function of the number of particles N p integrated in parallel (batched NumPy, single CPU), on the magnetic-field problem. The total time grows sublinearly with N p , so the per-particle cost decreases under batching; the SP-PINN/Boris cost ratio nonetheless remains 3 7 × at all batch sizes. The one-time offline Stage-1 training cost is not included.
Preprints 219624 g006
Figure 7. The learned Stage-1 surrogate in action—the one figure of this paper that uses the trained network rather than the analytic Hamiltonian. The on-axis electron of Section 5.2 is integrated with the learned Hamiltonian H θ = c ( P e c A θ ) 2 + m 2 c 2 built from the A-residual vector-potential surrogate A θ = A pw ( η ) + NN ( x , y , z , t ) ( ε θ = ( 3.0 ± 0.1 ) × 10 4 over three seeds). (a) Lorentz factor γ ( t ) of the learned trajectory (green) against the analytic reference (black dashed): the two overlap over essentially the entire interaction, separating only at the final field peak. (b) Relative γ error: the envelope is tracked throughout, and the worst-case value ( 0.7 for the seed shown; 0.87 ± 0.19 over three seeds) occurs at the sharp γ -troughs, where a sub-cycle phase offset yields a large instantaneous relative error. This demonstrates the learned pipeline; closing the residual end-of-pulse slip requires ε θ 10 4 (Section 6).
Figure 7. The learned Stage-1 surrogate in action—the one figure of this paper that uses the trained network rather than the analytic Hamiltonian. The on-axis electron of Section 5.2 is integrated with the learned Hamiltonian H θ = c ( P e c A θ ) 2 + m 2 c 2 built from the A-residual vector-potential surrogate A θ = A pw ( η ) + NN ( x , y , z , t ) ( ε θ = ( 3.0 ± 0.1 ) × 10 4 over three seeds). (a) Lorentz factor γ ( t ) of the learned trajectory (green) against the analytic reference (black dashed): the two overlap over essentially the entire interaction, separating only at the final field peak. (b) Relative γ error: the envelope is tracked throughout, and the worst-case value ( 0.7 for the seed shown; 0.87 ± 0.19 over three seeds) occurs at the sharp γ -troughs, where a sub-cycle phase offset yields a large instantaneous relative error. This demonstrates the learned pipeline; closing the residual end-of-pulse slip requires ε θ 10 4 (Section 6).
Preprints 219624 g007
Table 1. Parameters of the Gaussian laser pulse used in Test Case 2 (Section 5.2). Code units set c = 1 , m = 1 , and k 0 = ω 0 = 1 ; SI equivalents are given for an 800 nm laser.
Table 1. Parameters of the Gaussian laser pulse used in Test Case 2 (Section 5.2). Code units set c = 1 , m = 1 , and k 0 = ω 0 = 1 ; SI equivalents are given for an 800 nm laser.
Parameter Symbol Value
Laser wavelength λ 0 800 nm
Normalized vector potential a 0 5
Beam waist w 0 5 λ 0 4 μ m
Pulse duration τ L 30 ω 0 1 ( 13 fs)
Rayleigh length z R k 0 w 0 2 / 2
Initial electron state ( γ 0 , p 0 ) ( 1 , 0 ) , at rest
Table 2. Computational cost and long-time conservation summary (magnetic-field test, single CPU). Wall-clock time per step is measured for a single particle; under batched evaluation of N p = 10 3 particles the per-particle cost of SP-PINN falls to 2.2 × 10 3  ms (Figure 6). The SP-PINN Stage-1 training is a one-time offline cost. Conservation entries refer to the long-time behavior of Figure 2; the learned- H θ row reports the per-step cost (identical to the analytic map, plus a network forward pass) together with the estimated long-time error floor ε θ , not a separate long-time benchmark.
Table 2. Computational cost and long-time conservation summary (magnetic-field test, single CPU). Wall-clock time per step is measured for a single particle; under batched evaluation of N p = 10 3 particles the per-particle cost of SP-PINN falls to 2.2 × 10 3  ms (Figure 6). The SP-PINN Stage-1 training is a one-time offline cost. Conservation entries refer to the long-time behavior of Figure 2; the learned- H θ row reports the per-step cost (identical to the analytic map, plus a network forward pass) together with the estimated long-time error floor ε θ , not a separate long-time benchmark.
Integrator Symplectic Time/step (ms) Larmor radius Lorentz factor
Boris no (volume-pres.) 0.11 machine precision machine precision
RK4 no 0.22 secular drift secular drift
SP-PINN (analytic H ) yes 0.73 bounded bounded
SP-PINN (learned H θ , estimated) yes 0.73 floor ε θ floor ε θ
Table 3. Laser surrogate variants for the on-axis electron of Section 5.2: in-tube root-mean-square error ε θ of the learned object and its gradients, and the resulting peak relative trajectory error max t | γ learned γ exact | / γ exact (a value of order unity corresponds to a full carrier-cycle phase slip). Lowering the surrogate force error—by changing what the network represents, with the integrator left untouched—is what restores trajectory fidelity.
Table 3. Laser surrogate variants for the on-axis electron of Section 5.2: in-tube root-mean-square error ε θ of the learned object and its gradients, and the resulting peak relative trajectory error max t | γ learned γ exact | / γ exact (a value of order unity corresponds to a full carrier-cycle phase slip). Lowering the surrogate force error—by changing what the network represents, with the integrator left untouched—is what restores trajectory fidelity.
Surrogate variant ε θ (RMS) peak rel. γ error
Plain tanh, full phase-space box 0.8 fails ( γ stalls 5 )
Tube sampling + Fourier features 9 × 10 3 12
Light-cone Hamiltonian residual 5 × 10 3 7
Vector-potential (A-residual), stabilized ( 3.0 ± 0.1 ) × 10 4 0.87 ± 0.19
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings