betaFeedback

WorksComputer Science

Poisson-GENERIC Neural Operators: Exact Metriplectic Structure in Function Space via Casimir Entropies

Abstract

Existing thermodynamically consistent neural operators enforce GENERIC degeneracy by projecting the reversible operator, introducing state dependence and generally forfeiting the Jacobi identity. We instead use the compatible Lie–Poisson pencil L=αD+λ(uD+Du)L=αD+λ(uD+Du) for nonlinear transport and constant Poisson multipliers otherwise. Augmenting uu with a latent entropy density ss makes S=∫sS=\int s a Casimir, so L δS/δz=0L\,δS/δz=0 without projection. The energy combines a fixed mechanical quadratic, a learned gauge-free potential, and a convex internal energy; the friction operator M=AA ⁣⊤M=AA^{\!\top} enforces M δE/δz=0M\,δE/δz=0 pointwise and supports diffusion and damping through local Onsager fluxes. Skewness, positivity, and both degeneracies hold algebraically for any parameters; the continuum pencil satisfies Jacobi, with discrete residuals at machine precision on alias-free inputs. Closed-form heat and damped-wave friction operators are exactly representable, and a discrete-gradient integrator preserves the first and second laws. Across four PDEs in one and two dimensions and three backbones (FNO, Transolver, CNO), the model wins 62/7262/72 seed-level comparisons against unconstrained baselines at equal optimizer steps, recovers exact transport and wave symbols, matches heat and Burgers dissipation within 12%12\%, and dissipates nothing on advection. At equal wall-clock time, the unconstrained FNO is more accurate over ten frames. Over one hundred frames, in and out of distribution, our model never increases physical energy and conserves it when dissipation vanishes, whereas the unconstrained FNO loses a quarter of conserved energy out of distribution and projected GENERIC-FNO often creates energy. Limitations include late-time heat under-damping and explicit-integrator divergence on waves.

Introduction

Thermodynamic structure in neural operators. Neural operators can quickly approximate solutions to time-dependent PDEs on multiple grid resolutions [15, 17]. Here we ask what a neural operator can guarantee when it feeds its own predictions back into itself. A model can predict one frame accurately and still make a damped wave grow over many frames. GENERIC (General Equation for Non-Equilibrium Reversible–Irreversible Coupling) and its equivalent metriplectic formulation address this by putting energy conservation and entropy production into the equation that the model uses to evolve the state [8, 30, 14, 24]. That is, it naturally provides a way to enforce thermodynamic laws by construction within heat conduction, damped waves, viscous fluids, and kinetic equations ([28]). For a state zz with energy E[z]E[z] and entropy S[z]S[z],

∂tz=LδEδz+MδSδz,LδSδz=0,MδEδz=0(1)\partial_t z = L\frac{\delta E}{\delta z} + M\frac{\delta S}{\delta z}, \qquad L\frac{\delta S}{\delta z}=0, \qquad M\frac{\delta E}{\delta z}=0 \tag*{(1)}

where LL is a skew-adjoint Poisson operator, so it satisfies the Jacobi identity, and MM is symmetric positive semi-definite. The two degeneracy conditions give

E˙=0,S˙=⟨δSδz,MδSδz⟩≥0(2)\dot{E}=0, \qquad\dot{S}=\left\langle\frac{\delta S}{\delta z},M\frac{\delta S}{\delta z}\right\rangle\geq0 \tag*{(2)}

so the reversible part obeys the first law and the irreversible part obeys the second law.

There are three reasons to learn in GENERIC form. First, the skew-adjointness of LL, the positive semidefiniteness of MM and both degeneracy conditions hold for all parameter values, so that the first and second laws hold before and after training and for every input. No loss term or penalty weight is required, and the guarantees are the same out of distribution. Second, the formulation separates the physics, such as the energy balance laws and the reversible operator, from the system-dependent functions that must be learned, such as the internal energy, the potential and the friction coefficients. Third, the model can be interpreted physically: its operator symbols and dissipation rate can be compared directly with their exact counterparts. Finite-dimensional metriplectic networks apply this structure to learned dynamical systems ([11, 16, 9, 10] (Zhang et al. 2022)). GENERIC-FNO extends it to neural operators, with EE and SS learned neural functionals and LL and MM Fourier multipliers ((Sulskis & Ravi, 2026)). However, it enforces the degeneracy condition by projection, L=(I−PS)DL(I−PS)L=(I-P_S)D_L(I-P_S). This guarantees L δS/δz=0L\,\delta S/\delta z=0, but the projected operator depends on the state and in general violates the Jacobi identity: the residuals in Table 5 range from 10−310^{-3} to 1. Moreover, a model that conserves some learned energy need not conserve the physical energy. On the wave equation, GENERIC-FNO’s physical energy reaches 34×34\times the solver’s (Table 7).

1D heat2D Burgers1D wave2D wave
LrnPhysLrnPhysLrnPhysLrnPhys
⟨v,Lv⟩\langle v,Lv\rangle (skewness)≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}
⟨w,Mv⟩−⟨v,Mw⟩\langle w,Mv\rangle-\langle v,Mw\rangle (symmetry)2⋅10−162\cdot10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}1⋅10−161\cdot10^{-16}1⋅10−161\cdot10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}
∥L δS/δz∥/∥δS/δz∥\lVert L\,\delta S/\delta z\rVert/\lVert\delta S/\delta z\rVert4⋅10−184\cdot10^{-18}008⋅10−188\cdot10^{-18}002⋅10−182\cdot10^{-18}008⋅10−198\cdot10^{-19}00
∥M δE/δz∥/∥δE/δz∥\lVert M\,\delta E/\delta z\rVert/\lVert\delta E/\delta z\rVert003⋅10−183\cdot10^{-18}002⋅10−182\cdot10^{-18}001⋅10−191\cdot10^{-19}004⋅10−204\cdot10^{-20}
∣(M δS/δz)u∣/∥M δS/δz∥\lvert(M\,\delta S/\delta z)_u\rvert/\lVert M\,\delta S/\delta z\rVert (mass, MM)3.63.6≤10−16\le10^{-16}14142⋅10−162\cdot10^{-16}––––
∣(L δE/δz)u∣/∥L δE/δz∥\lvert(L\,\delta E/\delta z)_u\rvert/\lVert L\,\delta E/\delta z\rVert (mass, pencil, data band)–≤10−16\le10^{-16}–8⋅10−168\cdot10^{-16}––––
⟨δE/δz,∂tz⟩\langle\delta E/\delta z,\partial_tz\rangle (E˙\dot{E})1⋅10−161\cdot10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−16\le10^{-16}≤10−17\le10^{-17}≤10−16\le10^{-16}≤10−17\le10^{-17}
min⁡⟨δS/δz,∂tz⟩\min\langle\delta S/\delta z,\partial_tz\rangle (S˙\dot{S})0.580.580.0140.0140.680.680.0600.0600.340.340.310.310.780.780.00270.0027
J\mathcal{J}, our LL, white-noise state7⋅10−167\cdot10^{-16}1⋅10−161\cdot10^{-16}1⋅10−161\cdot10^{-16}3⋅10−163\cdot10^{-16}3⋅10−163\cdot10^{-16}4⋅10−164\cdot10^{-16}2⋅10−162\cdot10^{-16}2⋅10−162\cdot10^{-16}
J\mathcal{J}, Lie–Poisson (λ=0.3\lambda=0.3), white-noise–0.780.78–0.170.17––––
J\mathcal{J}, Lie–Poisson (λ=0.3\lambda=0.3), band-limited–3⋅10−163\cdot10^{-16}–4⋅10−164\cdot10^{-16}––––
J\mathcal{J}, projected LL of GENERIC-FNO1.01.00.380.385.0⋅10−25.0\cdot10^{-2}4.8⋅10−24.8\cdot10^{-2}1.4⋅10−21.4\cdot10^{-2}2.5⋅10−22.5\cdot10^{-2}7.6⋅10−47.6\cdot10^{-4}1.9⋅10−31.9\cdot10^{-3}
∣E1−E0∣/∣E0∣\lvert E_1-E_0\rvert/\lvert E_0\rvert, discrete-gradient step1⋅10−161\cdot10^{-16}1⋅10−111\cdot10^{-11}2⋅10−162\cdot10^{-16}8⋅10−118\cdot10^{-11}3⋅10−163\cdot10^{-16}2⋅10−142\cdot10^{-14}1⋅10−161\cdot10^{-16}5⋅10−135\cdot10^{-13}
∣E1−E0∣/∣E0∣\lvert E_1-E_0\rvert/\lvert E_0\rvert, explicit step2⋅10−112\cdot10^{-11}5⋅10−25\cdot10^{-2}7⋅10−117\cdot10^{-11}5⋅10−25\cdot10^{-2}2⋅10−112\cdot10^{-11}5⋅10−45\cdot10^{-4}8⋅10−128\cdot10^{-12}3⋅10−33\cdot10^{-3}

Table 5. Structural identities at random initialization, double precision, 16d16^d grid, maximum over a batch; Lrn is the learned-EE, SS ablation, Phys is PG-phys. J\mathcal{J} is the normalized Jacobi residual of § 3.5; “white-noise” and “band-limited” refer to the test states and functionals. The Lie–Poisson rows are empty for the wave, whose operator has no pencil; the learned-EE, SS ablation has no conservation mask, so its MM does not conserve ∫u\int u (mass row); the projected-LL row uses a free learned entropy in both columns, since with a Casimir entropy the projection is trivial. Discrete-gradient entries are at the tolerance of the fixed-point solve, not the floating-point floor. Entries at or below the double-precision floor are written ≤10−16\le10^{-16}.

in distribution25% dataamplitude ×2band ∣k∣≤12|k| \le12
failϵ\epsilonQ/Q⋆Q/Q^\starn↑n_{\uparrow}ϵ10\epsilon_{10}failϵ\epsilonQ/Q⋆Q/Q^\starn↑n_{\uparrow}failϵ\epsilonQ/Q⋆Q/Q^\starn↑n_{\uparrow}
heatBaseline> 1000.0151.0000.0076> 1000.0211.000> 1000.1071.010
heatMatched> 1000.00051.000–> 1000.00291.000> 1000.0891.010
heatGENERIC-FNO93–3.440–77–3.79094–3.460
heatPG-phys> 1000.8192.1900.03451–1.701> 1000.7142.080
advectionBaseline> 1000.0451.0000.012> 1000.3520.790> 1000.1050.980
advectionMatched> 1000.0121.000–> 1000.7800.740> 1000.0940.990
advectionGENERIC-FNO15–3.4499–8–1.306314–3.4999
advectionPG-phys> 1000.0310.9900.0085> 1000.2281.000> 1000.0350.990
BurgersBaseline> 1000.7452.5300.171> 1000.6342.250> 1000.7542.550
BurgersMatched> 1000.0901.040–> 1000.2061.020> 1000.1131.050
BurgersGENERIC-FNO17–8.087–6–97020–7.0014
BurgersPG-phys> 1000.1961.0900.083> 1000.4261.030> 1000.1951.090
waveBaseline> 1000.3010.8900.402> 1000.3110.760> 1000.4071.060
waveMatched> 1000.0171.000–> 1000.0461.000> 1000.2930.820
waveGENERIC-FNO7–34.387–7–25.4758–32.271
wavePG-phys39–10330.0448–1.18133–10.24

Table 7. Hundred-frame rollouts (1D, FNO backbone, seed 0; PG-phys is the seed-0 model of Table 9) in distribution, on inputs with twice the training amplitude, and on inputs with band ∣k∣≤12|k| \le12 (training: ≤8\le8); PG-phys uses 16 sub-steps off distribution (8 in distribution, as trained). For each: fail, the first frame at which the rollout error exceeds one (> 100 if never); ϵ\epsilon, the error at frame 100; Q/Q⋆Q/Q^\star, the physical energy relative to the solver’s at frame 100 (at the last finite frame if the rollout fails); n↑n_{\uparrow}, the number of frames on which QQ rises by more than 0.1% (the solver: 0 on every equation). 25% data: ten-frame error when retrained on a quarter of the trajectories (full data: Table 3).

The gap and how we address it. We augment the state with a latent entropy density ss, set S=∫sS=\int s, and let the reversible operator act only on the observed field. Entropy is then a Casimir functional of LL, that is, its variational derivative lies in the null space of LL at every state. Hence, L δS/δz=0L\,\delta S/\delta z=0 holds by the parameterization and does not need to be learned through a loss penalty, and the reversible dynamics cannot change the entropy, and so no projection is needed. For the linear equations LL is a constant Fourier multiplier, while for the nonlinear transport it is the compatible Poisson pencil αD+λ(uD+Du)\alpha D+\lambda(uD+Du), from an infinite family of related nonlinear evolution equations generated from the Korteweg–de Vries (KdV) equation ([20]). The model splits its energy into two parts: the physical mechanical energy (such as kinetic, elastic, or potential energy) plus learned pointwise constitutive terms that represent local material properties or relationships that are not known in advance. The dissipation operator uses the Onsager factorization M=AATM=AA^{\mathsf{T}}, which cannot decrease entropy since it guarantees that MM is symmetric positive semi-definite.

Our contributions.

  1. We construct a metriplectic neural operator on function space with a Poisson operator LL, a latent entropy density whose integral is a Casimir, and an Onsager friction operator. Skewness, symmetry, positivity, degeneracy, and the discrete Jacobi identity on alias-free states hold by construction, giving the corresponding energy and entropy laws (Propositions 1–2).

  1. We prove that the parameterization contains the exact friction operators for heat conduction and the damped wave while satisfying M δE/δz=0M\,\delta E/\delta z=0 without a global projection (Proposition 8). Under a verifiable curvature condition on the learned constitutive energy, we also bound the physical mechanical energy along the continuous flow and exactly solved discrete-gradient steps (Theorem 2).

  1. We develop a discrete-gradient integrator that exactly preserves the discrete energy and entropy laws, including for the state-dependent Poisson pencil. For linear reversible dynamics, we give an exact unitary integrator with no numerical growth or decay (Theorem 3, § 3.3).

  1. We test the method on four equations in one and two dimensions with three neural-operator backbones. We compare against GENERIC-FNO and compute-matched unconstrained

baselines on long-horizon, data-efficiency, and out-of-distribution tests, and report dissipation and ablation studies (§ 4).

Related Work

Architectures for operator learning include Fourier neural operators (FNOs) (Li et al., [17]), Deep-ONets (Lu et al., 2021), wavelet and Laplace operators (Tripura & Chakraborty, 2023; Cao et al., [2]), alias-free convolutional operators (Raonic et al., [31]) and transformers for irregular geometries (Wu et al., 2024; Luo et al., [19]; Alkin et al., [1]). None of them constrains conservation or dissipation. Following Sulskis & Ravi (2026) we use FNO, Transolver and CNO-style backbones, to separate the effect of the architecture from that of the thermodynamic structure; the backbone encodes the latent entropy and parameterizes the friction coefficients, and as a residual map it is also the unconstrained baseline. In finite dimensions such structure has been built into Hamiltonian and Lagrangian networks, symplectic integrators and metriplectic methods (Greydanus et al., [7]; Cranmer et al., [4]; Jin et al., [12]; Hernández et al., [11]; Yu et al., 2021; Lee et al., [16]; Zhang et al., 2022; Gruber et al., [9]; Gruber et al., [10]). Metriplectic models enforce skewness of LL, positivity of MM and the degeneracy conditions, but the Jacobi identity is generally lost once LL depends on the state (Sulskis & Ravi, 2026). Poisson neural networks obtain a state-dependent bracket by pulling a constant one back through a learned symplectomorphism (Jin et al., [13]); our constant operator is the simplest instance, and §A.8 gives a function-space version. For nonlinear transport we use a compatible Poisson pencil, in which every linear combination of two Hamiltonian operators is again Poisson, as in the KdV hierarchy (Magri, [20]; Olver, [26]). To our knowledge pencils have not been used before to learn Poisson brackets.

The thermodynamic ingredients are taken from GENERIC field theory. There the entropy is a Casimir, and an internal energy or entropy density accompanies the mechanical variables (Grmela & Öttinger, [8]; Öttinger, [28]; Kaufman, [14]; Morrison, [23]; Morrison, [25]; Marsden & Ratiu, [21]); the friction operators often have the factored form CD′C⊤CD^{\prime}C^{\top}, whose state dependence enforces the energy degeneracy in line with Onsager reciprocity (Öttinger, [28]; Onsager, [27]; de Groot & Mazur, [5], Ch. 2). Our model takes over a latent entropy density, a partly physical, partly learned energy, and a friction parameterization that contains the heat and damped-wave operators exactly, with the parity of its derivative orders restricted so that it can diffuse and damp but cannot transport (both the latent entropy and this restriction are ablated in §4). In discrete time, discrete-gradient methods preserve first integrals at any step size (Gonzalez, [6]; McLachlan et al., [22]; Celledoni et al., [3]), but a metriplectic scheme must also respect the degeneracy conditions (Romero, [32]; Öttinger, [29]; Gruber et al., [10]), which is why GENERIC-FNO fell back on explicit Euler: higher-order methods broke its exact degeneracy. Here the entropy is linear, so its discrete gradient is exact and lies in the kernel of LL, and the Gonzalez method then conserves the discrete energy and produces entropy even for the state-dependent Poisson pencil (Theorem 3). The linear reversible part is treated by an exact unitary map on each Fourier mode inside a Strang splitting (Strang, [33]).

Method: Poisson-GENERIC Neural Operators

Learning problem and notation

The data. We take a time series of PDE solutions, snapshot trajectories u0,u1,…,uTu_0, u_1, \ldots, u_T on the periodic domain Ω=[0,2π)d\Omega= [0, 2\pi)^d, d∈{1,2}d \in\{1, 2\}, sampled on an NN-point grid at fixed spacing Δt\Delta t. The observed field at each time is ut:Ω→Rpu_t : \Omega\to\mathbb{R}^p, with p=1p = 1 for the scalar equations and p=2p = 2 for the damped wave, where both position and velocity are observed. Our task is to learn a one-frame map Φθ\Phi_\theta that takes one snapshot to the next, ut↦ut+1u_t \mapsto u_{t+1}, and is applied autoregressively. The unconstrained baseline, where nothing enforces structure, energy or produce entropy, is a residual map Φθ(u)=u+Gθ(u)\Phi_\theta(u) = u + G_\theta(u), with GθG_\theta being a ”black-box” network (FNO, Transolver, or CNO) predicting the increment between frames, with no physical structure imposed. Our model does not predict the increment directly, rather, it learns the operators and constitutive functions of equation (1). Specifically the Poisson and friction operators and the energy and entropy functionals. It then obtains ut+1u_{t+1} by integrating that equation numerically over one frame, the interval Δt\Delta t between two snapshots (we also call utu_t frame tt). Thus the network parameterizes the dynamics and the one-frame map, Φθ(ut)\Phi_\theta(u_t), is the time integrator applied to those dynamics. Throughout, a step is one application of an integrator, which may cover a frame or a fraction of one, and an optimizer step is one parameter update in training. The structural guarantees follow from the form of the equation and do not depend on the training data.

Notation. The spectral derivative along axis aa is ∂af=F−1[ikaf^]\partial_a f = \mathcal{F}^{-1}[i k_a \hat{f}], where kak_a is the aath component of the wavevector kk. The maximum component magnitude is ∣k∣∞=max⁡a∣ka∣\lvert k\rvert_\infty= \max_a \lvert k_a\rvert. The band ∣k∣∞≤m\lvert k\rvert_\infty\le m is an interval of modes in one dimension and a square in two. A Fourier multiplier with symbol σ(k)\sigma(k) acts as f↦F−1[σ(k)f^]f \mapsto\mathcal{F}^{-1}[\sigma(k)\hat{f}]. It acts on band mm if σ(k)=0\sigma(k)=0 for ∣k∣∞>m\lvert k\rvert_\infty> m. Let n=N1/dn=N^{1/d} be the number of grid points along each axis. The Nyquist wavenumber is n/2n/2, and the 2/3-rule de-aliasing projector PP retains modes with ∣k∣∞<n/3\lvert k\rvert_\infty< n/3. The product of two fields in the range of PP has bandwidth less than 2n/32n/3. Any unresolved mode that folds back onto the grid has at least one component with magnitude greater than n/3n/3, so applying PP to the product removes the aliased contributions. A product is fully resolved on the grid if the bandwidths of its factors sum to less than n/2n/2. A state and a set of test functionals are alias-free for the Jacobi identity when every cubic product in the identity is fully resolved. We use the normalized inner product ⟨f,g⟩=∣Ω∣−1∫Ωf⋅g dx\langle f,g\rangle= \lvert\Omega\rvert^{-1}\int_\Omega f\cdot g\,\mathrm{d}x and write ∥⋅∥\lVert\cdot\rVert for its induced norm. On the grid, the inner product sums over channels and grid points and divides by NN. The functional gradient δF/δz\delta F/\delta z is taken with respect to this inner product. On the grid, it equals NN times the Euclidean gradient returned by automatic differentiation with respect to the grid values (Appendix A.1).2

