Skip to main content
QUICK REVIEW

[Paper Review] Interactive Differentiable Simulation

Eric Heiden, David Millard|arXiv (Cornell University)|May 26, 2019
Reinforcement Learning in RoboticsComputer Science33 references34 citations
TL;DR

IDS is a differentiable physics engine that enables learning physical parameters from vision, task-based design, and adaptive MPC with improved sample efficiency over model-free methods.

ABSTRACT

Intelligent agents need a physical understanding of the world to predict the impact of their actions in the future. While learning-based models of the environment dynamics have contributed to significant improvements in sample efficiency compared to model-free reinforcement learning algorithms, they typically fail to generalize to system states beyond the training data, while often grounding their predictions on non-interpretable latent variables. We introduce Interactive Differentiable Simulation (IDS), a differentiable physics engine, that allows for efficient, accurate inference of physical properties of rigid-body systems. Integrated into deep learning architectures, our model is able to accomplish system identification using visual input, leading to an interpretable model of the world whose parameters have physical meaning. We present experiments showing automatic task-based robot design and parameter estimation for nonlinear dynamical systems by automatically calculating gradients in IDS. When integrated into an adaptive model-predictive control algorithm, our approach exhibits orders of magnitude improvements in sample efficiency over model-free reinforcement learning algorithms on challenging nonlinear control domains.

Motivation & Objective

  • Introduce Interactive Differentiable Simulation (IDS), a differentiable physics engine for rigid-body dynamics with interpretable physical parameters.
  • Enable end-to-end learning and control by integrating IDS into neural architectures and optimization pipelines.
  • Demonstrate system identification and parameter estimation from visual input using a physics-based bottleneck.
  • Showcase applications in automatic robot design and adaptive model-predictive control (MPC).

Proposed method

  • Model rigid-body dynamics with Newton-Euler equations and forward dynamics using the Articulated Body Algorithm (ABA) for O(n) acceleration computation.
  • Implement semi-implicit Euler integration to update velocities and positions and use Recursive Newton-Euler for force propagation.
  • Represent the physics engine as a differentiable layer via reverse-mode automatic differentiation (Stan Math) to obtain gradients with respect to inputs, forces, and parameters.
  • Integrate the IDS layer between vision-based encoders/decoders to predict future states and learn physical parameters through end-to-end training.
  • Use an autoencoder-bottleneck setup where IDS parameters theta_phy (e.g., link lengths) are learned alongside neural encoders/decoders with a triplet loss.
  • Apply IDS to automatic robot design by differentiating through DH parameters and forward kinematics to minimize end-effector tracking error with gradient-based optimization.
  • Employ adaptive model-predictive control (AMPC) by fitting IDS dynamics to real transitions and using iLQR for trajectory optimization over a short horizon.

Experimental results

Research questions

  • RQ1Can IDS accurately infer physically meaningful parameters from high-dimensional visual inputs?
  • RQ2Does integrating a differentiable physics layer improve prediction horizons and generalization beyond training data?
  • RQ3Can IDS-based AMPC achieve better sample efficiency than model-free RL on nonlinear control tasks?
  • RQ4To what extent can IDS facilitate automatic design of robotic arms via differentiable DH/kinematics?
  • RQ5How well can the differentiable engine adapt its model to real-world dynamics in adaptive control loops?

Key findings

  • IDS enables learning of physically meaningful parameters (e.g., pendulum link lengths converge to true values).
  • An IDS-based autoencoder with a physics bottleneck matches intuitive physics baselines in predictive performance and improves beyond fully learned models on long-horizon predictions.
  • Adaptive MPC with IDS achieves superior sample efficiency compared to SAC and DDPG in single and double cartpole tasks in the evaluated environments.
  • Gradient-based optimization through IDS allows DH-parameter optimization for arm designs to closely follow task-space trajectories.
  • AMPC with differentiable dynamics rapidly converges to accurate system models within a few episodes (e.g., convergence shown in cartpole experiments).
  • IDS provides interpretable parameters and conservation-law consistency, enabling integration with classical control and estimation methods.

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.