[Paper Review] Learning Articulated Rigid Body Dynamics with Lagrangian Graph Neural Network
This paper proposes a Lagrangian Graph Neural Network (LGNN) that learns articulated rigid body dynamics by encoding the system's topology into a graph structure, enabling end-to-end differentiable simulation via the Euler-Lagrange equations. The LGNN generalizes across system sizes and topologies—training on a 4-segment chain enables accurate simulation of longer chains, complex trusses, and hybrid systems like tensegrities—while learning non-diagonal mass matrices consistent with physical topology.
Lagrangian and Hamiltonian neural networks (LNNs and HNNs, respectively) encode strong inductive biases that allow them to outperform other models of physical systems significantly. However, these models have, thus far, mostly been limited to simple systems such as pendulums and springs or a single rigid body such as a gyroscope or a rigid rotor. Here, we present a Lagrangian graph neural network (LGNN) that can learn the dynamics of articulated rigid bodies by exploiting their topology. We demonstrate the performance of LGNN by learning the dynamics of ropes, chains, and trusses with the bars modeled as rigid bodies. LGNN also exhibits generalizability -- LGNN trained on chains with a few segments exhibits generalizability to simulate a chain with large number of links and arbitrary link length. We also show that the LGNN can simulate unseen hybrid systems including bars and chains, on which they have not been trained on. Specifically, we show that the LGNN can be used to model the dynamics of complex real-world structures such as the stability of tensegrity structures. Finally, we discuss the non-diagonal nature of the mass matrix and its ability to generalize in complex systems.
Motivation & Objective
- To develop a differentiable, inductive bias-aware model that learns rigid body dynamics from trajectory data without assuming fixed system size or topology.
- To overcome the limitations of prior Lagrangian and Hamiltonian neural networks, which are transductive and fail to generalize across system configurations.
- To model articulated rigid bodies—each with six degrees of freedom (3D translation + rotation)—by encoding their kinematic and dynamic structure into a graph-based architecture.
- To enable zero-shot generalization to unseen system topologies, including hybrid systems of bars and chains, and complex real-world structures like tensegrities.
- To investigate the structure of the learned mass matrix and its physical consistency in complex systems, without assuming diagonal or predefined forms.
Proposed method
- Represent articulated rigid bodies as a graph where nodes correspond to rigid bodies and edges represent kinematic constraints (e.g., joints).
- Design a graph neural network (GNN) with message passing that decouples and computes kinetic and potential energy terms from node and edge features.
- Construct the system Lagrangian $\mathcal{L} = \mathcal{T} - \mathcal{V}$ using the GNN-predicted energy components, preserving differentiability.
- Apply the Euler-Lagrange equations $ \frac{d}{dt} \left( \frac{\partial \mathcal{L}}{\partial \dot{q}} \right) - \frac{\partial \mathcal{L}}{\partial q} = 0 $ to compute time derivatives and simulate dynamics.
- Train the LGNN by minimizing trajectory prediction error using supervised loss on state variables $ (q, \dot{q}) $, with backpropagation through time.
- Learn the mass matrix $ M = \partial^2 \mathcal{L} / \partial \dot{q}^2 $ directly from the Lagrangian, allowing non-diagonal, topology-aware representations.
Experimental results
Research questions
- RQ1Can a graph neural network architecture learn the Lagrangian of articulated rigid bodies with arbitrary topologies and system sizes?
- RQ2Does the LGNN generalize zero-shot to systems larger than or topologically different from the training data (e.g., longer chains, hybrid bar-chain systems)?
- RQ3How does the learned mass matrix of the LGNN reflect the physical topology of complex systems, and does it avoid the assumption of diagonal structure?
- RQ4Can the LGNN simulate complex real-world structures such as tensegrity systems without explicit architectural retraining?
- RQ5What is the impact of the graph-based inductive bias on the generalization and energy conservation of the learned dynamics?
Key findings
- The LGNN achieves low energy violation (~$10^{-4}$) and rollout error on both a 16-node chain and a complex truss structure (T1), with errors stabilizing quickly.
- The LGNN generalizes from a 4-segment chain to chains with up to 16 segments and arbitrary link lengths, demonstrating size generalization.
- The LGNN successfully simulates hybrid systems (e.g., chains and bars) not seen during training, including tensegrity structures, showing zero-shot topological generalization.
- The learned mass matrix is non-diagonal and structured according to the system’s topology—banded for chains and complex for T1—confirming physical consistency.
- The mass matrix is computed directly from the Lagrangian via $ M = \partial^2 \mathcal{L} / \partial \dot{q}^2 $, without prior assumptions, enabling accurate dynamics in complex systems.
- The LGNN outperforms standard GNNs in energy conservation and trajectory accuracy, with GNN errors saturating at 1.0 while LGNN errors remain near $10^{-4}$.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.