NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Differentiable Newton Euler Algorithm for Multi-body Model Learning

Michael Lutter, Johannes Silberbauer, Joe Watson, Jan PetersarXiv 2020

Abstract

In this work, we examine a spectrum of hybrid models for the domain of multi-body robot dynamics. We motivate a computation graph architecture that embodies the Newton Euler equations, emphasizing the utility of the Lie Algebra form in translating the dynamical geometry into an efficient computational structure for learning. We describe the used virtual parameters that enable unconstrained physical plausible dynamics and the used actuator models. In the experiments, we define a family of 26 grey-box models and evaluate them for system identification of the simulated and physical Furuta Pendulum and Cartpole. The comparison shows that the kinematic parameters, required by previous white-box system identification methods, can be accurately inferred from data. Furthermore, we highlight that models with guaranteed bounded energy of the uncontrolled system generate non-divergent trajectories, while more general models have no such guarantee, so their performance strongly depends on the data distribution. Therefore, the main contributions of this work is the introduction of a white-box model that jointly learns dynamic and kinematics parameters and can be combined with black-box components. We then provide extensive empirical evaluation on challenging systems and different datasets that elucidates the comparative performance of our grey-box architecture with comparable white- and black-box models.

Introduction

In robotics, accurate models of dynamics are essential for effective control. Traditionally, researchers have faced a trade-off between two extremes. White-box models, based on pure physics equations, generalize well but often fail to capture complex real-world effects like friction or actuator hysteresis. Conversely, black-box models, such as deep neural networks, offer immense flexibility but frequently learn non-physical shortcuts—such as violating energy conservation—leading to catastrophic failures in unseen states.

This work addresses this gap by introducing a grey-box model. By implementing the Newton-Euler equations as a differentiable computation graph, we create a system that retains the flexibility of neural networks while being fundamentally constrained by the laws of physics.

Methodology: The Differentiable Newton-Euler Algorithm (DiffNEA)

The core innovation is the Differentiable Newton-Euler Algorithm (DiffNEA), which leverages several key concepts:

  • Lie Algebra Formulation: A compact mathematical framework is used to describe the motion of connected rigid bodies. This structures the physics equations into a computation graph compatible with modern machine learning frameworks.
  • Differentiable Programming: Because the entire physics engine is differentiable, standard optimizers like ADAM can be used to tune physical parameters—such as mass, link lengths, and center of mass—directly from motion data.
  • Virtual Parameters: To ensure physical plausibility (e.g., preventing negative mass), the model uses "virtual parameters." The optimizer adjusts these unrestricted values, which are then transformed to represent valid physical quantities.
  • Hybrid Actuators: The researchers evaluated various actuator models, ranging from purely physical viscous friction to hybrid models that use neural networks to capture "residual" forces that simple physics cannot explain.

Experimental Setup

The models were evaluated on two classic robotic benchmarks: the Cartpole and the Furuta Pendulum. Evaluation was conducted across three distinct data distributions:

  1. Simulated Uniform Sampling: Idealized data covering the entire state space.
  2. Simulated Trajectories: Simulation data including noise and friction.
  3. Real System Data: Noisy, high-frequency data recorded from physical Quanser hardware.

Results and Stability Analysis

A primary finding of this research is the model's ability to learn kinematics (limb lengths and orientations) from scratch without requiring a CAD model. The "no-Kin DiffNEA" model, which starts with zero knowledge of the robot's shape, performed as well as models provided with correct kinematic dimensions upfront.

One of the most critical observations involves the "Energy Pump" problem. Pure black-box models (standard neural networks) tend to add energy to the system during long-term simulations, causing trajectories to diverge or "explode." In contrast, the grey-box models provide a strong inductive bias, ensuring that trajectories remain physically plausible and energy-consistent.

Long-term trajectory roll-outs for Cartpole and Furuta Pendulum across different data distributions.

As shown in the figure above, models with guaranteed bounded energy generate stable, non-divergent trajectories. The "NN-Friction" model—a hybrid using a neural network specifically for friction within a physics-constrained framework—demonstrated the best balance of accuracy and stability. While black-box models (FF-NN) might achieve low error on single-step predictions, their errors compound rapidly in long-term "roll-outs" due to a lack of underlying physical constraints.

Conclusion and Future Work

While the grey-box approach shows significant promise, challenges remain. The Furuta Pendulum proved more difficult to model than the Cartpole due to high numerical sensitivity, where small parameter errors lead to large trajectory deviations. Furthermore, the performance of models without explicit energy constraints remains heavily dependent on training data quality. Future work will explore scaling these models to systems with complex contacts, such as walking robots, and incorporating soft, deformable components.

Summary updated

BibTeX
@misc{lutter2020differentiable,
  author = {Michael Lutter and Johannes Silberbauer and Joe Watson and Jan Peters},
  title = {{A Differentiable Newton Euler Algorithm for Multi-body Model Learning}},
  year = {2020},
  eprint = {2010.09802},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.09802},
}
Figure