Learning momenta for Hamiltonian-based models
Organizations: Department of Mechanical Engineering, The University of British Columbia, 2054-6250 Applied Science Lane, Vancouver, V6T 1Z4, British Columbia, Canada
Abstract
There has been increasing interest in methodologies that incorporate physics priors into neural network architectures to enhance their modeling capabilities. Among these methodologies, Hamiltonian neural networks (HNNs) and their variants have gained considerable attention. These architectures explicitly encode Hamiltonian mechanics both in their structure and loss function, resulting in desirable properties and additional modeled information. A crucial limitation of HNNs is their reliance on data on the target system's generalized momenta. This severely hampers their applicability when the analytical form of the generalized momenta is unknown, which frequently is the case in real-world applications. The goal of the present work is to develop a general extension of Hamiltonian-based architectures that addresses this issue by simultaneously learning the system's generalized momenta, Hamiltonian structure, and dynamics from data. The proposed architecture learns the generalized momenta when their analytical form is unknown, and only (potentially non-sequential) data on the state and its derivatives is available. A dissipative mass-spring system, a double pendulum, and a rolling disk under nonholonomic constraints are considered as canonical examples to assess the performance of the proposed architecture.
Figures & tables
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | and | ||
|---|---|---|---|
| Hidden layers | 2 | 2 | N/A |
| Neurons per layer | 30 | 10 | N/A |
| Activation function | Tanh | Tanh | N/A |
| Learning rate | |||
| Epochs | 5e4 | ||
| Training set | 5e4 points | ||
| Parameter | Value |
|---|---|
| Hidden layers | 2 |
| Neurons per layer | 30 |
| Activation function | Tanh |
| Learning rate | 5e-5 |
| Epochs | 3e6 |
| Training set | 4e3 points |
| Parameter | A | p | ||
|---|---|---|---|---|
| Hidden layers | 2 | 2 | 2 | 2 |
| Neurons per layer | 400 | 400 | 100 | 400 |
| Activation function | Tanh | Tanh | Tanh | Tanh |
| Learning rate | 1e-5 | 1e-5 | 1e-5 | 1e-5 |
| Epochs | 6e4 | |||
| Training set | 4.9e4 points | |||
| Coordinate | Lower limit | Upper limit |
|---|---|---|
Hamiltonian Neural Networks
Hamiltonian Neural Networks learn energy functions and physical dynamics with Hamilton’s equations for structure-aware simulation and prediction.
See all 33 papers