Symplectic Neural Operators for Learning Infinite Dimensional Hamiltonian Systems

Makara Yeang, Yusuke Tanaka, Takashi Matsubara, Takaharu YaguchiNeurIPS 2026

TL;DR

Standard neural operators are great at learning fast shortcuts for physics simulations, until you run them for thousands of time steps and watch the system’s energy wildly blow up or decay to zero. Symplectic Neural Operators (SNOs) bake a fundamental geometric rule of physics directly into a mesh-independent neural architecture. The result? You can train a model on coarse data and run stable, energy-preserving simulations at any grid resolution over long time horizons.

What Problem Does This Paper Address?

Many core phenomena in physics—waves, fluids, plasmas, quantum fields—are governed by Hamiltonian PDEs. As these systems evolve, they preserve two things: total energy, and a geometric volume in phase space called symplectic structure. A classic lesson from numerical analysis is that preserving this symplectic geometry is the secret to long-term stability; without it, tiny one-step errors inevitably snowball into unphysical energy drift.

When building fast machine-learning surrogates for these PDEs, researchers have faced a frustrating trade-off:

  • Neural Operators (like FNO or DeepONet) learn mappings between infinite-dimensional function spaces, meaning you can train on one grid resolution and evaluate zero-shot on another. However, their outputs are geometrically unconstrained, causing simulations to drift or explode over hundreds of steps.
  • Symplectic Neural Networks (like SympNets) enforce exact symplectic geometry by construction, guaranteeing stability, but their parameters are tied to a fixed vector of grid points—change your mesh, and you have to retrain from scratch.
Restricting the hypothesis class to symplectic operators

SNO bridges this gap: it restricts the hypothesis space to operators that are strictly symplectic and completely mesh-independent.

Methods

Instead of learning the underlying energy equation and relying on a slow numerical integrator at test time, SNO directly learns the fixed-time flow map (stepping from $u_n$ to $u_{n+1}$ in one forward pass).

To guarantee symplecticity on function spaces, the authors rely on an elegant mathematical fact: a shear map—leaving position $q$ alone while shifting momentum $p$ by some update (or vice versa)—is symplectic if and only if that update is the gradient of an energy functional. SNO builds these mesh-free gradients in three steps:

  1. Self-Adjoint Fourier Neural Operator (SAFNO): In finite dimensions, you make a matrix symmetric via $(A + A^\top)/2$, which breaks if you change grid resolutions. Instead, the authors build a linear FNO without activations and pair layers with their exact mathematical adjoints ($W_k = W_{L-1-k}^*$ and paired Fourier multipliers). Only the first half of the layers have free parameters; symmetry is exact on any grid.
  2. Gradient Neural Functionals: They sandwich a pointwise scalar neural network $\Phi_\theta$ inside a SAFNO $K$ to define a learnable energy functional. Its gradient naturally takes the symmetric "sandwich" form $K^* \nabla \Phi_\theta(Ku)$.
  3. Alternating Shears: SNO chains together alternating position and momentum shears driven by these gradient functionals. Because every block is the exact flow of a Hamiltonian, the entire network is symplectic—and explicitly invertible by simply running the blocks backward!
Figure 3: Architecture. (a) SAFNO: a linear Fourier neural operator whose layers are paired with their adjoints, so that G∗= G exactly (Theorem 4.2). (b) Gradient neural functional: an energy Eθ built from a SAFNO K and a pointwise scalar network Φθ; its gradient has a self-adjoint linearization (Theorem 4.3). (c) SNO: alternating shears of q and p by gradient neural functionals; each is the exact time-1 flow of a Hamiltonian, so the composition is symplectic (Theorem 4.4).

Datasets

The authors evaluate SNO on synthetic trajectory datasets generated via finite-difference discretizations and high-precision RK45 / Störmer–Verlet solvers across several PDEs:

  • 1D PDEs ($10^5$ pairs on $N=100$ grids, $\Delta t = 0.001$): Wave, 1D Maxwell (used as a non-canonical stress test), linear Schrödinger, and nonlinear Klein–Gordon equations.
  • 2D Wave Equation ($10^4$ pairs on $64^2$ grids): Tested up to 3,000 rollout steps, plus zero-shot mesh transfer across $32^2$ to $128^2$ grids.
  • Controlled Periodic 1D Defocusing Klein–Gordon ($N=96$, $\Delta t = 0.05$): Created specifically for head-to-head comparison against Hamiltonian Neural Solvers (HNS), including out-of-distribution (OOD) tests with $1.3\times$ larger amplitudes and unseen frequencies.

