TTGO: Tensor Train for Global Optimization Problems in Robotics 


 

    







Authors:  Suhan Shetty, Teguh Lembono, Tobias Löw, Sylvain Calinon

Introduction

The convergence of many numerical optimization techniques is highly dependent on the initial guess given to the solver. To address this issue, we propose a novel approach that utilizes tensor methods to initialize existing optimization solvers near global optima. Our method does not require access to a database of good solutions. We first transform the cost function, which depends on both task parameters and optimization variables, into a probability density function. The joint probability distribution of the task parameters and optimization variables is approximated using the Tensor Train model which enables efficient conditioning and sampling.  Unlike existing methods, we treat the task parameters as random variables and for a given task we generate samples for decision variables from the conditional distribution to initialize the optimization solver. Our method can produce multiple solutions for a given task from different modes when they exist. We evaluate the approach on benchmark functions for numerical optimization that are hard to solve using gradient-based optimization solvers with naive initialization. The proposed method can generate samples close to global optima and from multiple modes. We demonstrate the generality and relevance of our framework to robotics by applying it to inverse kinematics with obstacles and motion planning problems with a 7-DoF manipulator.

Summary of the Approach:


Note: Our approach allows the distribution of computation into offline and online phases. For the problems considered in this paper, the offline phase (steps [1] to [3]) takes a couple of seconds to several minutes. It models the solution for a diverse set of tasks (specified by the task parameter) that could be encountered in the online phase. On the other hand, the online phase (steps [4] and [5]) is fast to compute. It is often accomplished in a few milliseconds. 

What is a Tensor Train (TT) model?


But why approximate a known function in another format?

Why use TT model for pdf approximation? Why not GMM or a Neural Network (NN)?

The ratio of error in the approximation of the TT model found using TT-cross over BGMM model found using VI. The TT model is orders of magnitude more accurate than the GMM approximation. The experiment is conducted for the target PDF being GMM with variations in dimensions (d), and number of mixture components (k). For each case, the results are averaged over various choices of covariances (but constant volume) and mean in the target GMM. The computation time for approximating the target function in TT format using TT-cross was also order of magnitude faster .


The ratio of error in the approximation of the TT model was found using TT-cross over the Neural Network (NN) model. For high-dimensional problems, the TT model is orders of magnitude more accurate. The experiment is conducted for the target PDF being GMM with variations in dimensions (d), and number of mixture components (k). For each case, the results are averaged over various choices of covariances (but constant volume) and mean in the target GMM. The computation time for approximating the target function in TT format using TT-cross was also order of magnitude faster.


 Below we demonstrate the benefits of TT for numerical optimization in robotics:







Samples from TTGO for various benchmark functions for optimization






The sampling procedure can be adjusted to generate samples from only the low-cost regions

50D GMM

Applications in Robotics:

Approximate solutions (left) as initialization from TTGO for an IK problem with planar manipulator in the presence of obstacles.  Refined solution using gradient-based method (right). The task parameter is the target position of the end-effector.

Best 10 out of 50 samples taken from a conditioned TT-distribution for IK of a 3-link planar manipulator for various target poses (task parameters). The samples are already close enough to the optima and the multimodality of the solutions is clearly visible.



Multiple Solutions from TTGO for IK of UR10 manipulator for a target pose










Samples from TT model for IK of Franka-Emika Panda manipulator for a  target pose (without any refinement) 


Motion Planning with TTGO

TTGO used for motion planning problems in joint-space for a pick-and-place task












Mutiple solutions from TTGO  for a  motion planning problem in joint-space for a reaching task 







Diverse solutions from TTGO for Target Reaching (with task parameter as the target position)









TTGO for Motion Planning between two given configurations ( motion planning between given two given configurations).





Real Robot Experiments:




Target Reaching Task (Different Tasks (target position) and Multiple solutions)

(Speed: 16x)








Pick and Place Task (for different tasks (target position for picking and placing))

(Speed: 16x)