Tensor Decompositions for Modeling Inverse Dynamics

Stephan Baier, Volker TresparXiv 2017

Abstract

Inverse dynamics modeling is a fundamental challenge in robotics, requiring the mapping of joint states to required torques. Traditional rigid-body formulations often fail to account for complex real-world phenomena like friction and actuator non-linearities. This paper proposes a functional tensor decomposition framework that explicitly models the three-way interactions between joint positions, velocities, and accelerations. By employing Gaussian kernel basis functions, the model extends discrete tensor factorization to continuous state spaces. Experimental results on the SARCOS 7-DoF robot arm dataset demonstrate that the Functional Tucker decomposition outperforms standard RBF networks and rivals Support Vector Regression, achieving a mean normalized mean squared error (nMSE) of 0.55%.

Introduction

In model-based robot control, inverse dynamics serves as the primary mechanism for determining the torques necessary to achieve desired trajectories. While analytical rigid-body formulations provide a theoretical foundation, they frequently lack the precision required for high-performance tasks due to unmodeled dynamics such as joint friction and cable stretch.

Machine learning approaches, particularly regression models, have been widely adopted to "learn" these dynamics from sensor data. However, standard regression techniques typically concatenate input variables (positions, velocities, and accelerations) into a single flat vector. This approach ignores the inherent multi-way structure of physical motion, where these three categories of input interact in specific, coupled patterns. This paper addresses this gap by leveraging tensor decompositions to capture these high-order interactions efficiently.

Methods

The authors adapt tensor decomposition techniques—traditionally used in discrete domains like recommendation systems—for continuous regression in robotics.

The 3-Way Interaction

The problem is structured as a third-order tensor interaction: Positions $\times$ Velocities $\times$ Accelerations. This structure mirrors the physical reality of robot dynamics, where the torque at a joint is a non-linear function of the combined state of all joints.

Functional Extension

To bridge the gap between discrete tensor indices and continuous robot sensor data, the authors introduce a "functional" extension using basis functions. Specifically, Gaussian kernels are used to transform continuous inputs into latent representations. Instead of a simple table lookup, the model calculates weights based on the proximity of the input to predefined "landmark" points in the state space.

Architecture of the functional tensor decomposition for inverse dynamics modeling.

Tucker vs. PARAFAC

Two primary decomposition architectures were evaluated:

  • Functional PARAFAC: A restricted model assuming limited interaction between dimensions, representing the tensor as a sum of rank-one components.
  • Functional Tucker: A more expressive model utilizing a "core tensor" to explicitly weight every possible interaction between the latent factors of position, velocity, and acceleration.

Experimental Evaluation

The proposed models were benchmarked using the SARCOS dataset, a standard for 7-degree-of-freedom (7-DoF) anthropomorphic robot arms. The dataset contains approximately 42,482 samples, each featuring 21 input dimensions (7 positions, 7 velocities, 7 accelerations) and 7 output dimensions (joint torques). The models were trained using the Adam optimizer to minimize squared error, with 90% of the data allocated for training and 10% for testing.

Key Results

The Functional Tucker model emerged as the superior approach, demonstrating both high accuracy and parameter efficiency.

Comparative performance (nMSE %) of the proposed functional tensor methods against standard regression baselines.

As shown in the results table, the Functional Tucker model achieved a mean nMSE of 0.55%, significantly outperforming standard RBF-Network Regression (2.14%) and Linear Regression (11.03%). Notably, it also slightly outperformed Support Vector Regression (0.60%), which is often considered a state-of-the-art baseline for this task.

The performance gap between the Tucker and PARAFAC (0.96% nMSE) models highlights the importance of the core tensor in capturing the complex, coupled interactions inherent in robot physics. Furthermore, the Tucker model demonstrated robust performance even at relatively low ranks, with accuracy converging around a rank of 30.

Conclusion

This research demonstrates that treating robot dynamics as a structured tensor interaction provides a significant advantage over "flat" vector-based regression. The Functional Tucker decomposition offers a powerful balance of expressivity and efficiency, making it a promising tool for high-precision control. Future work will focus on addressing the "curse of dimensionality" in the core tensor for higher-order systems and exploring real-time implementation for active feedback control.

Summary updated

BibTeX
@misc{baier2017tensor,
  author = {Stephan Baier and Volker Tresp},
  title = {{Tensor Decompositions for Modeling Inverse Dynamics}},
  year = {2017},
  eprint = {1711.04683},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.04683},
}
Figure