Key Insights and Ideas

  • Exact Discretization without Limits: Usually, continuous operator properties only hold approximately on coarse grids. SNO's discrete Jacobian preserves the discrete symplectic form to machine precision ($\sim 10^{-16}$ to $10^{-18}$ in float64) at every resolution, even with random, untrained weights.
  • Filtering Out Bad Training Data: Because symplecticity is hardwired into the architecture rather than learned from data, SNO refuses to learn non-symplectic numerical errors. On the 2D wave benchmark, SNO's 3,000-step energy drift ($4.6 \times 10^{-3}$) is actually smaller than the drift of the RK45 solver ($1.3 \times 10^{-2}$) that generated its training set!
  • Modified-Energy Guarantee: Using backward error analysis, the authors prove that if SNO achieves a small one-step learning error $\varepsilon$, its energy error stays bounded at $\mathcal{O}(\varepsilon)$ for an exponentially long number of steps ($\le \varepsilon^{-r}$), turning short-term accuracy into long-horizon fidelity.

Key Results

  • 1D Benchmarks: SNO achieves the lowest one-step error across all four 1D PDEs (proving geometric constraints don't hurt expressivity). Over 800 steps on Wave and Klein–Gordon, SNO’s energy error is $90\text{–}290\times$ smaller than the best baselines (FNO, GNO, CNO), and state error is $4\text{–}11\times$ lower. While FNO blows up to $10^{16}$ by 3,000 steps on 1D Wave, SNO stays locked onto the reference.
  • 2D Wave & Zero-Shot Transfer: After 3,000 steps, all baselines decorrelate completely (state errors of $1.4\text{–}3.7$; energy drift up to $82\times$), whereas SNO maintains a $0.21$ relative state error. Trained at $64^2$, SNO transfers zero-shot to $32^2\text{–}128^2$ grids with $1.7\text{–}2.4 \times 10^{-2}$ error after 500 steps (vs. $0.33\text{–}0.40$ for FNO).
  • Comparison with HNS: Even when HNS is given an unfair advantage (trained on exact ground-truth functional derivatives and known Poisson operators while SNO only sees state pairs), SNO achieves $4\times$ lower in-distribution state error and $15\text{–}27\times$ smaller energy drift.

Limitations and Future Work

  • Canonical Systems Only: SNO assumes canonical $(q, p)$ phase-space coordinates. Non-canonical PDEs (like KdV or advection) require coordinate transformations that can lose mesh-independence as grid spacing approaches zero. Extending SNO to general Poisson and de Rham structures is a key next step.
  • Fixed Step Size & Speed: Learning a flow map locks SNO to a fixed time-step $\tau$ (and its multiples). Also, evaluating energy gradients makes SNO's rollouts roughly $2\times$ slower per step than HNS at small scales (24 ms vs. 11.5 ms).
  • 3D Scaling: Storing Fourier multipliers in 3D scales poorly in memory, though the authors note low-rank factorizations could cleanly address this while preserving the adjoint pairing.

Summary updated

Abstract

The modeling and simulation of infinite-dimensional Hamiltonian systems are central problems in mathematical physics and engineering, but they pose significant computational and structural challenges for standard data-driven architectures. In this work, we introduce the Symplectic Neural Operator, a neural operator architecture designed to preserve the symplectic structure intrinsic to Hamiltonian PDEs. We provide a theoretical characterization of their symplecticity and establish a rigorous long-term stability result based on the combination of symplectic structure preservation and learning accuracy. Numerical experiments on canonical Hamiltonian PDEs corroborate this theoretical result and show that SNOs exhibit improved energy behavior compared with non-structure-preserving neural operators.
BibTeX
@inproceedings{yeang2026symplectic,
  author = {Makara Yeang and Yusuke Tanaka and Takashi Matsubara and Takaharu Yaguchi},
  title = {{Symplectic Neural Operators for Learning Infinite Dimensional Hamiltonian Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=x7jCoj91Df},
}
Figure