Simplifying Hamiltonian and Lagrangian Neural Networks via Explicit Constraints

10/26/2020
by   Marc Finzi, et al.
0

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. 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.

READ FULL TEXT
research
02/12/2021

A Differentiable Contact Model to Extend Lagrangian and Hamiltonian Neural Networks for Modeling Hybrid Dynamics

The incorporation of appropriate inductive bias plays a critical role in...
research
07/03/2020

Unsupervised Learning of Lagrangian Dynamics from Images for Prediction and Control

Recent approaches for modelling dynamics of physical systems with neural...
research
09/23/2022

Learning Rigid Body Dynamics with Lagrangian Graph Neural Network

Lagrangian and Hamiltonian neural networks (LNN and HNN respectively) en...
research
06/12/2023

On the Collocated Form with Input Decoupling of Lagrangian Systems

Suitable representations of dynamical systems can simplify their analysi...
research
06/23/2021

Machine learning structure preserving brackets for forecasting irreversible processes

Forecasting of time-series data requires imposition of inductive biases ...
research
10/28/2020

Forecasting Hamiltonian dynamics without canonical coordinates

Conventional neural networks are universal function approximators, but b...
research
02/12/2023

Variational Integrators and Graph-Based Solvers for Multibody Dynamics in Maximal Coordinates

Multibody dynamics simulators are an important tool in many fields, incl...

Please sign up or login with your details

Forgot password? Click here to reset