Improving Long-Range Interactions in Graph Neural Simulators via Hamiltonian Dynamics
Tai Hoang, Alessandro Trenta, Alessio Gravina, Niklas Freymuth, Philipp Becker, Davide Bacciu, Gerhard Neumann
TL;DR
IGNS introduces an information-preserving graph neural simulator based on port-Hamiltonian dynamics to address long-range interactions and rollout error in neural physical simulators. The method couples a Hamiltonian latent core with a symplectic integrator, a $l$-step warmup, geometric mesh encoding, and a multi-step loss to enable accurate, stable long-horizon predictions across irregular meshes. Theoretical results establish universality and non-vanishing gradient propagation under the Hamiltonian core, providing a principled basis for long-range information flow. Empirically, IGNS and its time-varying variant consistently outperform state-of-the-art GNSs across six physics tasks, including oscillatory and non-conservative dynamics, highlighting practical benefits for faster, physically consistent neural simulation.
Abstract
Learning to simulate complex physical systems from data has emerged as a promising way to overcome the limitations of traditional numerical solvers, which often require prohibitive computational costs for high-fidelity solutions. Recent Graph Neural Simulators (GNSs) accelerate simulations by learning dynamics on graph-structured data, yet often struggle to capture long-range interactions and suffer from error accumulation under autoregressive rollouts. To address these challenges, we propose Information-preserving Graph Neural Simulators (IGNS), a graph-based neural simulator built on the principles of Hamiltonian dynamics. This structure guarantees preservation of information across the graph, while extending to port-Hamiltonian systems allows the model to capture a broader class of dynamics, including non-conservative effects. IGNS further incorporates a warmup phase to initialize global context, geometric encoding to handle irregular meshes, and a multi-step training objective to reduce rollout error. To evaluate these properties systematically, we introduce new benchmarks that target long-range dependencies and challenging external forcing scenarios. Across all tasks, IGNS consistently outperforms state-of-the-art GNSs, achieving higher accuracy and stability under challenging and complex dynamical systems.
