Pseudo-Hamiltonian neural networks for learning partial differential equations
Sølve Eidnes, Kjetil Olsen Lye
TL;DR
This work extends PHNNs to PDEs by casting dynamics in a pseudo-Hamiltonian form $u_t = (S - R) \nabla H + f$ with learned, neuron-based representations of the energy, dissipation, and forcing components, coupled with convolution-based spatial operators. The method yields two modular PHNN variants (general and informed) and a baseline for comparison, showing superior predictive accuracy and interpretability across multiple PDEs (KdV, KdV--Burgers, BBM, Perona--Malik, Cahn--Hilliard) while enabling post-training removal of disturbances. The paper also analyzes stability, discretization effects, kernel-size sensitivity, and convergence in idealized limits, and discusses future extensions to higher dimensions and alternative pseudo-Hamiltonian formulations. Overall, PHNNs provide a grey-box framework that preserves energy-like quantities while accommodating dissipation and external forcing, with practical implications for physics-informed modeling and image processing tasks.
Abstract
Pseudo-Hamiltonian neural networks (PHNN) were recently introduced for learning dynamical systems that can be modelled by ordinary differential equations. In this paper, we extend the method to partial differential equations. The resulting model is comprised of up to three neural networks, modelling terms representing conservation, dissipation and external forces, and discrete convolution operators that can either be learned or be given as input. We demonstrate numerically the superior performance of PHNN compared to a baseline model that models the full dynamics by a single neural network. Moreover, since the PHNN model consists of three parts with different physical interpretations, these can be studied separately to gain insight into the system, and the learned model is applicable also if external forces are removed or changed.
