Training Hamiltonian neural networks without backpropagation

Atamert Rahma, Chinmay Datar, Felix Dietrich
11/26/2024
cs.LGmath.NA

No official code found. Best implementation: AlphaGergedan/Sampling-HNNs (7 stars, MIT, last commit 2025-02-04).

Abstract

Neural networks that synergistically integrate data and physical laws offer great promise in modeling dynamical systems. However, iterative gradient-based optimization of network parameters is often computationally expensive and suffers from slow convergence. In this work, we present a backpropagation-free algorithm to accelerate the training of neural networks for approximating Hamiltonian systems through data-agnostic and data-driven algorithms. We empirically show that data-driven sampling of the network parameters outperforms data-agnostic sampling or the traditional gradient-based iterative optimization of the network parameters when approximating functions with steep gradients or wide input domains. We demonstrate that our approach is more than 100 times faster with CPUs than the traditionally trained Hamiltonian Neural Networks using gradient-based iterative optimization and is more than four orders of magnitude accurate in chaotic examples, including the Hénon-Heiles system.

View on arXivView PDF

Code Implementations(1)

MIT

Quickly train accurate Hamiltonian Neural Networks with data-driven random features on CPUs.

71Shell, PythonAug 23, 20241 years agoMIT

Similar Papers

Cite this paper

@article{rahma2024training,
  title  = {Training Hamiltonian neural networks without backpropagation},
  author = {Atamert Rahma and Chinmay Datar and Felix Dietrich},
  year   = {2024},
  eprint = {2411.17511},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.17511v1}
}

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

Discussion