Symplectic Learning for Hamiltonian Neural Networks

Marco David, Florian Méhats
6/22/2021
cs.LGmath.NA

Official code: SpaceAbleOrg/symplectic-hnn (6 stars, Python, last commit 2021-08-10).

Abstract

Machine learning methods are widely used in the natural sciences to model and predict physical systems from observation data. Yet, they are often used as poorly understood "black boxes," disregarding existing mathematical structure and invariants of the problem.

Show full abstract

Recently, the proposal of Hamiltonian Neural Networks (HNNs) took a first step towards a unified "gray box" approach, using physical insight to improve performance for Hamiltonian systems. In this paper, we explore a significantly improved training method for HNNs, exploiting the symplectic structure of Hamiltonian systems with a different loss function. This frees the loss from an artificial lower bound. We mathematically guarantee the existence of an exact Hamiltonian function which the HNN can learn. This allows us to prove and numerically analyze the errors made by HNNs which, in turn, renders them fully explainable. Finally, we present a novel post-training correction to obtain the true Hamiltonian only from discretized observation data, up to an arbitrary order.

View on arXivView PDF

Code Implementations(1)

The training and evaluation code, synthetic datasets and pre-trained models accompanying our paper "Symplectic Learning for Hamiltonian Neural Networks".

62PythonJun 21, 20215 years agoNOASSERTION

Similar Papers

Cite this paper

@article{david2021symplectic,
  title  = {Symplectic Learning for Hamiltonian Neural Networks},
  author = {Marco David and Florian Méhats},
  year   = {2021},
  eprint = {2106.11753},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.11753}
}

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/2106.11753.svg)](https://codeofpaper.com/paper/2106.11753)

Discussion