Abstract
Accurate inverse dynamics models are essential for precise robot control. While data-driven approaches offer flexibility, they often violate physical laws, leading to poor generalization. This paper introduces DiffNEA (Differentiable Newton-Euler Algorithm), which implements the Recursive Newton-Euler Algorithm (RNEA) as a differentiable computational graph. By enforcing physical constraints such as positive mass and the triangle inequality for inertia through re-parameterization, DiffNEA achieves significantly faster training and superior generalization to unseen tasks compared to standard neural networks and semi-structured models.
Introduction
To achieve precise robot control, an inverse dynamics model is required to calculate the necessary motor torques for specific movements. Traditional models are often hand-coded and difficult to tune, while purely data-driven methods like Multi-Layer Perceptrons (MLPs) are "physics-blind." These black-box models frequently learn physically impossible parameters, such as negative mass or invalid inertia matrices, resulting in poor performance when tasked with novel movements. Existing semi-structured models often fail to capture critical constraints like the triangle inequality of principal moments of inertia.
Methodology: DiffNEA
The proposed DiffNEA framework integrates the standard RNEA—a fundamental algorithm for robot dynamics—into a deep learning environment (PyTorch). This enables the learning of physical parameters via gradient descent while maintaining a structured computational graph. The core innovation lies in a spectrum of structural constraints applied to the learned parameters:
- Unstructured (Baseline): Parameters are learned without constraints.
- Symmetric (Symm): Ensures positive mass and symmetric inertia matrices.
- Symmetric Positive Definite (SPD): Employs Cholesky decomposition to guarantee positive definite rotational inertia matrices.
- Triangular Parameterized (Tri): Ensures principal moments of inertia satisfy the triangle inequality.
- Covariance Parameterized (Cov): A simplified mathematical representation to enforce triangle inequality constraints.
These constraints are enforced implicitly through re-parameterization, allowing the optimizer to operate in an unconstrained space while ensuring the resulting physical values remain valid.
Experimental Setup
The researchers evaluated DiffNEA using both simulation and real-world hardware:
- Simulation: A KUKA IIWA robot in PyBullet, trained on sine wave tracking data.
- Real Robot: A physical KUKA IIWA 7-DOF arm, with 240 seconds of tracking data collected at 250 Hz.
- Generalization: Models were tested on unseen end-effector reaching tasks to evaluate transferability.
Results and Discussion
The inclusion of physical structure acts as a "shortcut" for optimization. By restricting the search space to physically plausible values, the model converges much faster.
As shown in Figure 1, the highly structured DiffNEA models (SPD, Tri, Cov) converge in significantly fewer batches than the unstructured or semi-structured alternatives. In simulation, these models reached convergence in just 2 epochs, compared to 61 epochs for the unstructured version.
On the real robot, DiffNEA demonstrated superior generalization. While the MLP baseline exhibited oscillations and the semi-structured "DeLaN" model became unstable during reaching tasks, DiffNEA variants maintained high accuracy.
The results in Figure 3 highlight that enforcing the triangle inequality for inertia is critical for stable, high-performance dynamics. Furthermore, the accuracy of these learned models allows for more effective feedforward control, leading to smoother and more compliant robot motion.
Conclusion
DiffNEA successfully bridges the gap between rigid-body dynamics and deep learning. By embedding physical constraints directly into the model architecture, it achieves rapid convergence and robust generalization. Future work will explore extending this framework to include friction models and kinematic parameters, aiming for a comprehensive automated robot system identification tool. Limitations include the current assumption of perfect rigidity and fixed kinematics.
Summary updated