Deconstructing the Inductive Biases of Hamiltonian Neural Networks

Nate Gruver, Marc Finzi, Samuel Stanton, Andrew Gordon Wilson
2/10/2022
cs.LGmath.DSphysics.data-an

Official code: ngruver/decon-hnn (12 stars, Python, Apache-2.0, last commit 2022-04-11).

Abstract

Physics-inspired neural networks (NNs), such as Hamiltonian or Lagrangian NNs, dramatically outperform other learned dynamics models by leveraging strong inductive biases. These models, however, are challenging to apply to many real world systems, such as those that don't conserve energy or contain contacts, a common setting for robotics and reinforcement learning.

Show full abstract

In this paper, we examine the inductive biases that make physics-inspired models successful in practice. We show that, contrary to conventional wisdom, the improved generalization of HNNs is the result of modeling acceleration directly and avoiding artificial complexity from the coordinate system, rather than symplectic structure or energy conservation. We show that by relaxing the inductive biases of these models, we can match or exceed performance on energy-conserving systems while dramatically improving performance on practical, non-conservative systems. We extend this approach to constructing transition models for common Mujoco environments, showing that our model can appropriately balance inductive biases with the flexibility required for model-based control.

View on arXivView PDF

Code Implementations(1)

ngruver/decon-hnnOfficial100%
Apache-2.0
121Python, Jupyter NotebookFeb 8, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{gruver2022deconstructing,
  title  = {Deconstructing the Inductive Biases of Hamiltonian Neural Networks},
  author = {Nate Gruver and Marc Finzi and Samuel Stanton and Andrew Gordon Wilson},
  year   = {2022},
  eprint = {2202.04836},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.04836}
}

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

Discussion