[Paper Review] Efficient Differentiable Simulation of Articulated Bodies
This paper presents a differentiable physics simulator for articulated bodies that uses manual adjoint differentiation to achieve 20x faster backward passes than PyTorch and 50x faster than Ceres, enabling efficient gradient-based optimization in reinforcement learning and parameter estimation. The method achieves state-of-the-art sample efficiency in locomotion and parameter estimation tasks by combining efficient contact handling with high-performance automatic differentiation.
We present a method for efficient differentiable simulation of articulated bodies. This enables integration of articulated body dynamics into deep learning frameworks, and gradient-based optimization of neural networks that operate on articulated bodies. We derive the gradients of the forward dynamics using spatial algebra and the adjoint method. Our approach is an order of magnitude faster than autodiff tools. By only saving the initial states throughout the simulation process, our method reduces memory requirements by two orders of magnitude. We demonstrate the utility of efficient differentiable dynamics for articulated bodies in a variety of applications. We show that reinforcement learning with articulated systems can be accelerated using gradients provided by our method. In applications to control and inverse problems, gradient-based optimization enabled by our work accelerates convergence by more than an order of magnitude.
Motivation & Objective
- To enable efficient, high-performance differentiable simulation of articulated bodies with complex contact dynamics.
- To address the computational bottleneck of backpropagation in physics engines used for reinforcement learning and parameter estimation.
- To develop a differentiable simulator that supports both policy learning and parameter optimization in a unified framework.
- To improve sample efficiency in reinforcement learning by enabling effective simulation-based augmentation and policy enhancement.
Proposed method
- The authors manually derive adjoint equations for the articulated body algorithm and the projected Gauss-Seidel (PGS) contact solver to enable efficient backward passes.
- The simulator is implemented in C++ with JAX-compatible interfaces, achieving 0.6ms backward pass per step—20x faster than the physics engine and 50x faster than PyTorch.
- The method supports end-to-end differentiability of both motion control (joint torques) and contact parameters (friction coefficients) through the same computational graph.
- The framework integrates with MBPO and CMA-ES, enabling both policy and parameter learning with shared differentiable simulation.
- The implementation avoids the limitations of general-purpose differentiable programming tools like DiffTaichi by supporting complex control flow and mixed loops.
- The authors use gradient-based optimization to estimate friction coefficients and joint torques, demonstrating convergence to global minima on loss landscapes.
Experimental results
Research questions
- RQ1Can manual adjoint differentiation of articulated body dynamics and contact solvers achieve significantly faster backward passes than general-purpose autodiff tools?
- RQ2How does the proposed differentiable simulator improve sample efficiency in reinforcement learning for locomotion tasks?
- RQ3To what extent can gradient-based optimization be used to estimate internal parameters such as friction coefficients and joint torques in articulated systems?
- RQ4How do policy enhancement and sample enhancement strategies compare in terms of convergence speed and final performance in differentiable simulation?
- RQ5What are the limitations of the simulator when modeling large sequential systems like multi-link pendulums?
Key findings
- The proposed method achieves a backward pass time of 0.6ms per step, which is 50x faster than PyTorch (285.9ms) and 20x faster than the physics engine.
- The simulator enables effective parameter estimation for friction coefficients, with gradient-based methods successfully finding the global minimum on the loss landscape.
- In MBPO-based training, the method achieves faster convergence and higher final rewards compared to baselines, particularly in N-pendulum and Laikago locomotion tasks.
- The loss curves for N=5 and N=7 links show stable and rapid convergence, with no degradation in performance due to numerical instability.
- The method outperforms Ceres (30.7ms), CppAD (2.9ms), and PyTorch (285.9ms) in backward pass efficiency, with JAX at 4.9ms.
- The authors observed a performance drop in MBPO after 100 epochs, which they attribute to insufficient model expressivity in approximating long-horizon dynamics.
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.