Learning Trajectories of Hamiltonian Systems with Neural Networks
Katsiaryna Haitsiukevich, Alexander Ilin
TL;DR
The paper addresses learning conservative dynamical systems by combining Hamiltonian neural networks with a continuous-time trajectory estimator. They introduce Deep Hidden Hamiltonian (DHH), which learns a trajectory $s(t)=(q(t),p(t))$ via a neural network while learning the Hamiltonian $\mathcal{H}$ through an HNN, enforcing $\frac{d q}{dt}=\frac{\partial \mathcal{H}}{\partial p}$ and $\frac{d p}{dt}=-\frac{\partial \mathcal{H}}{\partial q}$; training combines a supervision loss, a dynamics-consistency loss, and a soft energy-conservation term $\mathcal{L}_{extra}$. Experiments on mass-spring, pendulum, and N-body systems show improved accuracy under low sampling rates and noisy observations, outperforming baselines such as HNN with finite-difference or simulator derivatives, NSSNN, Neural ODE, and DHPMs. The work highlights a robust alternative for Hamiltonian learning with continuous-time trajectory estimation, while acknowledging limitations to canonical-coordinate, conservative settings and pointing to future work on relaxing assumptions and integrating physics priors.
Abstract
Modeling of conservative systems with neural networks is an area of active research. A popular approach is to use Hamiltonian neural networks (HNNs) which rely on the assumptions that a conservative system is described with Hamilton's equations of motion. Many recent works focus on improving the integration schemes used when training HNNs. In this work, we propose to enhance HNNs with an estimation of a continuous-time trajectory of the modeled system using an additional neural network, called a deep hidden physics model in the literature. We demonstrate that the proposed integration scheme works well for HNNs, especially with low sampling rates, noisy and irregular observations.
