# Hamiltonian Neural Networks with Automatic Symmetry Detection

arXiv: https://arxiv.org/abs/2301.07928 · HTML: https://mlsanity.com/paper/2301.07928/

## Key facts

- Cited by 6 papers in the map (data through 14 Oct 2026).
- Builds on 15 of its 40 references that are in the map.
- First posted on arXiv 19 Jan 2023.

## Builds on (most cited first, 15 of 15)

- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [PyTorch: An Imperative Style, High-Performance Deep Learning Library](https://mlsanity.com/paper/1912.01703/) (2019)
- [Hamiltonian Neural Networks](https://mlsanity.com/paper/1906.01563/) (2019)
- [AI Feynman: a Physics-Inspired Method for Symbolic Regression](https://mlsanity.com/paper/1905.11481/) (2019)
- [Lagrangian Neural Networks](https://mlsanity.com/paper/2003.04630/) (2020)
- [Generalizing Convolutional Neural Networks for Equivariance to Lie Groups on Arbitrary Continuous Data](https://mlsanity.com/paper/2002.12880/) (2020)
- [Symplectic ODE-Net: Learning Hamiltonian Dynamics with Control](https://mlsanity.com/paper/1909.12077/) (2019)
- [Symplectic Recurrent Neural Networks](https://mlsanity.com/paper/1909.13334/) (2019)
- [Automatic Symmetry Discovery with Lie Algebra Convolutional Network](https://mlsanity.com/paper/2109.07103/) (2021)
- [Data-driven Prediction of General Hamiltonian Dynamics via Learning Exactly-Symplectic Maps](https://mlsanity.com/paper/2103.05632/) (2021)
- [Symplectic Gaussian Process Regression of Hamiltonian Flow Maps](https://mlsanity.com/paper/2009.05569/) (2020)
- [Learning ODE Models with Qualitative Structure Using Gaussian Processes](https://mlsanity.com/paper/2011.05364/) (2020)
- [Discrete Lagrangian Neural Networks with Automatic Symmetry Discovery](https://mlsanity.com/paper/2211.10830/) (2022)
- [Learning Interpretable Dynamics from Images of a Freely Rotating 3D Rigid Body](https://mlsanity.com/paper/2209.11355/) (2022)
- [Data-driven discovery of non-Newtonian astronomy via learning non-Euclidean Hamiltonian](https://mlsanity.com/paper/2210.00090/) (2022)

## Built on by (most cited first, 6 of 6)

- [Symmetry Preservation in Hamiltonian Systems: Simulation and Learning](https://mlsanity.com/paper/2308.16331/) (2023)
- [Symplectic Neural Flows for Modeling and Discovery](https://mlsanity.com/paper/2412.16787/) (2024)
- [Training Hamiltonian neural networks without backpropagation](https://mlsanity.com/paper/2411.17511/) (2024)
- [Rapid training of Hamiltonian graph networks using random features](https://mlsanity.com/paper/2506.06558/) (2025)
- [Data-efficient Kernel Methods for Learning Hamiltonian Systems](https://mlsanity.com/paper/2509.17154/) (2025)
- [DreamSAC: Learning Hamiltonian World Models via Symmetry Exploration](https://mlsanity.com/paper/2603.07545/) (2026)

## Abstract (arXiv)

Recently, Hamiltonian neural networks (HNN) have been introduced to incorporate prior physical knowledge when learning the dynamical equations of Hamiltonian systems. Hereby, the symplectic system structure is preserved despite the data-driven modeling approach. However, preserving symmetries requires additional attention. In this research, we enhance HNN with a Lie algebra framework to detect and embed symmetries in the neural network. This approach allows to simultaneously learn the symmetry group action and the total energy of the system. As illustrating examples, a pendulum on a cart and a two-body problem from astrodynamics are considered.