The model

Definition 1 (State). z=(u,s)∈H=L2(Ω;Rp+1)z=(u,s)\in\mathcal{H}=L^2(\Omega;\mathbb{R}^{p+1}), where uu is the observed field and s:Ω→Rs:\Omega\to\mathbb{R} is a latent entropy density. The entropy density is not observed: at the start of each rollout it is initialized by an encoder from the backbone family of the baseline, s0=ψη(u0)s_0=\psi_\eta(u_0), and afterwards it is advanced by the dynamics and receives no direct supervision.

Definition 2 (Energy and entropy). The energy is a fixed mechanical part plus two learned pointwise constitutive terms,

Eθ[z]=Q(u)+⟨1,φθ(u)⟩+⟨1,eθ(s)⟩,Q(u)={12∥u∥2,scalar fields,12(∥v∥2+c2∥∇q∥2),wave, u=(q,v),(3)E_\theta[z]=Q(u)+\langle1,\varphi_\theta(u)\rangle+\langle1,e_\theta(s)\rangle,\qquad Q(u)= \begin{cases} \frac{1}{2}\lVert u\rVert^2, & \text{scalar fields},\\ \frac{1}{2}\left(\lVert v\rVert^2+c^2\lVert\nabla q\rVert^2\right), & \text{wave},\ u=(q,v), \end{cases} \tag*{(3)}

where φθ:Rp→R\varphi_\theta:\mathbb{R}^p\to\mathbb{R} is applied to u(x)u(x) at every point and eθ:R→Re_\theta:\mathbb{R}\to\mathbb{R} to s(x)s(x). For the wave, QQ is the mechanical energy; for the scalar equations it is the quadratic that advection conserves and heat conduction and Burgers dissipate. It is fixed, not learned. The internal energy eθ(s)=T0s+∑iwisoftplus⁡(ais+bi)e_\theta(s)=T_0s+\sum_i w_i\operatorname{softplus}(a_i s+b_i) with wi,ai>0w_i,a_i>0 is convex and increasing, so the temperature T(s):=eθ′(s)T(s):=e_\theta'(s) satisfies T≥T0>0T\ge T_0>0; the floor is needed because the friction operator contains 1/T1/T. The potential is

φθ=ψθ−Π≤2ψθ,ψθ=softplus⁡(MLP⁡θ(u))≥0,(4)\varphi_\theta=\psi_\theta-\Pi_{\le2}\psi_\theta,\qquad \psi_\theta=\operatorname{softplus}\left(\operatorname{MLP}_\theta(u)\right)\ge0, \tag*{(4)}

where Π≤2\Pi_{\le2} is the orthogonal projection, in L2(γ)L^2(\gamma) for a fixed Gaussian measure γ\gamma, on the range of the training data, onto polynomials of degree at most two in the pp components of uu. The entropy is fixed, not learned: S[z]=⟨1,s⟩S[z]=\langle1,s\rangle, so that δS/δz=(0,1)\delta S/\delta z=(0,1).

Why project the potential. In ⟨1,φθ(u)⟩\langle1,\varphi_\theta(u)\rangle, a term a2∣u∣2\frac{a}{2}\lvert u\rvert^2 can be absorbed into QQ as Q+aIQ+aI. This quadratic gauge appeared in the unconstrained potential (Remark 2). When the added term rescales QQ to (1+κ)Q(1+\kappa)Q, the learned reversible operator compensates by (1+κ)−1(1+\kappa)^{-1}, leaving the exact linear step to advance that fraction of the linear flow and the explicit update to carry the rest. We fix the gauge by setting φθ=ψθ−Π≤2ψθ\varphi_\theta=\psi_\theta-\Pi_{\le2}\psi_\theta. With a Taylor projection through degree two, the potential contributes no linear term to the energy gradient about the reference state, so the exact linear step handles the full linear reversible flow there (§3.3). Since ψθ≥0\psi_\theta\ge0, we obtain the quadratic lower bound φθ≥−Π≤2ψθ\varphi_\theta\ge-\Pi_{\le2}\psi_\theta used in Theorem 2.

Definition 3 (Poisson operator). L=diag⁡(Lu,0)L=\operatorname{diag}(L_u,0) acts only on the observed field. For scalar fields,

Lu=αD+λP(uD+Du)P,D=∑α=1d∂α(5)L_u=\alpha D+\lambda P(uD+Du)P,\qquad D=\sum_{\alpha=1}^{d}\partial_\alpha \tag*{(5)}

with learned scalars α,λ\alpha,\lambda: αD\alpha D is the constant Fourier multiplier with symbol iα∑kai\alpha\sum k_a on the band 1≤∣k∣∞≤mL1\leq\lvert k\rvert_\infty\leq m_L, and uD+DuuD+Du is the Lie–Poisson operator g↦uDg+D(ug)g\mapsto uDg+D(ug). For the wave, Lu=Jdiag⁡(Dd,Dd)L_u=J\operatorname{diag}(D_d,D_d) with J=(0I−I0)J=\begin{pmatrix}0&I\\-I&0\end{pmatrix} and DdD_d a learned even multiplier d(k)≥0d(k)\geq0 on the band.

Proposition 1 (The pencil and the dynamics it generates). (i) For every (α,λ)(\alpha,\lambda), LuL_u of equation (5) is skew-adjoint, in the continuum and on the grid. (ii) In the continuum, αD+λ(uD+Du)\alpha D+\lambda(uD+Du) is Poisson for every (α,λ)(\alpha,\lambda), because DD and uD+DuuD+Du are a compatible Hamiltonian pair of the KdV hierarchy ([20, 26]); on the grid, the Jacobi identity holds exactly on alias-free states and test functionals. The wave operator is Poisson at every state. (iii) The entropy is a Casimir of LL: L δS/δz=0L\,\delta S/\delta z=0 at every state. For scalar fields, ∫u\int u is a Casimir of the constant part αD\alpha D and of the wave operator, hence of LL when λ=0\lambda=0; it is not a Casimir of uD+DuuD+Du, whose Casimir is ∫u\int\sqrt{u}. Nevertheless the reversible flow generated by EθE_\theta conserves ∫u\int u, because δEθ/δu=u+ϕθ′(u)\delta E_\theta/\delta u=u+\phi_\theta'(u) is a pointwise function of uu and (uD+Du)g(u)(uD+Du)g(u) is then a total derivative; on the grid this is exact on alias-free states. (iv) With Q=12∥u∥2Q=\frac{1}{2}\lVert u\rVert^2 the reversible vector field is

LuδEθδu=αDu+3λuDu+Luϕθ′(u),(6)L_u\frac{\delta E_\theta}{\delta u}=\alpha Du+3\lambda uDu+L_u\phi_\theta'(u), \tag*{(6)}

so linear advection ∂tu=−cDu\partial_tu=-cDu is the member (α,λ)=(−c,0)(\alpha,\lambda)=(-c,0) and inviscid Burgers ∂tu=−uDu\partial_tu=-uDu the member (0,−13)(0,-\frac{1}{3}), the frame spacing being absorbed into the symbols.

Proof. (i)–(ii) are Proposition 4. (iii): (0,1)(0,1) lies in the ss block, which LL annihilates; αD1=0\alpha D1=0 and the wave operator vanishes at k=0k=0, whereas (uD+Du)1=Du≠0(uD+Du)1=Du\ne0; for g=g(u)g=g(u) and G′(t)=tg′(t)G'(t)=tg'(t), (uD+Du)g(u)=D(G(u)+ug(u))(uD+Du)g(u)=D(G(u)+ug(u)) has zero mean, on the grid on alias-free modes. (iv): (uD+Du)u=uDu+D(u2)=3uDu(uD+Du)u=uDu+D(u^2)=3uDu.

We choose αD\alpha D for the constant part of LL to ensure compatibility with uD+DuuD+Du. Using a freely learned Fourier multiplier a(k)a(k) as in GENERIC-FNO yielded a Jacobi residual of O(10−1)O(10^{-1}) even on alias-free states (Remark 1). The projectors in Eq. (5) de-alias quadratic products. The exactness guarantee in (ii) requires that the grid resolve every cubic product in the Jacobi identity. Setting λ≡0\lambda\equiv0 gives a Poisson operator at every state. We retain this ablation to isolate the effect of the state-dependent transport term.

Definition 4 (Friction operator). Let c=p+1c=p+1 be the number of state channels and introduce r=c(d+1)r=c(d+1) slots: for each slot (i,a)(i,a), i∈pi\in p axis aa and one local slot. DM:L2(Ω;Rr)→L2(Ω;Rc)D_M:L^2(\Omega;\mathbb{R}^r)\to L^2(\Omega;\mathbb{R}^c) is the Fourier multiplier with symbols

D^M i,(j,a)(k)=−ikabjia(k)1+ka2bjia(k)2,D^M i,j(k)=bij′(k)1+bij′(k)2,(7)\widehat{D}_{M\,i,(j,a)}(k)=\frac{-ik_a b_{jia}(k)}{\sqrt{1+k_a^2b_{jia}(k)^2}},\qquad \widehat{D}_{M\,i,j}(k)=\frac{b'_{ij}(k)}{\sqrt{1+b'_{ij}(k)^2}}, \tag*{(7)}

where b,b′b,b' are learned, even, and vanish outside the band ∣k∣∞≤mΓ\lvert k\rvert_\infty\leq m_\Gamma; the saturation bounds every multiplier by one. A flux slot thus enters a channel through a divergence, a local slot through a bounded pointwise multiplier. Masks fix what is conserved: for the scalar conservation laws the uu row of DMD_M has flux columns only, so (Mv)u(M v)_u is a divergence for every vv and MM conserves ∫u\int u; for the wave no slot feeds qq, so friction acts on momentum and entropy only. The coefficient field Γϑ(z):Ω→Rr×r\Gamma_\vartheta(z):\Omega\to\mathbb{R}^{r\times r} is a pointwise matrix whose flux–flux and local–local blocks are the identity plus bounded functions of z(x)z(x) and whose mixed blocks are linear in the state gradients,

Γ(i,a),j(x)=∑l,bh(i,a),j,(l,b)(z(x)) ∂bzl(x),(8)\Gamma_{(i,a),j}(x)=\sum_{l,b}h_{(i,a),j,(l,b)}(z(x))\,\partial_b z_l(x), \tag*{(8)}

and likewise for the local–flux blocks; all coefficient functions come from one bounded, zero-initialized pointwise network, so Γϑ=I\Gamma_\vartheta=I at initialization and ∥Γϑ−I∥≤1\lVert\Gamma_\vartheta-I\rVert\leq1 throughout. Let w(x)=(DMHδEθ/δz)(x)∈Rrw(x)=(D_M^{\mathsf H}\delta E_\theta/\delta z)(x)\in\mathbb{R}^r be the energy gradient in slot space and P(x)=I−w^w^TP(x)=I-\widehat w\widehat w^{\mathsf T}, w^=w/∣w∣\widehat w=w/\lvert w\rvert. The friction operator is

M(z)=AAT,A=DMPΓϑ(z).(9)M(z)=AA^{\mathsf T},\qquad A=D_M P\Gamma_\vartheta(z). \tag*{(9)}

Algorithm 1 One frame of the Poisson-GENERIC operator, zt+1=Φθ(zt)z_{t+1}=\Phi_\theta(z_t)

Require: state z=(u,s)z=(u,s), frame spacing Δt\Delta t, number of sub-steps nsubn_{\mathrm{sub}}

  1. u←UΔt/2(u)u \leftarrow U_{\Delta t/2}(u) ▷ exact linear reversible half-step

  2. for j=1,…,nsubj=1,\ldots,n_{\mathrm{sub}} do

  3. gE←δEθ/δzg_E \leftarrow\delta E_\theta/\delta z at zz; gS←(0,1)g_S \leftarrow(0,1)

  4. r←LgE−LconstδQ/δur \leftarrow Lg_E-L^{\mathrm{const}}\delta Q/\delta u ▷ Lie–Poisson term and potential; the linear part is in U\mathcal{U}

  5. form Γϑ(z)\Gamma_\vartheta(z) and PP from w=DMHgEw=D_M^H g_E

  6. r←r+DMPΓϑΓϑTPDMHgSr \leftarrow r+D_M P\Gamma_\vartheta\Gamma_\vartheta^{\mathsf{T}}P D_M^H g_S ▷ friction M(z) δS/δzM(z)\,\delta S/\delta z

  7. z←z+(Δt/nsub) rz \leftarrow z+(\Delta t/n_{\mathrm{sub}})\,r

  8. end for

  9. u←UΔt/2(u)u \leftarrow U_{\Delta t/2}(u)

  10. return zz

Why this form. The definition follows the friction operators of physics. For heat conduction in the variables of Definition 2, M=CCTM=CC^{\mathsf{T}} with CT(f,g)=ν(T ∇f−g ∇u/T)C^{\mathsf{T}}(f,g)=\sqrt{\nu}\left(\sqrt{T}\,\nabla f-g\,\nabla u/\sqrt{T}\right): a derivative on the input side of uu, a divergence on the output side, and a pointwise matrix in between. Applied to (0,1)(0,1) it gives νΔu\nu\Delta u on uu and ν∣∇u∣2/T\nu|\nabla u|^2/T on ss, and M δE/δz=0M\,\delta E/\delta z=0 holds because the rows of CTC^{\mathsf{T}} are orthogonal to (∇u,T)(\nabla u,T) at every point, so degeneracy is local. Equations 7–9 contain this operator and its damped-wave analogue exactly (Proposition 8). Equation 8 is linear in ∇z\nabla z for a reason: the derivative orders in MM are then even, and MM cannot carry transport. Without this restriction the learned advection symbol converged to half its value, and MM supplied the rest (Appendix § 6.§ 4).

