Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Learning of Lagrangian Dynamics from Images for Prediction and Control

Yaofeng Desmond Zhong, Naomi Ehrich Leonard|arXiv (Cornell University)|Jul 3, 2020
Computational Physics and Python ApplicationsComputer Science10 citations
TL;DR

This paper proposes an unsupervised deep learning framework that jointly learns interpretable generalized coordinates and Lagrangian dynamics from image observations of planar rigid-body systems. By combining a coordinate-aware variational autoencoder (VAE) with a Lagrangian dynamics model, the method enables accurate long-term image-space prediction and synthesis of energy-based controllers, outperforming baselines in both prediction and control tasks while maintaining physical interpretability.

ABSTRACT

Recent approaches for modelling dynamics of physical systems with neural networks enforce Lagrangian or Hamiltonian structure to improve prediction and generalization. However, when coordinates are embedded in high-dimensional data such as images, these approaches either lose interpretability or can only be applied to one particular example. We introduce a new unsupervised neural network model that learns Lagrangian dynamics from images, with interpretability that benefits prediction and control. The model infers Lagrangian dynamics on generalized coordinates that are simultaneously learned with a coordinate-aware variational autoencoder (VAE). The VAE is designed to account for the geometry of physical systems composed of multiple rigid bodies in the plane. By inferring interpretable Lagrangian dynamics, the model learns physical system properties, such as kinetic and potential energy, which enables long-term prediction of dynamics in the image space and synthesis of energy-based controllers.

Motivation & Objective

  • To enable data-efficient, unsupervised learning of physical dynamics from image data without requiring coordinate annotations.
  • To infer interpretable generalized coordinates—especially rotational and translational—directly from image sequences using a coordinate-aware VAE.
  • To enforce Lagrangian dynamics in the latent space to improve long-term prediction accuracy and physical consistency.
  • To enable synthesis of energy-based controllers using the learned interpretable dynamics for control tasks.
  • To overcome limitations of prior methods that either require coordinate supervision, use high-dimensional non-interpretive latents, or fail to generalize to multi-body systems.

Proposed method

  • A coordinate-aware variational autoencoder (VAE) is designed to infer interpretable generalized coordinates (e.g., angles and positions) from image inputs, explicitly modeling the geometry of planar rigid bodies.
  • The VAE is trained in an unsupervised manner using image reconstruction and a physics-informed regularizer to ensure the latent space reflects physical configurations.
  • A Lagrangian dynamics model is trained in the inferred latent space, enforcing conservation of energy and symplectic structure via a differentiable ODE integrator.
  • The joint training of the VAE and dynamics model enables end-to-end learning of both coordinates and dynamics from raw image sequences.
  • The method incorporates a physics prior through the Lagrangian formulation, which encodes kinetic and potential energy terms, improving generalization and stability.
  • Control inputs are integrated into the dynamics model, enabling the synthesis of energy-based controllers that leverage the learned physical structure.

Experimental results

Research questions

  • RQ1Can interpretable generalized coordinates be unsupervisedly inferred from image sequences of planar rigid-body systems?
  • RQ2Can Lagrangian dynamics be effectively learned in a latent space derived from images without coordinate supervision?
  • RQ3Does enforcing a Lagrangian prior improve long-term prediction accuracy and generalization compared to non-physical baselines?
  • RQ4Can the learned dynamics support the synthesis of effective, physically interpretable controllers for vision-based control?
  • RQ5How do coordinate-aware components in the VAE contribute to the interpretability and performance of the overall model?

Key findings

  • The proposed model achieves state-of-the-art image-space prediction performance, with a pixel MSE of 1.52×10³ on the Pendulum task, outperforming HGN (2.67×10³) and MLPdyn+caVAE (14.18×10³).
  • The model enables long-term prediction with stable energy conservation, as evidenced by consistent kinetic and potential energy profiles over extended trajectories.
  • The coordinate-aware decoder contributes most significantly to learning interpretable coordinates, while the coordinate-aware encoder provides secondary but meaningful improvements.
  • Ablation studies show that replacing the coordinate-aware VAE with a standard AE or PAIG model leads to failure in the CartPole task, indicating the necessity of geometric inductive bias.
  • The model successfully generalizes to unseen control inputs and enables synthesis of energy-based controllers that stabilize the system, demonstrating control feasibility.
  • HGN, despite high-dimensional latent space, fails to generalize to the test dataset in the CartPole task, highlighting the data efficiency and generalization benefits of the proposed approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.