Hamiltonian Neural PDE Solvers through Functional Approximation

Anthony Zhou, Amir Barati Farimani
5/19/2025
cs.LG

No official code found. Best implementation: anthonyzhou-1/hamiltonian_pdes (5 stars, last commit 2025-09-29).

Abstract

Designing neural networks within a Hamiltonian framework offers a principled way to ensure that conservation laws are respected in physical systems. While promising, these capabilities have been largely limited to discrete, analytically solvable systems. In contrast, many physical phenomena are governed by PDEs, which govern infinite-dimensional fields through Hamiltonian functionals and their functional derivatives. Building on prior work, we represent the Hamiltonian functional as a kernel integral parameterized by a neural field, enabling learnable function-to-scalar mappings and the use of automatic differentiation to calculate functional derivatives. This allows for an extension of Hamiltonian mechanics to neural PDE solvers by predicting a functional and learning in the gradient domain. We show that the resulting Hamiltonian Neural Solver (HNS) can be an effective surrogate model through improved stability and conserving energy-like quantities across 1D and 2D PDEs. This ability to respect conservation laws also allows HNS models to better generalize to longer time horizons or unseen initial conditions.

View on arXivView PDF

Code Implementations(1)

50Python, Jupyter NotebookMay 16, 20251 years ago

Similar Papers

Cite this paper

@article{zhou2025hamiltonian,
  title  = {Hamiltonian Neural PDE Solvers through Functional Approximation},
  author = {Anthony Zhou and Amir Barati Farimani},
  year   = {2025},
  eprint = {2505.13275},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.13275v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.13275.svg)](https://codeofpaper.com/paper/2505.13275)

Discussion