Simplifying Hamiltonian and Lagrangian Neural Networks via Explicit Constraints
Marc Finzi, Ke Alexander Wang, Andrew Gordon Wilson
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. 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. Gyroscope system 260x 100x Gyroscope Hamiltonian Cartesian coordinates (easy to learn) Angular coordinates (hard to learn) Data-efficiency & accuracy H(X, P ) = 1 2 Tr(P M -1 P ) + gmX03 M -1 ii = (1 + 1/λi)/m for i = 1, 2, 3 M -1 00 = M -1 ij = 1/m for i = j H(q, p) = 1 2 p T M (q) -1 p + mg cos q2 M11 = sin 2 q2(I1 sin 2 q3 + I2 cos 2 q3) + cos 2 q2I3 M12 = M21 = (I1 -I2) sin q2 sin q3 cos q3 M33 = I3 M13 = M31 = I3 cos q2 M22 = I1 cos 2 q3 + I2 sin 2 q3 * Equal contribution. 34th Conference on Neural Information Processing Systems (NeurIPS 2020),
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext d73efdd7-9b92-40a2-8162-e20d364c8fc8Cited by top-tier papers33
- Equivariant Graph Mechanics Networks with ConstraintsWenbing Huang, Jiaqi Han, Yu Rong, Tingyang Xu et al.ICLR 2022 · 107 citations
- Lie Point Symmetry Data Augmentation for Neural PDE SolversJohannes Brandstetter, Max Welling, Daniel E. WorrallICML 2022 · 85 citations
- Neural Symplectic Form: Learning Hamiltonian Equations on General Coordinate SystemsYuhan Chen, Takashi Matsubara, Takaharu YaguchiNeurIPS 2021 · 53 citations
- Deconstructing the Inductive Biases of Hamiltonian Neural NetworksNate Gruver, Marc Anton Finzi, Samuel Don Stanton, Andrew Gordon WilsonICLR 2022 · 50 citations
- Learning Articulated Rigid Body Dynamics with Lagrangian Graph Neural NetworkRavinder Bhattoo, Sayan Ranu, N. M. Anoop KrishnanNeurIPS 2022 · 39 citations
Builds on2
- Generalizing Convolutional Neural Networks for Equivariance to Lie Groups on Arbitrary Continuous DataMarc Finzi, Samuel Stanton, Pavel Izmailov, Andrew Gordon WilsonICML 2020 · 372 citations
- Symplectic Recurrent Neural NetworksZhengdao Chen, Jianyu Zhang, Martín Arjovsky, Léon BottouICLR 2020 · 261 citations
Related papers
- Unsupervised Learning of Lagrangian Dynamics from Images for Prediction and ControlYaofeng Desmond Zhong, Naomi Ehrich LeonardNeurIPS 2020 · 49 citations
- ModLaNets: Learning Generalisable Dynamics via Modularity and Physical Inductive BiasYupu Lu, Shijie Lin, Guanqi Chen, Jia PanICML 2022 · 10 citations
- A Riemannian Framework for Learning Reduced-order Lagrangian DynamicsKatharina Friedl, Noémie Jaquier, Jens Lundell, Tamim Asfour et al.ICLR 2025
- Scalable Graph Networks for Particle SimulationsKarolis Martinkus, Aurélien Lucchi, Nathanaël PerraudinAAAI 2021 · 11 citations
- Symplectic ODE-Net: Learning Hamiltonian Dynamics with ControlYaofeng Desmond Zhong, Biswadip Dey, Amit ChakrabortyICLR 2020 · 319 citations
