Simplifying Hamiltonian and Lagrangian Neural Networks via Explicit Constraints

Marc Finzi, Ke Alexander Wang, Andrew Gordon Wilson
10/26/2020
cs.LGmath.DSphysics.comp-ph

Official code: mfinzi/constrained-hamiltonian-neural-networks (116 stars, Jupyter Notebook, last commit 2021-05-17).

Abstract

Reasoning about the physical world requires models that are endowed with the right inductive biases to learn the underlying dynamics. Recent works improve generalization for predicting trajectories by learning the Hamiltonian or Lagrangian of a system rather than the differential equations directly.

Show full abstract

While these methods encode the constraints of the systems using generalized coordinates, we show that embedding the system into Cartesian coordinates and enforcing the constraints explicitly with Lagrange multipliers dramatically simplifies the learning problem. We introduce a series of challenging chaotic and extended-body systems, including systems with N-pendulums, spring coupling, magnetic fields, rigid rotors, and gyroscopes, to push the limits of current approaches. Our experiments show that Cartesian coordinates with explicit constraints lead to a 100x improvement in accuracy and data efficiency.

View on arXivView PDF

Code Implementations(1)

11618Jupyter Notebook, PythonMar 17, 20205 years ago

Similar Papers

Cite this paper

@article{finzi2020simplifying,
  title  = {Simplifying Hamiltonian and Lagrangian Neural Networks via Explicit Constraints},
  author = {Marc Finzi and Ke Alexander Wang and Andrew Gordon Wilson},
  year   = {2020},
  eprint = {2010.13581},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.13581}
}

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

Discussion