Proposition 2 (Structure for arbitrary parameters). For any parameters (θ,η,ϑ,α,λ,d,b,b′)(\theta,\eta,\vartheta,\alpha,\lambda,d,b,b') and any state, LL is skew-adjoint and Poisson (at every state if λ=0\lambda=0, on alias-free states otherwise); M(z)M(z) is self-adjoint and positive semi-definite; and L δS/δz=0L\,\delta S/\delta z=0 and M(z) δEθ/δz=0M(z)\,\delta E_\theta/\delta z=0, the latter pointwise. Consequently, solutions of ∂tz=L δEθ/δz+M(z) δS/δz\partial_tz=L\,\delta E_\theta/\delta z+M(z)\,\delta S/\delta z satisfy

dEθdt=0,dSdt=∥ATδSδz∥2≥0.(10)\frac{\mathrm{d}E_\theta}{\mathrm{d}t}=0,\qquad\frac{\mathrm{d}S}{\mathrm{d}t}=\left\lVert A^{\mathsf{T}}\frac{\delta S}{\delta z}\right\rVert^2\ge0. \tag*{(10)}

Proof. Propositions 4–6 and Theorem 1; ATδEθ/δz=ΓϑTPw=0A^{\mathsf{T}}\delta E_\theta/\delta z=\Gamma_\vartheta^{\mathsf{T}}Pw=0 by the definition of PP.

Learned: ψη\psi_\eta, φθ\varphi_\theta, eθe_\theta, the coefficient network of Γϑ\Gamma_\vartheta, and the symbols α\alpha, λ\lambda (or dd), bb, b′b'. Fixed: the entropy, QQ, the forms of LL and MM, the masks and the integrator. The identities of Proposition 2 hold before training and for every parameter value.

One frame: integrating the dynamics

In components, ∂tu=Lu(u+φθ′(u))+[M(0,1)]u\partial_tu=L_u(u+\varphi'_ \theta(u))+[M(0,1)]_u and ∂ts=[M(0,1)]s\partial_ts=[M(0,1)]_s. The reversible flow acts only on uu, and ss evolves dissipatively. Each frame (Algorithm 1) uses two exact unitary half-steps of the linear reversible flow around nsub=8n_{\mathrm{sub}}=8 explicit sub-steps for the Lie–Poisson, potential, and friction terms. On each Fourier mode, UτU_\tau multiplies scalar fields by eiαkDτe^{i\alpha k_D\tau}, where kD=∑akak_D=\sum_a k_a, and rotates wave modes at frequency d(k)c∣k∣d(k)c|k|. The unitary map preserves the quadratic energy associated with QQ to machine precision. The first-order remainder update yields an O(Δt2)O(\Delta t^2) error in EθE_\theta per frame. Outside training, we use an implicit discrete-gradient step as the energy-error reference. It conserves EθE_\theta and satisfies the discrete entropy-production law exactly (Theorem 3, Appendix § 6.§ 5).

Training objective

Every model, the baselines included, is trained to minimize the relative L2L^2 error of the observed field over a short rollout from a random start,

L(θ)=Eτ01H∑h=1H∥(Φθh(zτ0τ0))u−uτ0+h∥∥uτ0+h∥,zτ0τ0=(uτ0τ0,ψη(uτ0τ0)).(11)\mathcal{L}(\theta)=\mathbb{E}_{\tau_0}\frac{1}{H}\sum_{h=1}^{H}\frac{\left\lVert\left(\Phi_\theta^h(z_{\tau_0}^{\tau_0})\right)_u-u_{\tau_0+h}\right\rVert}{\left\lVert u_{\tau_0+h}\right\rVert},\qquad z_{\tau_0}^{\tau_0}=\left(u_{\tau_0}^{\tau_0},\psi_\eta(u_{\tau_0}^{\tau_0})\right). \tag*{(11)}

with H=4H=4 frames in 1D and 3 in 2D, where Φθh\Phi_\theta^h denotes hh applications of Algorithm 1 and (⋅)u(\cdot)_u the observed channels. EθE_\theta, SS, LL and MM do not appear in the loss; the structure is in the parameterization alone. The gradient is taken through the whole rollout, integrator included. The optimizer, schedule, batch size and number of optimizer steps are the same for all models (Appendix B). The one exception is the operator symbols, which are trained with a larger learning rate.

Diagnostics

The guarantees concern EθE_\theta and SS and do not say whether the learned dynamics reproduce the governing equation. To test this we use quantities that refer only to the fixed QQ and to the operators. With uu one frame and u′u' the next, these are:

  • (a) the dissipation rate Π=(Q(u)−Q(u′))/Q(u)\Pi= (Q(u)-Q(u'))/Q(u) along the data (Π⋆\Pi^\star) and along the model (Πmodel\Pi_{\mathrm{model}}), calibrated if Πmodel/Π⋆=1\Pi_{\mathrm{model}}/\Pi^\star= 1;

  • (b) the reversibility cosine rmech=−⟨∇Q(uˉ),u′−u⟩/(∥∇Q(uˉ)∥∥u′−u∥)r_{\mathrm{mech}} = -\langle\nabla Q(\bar{u}),u'-u\rangle/(\lVert\nabla Q(\bar{u})\rVert\lVert u'-u\rVert) at the midpoint uˉ\bar{u}, zero when QQ is conserved over the frame;

  • (c) the normalized Jacobi residual J\mathcal{J} of {F,G}=⟨δF/δz,L δG/δz⟩\{F,G\} = \langle\delta F/\delta z,L\,\delta G/\delta z\rangle on random smooth test functionals;

  • (d) representability, inserting the closed-form heat and wave friction operators into equation (9);

  • (e) the learned symbols against their exact values α=−cΔt\alpha=-c\Delta t, d≡Δtd\equiv\Delta t and λ=−Δt/3\lambda=-\Delta t/3 from Proposition 1(iv) (Appendix A.6).

Diagnostic (e) revealed two errors that rollout accuracy had hidden, the gradient scaling of §3.1 and the transport split of §3.2, and we therefore report the learned symbols with the results.

Experiments

Setup. We use the four periodic equations of Sulskis & Ravi (2026) in 1D and 2D: heat (ν=0.05\nu=0.05), advection (c=1c=1), viscous Burgers (ν=0.02\nu=0.02) and the damped wave (c=1c=1, γ=0.3\gamma=0.3), the last observed as (q,v)(q,v). Initial conditions are random fields on the data band, ∣k∣∞≤8\lvert k\rvert_\infty\le8 in 1D and ∣k∣∞≤6\lvert k\rvert_\infty\le6 in 2D. Reference solutions come from a de-aliased spectral solver, with frames Δt=0.1\Delta t=0.1 apart on grids of 64 and 32232^2 points. There are 120 trajectories of 20 frames in 1D and 80 of 15 frames in 2D, split 80/20 (Appendix B). Persistence, ut+1=utu_{t+1}=u_t, has an error of 0.18–1.03. FNO (Li et al. [17]), Transolver (Wu et al. (2024)) and a periodic CNO-style operator are used both as the baseline u+G(u)u+G(u) and as the backbone of the structured models. We compare five models: the baseline; GENERIC-FNO (Sulskis & Ravi (2026)), ported from its code and trained under our protocol and under its original recipe; the learned-EE, SS ablation, with a Casimir entropy, a constant LL and a learned energy (Appendix A.7); PG-phys with λ≡0\lambda\equiv0, which has the physical energy and exact Jacobi but no nonlinear transport; and PG-phys. The compute-matched baseline is an FNO trained for the wall-clock time PG-phys used on the same task. Errors are for ten-frame rollouts on held-out trajectories, as mean absolute deviation over three seeds. A seed-level comparison pairs two models trained on the same data and seed.

The identities hold before training. The identities of Proposition 2 are claimed for arbitrary parameters, so we check them at random initialization, in double precision (Table 1; full results in Table 5). Skewness, symmetry, the two degeneracy conditions, E˙θ=0\dot{E}_\theta=0 and the conservation of ∫u\int u by MM hold to rounding error for every equation. After training, the mass of PG-phys drifts by at most 10−410^{-4} along a rollout, against 10−310^{-3}–2×10−22\times10^{-2} for the baselines and 6×10−26\times10^{-2} for the learned-EE, SS ablation. However, the Jacobi identity needs more care. The residual of the constant LL is 10−1610^{-16} on every state. That of the pencil is as small on alias-free states but 0.17–0.78 on white noise, the aliasing of Proposition 1(ii), and that of GENERIC-FNO’s projected operator is 10−310^{-3}–1 (Table 5). On the states the experiments visit (Table 8), the pencil is Poisson on the resolved band only. Against data-band functionals the 1D residual starts at the single-precision floor and reaches 7×10−37\times10^{-3} once Burgers has steepened; against full-grid functionals it is 10−210^{-2}–0.9 in 1D and 0.05–0.3 in 2D, where the band is not cubically resolved. Finally, the discrete-gradient step conserves EθE_\theta to solver tolerance and the split step to O(Δt2)O(\Delta t^2), and the closed-form heat and wave friction operators are reproduced to 33–7×10−167\times10^{-16} with M δE/δz≤10−17M\,\delta E/\delta z\le10^{-17}, without a global projection.

Accuracy. On advection and the wave (Table 2) PG-phys applies the closed-form reversible flow, whereas the baseline has to learn the phase shift, and the error of PG-phys is lower by 3.6–58×\times on advection and 1.3–9.1×\times on the wave. The learned symbols agree with the exact ones: −cΔt-c\Delta t to three decimals in all nine 1D advection runs, and d(k)=0.100d(k)=0.100–0.1020.102 against Δt=0.1\Delta t=0.1 in the eight 1D wave runs that trained. The pencil was introduced for Burgers. With it the error is 2.0–5.5×\times below the baseline and λ=−0.0332±0.0003\lambda=-0.0332\pm0.0003, against the exact −Δt/3=−0.0333-\Delta t/3=-0.0333. Without it (λ≡0\lambda\equiv0) the model is worse than the baseline in every Burgers cell, and three of its eighteen Burgers runs diverged. Heat is the hard case. PG-phys must build diffusion from a product of saturated symbols and a coefficient field, where the baseline fits e−νk2Δte^{-\nu k^2\Delta t} with one multiplier. It wins three heat cells and loses three. The exact operator is in the model class (Proposition 8), so we attribute the losses to the optimization; the λ≡0\lambda\equiv0 model, with less to learn, is indeed better in all six heat cells. In total PG-phys is ahead of its baseline in 21 of 24 cells and 63 of 72 seed-level comparisons. The Transolver rows compare equal budgets only, since that baseline has not converged (Appendix § 7).

Table 3 shows where the gains come from. A Casimir entropy with a learned energy improves on GENERIC-FNO for heat and advection, but not for Burgers or the wave. The physical energy and the exact linear step then improve advection and the wave, and the pencil improves Burgers. PG-phys is better than GENERIC-FNO by 5–500×\times, and by 5–900×\times in GENERIC-FNO’s metric on its own testbed (Table 4). All of this holds at equal optimizer steps and not at equal wall-clock time. The compute-matched FNO takes 36–47×\times as many steps and is more accurate at ten frames on all four 1D equations, so the structure is paid for in training time (Appendix § 9.8).

BaselineBaseline (matched)GENERIC-FNOGENERIC-FNO (own recipe)Learned EE, SSPG-phys (λ≡0\lambda\equiv0)PG-phys
1D heat0.0012(2)0.0002(0)0.089(8)0.111(47)0.0096(67)0.0055(7)0.0161(53)
1D advection0.0040(6)0.0008(1)0.534(120)0.666(54)0.0191(66)0.0001(1)0.0011(5)
1D Burgers0.090(10)0.030(2)0.556(49)0.574(41)0.419(68)0.338(18)0.033(8)
1D wave0.036(12)0.0026(3)0.891(38)0.948(43)0.813(645)0.028(9)0.028(9)
2D heat0.038(2)–0.183(7)0.170(5)0.146(63)0.025(4)0.039(11)
2D advection0.074(7)–0.923(51)0.844(26)0.506(102)0.0001(1)0.0022(12)
2D Burgers0.275(7)–0.690(38)0.701(17)0.568(17)0.308(3)†0.089(24)
2D wave0.305(25)–1.02(1)1.03(1)0.922(156)0.035(2)0.035(2)

Table 3. FNO model ladder: ten-frame rollout error, with three-seed standard deviation in units of the last digit. Each column adds one design choice. “Matched” trains the baseline for the PG-phys wall-clock (36–47× more optimizer steps in 1D). GENERIC-FNO (Sulskis & Ravi, 2026) was ported from its code; shared weights reproduce its forward pass to 10−810^{-8}. †: one seed diverged. Training details: Appendix § 7.

PersistenceBaseline (FNO)GENERIC-FNOPG-phys (λ≡0\lambda\equiv0)PG-phys
heat0.053 / 0.0580.0056 / 0.00860.204 / 0.0680.037 / 0.0180.044 / 0.056
advection0.189 / 0.1980.0009 / 0.00120.355 / 0.2070.0003 / 0.00080.0004 / 0.0011
Burgers0.018 / 0.0340.0011 / 0.00290.033 / 0.0320.0020 / 0.0150.0026 / 0.021
Q10/Q10⋆Q_{10}/Q_{10}^{\star}, heat–1.002.660.960.90
Q10/Q10⋆Q_{10}/Q_{10}^{\star}, advection–1.001.821.001.00
Q10/Q10⋆Q_{10}/Q_{10}^{\star}, Burgers–1.001.031.001.00

Table 4. On GENERIC-FNO’s own testbed (its generators, Δt\Delta t, 200-sample protocol; one seed, 64 points). Each entry is GENERIC-FNO’s metric / batch-level relative L2L^2, both averaged over a ten-frame rollout. GENERIC-FNO uses its own recipe; the other models this paper’s protocol. Published GENERIC-FNO (its metric, three seeds): heat 0.095, advection 0.233, Burgers 0.046.

Energy and entropy over one hundred frames. By Proposition 2, QQ can only be transferred to ∫eθ(s)\int e_\theta(s), irreversibly and at a learned rate, and it is conserved when there is no dissipation. We test this with four 1D FNO models (seed 0) on inputs from the training distribution, with twice the training amplitude, and with the wider band ∣k∣≤12\lvert k\rvert\le12 (Figure 1; Table 7 in Appendix D). PG-phys never raises QQ by more than 0.1% on Burgers and advection for all three input sets, or on heat as long as the explicit integrator is stable. On advection it keeps the energy within 0.5% for 100 frames in and out of distribution, whereas at twice the amplitude the unconstrained FNO loses 21% of it and the compute-matched FNO 26%; extra training helps the FNO only in distribution. On Burgers the FNO at equal optimizer steps dissipates 2.5×\times too slowly. PG-phys also reproduces the dissipation rate (Table 6): it recovers 0.90–1.03 of the true heat and Burgers dissipation in eleven of twelve cells and 0.76–0.94 on the wave, with ∣Πmodel∣≤7×10−4\lvert\Pi_{\mathrm{model}}\rvert\le7\times10^{-4} on advection. It is not enough for some energy and entropy to satisfy the identities. GENERIC-FNO satisfies degeneracy for its learned EE and SS, yet its physical energy increases on 63–99 of 100 frames on advection and 71–87 on the wave, up to 3.5×3.5\times and 34×34\times the solver’s, and it fails by frames 6–20 on three equations. In the learned-EE, SS ablation the identities hold to 10−810^{-8}, but the wave energy grows twelvefold in ten frames. This is why we combine the Casimir entropy with the physical energy.

Figure 1. Physical energy Qt/Q0Q_t/Q_0 over 100-frame rollouts (1D, FNO, seed 0, 24 held-out trajectories). The explicit PG-phys wave step diverges at frame 39; the discrete-gradient step remains bounded but over-damps the wave (Appendix § 9.6).

However, a model that obeys the two laws need not be accurate. In distribution the compute-matched FNO has the lower error at 100 frames on all four equations. Out of distribution PG-phys is better on advection and worse on the other three. With a quarter of the training data it degrades less on advection, Burgers and the wave, by factors of 1.4–9, and more on heat. PG-phys fails in two ways (Appendix § 9.8). First, the heat energy decreases monotonically but too slowly: at frame 100 it is 2.2× the solver’s. The coefficient field is fitted on a short window in which the fast modes dominate, and it under-damps the slow modes that remain later. Second, with the explicit split step the wave rollout diverges for two of the three seeds, at frames 39 and 29, as do the heat and wave rollouts at twice the amplitude, and more sub-steps do not cure this. Solving the discrete-gradient step by Newton–Krylov does: all in-distribution wave rollouts of the three seeds reach frame 100 without any increase of QQ, at 20× the cost (Appendix § 9.6).

Ablations, cost, and scope. Two ablations each remove one component of the model, the physical energy or the pencil. Without the physical energy (learned-EE, SS) the identities still hold but no longer refer to the physics, and the model wins only 2 of 48 seed-level comparisons on the FNO and CNO cells. Without the pencil (λ≡0\lambda\equiv0) the Jacobi identity holds exactly at every state and the linear equations are solved better, to 10−410^{-4} on advection and in all six heat cells, but without nonlinear transport every Burgers cell is lost and three Burgers runs diverge. and the linear equations are solved better, to 10−410^{-4} on advection and in all six heat cells, but without nonlinear transport every Burgers cell is lost and three Burgers runs diverge. The pencil thus gives up some linear accuracy, and the Jacobi identity on aliased modes, in exchange for Burgers. PG-phys transfers from 64 to 128 and 256 points without retraining and has 0.3–0.8× the parameters of the FNO and CNO baselines (Appendix § 9). Training is 24–46× slower, because the coefficient field is re-evaluated and differentiated through in each of the eight sub-steps. The guarantees concern the model’s own functionals and, for the pencil, alias-free states; agreement with the target equation is an empirical question (Appendix § 9.8).

Conclusion

GENERIC-FNO enforced degeneracy by projection, which broke the Jacobi identity. Here we add an entropy density to the state and let the Poisson operator act only on the observed field, so that the entropy is a Casimir, and a factored friction operator enforces the second degeneracy condition pointwise. With the physical energy and learned constitutive functions, the model conserves total energy and has nonnegative entropy production for every parameter choice; the Jacobi identity holds on alias-free states, and the discrete-gradient integrator preserves both laws at each step. The aim was a thermodynamically consistent neural operator that preserves the physics, and higher accuracy than standard operators was not the goal. At equal optimizer steps the model outperformed unconstrained operators in 63 of 72 seed-level comparisons, but at equal wall-clock time the unconstrained FNO was more accurate. Across stable 100-frame rollouts, in and out of distribution, the physical energy never increased and stayed constant when dissipation vanished, whereas the unconstrained operator lost energy on a conservative test out of distribution, and the variant with learned energy and entropy gained physical energy despite satisfying the same identities. Two limits remain: on the heat equation the model dissipated energy too slowly beyond the training window, and on the wave equation the explicit integrator diverged, where the implicit one remained stable at twenty times the cost.

Broader Impact

The model conserves its own energy and produces its own entropy in continuous time; in discrete time this is exact only with the discrete-gradient step, which we solve by Newton–Krylov at 4–24×\times the cost of the split step per frame. We wish to stress that these are properties of the parameterization and that they certify nothing about the physics. A model of this form applied to a forced, open or otherwise non-conservative system, which is outside the scope of GENERIC, would still report residuals at machine precision. An example can be found in this paper: the learned-energy ablation conserves its energy to 10−810^{-8} while the physical energy of the wave grows twelve-fold within ten frames. Exact structure should therefore never be taken as validation, particularly in safety-critical simulation. The relevant check is the calibration against the true dissipation, and it presupposes a target system that belongs to the class. What we hope the method provides is a surrogate whose energy balance remains physical far from the training data. It does not provide more accuracy per unit of compute, since training costs 12–46×\times that of an unconstrained operator, depending on the backbone, and at equal wall-clock time the unconstrained operator is the more accurate one over ten frames. The limits reported above hold for any use of the model: the dissipation rate is miscalibrated beyond the training window, and the explicit integrator can diverge where the implicit one does not.

AI Use Statement

In this work, we used generative AI tools to assist with verifying mathematical proofs and derivations, identifying and reviewing relevant literature, cross-checking citations, and comparing technical claims and research ideas against the existing literature. Generative AI was also used to refine and condense portions of the manuscript, particularly to improve clarity and meet the nine-page limit without changing the intended technical content.

We additionally used Claude Code to assist with implementing the Python experimental framework from author-specified mathematical formulations, architectural designs, algorithms, and experimental requirements. AI-generated and AI-assisted code was reviewed, tested, and validated against the intended formulations and expected numerical behavior. AI-assisted literature and citation suggestions were independently checked against the original sources, and AI-assisted mathematical reasoning was reviewed for correctness. The authors determined the research questions, methodology, model architecture, experimental design, initial selection code, proof sketches, the interpretation of the results, and the scope/limitations and conclusions.

We have reviewed all AI-assisted work and take responsibility for the final content of this work, including text, claims, code, and other artifacts produced with the aid of generative AI.

Reproducibility Statement

Every number in Table 1 and Table 2 outside the Transolver rows is read from one fresh run of a single self-contained notebook (PyTorch only) that generates the data, trains all four models on every cell for three seeds, evaluates the structural identities in double precision, runs the representability, super-resolution and integrator checks, and writes a single review file from which the tables were built. The GENERIC-FNO port, the compute-matched baselines, the Jacobi residuals on data states (Table 3 and Table 8) and the run on GENERIC-FNO’s testbed (Table 4) come from a second and a third notebook built on the same code. A fourth notebook produces the integrator study on seed 0 (Figure 2), and a fifth the Transolver rows of Table 2, the long-horizon, data-efficiency and off-distribution tests of Table 7 with Figure 1, the three-seed integrator study of Table 9 and its extension to the other backbones and to two dimensions; both save every model they train. Three short notebooks read the learned symbols from the saved models, train the Burgers models needed to report λ\lambda over all eighteen runs, and repeat the Transolver baseline at five times the budget (Appendix § 7); the remaining learned symbols come from the review file and the training-time ratios from single-cell runs of the same code. All notebooks, with the outputs of the runs reported here, are in the supplementary material https://github.com/jaysulk/Poisson-GENERIC-Neural-Operators; the result files of these runs are at https://drive.google.com/drive/folders/1eDdsiUmixqbVZXtM4EUGa9kGvtzfVaG5. Appendix § 7 gives the architectures, data generation and training protocol, Appendix § 6 the implementation of the construction, and Appendix § 8 the proofs. Two implementation details that a reimplementation is likely to get wrong are called out in the text: the grid-measure inner product with Riesz-scaled gradients (Appendix § 6.§ 1) and the separate learning rate for the operator symbols (Appendix § 7).

identityguaranteestarget1D heat2D Burgers
⟨v,Lv⟩\langle v,Lv\rangle (skewness of LL)first lawfloor≤10−16\le10^{-16}≤10−16\le10^{-16}
⟨w,Mv⟩−⟨v,Mw⟩\langle w,Mv\rangle-\langle v,Mw\rangle (symmetry of MM)second lawfloor≤10−16\le10^{-16}≤10−16\le10^{-16}
∥L δS/δz∥/∥δS/δz∥\lVert L\,\delta S/\delta z\rVert/\lVert\delta S/\delta z\rVert (Casimir entropy)first degeneracy000
∥M δE/δz∥/∥δE/δz∥\lVert M\,\delta E/\delta z\rVert/\lVert\delta E/\delta z\rVert (pointwise projector)second degeneracyfloor3⋅10−183\cdot10^{-18}2⋅10−182\cdot10^{-18}
mass of M δS/δzM\,\delta S/\delta z (mask)∫u\int u conserved by MMfloor≤10−16\le10^{-16}2⋅10−162\cdot10^{-16}
mass of L δEθ/δzL\,\delta E_\theta/\delta z, pencil, data-band state∫u\int u conserved by the reversible flowfloor≤10−16\le10^{-16}8⋅10−168\cdot10^{-16}
⟨δE/δz,∂tz⟩\langle\delta E/\delta z,\partial_tz\rangleE˙θ=0\dot{E}_\theta=0floor≤10−16\le10^{-16}≤10−16\le10^{-16}
min⁡⟨δS/δz,∂tz⟩\min\langle\delta S/\delta z,\partial_tz\rangleS˙≥0\dot{S}\ge0≥0\ge00.0140.060
J\mathcal{J}, constant part of LL, white-noise statePoisson at every statefloor1⋅10−161\cdot10^{-16}3⋅10−163\cdot10^{-16}
J\mathcal{J}, pencil (λ=0.3\lambda=0.3), alias-free / white-noisePoisson on the bandfloor / –3⋅10−163\cdot10^{-16} / 0.784⋅10−164\cdot10^{-16} / 0.17
J\mathcal{J}, projected LL of GENERIC-FNO(not Poisson)–0.384.8⋅10−24.8\cdot10^{-2}
∣E1−E0∣/∣E0∣\lvert E_1-E_0\rvert/\lvert E_0\rvert, discrete-gradient / split stepexact / O(Δt2)O(\Delta t^2)tol. / small1⋅10−111\cdot10^{-11} / 5⋅10−25\cdot10^{-2}8⋅10−118\cdot10^{-11} / 5⋅10−25\cdot10^{-2}

Table 1. Structural identities at random initialization in double precision on a 16d16^d grid, reported as the maximum over a batch. Here “floor” means ≤10−16\le10^{-16}, and the mass of ff is ∣∑xfu∣/∥f∥\lvert\sum_x f_u\rvert/\lVert f\rVert. Full results: Table 5.

Persist.BaselineLearned EE, SSPG-physPG-phys (λ≡0\lambda\equiv0)Params
1D heat
FNO0.1840.0012 ± 0.00020.0096 ± 0.00670.0161 ± 0.00530.0055 ± 0.000744 / 18
Transolver0.1840.100 ± 0.0430.035 ± 0.0140.010 ± 0.0040.0048 ± 0.001034 / 42
CNO0.1840.0137 ± 0.00910.0096 ± 0.00310.0063 ± 0.00060.0041 ± 0.001321 / 12
1D advection
FNO0.8630.0040 ± 0.00060.0191 ± 0.00660.0011 ± 0.00050.0001 ± 0.000144 / 18
Transolver0.8630.037 ± 0.0030.134 ± 0.1160.0012 ± 0.00080.0001 ± 0.000134 / 42
CNO0.8630.0116 ± 0.00150.035 ± 0.0080.0012 ± 0.00040.0001 ± 0.000121 / 12
1D Burgers
FNO0.6450.090 ± 0.0100.419 ± 0.0680.033 ± 0.0080.338 ± 0.01844 / 18
Transolver0.6450.165 ± 0.0140.355 ± 0.0280.030 ± 0.0030.406 ± 0.111†34 / 42
CNO0.6450.072 ± 0.0050.377 ± 0.0020.035 ± 0.0030.302 ± 0.099†21 / 12
1D wave
FNO0.9380.036 ± 0.0120.813 ± 0.6450.028 ± 0.0090.028 ± 0.00944 / 22
Transolver0.9380.218 ± 0.0720.805 ± 0.4180.024 ± 0.013†0.024 ± 0.013†34 / 45
CNO0.9380.104 ± 0.0240.526 ± 0.2200.036 ± 0.0030.036 ± 0.00221 / 16
2D heat
FNO0.2750.038 ± 0.0020.146 ± 0.0630.039 ± 0.0110.025 ± 0.004445 / 128
Transolver0.2800.040 ± 0.0110.024 ± 0.0040.028 ± 0.0160.013 ± 0.00335 / 52
CNO0.2750.036 ± 0.0100.144 ± 0.0300.039 ± 0.0160.025 ± 0.00762 / 32
2D advection
FNO0.9600.074 ± 0.0070.506 ± 0.1020.0022 ± 0.00120.0001 ± 0.0001445 / 128
Transolver0.9690.058 ± 0.0070.199 ± 0.1820.0010 ± 0.00040.0001 ± 0.000035 / 52
CNO0.9600.055 ± 0.0030.504 ± 0.0240.0022 ± 0.00140.0001 ± 0.000162 / 32
2D Burgers
FNO0.7610.275 ± 0.0070.568 ± 0.0170.089 ± 0.0240.308 ± 0.003†445 / 128
Transolver0.7670.262 ± 0.0140.561 ± 0.0340.088 ± 0.0040.360 ± 0.04635 / 52
CNO0.7610.222 ± 0.0050.586 ± 0.0550.080 ± 0.0160.332 ± 0.00862 / 32
2D wave
FNO1.0260.305 ± 0.0250.922 ± 0.1560.035 ± 0.0020.035 ± 0.002445 / 146
Transolver1.0230.236 ± 0.0360.810 ± 0.4820.034 ± 0.0010.034 ± 0.00135 / 70
CNO1.0260.301 ± 0.0240.818 ± 0.1610.035 ± 0.0020.035 ± 0.00262 / 50

Table 2. Ten-frame relative L2L^2 rollout error, mean ± standard deviation over three seeds. Parameter counts are baseline / PG-phys in thousands. Bold marks the best of the four model classes; the wave has no pencil, so its PG columns repeat the same model. †: one seed diverged, and the entry reports the other two (Appendix § 9.§ 3). Transolver uses a separate 2D dataset.

functionals on the data bandfunctionals on the full grid
frame 0last frameframe 0last frame
1Dadvection3.9⋅10−83.9 \cdot10^{-8}5.2⋅10−95.2 \cdot10^{-9}8.0⋅10−28.0 \cdot10^{-2}1.5⋅10−21.5 \cdot10^{-2}
Burgers7.4⋅10−97.4 \cdot10^{-9}7.4⋅10−37.4 \cdot10^{-3}4.0⋅10−24.0 \cdot10^{-2}9.2⋅10−19.2 \cdot10^{-1}
2Dadvection9.0⋅10−29.0 \cdot10^{-2}2.9⋅10−12.9 \cdot10^{-1}7.2⋅10−27.2 \cdot10^{-2}5.3⋅10−25.3 \cdot10^{-2}
Burgers9.0⋅10−29.0 \cdot10^{-2}1.1⋅10−11.1 \cdot10^{-1}7.2⋅10−27.2 \cdot10^{-2}7.6⋅10−27.6 \cdot10^{-2}

Table 8. Normalized Jacobi residual J\mathcal{J} of the trained pencil on held-out data states (Appendix B): at frame 0 and at the last frame of the training window, with test functionals on the data band and on the full grid. In 1D at 64 points the data band (∣k∣≤8|k| \le8) keeps cubic products alias-free; in 2D at 32232^2 the data band (∣k∣∞≤6|k|_\infty\le6) does not. Data states are stored in single precision, so the floor here is 10−810^{-8}–10−910^{-9} rather than the 10−1610^{-16} of Table 1.

in distributionamplitude ×2\times2band ∣k∣≤12\lvert k\rvert\le12
faillostϵ10\epsilon_{10}ϵ100\epsilon_{100}δE\delta En↑n_{\uparrow}faillostδE\delta En↑n_{\uparrow}faillostcost
heatSplit>100>10000.0250.5472⋅10−42\cdot10^{-4}050/71/13132⋅1032\cdot10^{3}2>100>10001.0
heatExp>100>10000.0260.5473⋅10−43\cdot10^{-4}0⋅/⋅/12\cdot/\cdot/1213⋅1043\cdot10^{4}1>100>10001.6
heatDG>100>10000.0260.5473⋅10−113\cdot10^{-11}0>100>10004⋅10−114\cdot10^{-11}0>100>10003.6
heatDG/4>100>10000.0260.5473⋅10−113\cdot10^{-11}0>100>10001⋅10−111\cdot10^{-11}0>100>10007.7
advectionSplit>100>10000.00230.0221⋅10−71\cdot10^{-7}0>100>10009⋅10−59\cdot10^{-5}0>100>10001.0
advectionExp>100>10000.00230.0221⋅10−71\cdot10^{-7}0>100>10009⋅10−59\cdot10^{-5}0>100>10001.5
advectionDG>100>10000.0440.3283⋅10−123\cdot10^{-12}0>100>10006⋅10−126\cdot10^{-12}0>100>10005.7
advectionDG/4>100>10000.00370.0362⋅10−102\cdot10^{-10}0>100>10003⋅10−103\cdot10^{-10}0>100>100012
BurgersSplit>100>10000.0400.2214⋅10−34\cdot10^{-3}0⋅/⋅/16\cdot/\cdot/1665⋅1005\cdot10^{0}0>100>10001.0
BurgersExp>100>10000.0430.2254⋅10−34\cdot10^{-3}05/4/3611⋅1041\cdot10^{4}7>100>10001.5
BurgersDG>100>10000.0560.2242⋅10−112\cdot10^{-11}0>100>10004⋅10−104\cdot10^{-10}0>100>10004.3
BurgersDG/4>100>10000.0320.2244⋅10−114\cdot10^{-11}0>100>10002⋅10−112\cdot10^{-11}0>100>10009.3
waveSplit39/⋅\cdot/2970.053–5⋅10145\cdot10^{14}48/10/9631⋅1031\cdot10^{3}233/63/21111.0
waveExp35/⋅\cdot/26100.053–2⋅10232\cdot10^{23}36/7/9673⋅10433\cdot10^{43}327/63/20161.3
waveDG95/63/4600.1171.041⋅10−101\cdot10^{-10}014/12/3192⋅10−92\cdot10^{-9}094/53/31024
waveDG/4⋅/⋅/47\cdot/\cdot/4700.0540.8582⋅10−102\cdot10^{-10}09/13/3173⋅10−93\cdot10^{-9}0⋅/63/31\cdot/63/31019

Table 9. Integrators on the trained 1D FNO PG-phys models, three seeds: hundred-frame rollouts of 24 held-out trajectories per seed and input set. Split: the integrator of the experiments (8 explicit sub-steps in distribution, 16 off it). Exp: the same splitting with one exponential Rosenbrock–Euler step per frame. DG, DG/4: the discrete-gradient step of Theorem 3 solved by Newton–Krylov, one and four steps per frame. fail: first frame at which the mean error exceeds one or a trajectory is lost, per seed (0/1/2; a dot: none in 100 frames; >100>100: none for any seed); lost: trajectories, of 72, that became non-finite, grew a thousand-fold, or whose solve failed at 1/32 of a frame; ϵ10\epsilon_{10}, ϵ100\epsilon_{100}: seed-mean error at frames 10 and 100 (the latter if no trajectory is lost); δE\delta E: largest ∣ΔEθ∣/∣Eθ∣\lvert\Delta E_\theta\rvert/\lvert E_\theta\rvert over one frame; n↑n_{\uparrow}: frames on which QQ rises by more than 0.1%, summed over seeds; cost: time per frame relative to Split, in distribution.

Figure 2. The integrators of Table 9 on the in-distribution rollouts of seed 0 (nk−dg, nk−dg/4: DG, DG/4). Top: physical energy Qt/Q0Q_t/Q_0, mean over the 24 trajectories (dotted: the solver). Bottom: drift of the model’s own energy, ∣Eθ(zt)−Eθ(z0)∣/∣Eθ(z0)∣\lvert E_\theta(z_t)-E_\theta(z_0)\rvert/\lvert E_\theta(z_0)\rvert, worst trajectory. The split and exponential steps drift by 10−610^{-6}–10−210^{-2} and diverge on the wave before frame 40; the solved discrete-gradient step holds EθE_\theta to 10−810^{-8} on all four equations and keeps the wave rollout bounded, which is then over-damped.

Details of the construction

The model is defined by Definitions 1–4. In this appendix we collect the implementation choices behind those definitions, together with the derivations that § 3 refers to. No definition is repeated.

Inner product and gradient scaling

Every functional in the model is implemented as a mean over the grid, F[z]=1N∑xf(z(x),…)F[z] = \frac{1}{N} \sum_x f(z(x),\ldots). With respect to the grid-measure inner product of § 3.1, its gradient is NN times the gradient returned by automatic differentiation, since ⟨δF/δz,h⟩=1N∑x(δF/δz)⋅h\langle\delta F/\delta z,h\rangle= \frac{1}{N}\sum_x(\delta F/\delta z)\cdot h has to equal the directional derivative ∑x(∂F/∂z(x))⋅h(x)\sum_x(\partial F/\partial z(x))\cdot h(x). We use this scaling for EθE_\theta and SS, and the same inner product in every projection and symbol. The scaling is easy to get wrong, and we mention two ways of doing so because their symptoms are quite different. If the mean is taken per channel, the gradients of QQ on the pp observed channels and of EθE_\theta on the p+1p+1 channels of zz differ by a factor (p+1)/p(p+1)/p. The exact linear step of Algorithm 1 then integrates only a part of the linear flow, and the learned reversible symbols converge to an integer fraction of their exact values, one half for scalar fields and one third for the wave, whatever the seed and the backbone. If instead the Euclidean gradient is used (no factor NN), the model is no longer independent of the resolution: the same 1D-heat model evaluated at 64/128/256 points had errors 0.011/0.078/0.125, compared with 0.0183/0.0183/0.0183 with the correct scaling (§D.6).

Internal energy and the gauge projection

Internal energy. We take eθ(s)=T0s+∑i=1mwisoftplus⁡(ais+bi)e_\theta(s) = T_0s + \sum_{i=1}^{m} w_i\operatorname{softplus}(a_i s+b_i) with m=16m=16, wi=softplus⁡(w^i)w_i = \operatorname{softplus}(\hat w_i), ai=softplus⁡(a^i)a_i = \operatorname{softplus}(\hat a_i) (initialized so that wi≈0.05w_i \approx0.05) and T0=0.1T_0 = 0.1. Since wi,ai>0w_i,a_i > 0 this function is convex and increasing, and T(s)=T0+∑iwiaiσ(ais+bi)≥T0T(s) = T_0 + \sum_i w_i a_i \sigma(a_i s+b_i) \ge T_0. The floor is not a technicality. The friction coefficients of Proposition 8 contain 1/T1/T, without a floor a negative drift of ss early in training drives TT to zero, at which point the split step breaks down.

Gauge projection. The function ψ0=softplus⁡(MLP⁡θ(u))\psi_0 = \operatorname{softplus}(\operatorname{MLP}_\theta(u)) is given by a p→32→32→1p \to32 \to32 \to1 GELU network. The projection Π≤2\Pi_{\leq2} of equation 4 is a weighted least-squares projection onto the monomials of degree ≤2\leq2 in the components of uu, that is, the constant, the pp linear and the (p+12)\binom{p+1}{2} quadratic monomials. The weights e−∣u∣2/2e^{-\lvert u\rvert^2/2} correspond to a Gaussian reference measure of unit variance, and the data have unit RMS. In practice the projection is computed on a fixed tensor-product grid of 17 nodes per component on [−4,4][-4,4]: at each forward pass we evaluate ψθ\psi_\theta at the nodes, solve the weighted normal equations (a small linear system) for the polynomial coefficients, and subtract the resulting polynomial from ψθ(u)\psi_\theta(u) pointwise. One might think that it suffices to subtract the Taylor expansion of ψθ\psi_\theta at u=0u = 0. It does not, because the quadratic that the network learns need not be centered at zero, and the remaining gauge shows up as a reversible symbol that converges to (1+2a)−1(1 + 2a)^{-1} times its exact value (Remark 2). Finally, writing Π≤2ψθ(u)=uTAu+b⋅u+c0\Pi_{\leq2}\psi_\theta(u) = u^\mathsf{T}Au + b \cdot u + c_0 and a:=λmax⁡(A)a := \lambda_{\max}(A), we have φθ≥−Π≤2ψθ\varphi_\theta\geq-\Pi_{\leq2}\psi_\theta, which is a quadratic lower bound of curvature −a-a. The scalar mechanical energy is therefore bounded for a<12a < \frac{1}{2}; the wave requires the additional hypotheses of Theorem 2. Note that aa can be measured from the learned symbols (Remark 2).

The Poisson operator

Symbols. The constant part αD\alpha D has the symbol iαkDi\alpha k_D, kD=∑akak_D = \sum_a k_a, on the band 1≤∣k∣∞≤mL1 \leq\lvert k\rvert_\infty\leq m_L and vanishes at k=0k = 0 and outside the band. Being odd in kk, it defines a real and skew operator. For the wave block Jdiag⁡(Dd,Dd)J\operatorname{diag}(D_d,D_d) we use an even, non-negative multiplier d(k)d(k), parameterized as the square of a learned even symbol. This block is Poisson because its coefficients are constant, and it is skew because DdD_d is symmetric and commutes with JJ. For the exact damped wave d≡Δtd \equiv\Delta t, and the learned multiplier agrees with this value to within 0.5%0.5\% (§ 4). In both cases ker⁡L\ker L contains every ss-direction, at every state.

The pencil. The operators DD and uD+DuuD + Du are the two Hamiltonian operators of the KdV hierarchy in the direction DD [20, 26]. They are compatible, which means that every linear combination of them is Poisson; this is Proposition 1(ii). It is the Lie–Poisson term that makes Burgers Hamiltonian with respect to the quadratic energy, since −∂x(u2/2)=13(u∂x+∂xu)δ(12∥u∥2)/δu-\partial_x(u^2/2) = \frac{1}{3}(u\partial_x + \partial_xu)\delta(\frac{1}{2}\lVert u\rVert^2)/\delta u. On the grid we use the symmetric form uDg+D(ug)uDg + D(ug), which is exactly skew there (Proposition 4(i)). The 2/32/3-rule sandwich P(⋅)PP(\cdot)P does not destroy skewness, because PP is symmetric, and it removes the aliasing of the quadratic products uDguDg and ugug. The cubic products that occur in the Jacobi identity are not de-aliased, however. For this reason Proposition 1(ii) holds on alias-free states only, the residual on white-noise states being 0.170.17–0.780.78 (Table 5), and we claim a Poisson structure on the resolved band and nowhere else. The hierarchy has a further compatible member, the dispersive operator D3D^3, which we have left out. Its k3k^3 growth destabilizes both integrators of §A.5 at high wavenumbers, and none of our test equations needs it.

Remark 1 (A free multiplier is not compatible). Replacing αD\alpha D by a free learned multiplier a(k)a(k), as in GENERIC-FNO, gives an operator a(k)+λ(uD+Du)a(k) + \lambda(uD + Du) whose Jacobi residual is O(10−1)O(10^{-1}) even on alias-free states: only the members of the pencil spanned by DD and D3D^3 are compatible with uD+DuuD + Du. This is why the constant part of LL is the one-parameter family αD\alpha D.

The friction operator

The physical operators. For heat conduction in the variables of Definition 2, E=12∥u∥2+∫e(s)E = \frac{1}{2}\lVert u\rVert^2 + \int e(s), S=∫sS = \int s, T=e′(s)T = e'(s), the positive semi-definite operator

M=CCT,CT(f,g)=ν(T∇Tf−∇uTg)(12)M = CC^\mathsf{T}, \qquad C^\mathsf{T}(f,g) = \sqrt{\nu}\left(\sqrt{T}\nabla T f - \frac{\nabla u}{\sqrt{T}}g\right) \tag*{(12)}

satisfies [M δS/δz]u=νΔu[M\,\delta S/\delta z]_u = \nu\Delta u, [M δS/δz]s=ν∣∇u∣2/T[M\,\delta S/\delta z]_s = \nu\lvert\nabla u\rvert^2/T (viscous heating) and M δE/δz=0M\,\delta E/\delta z = 0 identically. The analogue for the damped wave contains no derivatives. It is CT(fv,g)=γ(Tfv−g/T)C^\mathsf{T}(f_v,g) = \sqrt{\gamma}\left(\sqrt{T}f_v - g/\sqrt{T}\right), and it gives −γv-\gamma v on vv and γv2/T\gamma v^2/T on ss. Three features of equation 12 are worth pointing out. The operator depends on the state and on δE/δz\delta E/\delta z. The derivative is on the input side of the uu channel and the divergence on the output side, with a pointwise matrix between them. Finally, the row of CTC^\mathsf{T} is orthogonal to (∇v,T)(\nabla v,T) at each point, and this is how degeneracy can hold without a global projection. Both operators are contained in Definition 4 exactly on the band νk2Δt<1\nu k^2\Delta t < 1, which includes the data band (Proposition 8). For heat one takes the flux symbol −ikaκ-ik_a\kappa on the uu row, the identity on the local slot of ss, Γ(u,a),(u,a)=νT/κ\Gamma_{(u,a),(u,a)} = \sqrt{\nu T}/\kappa and Γs,(u,a)=−ν ∂au/(κT)\Gamma_{s,(u,a)} = -\sqrt{\nu}\,\partial_a u/(\kappa\sqrt{T}); for the wave, DMD_M is the identity on the local slots of vv and ss, with Γv,v=γT\Gamma_{v,v} = \sqrt{\gamma T} and Γs,v=−γ v/T\Gamma_{s,v} = -\sqrt{\gamma}\,v/\sqrt{T}.

Symbols, saturation and masks. The symbols bija(k)b_{ija}(k) and bij′(k)b'_{ij}(k) of equation 7 are learned on the band ∣k∣∞≤mM\lvert k\rvert_\infty\leq m_M and then symmetrized, b(k)←12(b(k)+b(−k))b(k) \leftarrow\frac{1}{2}(b(k) + b(-k)), so that DMD_M maps real fields to real fields. The saturation x↦x/1+x2x \mapsto x/\sqrt{1+x^2} bounds every symbol by one in modulus. As a consequence the gain of MM under explicit integration is limited for any parameters, while the physical operators are not affected on the data band, where νk2Δt≤0.32\nu k^2\Delta t \leq0.32. Definition 4, for the scalar equations they set the local-slot inputs of the uu row to zero, so that no local slot feeds uu and a density cannot be damped in the manner of Rayleigh friction; for the wave they set the whole qq row to zero.

Coefficient field. The field Γϑ\Gamma_{\vartheta} is produced by a pointwise network whose inputs are z(x)z(x) and, for the flux–local and local–flux blocks, the gradient features ∂bzl(x)\partial_b z_l(x) of equation (8). Its output passes through a tanh scaled by 1/r1/r, which gives ∥Γϑ−I∥≤1\lVert\Gamma_{\vartheta}-I\rVert\leq1, and it is initialized at zero, so that Γϑ=I\Gamma_{\vartheta}=I when training starts. The bound is needed. With unbounded coefficients the local dynamics of ss can become stiff; in one preliminary run ss grew by 40% per step and the explicit remainder blew up on advection. Nothing physical is lost, since physical friction coefficients are bounded functions of the state.

Why the parity restriction. Suppose that the mixed blocks of Γϑ\Gamma_{\vartheta} were allowed to depend on zz alone, and not linearly on ∇z\nabla z. The operator DMΓΓTDMHD_M\Gamma\Gamma^{\mathsf T}D_M^{\mathsf H} would then contain terms with an odd number of derivatives, and such terms act as transport. This is what happened in a preliminary version without the restriction: the learned advection symbol converged to exactly half of its exact value, for every seed and backbone, and MM supplied the other half. With the restriction in place the transport has to be carried by the reversible operator, and the symbols converge to the exact values (§4). What the restriction excludes, and what it does not, is stated in Proposition 7.

Pointwise degeneracy. Let w=DMHδEθ/δzw=D_M^{\mathsf H}\delta E_{\theta}/\delta z and P=I−w^w^TP=I-\hat{w}\hat{w}^{\mathsf T} at each point. Then ATδEθ/δz=ΓϑTPw=0A^{\mathsf T}\delta E_{\theta}/\delta z=\Gamma_{\vartheta}^{\mathsf T}Pw=0 pointwise, and hence M δEθ/δz=0M\,\delta E_{\theta}/\delta z=0 without any global projection (Proposition 6). The heat-conduction row of equation (12) is of this type, since (T,−∇u/T)(\sqrt{T},-\nabla u/\sqrt{T}) is orthogonal to (∇u,T)(\nabla u,T) at each point. The global projection of GENERIC-FNO is thus not needed, and with S=∫sS=\int s it would in fact be harmful. The reason is that when TT is nearly uniform, δS/δz=(0,1)\delta S/\delta z=(0,1) is nearly parallel to the entropy component of δEθ/δz=(⋅,T)\delta E_{\theta}/\delta z=(\cdot,T), so that projecting off the latter removes most of the dissipative direction.

Time integration

Exact linear flow and split step. The constant part of LuL_u together with the quadratic QQ generates the flow ∂tu=LuconstδQ/δu\partial_tu=L_u^{\mathrm{const}}\delta Q/\delta u. This flow is diagonal in Fourier space. For scalar fields it multiplies each mode by eiαkDΔte^{i\alpha_kD\Delta t}, and for the wave it is a 2×22\times2 rotation of (q^,v^)(\hat{q},\hat{v}) with frequency ω=d(k)c∣k∣\omega=d(k)c|k|. The map UτU_{\tau} in Algorithm 1 applies it exactly, at the cost of one FFT pair, and conserves QQ to machine precision. Algorithm 1 as a whole is a Strang arrangement [33], namely UΔt/2U_{\Delta t/2}, followed by nsub=8n_{\mathrm{sub}}=8 explicit Euler sub-steps of the remainder, followed by UΔt/2U_{\Delta t/2} again. By the remainder we mean the Lie–Poisson term, the potential and the friction; the linear part of L δEθ/δzL\,\delta E_{\theta}/\delta z is subtracted from it, since UU has already applied it. The explicit remainder is kept stable by the saturated symbols and by the sub-cycling. Since the split step is only first order in Δt\Delta t for fixed nsubn_{\mathrm{sub}}, its energy error does not vanish, and we report it (Table 1). All training and evaluation use this integrator. We note in passing that it may also explain why the unconstrained FNO won on advection in GENERIC-FNO: the exact phase shift is a map which the FNO has to learn, whereas here it is simply applied.

Discrete-gradient step. Let ∇‾E(z,z′)\overline{\nabla}E(z,z') be the Gonzalez discrete gradient of EθE_{\theta} [6, 22],

∇‾E(z,z′)=δEθδz(zˉ)+Eθ[z′]−Eθ[z]−⟨δEθδz(zˉ),z′−z⟩∥z′−z∥2(z′−z),zˉ=12(z+z′),(13)\overline{\nabla}E(z,z')=\frac{\delta E_{\theta}}{\delta z}(\bar{z})+\frac{E_{\theta}[z']-E_{\theta}[z]-\left\langle\frac{\delta E_{\theta}}{\delta z}(\bar{z}),z'-z\right\rangle}{\lVert z'-z\rVert^2}(z'-z),\qquad\bar{z}=\frac{1}{2}(z+z'), \tag*{(13)}

which satisfies ⟨∇‾E,z′−z⟩=Eθ[z′]−Eθ[z]\langle\overline{\nabla}E,z'-z\rangle=E_{\theta}[z']-E_{\theta}[z]; since SS is linear, ∇‾S=(0,1)\overline{\nabla}S=(0,1) exactly. The implicit update

zt+1=zt+Δt(L(zˉ)∇‾E(zt,zt+1)+Mˉ ∇‾S),Mˉ=AˉAˉT,Aˉ=DMPˉΓϑ(z∗),(14)z_{t+1}=z_t+\Delta t\left(L(\bar{z})\overline{\nabla}E(z_t,z_{t+1})+\bar{M}\,\overline{\nabla}S\right),\qquad\bar{M}=\bar{A}\bar{A}^{\mathsf T},\qquad\bar{A}=D_M\bar{P}\Gamma_{\vartheta}(z^*), \tag*{(14)}

with Pˉ\bar{P} the pointwise projector of DMH∇‾ED_M^{\mathsf H}\overline{\nabla}E, conserves EθE_{\theta} and produces SS exactly for any Δt\Delta t (Theorem 3). The only property used in the proof is that ∇S\nabla S lies in ker⁡L(z)\ker L(z) for every zz, and this is true because SS is a Casimir of every LL block form, the LL evaluated at zˉ\bar{z} included. The scheme can be regarded as the discrete counterpart of the thermodynamically consistent integrators of Romero [32] and Öttinger [29]. It is not available for the projected operator of GENERIC-FNO, whose kernel moves with the state (Remark 3). There is some freedom in the point z∗z^* at which the coefficient field is evaluated. Indeed, Theorem 3 only requires M‾\overline{M} to be symmetric positive semi-definite with M‾ ∇‾E=0\overline{M}\,\overline{\nabla}E=0, and both properties hold wherever Γϑ\Gamma_{\vartheta} is evaluated, since A‾T∇‾E=ΓϑTP‾DHH∇‾E=0\overline{A}^{\mathsf{T}}\overline{\nabla}E=\Gamma_{\vartheta}^{\mathsf{T}}\overline{P}D H^{\mathsf{H}}\overline{\nabla}E=0 by the construction of P‾\overline{P}.

Solving the implicit step. In the submitted version equation 14 is solved by a relaxed fixed-point iteration started from the explicit predictor (3–12 iterations), with z∗=zˉz^*=\bar{z}. This iteration converges in all the random-initialization checks of Table 5, and also for single steps of the trained 1D and 2D heat FNO models of §D.6. It does not always converge, however. It fails on the trained 2D-heat Transolver models at Δt=0.1\Delta t=0.1, whether started from the Euler or from the split predictor; it fails on the trained 1D wave model, where the residual grows with the number of iterations; and it fails as a hundred-frame integrator on three of the four 1D models. We stress that the backbone is not part of this iteration. The backbone enters the model only through the encoder of the initial entropy density (Definition 1), and Γϑ\Gamma_{\vartheta} is a pointwise network. The failures must therefore be attributed to the trained operators and states, and not to an architecture inside the solve. Models from two backbone families differ both in the entropy density produced by their encoders and in their trained coefficients, and we have not been able to determine which of the two is decisive in the Transolver case. The restriction disappears when the step is solved by Newton–Krylov (§D.6), that is, by an inexact Newton iteration on the residual of equation 14, with GMRES applied to Jacobian–vector products computed by reverse-over-reverse automatic differentiation, backtracking on the residual norm, and halving of any step whose solve fails. Solved in this way, the discrete-gradient step can be used as a hundred-frame integrator for the trained 1D models and as a sixty-frame integrator for the 2D and Transolver models we tested, with Γϑ\Gamma_{\vartheta} evaluated at the midpoint. Freezing Γϑ\Gamma_{\vartheta} at a predictor would also leave both laws exact, as shown above, but this turned out to be unnecessary. In the experiments of Section 4 the discrete-gradient step is the reference against which the energy error of the split step is measured. One could also train with it, exactly, at several times the cost.

Diagnostics

All diagnostics refer to the fixed mechanical energy QQ, never to a learned functional. (a) Π∗\Pi^* is the fractional one-frame decay of QQ along the reference trajectory, and Πmodel\Pi_{\mathrm{model}} is the same quantity along the model’s rollout; both are averaged over frames and trajectories. (b) With the midpoint gradient, the numerator of rmechr_{\mathrm{mech}} equals Q(u)−Q(u′)Q(u)-Q(u') exactly when QQ is quadratic, so that a frame over which QQ is conserved scores zero. This is not the case for the endpoint gradient used in GENERIC-FNO, which carries a bias of O(∥Δu∥/∥u∥)O(\lVert\Delta u\rVert/\lVert u\rVert), about 0.1 at our frame spacing, even for the exact advection solution. Being a cosine, rmechr_{\mathrm{mech}} under-weights dissipation on transport-dominated flows, and we therefore report magnitudes through Πmodel/Π∗\Pi_{\mathrm{model}}/\Pi^*. (c) For the Jacobi residual we use three random smooth test functionals with non-trivial second variations, F[z]=∑jαjtanh⁡(⟨z,rj⟩/N)+12∥z∥2/NF[z]=\sum_j\alpha_j\tanh(\langle z,r_j\rangle/\sqrt{N})+\frac{1}{2}\lVert z\rVert^2/N with random fields rjr_j (band-limited for the alias-free test), and evaluate them by automatic differentiation. The residual is J=∥{{F,G},H}+cyc⁡∥/∑cyc∥{{F,G},H}∥\mathcal{J}=\lVert\{\{F,G\},H\}+\operatorname{cyc}\rVert/\sum_{\mathrm{cyc}}\lVert\{\{F,G\},H\}\rVert, so that J=1\mathcal{J}=1 means that there is no cancellation at all. It is computed on white-noise states, on band-limited states with band-limited functionals and, in Table 8, on held-out data states with functionals on the data band and on the full grid. The projected operator of GENERIC-FNO is built from an unrestricted learned entropy of the same size, because with a Casimir entropy the projection is trivial and there is nothing to compare. (d) For representability we set DMD_M and Γϑ\Gamma_{\vartheta} inside the model to the closed-form coefficients of §A.4 and compare M δS/δzM\,\delta S/\delta z and M δE/δzM\,\delta E/\delta z with the spectral truth on band-limited states. (e) The learned symbols α\alpha, d(k)d(k) and λ\lambda are read from the trained models and compared with −cΔt-c\Delta t, Δt\Delta t and −Δt/3-\Delta t/3. It was this diagnostic that uncovered the gradient-scaling error of §A.1 and the transport split of §A.4, and it also provides the empirical gauge diagnostic of Remark 2.

Ablation variants

The learned-E,SE,S model is the closest analogue of GENERIC-FNO that has a constant LL. Both EθE_{\theta} and SϕS_{\phi} are mean-pooled neural operators of the backbone family. The entropy SϕS_{\phi} sees uu only through the modes outside the band of LL and is therefore a Casimir of LL by construction, while MM is a constant matrix-valued multiplier placed between the rank-one projections of GENERIC-FNO. This model satisfies the Jacobi identity and both degeneracy conditions exactly, but there is nothing in it that ties EθE_\theta to QQ. It is integrated by explicit Euler, since its energy is not quadratic and there is no exact linear step. Under exact degeneracy the energy error of this integrator is O(Δt2)O(\Delta t^2) per step, and the structural residuals (rE≈10−8r_E \approx10^{-8}) show that the integrator is not what distinguishes the ablation from PG-phys. PG-phys with λ≡0\lambda\equiv0 is the model of §3 without the Lie–Poisson term. It is Poisson at every state, and it cannot represent nonlinear transport. Between them the two ablations bracket PG-phys: the first has exact structure without the physics, the second has an exact Jacobi identity without Burgers.

Learned Poisson structures by pullback

A constant LL is a Darboux normal form, and any change of coordinates ϕ\phi turns it into another Poisson operator, Lϕ=(Dϕ)−1L(Dϕ)−TL_\phi= (D\phi)^{-1} L (D\phi)^{-\mathsf{T}}, whose Casimirs are C∘ϕC \circ\phi (Proposition 9). This is the function-space analogue of Poisson neural networks ([13]), of which § 3.2 is the special case ϕ=id\phi= \mathrm{id}. The Lie–Poisson pencil arrives at state dependence by a different route, namely through compatibility and not through a change of coordinates. A model based on pullback would need a map ϕ\phi that is invertible and independent of the resolution, and its Jacobian products would have to be paid for. We leave this to future work.

Architecture, data and training protocol

Data. On the periodic box [0,2π)d[0, 2\pi)^d with D=∑a∂aD = \sum_a \partial_a, the equations are: heat ∂tu=νΔu\partial_t u = \nu\Delta u; advection ∂tu=−c Du\partial_t u = -c\,Du (transport along (1,…,1)(1,\ldots,1) in 2D); viscous Burgers ∂tu=−u Du+νΔu\partial_t u = -u\,Du + \nu\Delta u; damped wave ∂tq=v\partial_t q = v, ∂tv=c2Δq−γv\partial_t v = c^2\Delta q - \gamma v. Initial conditions are band-limited random fields (∣k∣∞≤8|k|_\infty\le8 in 1D, ≤6\le6 in 2D) with unit RMS. We integrate them with a de-aliased spectral RK4 solver with resolution-dependent sub-stepping and save frames Δt=0.1\Delta t = 0.1 apart. Grids are 64 points in 1D and 32232^2 in 2D, with 120 (1D) and 80 (2D) trajectories of 20 (15) frames, split 80/20. For the damped wave we observe both qq and vv.

Backbones. A model uses a single backbone family throughout. The three families are an FNO (width 24, 12 modes in 1D and 8 in 2D, three layers; InstanceNorm on in 2D and off in 1D, following the diagnosis of (Sulskis & Ravi, 2026)), a Transolver (width 32, three physics-attention blocks, four heads, 32 slices, with a kernel-3 circular depthwise convolution on the grid before each block), and a CNO-style periodic convolutional operator (two-level U-shape, 3-point circular kernels). The convolution in the Transolver needs an explanation. It is the structured-mesh form of the Transolver’s slicing, and without it every projection is a linear map on flattened tokens, so that the only path between grid points goes through the 32 global slice tokens and the residual baseline cannot represent a shift by one cell. In that case its training loss remains at the persistence level on advection, wave and Burgers, and what the network learns is merely a pointwise damping. In the baseline the backbone is the residual map GG; in the PG models it is the entropy encoder ψη\psi_\eta and the coefficient network of Γϑ\Gamma_\vartheta, while the pointwise networks φθ\varphi_\theta and eθe_\theta are small MLPs. The operator symbols α\alpha, λ\lambda, d(k)d(k), bb are explicit parameters on the resolved band, with mL=16m_L = 16 (1D) and 10 (2D) for the reversible operator and mM=Nx/3m_M = N_x/3 for the friction operator. Parameter counts are given in Table 2.

Training. All models minimize equation (11) with AdamW (weight decay 10−410^{-4}), a one-cycle schedule, gradient clipping at one and batch size 16 (1D) or 8 (2D), for 60 epochs in 1D and 40 in 2D, which amounts to about 350 optimizer steps for every model. The learning rate is 10−310^{-3} for the networks and 3×10−23 \times10^{-2} for the operator symbols. The reason for the larger rate is that a symbol is a single scalar with a small gradient. For instance, the exact advection symbol is −0.8-0.8 at k=8k=8, and starting from 0.1 it cannot be reached at the network rate in the number of optimizer steps available. The larger rate does no harm, since the friction symbols are saturated by construction. PG-phys is trained and evaluated with the split integrator (nsub=8n_{\mathrm{sub}} = 8) and the learned-EE, SS ablation with explicit Euler (Appendix § 6.7). The evaluation is a ten-frame rollout from t=0t = 0 on held-out trajectories, and every number is a mean over three seeds, each with its own data and initialization. The FNO and CNO grid comes from one fresh run of the released notebook on a single GPU; the Transolver cells come from a second run of the same grid.

Training budget. The FNO and CNO baselines converge within the shared protocol, but the Transolver baseline does not. With five times as many epochs it reaches 0.0072 ±\pm 0.0009 on 1D heat, 0.0064 ±\pm 0.0019 on 1D advection, 0.070 ±\pm 0.004 on 1D Burgers and 0.039 ±\pm 0.006 on the 1D wave (three seeds). The Transolver column of Table 2 should therefore be read as a comparison at equal budget and not between converged models. Against a fully trained Transolver, PG-phys would lose on heat and still win on advection, Burgers and the wave.

GENERIC-FNO. The GENERIC-FNO columns of Table 3 refer to the degeneracy-by-construction model of Sulskis & Ravi (2026), which we ported from its public code. The functionals EE and SS are those of the original (a three-layer FNO of width 24 and 12 modes with InstanceNorm, no coordinate channels, a 1×11 \times1 output, the spatial mean, and a 1→16→11 \to16 \to1 head). The operators are L=(I−PS)DL(I−PS)L = (I - P_S)D_L(I - P_S) and M=(I−PE)DM(I−PE)M = (I - P_E)D_M(I - P_E), where DL=i a(k)D_L = i\,a(k) and DM=∣b(k)∣2D_M = \lvert b(k)\rvert^2 are diagonal Fourier multipliers on the lowest 16 modes per direction (two kxk_x corners in 2D) and PwP_w is the rank-one projection onto ww. As in the original, the update is a single explicit Euler step ut+1=ut+L δE/δu+M δS/δuu_{t+1} = u_t + L\,\delta E/\delta u + M\,\delta S/\delta u with the Euclidean autodiff gradient. The (q,v)(q, v) wave was not treated in the GENERIC-FNO paper; for it we apply the multipliers per channel and let the projections act on the whole state, and for p=1p = 1 the port reproduces the published model. We trained the port in two ways. In the first it has the objective and protocol of all other models, and the rollout is differentiated through. In the second it has its own recipe, which is a one-frame mean-squared error on a random frame pair per batch and, after epoch 30 and with probability 0.3, a three-frame rollout in which the input is detached before every frame; the optimizer is AdamW (10−310^{-3}, weight decay 10−410^{-4}) with a cosine schedule, batch 32 and gradient clipping at one, for 150 epochs in 1D and 120 in 2D. When the weights are shared, the port reproduces the EE, SS and one-frame map of the original to 10−1010^{-10} and 6×10−86 \times10^{-8} (relative to the increment) in double precision. Along the rollouts of Table 3 its reversible degeneracy residual rEr_E vanishes up to round-off. Nevertheless its own EE and SS are not conserved and produced in discrete time, because an Euler step of the size implied by its errors changes them at second order. This is precisely the point of the discrete-gradient step of Appendix § 6.§ 5.

GENERIC-FNO on its own testbed. In Table 4 the comparison is repeated on the data of the GENERIC-FNO paper. We took over its generators (two to five random sinusoids of amplitude 0.3–0.5), its frame spacing (Δt=0.01\Delta t = 0.01 for heat and advection, 0.005 for Burgers), its protocol of 200 samples and 20 frames, and its metric, which is the mean over 50 test samples and 10 frames of the per-sample relative error. Because the random amplitudes make this metric rather noisy, we also give a batch-level relative L2L^2 error. Under its own recipe GENERIC-FNO ends up where its paper reports it (0.20, 0.36, 0.033 here with one seed, against published three-seed means of 0.095, 0.23, 0.046). This is below persistence on all three equations, and the physical energy grows by 1.8–2.7×\times on heat and advection. On the same data the unconstrained FNO of the present paper, a residual map trained on rollouts, is 35–400×\times more accurate, and PG-phys is 5–900×\times more accurate. We conclude that the accuracy of GENERIC-FNO as published is the accuracy of its own FNO baseline under its own one-frame recipe, and that the gap in Table 3 cannot be blamed on our frame spacing. On this testbed, with its small Δt\Delta t, PG-phys is better than the FNO on advection and worse on heat and Burgers. On the latter two the friction symbols have to shrink by two orders of magnitude from their initialization within the shared budget, and the training loss is in fact still decreasing at the last epoch. Then a λ≡0\lambda\equiv0 model comes closer.

Compute-matched baseline. For each (equation, seed) the unconstrained FNO is trained again for the wall-clock time that PG-phys needed on that cell. To this end a two-epoch probe measures the time per epoch of the baseline, the number of epochs is set so as to fill the budget (with a cap of 6000), and the model is trained from scratch with the one-cycle schedule stretched over that number of epochs; it is then evaluated as in Table 2. Some care is needed with the probe. It has to follow an untimed warm-up epoch and to synchronize the device, since a cold probe over-estimates the epoch time by 40×\times. On the same GPU PG-phys took 302 s for each 1D heat, advection and Burgers cell and 393 s for each wave cell. This corresponds to 2180–2805 baseline epochs, or 36–47×\times the optimizer steps of the shared protocol (heat 36×\times, advection 37×\times, Burgers 37×\times, wave 47×\times). The matched FNO reaches 0.0002, 0.0008, 0.030, 0.0026 at ten frames (three seeds; Table 3). No matching was done for the 2D cells.

Long-horizon, data-efficiency and off-distribution tests. Table 7 is based on the trained 1D-FNO models of seed 0. For the long-horizon test the solver is run for 100 frames from the held-out initial conditions and each model is rolled out over the same 100 frames; the failure frame is defined as the first frame at which the relative L2L^2 error exceeds one. For the data-efficiency test the baseline and PG-phys are trained from scratch on 25% (and 50%) of the training trajectories, with the protocol unchanged, and evaluated on the same held-out set. For the off-distribution tests we generate new initial conditions, one set with twice the training amplitude and one with the band ∣k∣∞≤12|k|_{\infty} \le12 in place of 8, integrate them with the same solver for 100 frames, and evaluate every model on them without retraining. On these inputs PG-phys is run with 16 sub-steps, which is a choice made at inference time (Appendix § 6.§ 5). The energy-increase count n↑n_{\uparrow} is the number of frames tt with Qt/Qt−1>1+10−3Q_t/Q_{t-1} > 1 + 10^{-3}, counted over the finite frames of the rollout.

Jacobi residual on data states. Table 8 evaluates J\mathcal{J} of the trained pencil on held-out trajectories at frame 0 and at the last frame of the training window. We use test functionals whose random fields lie on the data band and functionals on the full grid, in 1D at 64 points and in 2D at 32232^2.

Mathematical Statements and Proofs

Throughout, H=L2(Ω;Rp+1)H = L^2(\Omega; \mathbb{R}^{p+1}) with the grid-measure inner product ⟨f,g⟩=∣Ω∣−1∫Ωf⋅g dx\langle f,g\rangle= |\Omega|^{-1}\int_{\Omega} f \cdot g\,dx, the state is z=(u,s)z = (u,s), brackets are {F,G}=⟨δF/δz,L δG/δz⟩\{F,G\} = \langle\delta F/\delta z, L\,\delta G/\delta z\rangle and [F,G]=⟨δF/δz,M δG/δz⟩[F,G] = \langle\delta F/\delta z, M\,\delta G/\delta z\rangle, and every operator is asserted at a fixed but arbitrary state unless stated otherwise. On an NN-point grid all statements hold verbatim with integrals replaced by grid sums; where the discrete case differs from the continuous one we say so.

The reversible operator

Proposition 3 (Constant multipliers are Poisson). Let LL be a bounded skew-adjoint operator on HH with constant coefficients. Then {⋅,⋅}\{\cdot,\cdot\} is bilinear, skew, satisfies the Leibniz rule, and satisfies the Jacobi identity {{F,G},H}+{{G,H},F}+{{H,F},G}=0\{\{F,G\},H\} + \{\{G,H\},F\} + \{\{H,F\},G\} = 0 for all C2C^2 functionals. In particular the block αD\alpha D of equation 5 on the band, and the wave block J diag⁡(Dd,Dd)J\,\operatorname{diag}(D_d,D_d) with DdD_d symmetric, are Poisson.

Proof. Write Fz=δF/δzF_z = \delta F/\delta z and FzzF_{zz} for the second variation. By the chain rule, {{F,G},H}=⟨FzzLGz,LHz⟩+⟨Fz,LGzzLHz⟩\{\{F,G\},H\} = \langle F_{zz}LG_z,LH_z\rangle+ \langle F_z,LG_{zz}LH_z\rangle, the derivative of LL itself being zero. In the cyclic sum each functional’s second variation appears twice, once as ⟨FzzLGz,LHz⟩\langle F_{zz}LG_z,LH_z\rangle and once as ⟨FzzLHz,LGz⟩\langle F_{zz}LH_z,LG_z\rangle with the opposite sign of the skew operator between them; symmetry of FzzF_{zz} and skewness of LL make the two cancel. The remaining terms cancel the same way. This is the standard argument for constant-coefficient Hamiltonian operators [26 Cor. 7.5]. Skewness of the two blocks: αD\alpha D has symbol iαk\mathrm{i}\alpha k, purely imaginary and odd in kk; J diag⁡(Dd,Dd)J\,\operatorname{diag}(D_d,D_d) satisfies (JD)T=DTJT=−DJ=−JD(J D)^{\mathsf{T}} = D^{\mathsf{T}}J^{\mathsf{T}} = -D J = -J D because D=diag⁡(Dd,Dd)D = \operatorname{diag}(D_d,D_d) is symmetric and commutes with JJ.

Proposition 4 (The pencil). *Let D=∑aϱa∂aD = \sum_a \varrho_a \partial_a on the torus and PP the 2/3-rule projector. (i) αD+Du\alpha D + Du is skew-adjoint, and so is P(uD+Du)PP(uD + Du)P on the grid. (ii) In the continuum, αD+λ(uD+Du)\alpha D + \lambda(uD + Du) is

a Poisson operator for all (α,λ)(\alpha,\lambda). (iii) On the grid, the Jacobi identity for αD+λP(uD+Du)P\alpha D+\lambda P(uD+Du)P holds exactly on states and test functionals whose Fourier support is contained in the band on which cubic products are alias-free, and not in general otherwise.

Proof. (i) ⟨f,uDg+D(ug)⟩=⟨uf,Dg⟩−⟨Df,ug⟩=−⟨D(uf)+uDf,g⟩\langle f,uDg+D(ug)\rangle=\langle uf,Dg\rangle-\langle Df,ug\rangle=-\langle D(uf)+uDf,g\rangle by skewness of DD and symmetry of pointwise multiplication; both properties survive discretization, and PP is symmetric, so the sandwich is skew on the grid. (ii) DD and uD+DuuD+Du are the Hamiltonian pair of the KdV hierarchy in the direction DD; each is Hamiltonian and their sum is, which is the compatibility verified by Magri [20], see also Olver [26]; compatibility of two Hamiltonian operators is the Jacobi identity for every linear combination. (iii) For band-limited zz and test functionals with band-limited gradients, every quantity in the cyclic sum is a polynomial of degree at most three in band-limited fields; if the grid resolves those products without aliasing, the discrete computation coincides with the continuum one and the Jacobi identity holds by (ii). If the products alias, the discrete Leibniz rule D(fg)=fDg+gDfD(fg)=fDg+gDf fails on the aliased modes and the cancellation in (ii) does not go through; the residuals in Table 5 (0.17–0.78 on white-noise states, 10−1610^{-16} on band-limited ones) are this effect.

Casimir entropy and the friction operator

Proposition 5 (The entropy is a Casimir). For S[z]=∣Ω∣−1∫Ωs dxS[z]=|\Omega|^{-1}\int_{\Omega}s\,dx and any LL of the block form diag⁡(Lu,0)\operatorname{diag}(L_u,0), L δS/δz=0L\,\delta S/\delta z=0 for every state.

Proof. δS/δz=(0,1)\delta S/\delta z=(0,1) and the ss-block of LL is zero.

Proposition 6 (Symmetry, positivity, pointwise degeneracy). Let A=DMPΓϑ(z)A=D_M P\Gamma_{\vartheta}(z) with DMD_M as in equation (7), Γϑ\Gamma_{\vartheta} any pointwise matrix field, and P(x)=I−w^w^TP(x)=I-\hat w\hat w^{\mathsf T} with w=DMHδE/δzw=D_M^{\mathsf H}\delta E/\delta z. Then M=AATM=AA^{\mathsf T} is self-adjoint and positive semi-definite on real fields, and M δE/δz=0M\,\delta E/\delta z=0, for any parameters and any state.

Proof. AATAA^{\mathsf T} is self-adjoint and ⟨v,AATv⟩=∥ATv∥2≥0\langle v,AA^{\mathsf T}v\rangle=\lVert A^{\mathsf T}v\rVert^2\ge0 for any AA; reality follows from the even, real symmetrization of the symbols in equation (7). For degeneracy, ATδE/δz=ΓϑTPDMHδE/δz=ΓϑTPwA^{\mathsf T}\delta E/\delta z=\Gamma_{\vartheta}^{\mathsf T}P D_M^{\mathsf H}\delta E/\delta z=\Gamma_{\vartheta}^{\mathsf T}Pw, and Pw=w−w^⟨w,w^⟩slot=0Pw=w-\hat w\langle w,\hat w\rangle_{\mathrm{slot}}=0 pointwise. Hence M δE/δz=A(ATδE/δz)=0M\,\delta E/\delta z=A(A^{\mathsf T}\delta E/\delta z)=0.

Proposition 7 (Onsager factorization and transport separation). Under the flux/local slot and coefficient restrictions of equations (7) and (8), the friction operator M=AATM=AA^{\mathsf T} is self-adjoint and positive semi-definite for each frozen state. It therefore supplies no independently parameterized skew-adjoint transport generator. Its factorization accommodates flux-form diffusion and local damping, including the benchmark operators in Proposition 8. This statement does not exclude first-order perturbation terms arising when state-dependent coefficients or the pointwise energy-flux projector are differentiated about a nonuniform state.

Proof. For any fixed state zz, ⟨f,Mg⟩=⟨ATf,ATg⟩\langle f,Mg\rangle=\langle A^{\mathsf T}f,A^{\mathsf T}g\rangle, which is symmetric in f,gf,g, and ⟨f,Mf⟩=∥ATf∥2≥0\langle f,Mf\rangle=\lVert A^{\mathsf T}f\rVert^2\ge0. Thus MM has no skew-adjoint component at that state. The flux slots of DMD_M and the local slots permit the diffusion and damping factorizations explicitly constructed in Proposition 8. However, variation of z↦M(z)Szz\mapsto M(z)S_z differentiates Γϑ(z)\Gamma_{\vartheta}(z) and P(z)P(z) and can produce first-order terms in the perturbation for non variable-coefficient divergence-form diffusion. Consequently no stronger assertion that all terms of the full linearization have even differential order is made.

Proposition 8 (Representability). On the resolved bands and constitutive ranges admitting the coefficient choices described below, the factorized operator of equations (7)–(9) can be chosen so that M δS/δzM\,\delta S/\delta z equals, exactly, (νΔu,ν∣∇u∣2/T)(\nu\Delta u,\nu|\nabla u|^2/T) for heat conduction and (0,−γv,γv2/T)(0,-\gamma v,\gamma v^2/T) for the damped wave, with M δE/δz=0M\,\delta E/\delta z=0 holding without the projector PP.

Proof. Heat, one channel uu and one channel ss: take the flux symbol −ikaκ-ik_a\kappa on the uu row of DMD_M with a constant κ\kappa, identity on the local slot of ss, and Γ\Gamma with Γ(u,a),(u,a)=νT/κ\Gamma_{(u,a),(u,a)}=\sqrt{\nu T}/\kappa and Γs,(u,a)=−ν ∂au/(κT)\Gamma_{s,(u,a)}=-\sqrt{\nu}\,\partial_a u/(\kappa\sqrt{T}), all other entries zero. Then AT(f,g)=ΓTDMH(f,g)=ν(T∇f−g∇u/T)A^{\mathsf T}(f,g)=\Gamma^{\mathsf T}D_M^{\mathsf H}(f,g)=\sqrt{\nu}(\sqrt{T}\nabla f-g\nabla u/\sqrt{T}), which is CTC^{\mathsf T} of equation (12), and AAT(0,1)=(∇⋅(ν∇u),∣∇u∣2/T)AA^{\mathsf T}(0,1)=(\nabla\cdot(\nu\nabla u),|\nabla u|^2/T) by direct expansion. Degeneracy: AT(u,T)=ν(T∇u−T∇u/T)=0A^{\mathsf T}(u,T)=\sqrt{\nu}(\sqrt{T}\nabla u-T\nabla u/\sqrt{T})=0 pointwise, so PP acts as the identity on the relevant directions and is not needed. Inverting the saturation in equation (7) gives ba(k)2=κ2/(1−κ2ka2)b_a(k)^2 = \kappa^2/(1-\kappa^2 k_a^2), finite exactly when ∣κka∣<1\lvert\kappa k_a\rvert< 1; choosing κ2=νΔt\kappa^2 = \nu\Delta t makes this the band νΔt k2<1\nu\Delta t\,k^2 < 1, which contains the data band (νΔt k2≤0.36\nu\Delta t\,k^2 \le0.36 there), and keeps Γ\Gamma within its bound ∥Γ−I∥≤1\lVert\Gamma-I\rVert\le1 for T≤4/(νΔt kmax⁡2)≈10T \le4/(\nu\Delta t\,k_{\max}^2) \approx10. Wave, channels (q,v,s)(q,v,s): take DMD_M as the identity on the local slots of vv and ss (no flux slots used, qq row zero), Γv,v=γT\Gamma_{v,v}=\gamma T, Γs,v=−γ v/T\Gamma_{s,v}=-\sqrt{\gamma}\,v/\sqrt{T}; then A⊤(fq,fv,g)=γ(Tfv−gv/T)A^\top(f_q,f_v,g)=\sqrt{\gamma}(\sqrt{T}f_v-gv/\sqrt{T}), AA⊤(0,0,1)=(0,−γv,γv2/T)AA^\top(0,0,1)=(0,-\gamma v,\gamma v^2/T), and A⊤(−c2Δq,v,T)=0A^\top(-c^2\Delta q,v,T)=0; no band condition arises because no flux slot is used. Both instantiations are checked numerically to 10−1610^{-16} on band-limited states in §4. ▫

The laws

Theorem 1 (Metriplectic structure and the two laws). For any parameters, LL of Definition 3 is skew-adjoint and Poisson (on every state if λ=0\lambda=0; on the resolved band otherwise), MM of equation (9) is self-adjoint and positive semi-definite, and L δS/δz=0L\,\delta S/\delta z=0, M δEθ/δz=0M\,\delta E_\theta/\delta z=0. Along ∂tz=L δEθ/δz+M δS/δz\partial_t z=L\,\delta E_\theta/\delta z+M\,\delta S/\delta z,

dEθdt=0,dSdt=⟨δSδz,MδSδz⟩≥0,\frac{dE_\theta}{dt}=0,\qquad\frac{dS}{dt}=\left\langle\frac{\delta S}{\delta z},M\frac{\delta S}{\delta z}\right\rangle\ge0,

and every Casimir of LL—in particular SS, and ∫u\int u whenever λ=0\lambda=0—is invariant under the reversible flow ∂tz=L δEθ/δz\partial_tz=L\,\delta E_\theta/\delta z; for the pencil, ∫u\int u is conserved by the reversible flow of EθE_\theta (Proposition 1(iii)).

Proof. The structural statements are Propositions 3–6. Then E˙=⟨Ez,LEz⟩+⟨Ez,MSz⟩\dot E=\langle E_z,LE_z\rangle+\langle E_z,MS_z\rangle; the first term is zero by skewness (⟨v,Lv⟩=−⟨Lv,v⟩\langle v,Lv\rangle=-\langle Lv,v\rangle), the second by MEz=0ME_z=0 and self-adjointness of MM. Likewise S˙=⟨Sz,LEz⟩+⟨Sz,MSz⟩=−⟨LSz,Ez⟩+⟨Sz,MSz⟩=0+∥A⊤Sz∥2\dot S=\langle S_z,LE_z\rangle+\langle S_z,MS_z\rangle=-\langle LS_z,E_z\rangle+\langle S_z,MS_z\rangle=0+\lVert A^\top S_z\rVert^2. For a Casimir CC, C˙=⟨Cz,LEz⟩=−⟨LCz,Ez⟩=0\dot C=\langle C_z,LE_z\rangle=-\langle LC_z,E_z\rangle=0 under the reversible flow; αD\alpha D and the wave block vanish at k=0k=0, so ∫u\int u is a Casimir of LL when λ=0\lambda=0. For the pencil, (uD+Du)(u+φ′(u))=D(G(u)+uφ(u)+uφ′(u))(uD+Du)(u+\varphi'(u))=D(G(u)+u\varphi(u)+u\varphi'(u)) with G′(t)=t(1+φ′′(t))G'(t)=t(1+\varphi''(t)) is a total derivative, hence of zero mean in the continuum and on alias-free grid states. ▫

Theorem 2 (Bounded mechanical energy). Write Π≤2ψθ(u)=u⊤Au+b⋅u+c0\Pi_{\le2}\psi_\theta(u)=u^\top Au+b\cdot u+c_0, eθ(s)=T0s+e~θ(s)e_\theta(s)=T_0s+\widetilde e_\theta(s) with e~θ≥0\widetilde e_\theta\ge0, and B0=Eθ(z0)−T0S(z0)+c0B_0=E_\theta(z_0)-T_0S(z_0)+c_0. For a scalar field with Q=12∥u∥2Q=\frac12\lVert u\rVert^2, if a=λmax⁡(A)<12a=\lambda_{\max}(A)<\frac12, then along the continuous flow and every exactly solved discrete-gradient step,

(1−2a)Q(ut)−∣b∣2Q(ut)≤B0.(15)(1-2a)Q(u_t)-\lvert b\rvert\sqrt{2Q(u_t)}\le B_0. \tag*{(15)}

In particular, with h=1−2a>0h=1-2a>0 and xt=2Q(ut)x_t=\sqrt{2Q(u_t)},

xt≤∣b∣+∣b∣2+2hB0hx_t\le\frac{\lvert b\rvert+\sqrt{\lvert b\rvert^2+2hB_0}}{h}

whenever the square root is evaluated for a nonempty admissible initial sublevel set. For the wave, Q(q,v)=12(∥v∥2+cw2∥∇q∥2)Q(q,v)=\frac12(\lVert v\rVert^2+c_w^2\lVert\nabla q\rVert^2), the same conclusion holds if the mean of qq is fixed at zero (for example, zero initial means of qq and vv), the Poincaré inequality ∥q∥2≤CP2∥∇q∥2\lVert q\rVert^2\le C_P^2\lVert\nabla q\rVert^2 applies, and 2a++K<12a_++K<1, where a+=max⁡(a,0)a_+=\max(a,0) and K=max⁡(1,CP2/cw2)K=\max(1,C_P^2/c_w^2). In that case,

(1−2a++K)Q(qt,vt)−∣b∣2KQ(qt,vt)≤B0.(16)(1-2a_++K)Q(q_t,v_t)-\lvert b\rvert\sqrt{2KQ(q_t,v_t)}\le B_0. \tag*{(16)}

Alternatively, a globally finite lower bound on φθ\varphi_\theta gives Q(ut)≤Eθ(z0)−T0S(z0)−inf⁡φθQ(u_t)\le E_\theta(z_0)-T_0S(z_0)-\inf\varphi_\theta without the quadratic coercivity argument. The split integrator is not covered by these exact discrete-time assertions.

Proof. Because ψθ≥0\psi_\theta\ge0, φθ(u)≥−u⊤Au−b⋅u−c0\varphi_\theta(u)\ge-u^\top Au-b\cdot u-c_0. For scalar fields, Cauchy–Schwarz and the definition of aa yield ∫φθ(u)≥−2aQ(u)−∣b∣2Q(u)−c0\int\varphi_\theta(u)\ge-2aQ(u)-\lvert b\rvert\sqrt{2Q(u)}-c_0, where integrals use the normalized measure. Energy conservation, entropy production, and e~θ≥0\widetilde e_\theta\ge0 imply Q+∫φθ≤Eθ(z0)−T0S(z0)Q+\int\varphi_\theta\le E_\theta(z_0)-T_0S(z_0), giving equation 15. Setting x=2Qx=\sqrt{2Q} gives 12hx2−∣b∣x−B0≤0\frac12hx^2-\lvert b\rvert x-B_0\le0, which proves the stated upper root. For the mean-zero wave, Poincaré gives ∥(q,v)∥2≤2KQ\lVert(q,v)\rVert^2\le2KQ; thus ∫φθ≥−2a+KQ−∣b∣2KQ−c0\int\varphi_\theta\ge-2a_+KQ-\lvert b\rvert\sqrt{2KQ}-c_0, and the same conservation argument gives equation 16. Its left side is coercive when 2a++K<12a_++K<1. If inf⁡φθ>−∞\inf\varphi_\theta>-\infty globally, use that lower bound directly in the energy identity. The discrete-gradient case follows from Theorem 3 for an exactly solved implicit update. ▫

Remark 2. The hypothesis is the quadratic gauge of §3.2: a term a∣u∣2a|u|^2 surviving in φθ\varphi_\theta is indistinguishable from rescaling QQ, and a≥12a \ge\frac{1}{2} would flip the sign of the effective quadratic energy. It is also measurable. The exact linear step integrates the flow of QQ with the learned symbol, while the explicit remainder carries 2a2a of the same flow, so a trained model matches the data only if the learned symbol equals (1+2a)−1(1+2a)^{-1} times the exact one. The symbol errors of §4 (≤0.07%\leq0.07\% on advection, up to 2%2\% on the wave, up to 2.3%2.3\% for Burgers λ\lambda) suggest a small residual quadratic gauge under this model interpretation, but do not independently certify the global curvature or the wave coercivity assumptions. For heat, which has no reversible symbol to compare, the bound column of Table 6 uses inf⁡φθ\inf\varphi_\theta over the data range and is loose (≤0.36\leq0.36).

Πmodel/Π⋆\Pi_{\mathrm{model}}/\Pi^\starQ10/Q10⋆Q_{10}/Q^\star_{10}max⁡tQ/bound\max_t Q/\mathrm{bound}
1Dheat0.92 / 1.00 / 1.001.03 / 1.00 / 1.000.26 / 0.14 / 0.13
1DBurgers1.01 / 1.01 / 1.011.00 / 0.99 / 1.000.16 / 0.15 / 0.10
1Dwave†0.77 / 0.90 / 0.761.07 / 1.03 / 1.080.89 / 0.76 / 0.89
1Dadvection∣Πmodel∣≤10−4|\Pi_{\mathrm{model}}| \le10^{-4}1.000 / 1.000 / 1.0000.47 / 0.42 / 0.45
2Dheat0.90 / 1.10 / 0.921.05 / 0.95 / 1.040.39 / 0.15 / 0.38
2DBurgers0.92 / 1.03 / 0.931.05 / 0.99 / 1.050.43 / 0.28 / 0.39
2Dwave0.94 / 0.86 / 0.941.02 / 1.04 / 1.020.88 / 0.84 / 0.88
2Dadvection∣Πmodel∣≤7⋅10−4|\Pi_{\mathrm{model}}| \le7 \cdot10^{-4}0.998 / 0.998 / 0.9960.45 / 0.47 / 0.43

Table 6. Dissipation calibration of PG-phys (three-seed means; FNO / Transolver / CNO): fractional one-frame decay of the physical energy against the truth, physical energy after ten frames relative to the truth, and max⁡tQ\max_t Q relative to the bound of Theorem 2, evaluated using the reference quantity a=0a = 0 and −inf⁡φθ-\inf\varphi_\theta over the sampled data range (not a global theorem certificate; Remark 2). †: Transolver entry over two seeds (the third diverged in training; §D.3).

Lemma 1 (Discrete gradients). Let ∇ˉE(z,z′)\bar{\nabla} E(z,z') be the Gonzalez discrete gradient of equation 13 and ∇ˉS=(0,1)\bar{\nabla} S=(0,1). Then ⟨∇ˉE,z′−z⟩=Eθ[z′]−Eθ[z]\langle\bar{\nabla} E,z'-z\rangle=E_\theta[z']-E_\theta[z], ⟨∇ˉS,z′−z⟩=S[z′]−S[z]\langle\bar{\nabla} S,z'-z\rangle=S[z']-S[z], and L(zˉ)∇ˉS=0L(\bar{z})\bar{\nabla} S=0.

Proof. The first identity is the defining property of the Gonzalez discrete gradient [6, 22]; the second holds because SS is linear; the third because ∇ˉS=(0,1)\bar{\nabla} S=(0,1) lies in the ss-block, which every LL of the form diag⁡(Lu,0)\operatorname{diag}(L_u,0) annihilates, whatever the state at which LuL_u is evaluated.

Theorem 3 (Exact discrete first and second laws). Let zt+1=zt+Δt[L(zˉ)∇ˉE(zt,zt+1)+Mˉ∇ˉS]z_{t+1}=z_t+\Delta t\left[L(\bar{z})\bar{\nabla} E(z_t,z_{t+1})+\bar{M}\bar{\nabla} S\right] with Mˉ=AˉAˉT\bar{M}=\bar{A}\bar{A}^{\mathsf{T}}, Aˉ=DMPˉ Γϑ(z∗)\bar{A}=D_M\bar{P}\,\Gamma_\vartheta(z^*) for any state z∗z^*, and Pˉ\bar{P} the projector off DMH∇ˉED_M^H\bar{\nabla} E. Then, exactly and for any Δt\Delta t,

Eθ[zt+1]=Eθ[zt],S[zt+1]−S[zt]=Δt∥AˉT∇ˉS∥2≥0.\begin{aligned} E_\theta[z_{t+1}]&=E_\theta[z_t],\\ S[z_{t+1}]-S[z_t]&=\Delta t\left\|\bar{A}^{\mathsf{T}}\bar{\nabla} S\right\|^2\geq0. \end{aligned}

Proof. The argument is the discrete-gradient energy argument of Gonzalez [6] and its metriplectic extension [32, 29], applied to the Casimir structure of Lemma 1. By Lemma 1, Eθ[zt+1]−Eθ[zt]=⟨∇ˉE,zt+1−zt⟩=Δt⟨∇ˉE,L(zˉ)∇ˉE⟩+Δt⟨∇ˉE,Mˉ∇ˉS⟩E_\theta[z_{t+1}]-E_\theta[z_t]=\langle\bar{\nabla} E,z_{t+1}-z_t\rangle=\Delta t\langle\bar{\nabla} E,L(\bar{z})\bar{\nabla} E\rangle+\Delta t\langle\bar{\nabla} E,\bar{M}\bar{\nabla} S\rangle. The first term vanishes by skewness of L(zˉ)L(\bar{z}) (Propositions 3, 4(i)); the second because AˉT∇ˉE=Γϑ(z∗)TPˉDMH∇ˉE=0\bar{A}^{\mathsf{T}}\bar{\nabla} E=\Gamma_\vartheta(z^*)^{\mathsf{T}}\bar{P}D_M^H\bar{\nabla} E=0 by construction of Pˉ\bar{P}, whatever z∗z^*, so Mˉ∇ˉE=0\bar{M}\bar{\nabla} E=0, and Mˉ\bar{M} is self-adjoint. Likewise S[zt+1]−S[zt]=Δt⟨∇ˉS,L(zˉ)∇ˉE⟩+Δt⟨∇ˉS,Mˉ∇ˉS⟩S[z_{t+1}]-S[z_t]=\Delta t\langle\bar{\nabla} S,L(\bar{z})\bar{\nabla} E\rangle+\Delta t\langle\bar{\nabla} S,\bar{M}\bar{\nabla} S\rangle; the first term equals −Δt⟨L(zˉ)∇ˉS,∇ˉE⟩=0-\Delta t\langle L(\bar{z})\bar{\nabla} S,\bar{\nabla} E\rangle=0 by Lemma 1, the second is Δt∥AˉT∇ˉS∥2\Delta t\|\bar{A}^{\mathsf{T}}\bar{\nabla} S\|^2.

Remark 3. The proof uses only that ker⁡L(z)\ker L(z) contains ∇ˉS\bar{\nabla} S for every zz, which is the case because SS is a Casimir of every LL of block form, and that Mˉ∇ˉE=0\bar{M}\bar{\nabla} E=0, which the pointwise projector provides for a coefficient field evaluated at any state. For the projected operator (I−PS(z))DL(I−PS(z))(I-P_S(z))D_L(I-P_S(z)) of GENERIC-FNO the kernel is spanned by δS/δz∣z\delta S/\delta z|_z and moves with zz; no single vector lies in ker⁡L(zt)\ker L(z_t), ker⁡L(zˉ)\ker L(\bar{z}) and ker⁡L(zt+1)\ker L(z_{t+1}) at once, and the first-order term in the entropy balance does not cancel. This is the concrete payoff of degeneracy through a Casimir rather than through a projection. The theorem concerns the solution of equation 14; whether the fixed-point iteration of §A.5 reaches it is a separate question, answered there.

Two further statements

Proposition 9 (Pullback structures). For any C2C^2 diffeomorphism φ\varphi of HH and any Poisson operator LL, Lφ=(Dφ)−1L(Dφ)−TL_\varphi=(D\varphi)^{-1}L(D\varphi)^{-\mathsf{T}} is Poisson, and CC is a Casimir of LL if and only if C∘φC\circ\varphi is a Casimir of LφL_\varphi.

Proof. A Poisson operator is a contravariant 2-tensor and the Jacobi identity is coordinate-free, so the pullback of a Poisson tensor is Poisson [21 Ch. 10]. By the chain rule δ(C∘φ)/δz=(Dφ)TδC/δφ∣φ(z)\delta(C\circ\varphi)/\delta z=(D\varphi)^{\mathsf{T}}\delta C/\delta\varphi|_{\varphi(z)}, hence Lφ δ(C∘φ)/δz=(Dφ)−1L δC/δφL_\varphi\,\delta(C\circ\varphi)/\delta z=(D\varphi)^{-1}L\,\delta C/\delta\varphi, which vanishes iff L δC/δw=0L\,\delta C/\delta w=0.

Proposition 10 (Resolution and dimension independence). Let ιN→N′\iota_{N\to N'} be band-limited prolongation (Fourier zero-padding) and ΦN\Phi_N one split or discrete-gradient step of the model on an NN-point grid. For states whose Fourier support lies within the bands of LL and MM and below the de-aliasing limit of the coarser grid, ΦN′∘ιN→N′=ιN→N′∘ΦN\Phi_{N'}\circ\iota_{N\to N'}=\iota_{N\to N'}\circ\Phi_N.

Proof sketch. Every component of the step is per-mode (the multipliers of LL and DMD_M, the exact unitary flow, the projector PP), per-point (the constitutive functions, Γϑ\Gamma_\vartheta, the slot projector PP), or a mean-pooled functional whose Riesz-scaled gradient is grid-independent by the inner-product convention of Appendix A.1. Per-mode maps commute with zero-padding on band-limited inputs; per-point maps commute with band-limited interpolation exactly when their outputs are resolved, which the band hypothesis guarantees; the encoder and the coefficient network are neural operators that are discretization-convergent by construction for the FNO backbone, and are excluded from the claim for the convolutional backbone and for the Transolver, whose local-mixing kernels are defined in grid units. The measured invariance to four digits in §D.6 is the empirical content.

Extended results, limitations and scope

Structural identities: all equations and the learned-EE, SS ablation

Table 5 extends Table 1 to the wave, in one and two dimensions, and to the learned-EE, SS ablation. For both models the skewness of LL, the symmetry of MM, the two degeneracy conditions and E˙=0\dot{E}=0 hold to rounding error in every column, and the entropy production is positive. The two models differ in the mass row. The learned-EE, SS ablation has no conservation mask, so that its MM does not conserve ∫u\int u. The Jacobi rows are discussed in § 4.

Dissipation calibration

PG-phys recovers 0.90–1.03 of the true dissipation rate of heat and Burgers in eleven of the twelve cells, and 1.10 in the twelfth (2D Transolver heat). On the wave it recovers 0.76–0.94. Advection is non-dissipative for all practical purposes (∥Πmodel∥≤7×10−4\lVert\Pi_{\mathrm{model}}\rVert\le7\times10^{-4}), with QQ conserved to 4×10−34\times10^{-3} and rmech≤1.2×10−3r_{\mathrm{mech}}\le1.2\times10^{-3}. The empirical, data-range ratio max⁡tQ/bound\max_t Q/\mathrm{bound} is below one for all 71 seeds that trained, and below 0.9 in every cell. These numbers should be compared with those of the learned-EE, SS ablation, which satisfies the same degeneracy identities to machine precision while its physical energy grows by up to 12×12\times on the wave and by 1.4–3.1×\times on Burgers within ten frames. Exact degeneracy constrains the functionals of the model. To constrain the physics, the energy has to be the physical one.

Training failures

Of the 72 seed-level runs, seventy-one remain finite and have a measured data-range bound ratio below one. The exception is one Transolver 1D-wave seed, which diverged in training (marked in Table 2). Among the ablations, the λ=0\lambda= 0 model diverged on three Burgers seeds (1D CNO, 1D Transolver, 2D FNO), that is, on the one equation it cannot represent.

Long-horizon, data-efficiency and off-distribution tests

The table is discussed in § 4; here we add three remarks. The first concerns the column n↑n_{\uparrow}, which distinguishes two ways of getting the energy wrong. The unconstrained FNO never raises QQ on any input (n↑=0n_{\uparrow} = 0 throughout). It obeys no law in either direction, however: at equal optimizer steps it decays Burgers 2.5× too slowly, and on the ×2-amplitude advection inputs it loses 21–26% of a conserved energy, even with 36× the optimizer steps. GENERIC-FNO, on the other hand, raises QQ on most frames of advection and of the wave. The second remark is that the ratio of 2.2 for PG-phys at frame 100 comes from under-damping, which is monotone, and not from any creation of energy (n↑=0n_{\uparrow}=0; the ratio is 2.1 on the wider band). Thirdly, the non-zero values of n↑n_{\uparrow} for PG-phys (1–4 on the wave rows, 1 on the ×2\times2 heat row) all belong to the last frames before the split step diverges, and the entries Q/Q⋆Q/Q^\star of those rows are taken at the last finite frame of a diverging rollout. Up to those frames QQ is monotone. The wave divergence cannot be removed by sub-cycling the split step. In an earlier training of the same seed the failure frame was 32, 34, 35, 38 for 8, 16, 32, 64 sub-steps, while the ten-frame error did not change (0.0416–0.0413); the implicit step of Appendix D.6 does remove it. For the ×2\times2 Burgers inputs the situation is different. There sub-cycling is sufficient for this seed, the rollout diverging with 8 sub-steps and running to frame 100 with 16, although it is not sufficient for all seeds (Table 9).

Jacobi residual on data states

With functionals on the data band, the 1D residual is at the single-precision floor at frame 0 and 7×10−37 \times10^{-3} at the end of the Burgers window, by which time the solution has steepened. With functionals on the full grid it is 10−210^{-2}–0.9, and in 2D, where the data band is not cubically resolved, it is 0.05–0.3 for either class of functionals. We conclude that the trained pencil is Poisson on the data band in the weak sense, that is, against test functionals which live on that band, and that it is not Poisson on the aliased modes. The two laws, on the other hand, do not rely on the Jacobi identity. Both E˙0=0\dot{E}_0=0 and S˙≥0\dot{S}\ge0 follow from the skewness of LL and the two degeneracy conditions, which hold at every state (Table 5). What aliasing affects is only whether the reversible flow on the aliased modes is Hamiltonian. That flow is still skew, and since the de-aliasing projector keeps the output of the pencil on the resolved band, thermodynamic consistency is not touched. Nor have we seen an instability that could be attributed to the residual, either in the hundred-frame rollouts of Table 7 or in the λ=0\lambda=0 control, which satisfies the Jacobi identity at every state. The λ=0\lambda=0 model differs from PG-phys in what it can represent, not in its stability, and the wave, on which PG-phys does diverge, has no pencil.

Super-resolution and integration

The FNO version of PG-phys can be evaluated at other resolutions without modification. For three 1D-heat seeds the errors at 64/128/256 points are 0.01012/0.01011/0.01011, 0.01806/0.01803/0.01802 and 0.02011/0.02010/0.02010, and the thermodynamic diagnostics agree to four digits (Proposition 10). CNO is excluded from this test because its kernels are defined on the grid and are not resolution-invariant; Transolver was not evaluated. The correct Riesz scaling of the variational derivative is essential here. In an earlier version with Euclidean scaling the error grew from 0.011 to 0.078 to 0.125 over the same three grids. We also replaced the trained split step by 3/6/12 discrete-gradient iterations. This reduces the energy error per step from 1.2×10−51.2 \times10^{-5} to 3.5×10−6/1.9×10−7/2.6×10−83.5 \times10^{-6}/1.9 \times10^{-7}/2.6 \times10^{-8}, while the rollout error changes only from 0.0183 to 0.0186 and the thermodynamic diagnostics do not change in their first two digits. The same study on a trained 2D-heat FNO model gives 9×10−59 \times10^{-5} to 10−6/10−7/1.5×10−710^{-6}/10^{-7}/1.5 \times10^{-7}, with the rollout error, Q10/Q10⋆Q_{10}/Q^\star_{10} and max⁡tQ/\max_t Q/bound unchanged to three digits. In these studies the coefficient field is evaluated at the midpoint, and the fixed-point solve converges for single steps of the FNO models. It does not converge on the trained 2D-heat Transolver models. Nor does it converge when it is used as the inference integrator over a hundred frames on the trained 1D FNO models at Δt=0.1\Delta t = 0.1: the rollout leaves the finite range by frame 4–18 on heat, Burgers and the wave, and only on advection does it run, with the phase error of the midpoint rule that is discussed below.

Newton–Krylov solve of the discrete-gradient step. The difficulty lies with the solver and not with the step. For Table 9 and Figure 2 we solve equation 14 by an inexact Newton method. GMRES is applied to Jacobian–vector products of the residual, which are obtained by reverse-over-reverse automatic differentiation so that the Jacobian is never formed, and the Newton update is backtracked on the residual norm. If a solve does not reach a relative residual of 10−810^{-8}, the step is repeated as two half steps, down to 1/321/32 of a frame if necessary. As in Theorem 3, Γϑ\Gamma\vartheta is evaluated at the midpoint inside the solve, and everything is done in double precision on the trained weights. To give an idea of the difference: for one frame from trained states (seed 0), the residual after 6/12/50 fixed-point iterations is 4×10−3/1×10−3/2×10−64 \times10^{-3}/1 \times10^{-3}/2 \times10^{-6} on Burgers and 0.026/0.028/0.057 on the wave, where the iteration diverges, whereas Newton reaches 4×10−124 \times10^{-12} on both in three iterations and 24–35 Krylov vectors. In the table the 1D FNO models of all three seeds are rolled out for a hundred frames on 24 held-out trajectories per input set, which makes 864 trajectories per integrator. Five observations can be made.

The laws. With the solved step the energy of the model changes by at most 2×10−102 \times10^{-10} of its value per frame in distribution, and by at most 3×10−93 \times10^{-9} on any rollout. For the split step, where it runs, the change is 10−710^{-7}–4×10−34 \times10^{-3} per frame. Moreover SS increases on every frame, and there is no frame on which the physical energy rises, whereas there are 13 such frames for the split step.

Divergence. The split step loses 100 of the 864 trajectories. On the wave these are 7 of 72 in distribution (from two of the three seeds, starting at frames 39 and 29), 11 on the band-12 inputs and 63 at twice the amplitude; the remaining ones are 13 on heat and 6 on Burgers, both at twice the amplitude. The discrete-gradient step loses no trajectory in distribution or on the wider band, on any equation, and none at all on heat or Burgers. On the ×2\times2-amplitude wave it loses 7 of 72 with four steps per frame and 9 with one. A trajectory is stopped when the solve fails at the smallest step, or when the latent entropy density has grown a thousand-fold. We also had to impose a wall-clock limit of 45 minutes, which three of the six ×2\times2-amplitude wave rollouts of the solved step reached at frames 42–77; these are counted over the frames that were run.

Accuracy. With one discrete-gradient step per frame the transport terms carry the phase error of the midpoint rule, whereas the split step integrates them exactly. The error at ten frames is 0.044 against 0.0023 on advection, and 0.117 against 0.053 on the wave. With four steps per frame the phase error is gone (0.0037 and 0.054; on Burgers 0.032 against 0.040).

What the solver does not change. Heat remains under-damped at late times whichever integrator is used (error 0.55 at frame 100 on the seed mean; Q/Q∗=2.19Q/Q^* = 2.19 for seed 0). On the wave, the solved step brings to light the same miscalibration, with the opposite sign. No trajectory is lost, but the error exceeds one at frame 47 for one seed, and on the seed mean it is 0.86 at frame 100 with four steps per frame. For seed 0 the model follows the energy of the solver up to frame 30 (0.43 against 0.40 of the initial energy); at frame 50 it has half of it, and at frame 100 only 1%.

Cost. All costs are per frame, relative to the split step and on the seed mean. On heat, advection and Burgers the solve costs 4–6× with one step and 8–12× with four (two to three Newton iterations per step). On the wave in distribution it costs 24× and 19×, and for seed 0, which needs steps of 1/8 to 1/16 of a frame, 59× and 35×. At twice the amplitude it costs two orders of magnitude. We also tried a cheaper alternative, an exponential Rosenbrock–Euler step in place of the explicit sub-steps (matrix-free φ1\varphi_1 in a twelve-dimensional Krylov space, one step per frame). It cannot replace the solved step. At 1.3–1.6× the cost of the split step it agrees with the split step in distribution and removes the ×2\times2-amplitude heat divergence for two of the three seeds; but it diverges by frame 5 on the ×2\times2 Burgers inputs for all three seeds, loses 155 trajectories altogether, and has no discrete law.

Other backbones and two dimensions. The same solve was applied to the seed-0 models with a Transolver backbone in 1D (heat, advection and Burgers; the wave seed did not train) and with FNO and Transolver backbones in 2D (all four equations), on eight held-out trajectories each, over 100 frames in 1D and 60 in 2D. For a single frame Newton brings the residual below 10−710^{-7} on all eleven models, in two to four iterations and with 9–38 Krylov vectors. Fifty fixed-point iterations, by contrast, diverge on the Transolver heat models in 1D and 2D and on the 2D Transolver Burgers model (residual 0.25–0.42). Along the rollouts the solved step changes EθE_\theta by at most 4×10−104\times10^{-10} per frame, never raises QQ and loses no trajectory, while the split step loses three of eight on 1D Transolver heat (from frame 58) and four of eight on 2D Transolver Burgers (from frame 26). The cost is 4–7× that of the split step with one step per frame and 8–12× with four, and this includes the 2D wave. As regards accuracy the picture is that of the 1D FNO models (2D advection at ten frames: 0.004 split, 0.10 one step, 0.008 four steps). The same is true of the model errors on which the solver has no influence. In 2D the wave error exceeds one at frame 38–41 under every integrator, without any trajectory being lost, and at frame 60 the model has a tenth of the solver’s energy; the FNO Burgers model has 1% of it.

Cost

PG-phys has 0.3–0.8× the parameters of the FNO/CNO baselines (1.2–2× for Transolver), but it trains 24–46× more slowly (FNO, CNO; 12–22× for Transolver). The backbone is not responsible for this. The gradient of QQ is available in closed form ( uu, or (−c2Δq,v)(-c^2\Delta q,v)), eθ′e'_\theta and ϕθ′\phi'_\theta are derivatives of pointwise MLPs, and all operators act per mode, so that every component scales with the grid like an FFT. The cost has two sources, both of them choices of implementation. The coefficient field Γθ(z)\Gamma_\theta(z) is evaluated again at each of the nsub=8n_{\mathrm{sub}}=8 explicit sub-steps of a frame, and during training we differentiate through all of them, which requires second-order automatic differentiation through the energy gradient. Neither choice is forced by the structure. Since the laws hold for Γθ\Gamma_\theta evaluated at any state (Appendix A.5), one evaluation per frame would be enough, and this alone saves seven of the eight evaluations of the coefficient network. The sub-cycling, for its part, could be replaced by an implicit or exponential treatment of the friction (both are tested at inference in Appendix D.6). We estimate that an overhead of 3–5× would remain after both changes, most of it due to the second-order automatic differentiation of the pointwise energy. Nothing in the construction changes in 3D, and the verification of GENERIC-FNO at 64364^3 used the same per-mode operators; we have, however, not trained a 3D model.

Limitations and scope

Jacobi identity. With a constant LL the Jacobi identity holds at every state. Once the Lie–Poisson term is present it holds to machine precision on alias-free states and functionals, but on white-noise states aliasing produces residuals of 0.17–0.78. On the data states of our experiments the residual is at the single-precision floor against functionals on the data band; against functionals on the full grid it is 10−210^{-2}–0.9 in 1D, and in 2D it is 0.05–0.3 (Table 8). In other words, the pencil is Poisson, in the weak sense, on the band that the data occupy. For a problem whose solution fills the spectrum this would no longer be true, and one would need either a finer grid or a de-aliased cubic product (a 1/2-rule). The dispersive member D3D^3 of the pencil has been excluded for reasons of stability, and dispersive equations are therefore outside the scope of this paper.

Cost of the pencil. On the linear equations the model with a constant LL is the better one, by an order of magnitude on advection and by a factor of 1.5–3 on heat. In the Lie–Poisson model the transport coefficient and the learned potential must both converge to zero for a gradient flow, and they must do so while the friction operator is still being learned. Heat is where this costs most. The one cell that is lost on all three seeds is heat with the 1D FNO, and the 2D heat cells with FNO and CNO are lost in the mean. On heat there is nothing for LL to do. The baseline can fit the heat propagator e−νk2Δte^{-\nu k^2\Delta t} as a single spectral multiplier in one FNO layer, whereas our model must express it as DMΓΓ⊤DMHD_M\Gamma\Gamma^\top D_M^H applied to (0,1)(0,1), with Γ\Gamma depending on the temperature, i.e. as a product of learned factors. Since the exact operator belongs to the family (Proposition 8), the loss is one of optimization and cannot be one of expressivity. Consistently with this, the λ=0\lambda=0 model, which has less to learn, reduces the gap and is ahead of PG-phys in every heat cell. On the small-Δt\Delta t tested of GENERIC-FNO (Table 4) the same loss appears on Burgers too, because the friction symbols have to shrink by two orders of magnitude from their initialization. Two tests suggest themselves: an initialization of the friction symbols that takes Δt\Delta t into account, and a sweep over capacity and schedule for the friction operator alone.

Baselines. All models are trained with one protocol of roughly 350 optimizer steps. The FNO and CNO baselines converge within it. The Transolver baseline does not; it is still improving at the end, and with five times the budget it reaches 0.007 on 1D heat and 0.006 on 1D advection (Appendix § 7). The Transolver column is therefore a comparison at equal budget, and against a fully trained Transolver PG-phys would lose on heat and still win on advection, Burgers and the wave. The 24–46× training cost is controlled for by the compute-matched FNO of Table 3. At equal wall-clock time this FNO is the more accurate model at ten frames on all four 1D equations, by 1.4–80× on heat, advection and the wave and by 10% on Burgers, and it is still the more accurate surrogate at a hundred frames in distribution (Table 7). The ten-frame advantage shown in Table 2 is thus an advantage at equal optimizer steps. What the structure provides at any budget is the energy balance of § 4, and what one pays for it is accuracy per unit of wall-clock time.

Integration. Under the linear flow the split step conserves the mechanical energy exactly, but it does not conserve the total energy, and there is no a-priori bound on the energy. The consequences can be seen in Table 7 and Table 9. In distribution the 1D wave rollout diverges for two of the three seeds (at frames 29 and 39); on the ×2-amplitude heat and wave inputs the rollouts diverge for every seed; and in all these cases the physical energy is monotone until the last few frames before the divergence. Sub-cycling can be chosen at inference time and is sometimes sufficient (16 sub-steps hold the ×2 Burgers rollout for two of the three seeds). If exact discrete laws are required, the implicit discrete-gradient step has to be used. With the fixed-point solve of the submitted version this step is not a usable integrator on the trained models. With a Newton–Krylov solve it is (Appendix § 9.6), and it then removes every divergence in distribution and on the wider band, as well as all divergences on heat and Burgers. Three limitations remain. The first is the cost, which per frame is 4–12× that of the split step on heat, advection and Burgers and 19–24× on the wave on the seed mean (35–59× for the seed that needs steps of 1/8 to 1/16 of a frame). We tried two Fourier preconditioners for the Krylov solve, the exact linear flow and the linearization at the mean state; the first halves the number of Krylov iterations on advection, but neither changes the cost on the wave. The second limitation concerns the ×2-amplitude wave inputs, on which the solve fails for 7–9 of the 72 trajectories at the smallest step we tried. Here Theorem 2 is of no help, since it bounds the mechanical energy and says nothing about the regularity of the latent entropy density, which on these inputs reaches three times its in-distribution range. The third is that the checks in 2D and with Transolver rest on one seed and eight trajectories.

Late-time calibration. The dissipation rate is calibrated over the ten-frame window of Table 6, in which the fast modes dominate. At a hundred frames on heat only the slowest modes are left, and for these PG-phys under-damps: the physical energy is monotone, but it is 2.2×2.2 \times that of the solver, and the error is 0.82, against 0.0005 for the compute-matched FNO (Table 7). The wave turns out to have the same defect with the opposite sign, which becomes visible once its rollout is integrated with the laws exact. The model then follows the energy of the solver up to frame 30 and is over-damped afterwards, and the same is true of the 2D wave and Burgers models (Appendix § 9.6). An obvious remedy is to draw the four-frame training windows from hundred-frame trajectories, but as it stands this does not work. On heat it does bring the ratio to 0.92 and the error at frame 100 to 0.25; the Burgers training then diverges, however, and the wave rollout fails earlier (frame 23 instead of 39). The remaining candidate is a loss term on the late-time rate. None of this affects the laws.

Scope of the guarantees. The guarantees refer to the functionals of the model itself. For any parameters EθE_\theta is conserved and SS does not decrease, and the mechanical energy is bounded under the scalar or wave hypotheses of Theorem 2. The symbol comparisons are empirical diagnostics; they do not certify wave coercivity. Nor do the guarantees imply that the learned flow agrees with the governing equation. This has to be assessed separately, by comparing Πmodel\Pi_{\mathrm{model}} with Π⋆\Pi^\star under the same normalization, and one should keep in mind that a model of this form applied to a forced or open system, which is outside GENERIC, would still report residuals at machine precision. The present study is restricted to scalar and (q,v)(q,v) fields on periodic domains, and to four canonical equations with known dissipation in one and two dimensions. Extensions to three dimensions, to vector and multi-field systems, to non-periodic boundaries and to complex fluids, in which the latent entropy density can represent a physical thermodynamic variable, are left for future work.

References

  1. [1]Benedikt Alkin, Andreas Fürst, Simon Schmid, Lukas Gruber, Markus Holzleitner, and Johannes Brandstetter. Universal physics transformers: A framework for efficiently scaling neural operators. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, 2024.arxiv.org/abs/2402.12365
  2. [2]Qianying Cao, Somdatta Goswami, and George Em Karniadakis. Laplace neural operator for solving differential equations. Nature Machine Intelligence, 6:631–640, 2024. doi: 10.1038/s42256-024-00844-4.DOI
  3. [3]Elena Celledoni, Volker Grimm, Robert I. McLachlan, David I. McLaren, Dion O’Neale, Brynjulf Owren, and G. Reinout W. Quispel. Preserving energy resp. dissipation in numerical PDEs using the “average vector field” method. Journal of Computational Physics, 231(20):6770–6789, 2012. doi: 10.1016/j.jcp.2012.06.022.DOI
  4. [4]Miles Cranmer, Sam Greydanus, Stephan Hoyer, Peter Battaglia, David Spergel, and Shirley Ho. Lagrangian neural networks. In ICLR 2020 Workshop on Integration of Deep Neural Models and Differential Equations, 2020.arxiv.org/abs/2003.04630
  5. [5]Sybren R. de Groot and Peter Mazur. Non-Equilibrium Thermodynamics. North-Holland, Amsterdam, 1962.
  6. [6]Oscar Gonzalez. Time integration and discrete Hamiltonian systems. Journal of Nonlinear Science, 6(5):449–467, 1996. doi: 10.1007/BF02440162.DOI
  7. [7]Sam Greydanus, Misko Dzamba, and Jason Yosinski. Hamiltonian neural networks. In Advances in Neural Information Processing Systems (NeurIPS), volume 32, 2019.arxiv.org/abs/1906.01563
  8. [8]Miroslav Grmela and Hans Christian Öttinger. Dynamics and thermodynamics of complex fluids. I. Development of a general formalism. Physical Review E, 56(6):6620–6632, 1997. doi: 10.1103/PhysRevE.56.6620.DOI
  9. [9]Anthony Gruber, Kookjin Lee, and Nathaniel Trask. Reversible and irreversible bracket-based dynamics for deep graph neural networks. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, 2023.arxiv.org/abs/2305.15616
  10. [10]Anthony Gruber, Kookjin Lee, Haksoo Lim, Noseong Park, and Nathaniel Trask. Efficiently parameterized neural metriplectic systems. In International Conference on Learning Representations (ICLR), 2025.
  11. [11]Quercus Hernández, Alberto Badías, David González, Francisco Chinesta, and Elías Cueto. Structure-preserving neural networks. Journal of Computational Physics, 426:109950, 2021. doi: 10.1016/j.jcp.2020.109950.DOI
  12. [12]Pengzhan Jin, Zhen Zhang, Aiqing Zhu, Yifa Tang, and George Em Karniadakis. SympNets: Intrinsic structure-preserving symplectic networks for identifying Hamiltonian systems. Neural Networks, 132:166–179, 2020. doi: 10.1016/j.neunet.2020.08.017.DOI
  13. [13]Pengzhan Jin, Zhen Zhang, Ioannis G. Kevrekidis, and George Em Karniadakis. Learning Poisson systems and trajectories of autonomous systems via Poisson neural networks. IEEE Transactions on Neural Networks and Learning Systems, 2022. doi: 10.1109/TNNLS.2022.3148734.DOI
  14. [14]Allan N. Kaufman. Dissipative Hamiltonian systems: A unifying principle. Physics Letters A, 100(8):419–422, 1984.DOI
  15. [15]Nikola Kovachki, Zongyi Li, Burigede Liu, Kamyar Azizzadenesheli, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Neural operator: Learning maps between function spaces with applications to PDEs. Journal of Machine Learning Research, 24(89):1–97, 2023. Preprint. Under review.
  16. [16]Kookjin Lee, Nathaniel Trask, and Panos Stinis. Machine learning structure preserving brackets for forecasting irreversible processes. In Advances in Neural Information Processing Systems (NeurIPS), volume 34, 2021.arxiv.org/abs/2106.12619
  17. [17]Zongyi Li, Nikola Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. In International Conference on Learning Representations (ICLR), 2021.
  18. [19]Huakun Luo, Haixu Wu, Hang Zhou, Jianmin Wang, and Mingsheng Long. Transolver++: An accurate neural solver for PDEs on million-scale geometries. In International Conference on Machine Learning (ICML), 2025.arxiv.org/abs/2502.02414
  19. [20]Franco Magri. A simple model of the integrable Hamiltonian equation. Journal of Mathematical Physics, 19(5):1156–1162, 1978. doi: 10.1063/1.523777.DOI
  20. [21]Jerrold E. Marsden and Tudor S. Ratiu. Introduction to Mechanics and Symmetry: A Basic Exposition of Classical Mechanical Systems, volume 17 of Texts in Applied Mathematics. Springer, 2 edition, 1999. doi: 10.1007/978-0-387-21792-5.DOI
  21. [22]Robert I. McLachlan, G. Reinout W. Quispel, and Nicolas Robidoux. Geometric integration using discrete gradients. Philosophical Transactions of the Royal Society A, 357(1754):1021–1045, 1999. doi: 10.1098/rsta.1999.0363.DOI
  22. [23]Philip J. Morrison. Bracket formulation for irreversible classical fields. Physics Letters A, 100(8):423–427, 1984. doi: 10.1016/0375-9601(84)90635-2.DOI
  23. [24]Philip J. Morrison. A paradigm for joined Hamiltonian and dissipative systems. Physica D: Nonlinear Phenomena, 18(1–3):410–419, 1986. doi: 10.1016/0167-2789(86)90209-5.DOI
  24. [25]Philip J. Morrison. Hamiltonian description of the ideal fluid. Reviews of Modern Physics, 70(2):467–521, 1998. doi: 10.1103/RevModPhys.70.467.DOI
  25. [26]Peter J. Olver. Applications of Lie Groups to Differential Equations, volume 107 of Graduate Texts in Mathematics. Springer, 2 edition, 1993.
  26. [27]Lars Onsager. Reciprocal relations in irreversible processes. I. Physical Review, 37(4):405–426, 1931. doi: 10.1103/PhysRev.37.405.DOI
  27. [28]Hans Christian Öttinger. Beyond Equilibrium Thermodynamics. Wiley-Interscience, Hoboken, NJ, 2005. doi: 10.1002/0471727903.DOI
  28. [29]Hans Christian Öttinger. GENERIC integrators: Structure preserving time integration for thermodynamic systems. Journal of Non-Equilibrium Thermodynamics, 43(2):89–100, 2018. doi: 10.1515/jnet-2017-0034.DOI
  29. [30]Hans Christian Öttinger and Miroslav Grmela. Dynamics and thermodynamics of complex fluids. II. Illustrations of a general formalism. Physical Review E, 56(6):6633–6655, 1997. doi: 10.1103/PhysRevE.56.6633.DOI
  30. [31]Bogdan Raonić, Roberto Molinaro, Tim De Ryck, Tobias Rohner, Francesca Bartolucci, Rima Alaifari, Siddhartha Mishra, and Emmanuel de Bézenac. Convolutional neural operators for robust and accurate learning of PDEs. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, 2023.arxiv.org/abs/2302.01178
  31. [32]Ignacio Romero. Thermodynamically consistent time-stepping algorithms for non-linear thermomechanical systems. International Journal for Numerical Methods in Engineering, 79(6):706–732, 2009. doi: 10.1002/nme.2588.DOI
  32. [33]Gilbert Strang. On the construction and comparison of difference schemes. SIAM Journal on Numerical Analysis, 5(3):506–517, 1968. doi: 10.1137/0705041.DOI

Paper details

vlnc:W_ksb6yfsx
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools, Claude Code

View statement
Looking for related papers…
Contents