Optimizing Demonstrated Robot Manipulation Skills for Temporal Logic Constraints

Akshay Dhonthi, Philipp Schillinger, Leonel Rozo, Daniele NardiarXiv 2022

TL;DR

This paper introduces a framework that combines Learning from Demonstration (LfD) with Signal Temporal Logic (STL) and Bayesian Optimization (BO) to refine robotic manipulation skills. By leveraging the continuous "robustness degree" of STL specifications as a reward signal, the system can automatically adapt a robot's learned trajectories to meet new spatial and temporal constraints without requiring additional human demonstrations.

What Problem Does This Paper Address?

Learning from Demonstration (LfD) is a popular paradigm for teaching robots manipulation skills via kinesthetic teaching (physically guiding the robot arm). However, standard LfD has notable limitations:

  1. Strict Temporal Constraints: Human demonstrators struggle to show precise time-dependent constraints, such as "avoid this region between seconds 2 and 5."
  2. Inflexibility to Changes: Even minor changes to a task (e.g., adding a new waypoint or changing execution speed) typically require a human operator to provide an entirely new set of full demonstrations.
  3. Suboptimal Demonstrations: Human demonstrations are rarely perfect, leaving room for improvement in accuracy, safety, and execution time.

To address these gaps, the authors propose a method to formally specify new task requirements on top of an existing LfD model and use black-box optimization to automatically tune the model's parameters until the requirements are satisfied.

Fig. 1. Illustration of the proposed method. We collect several demonstrations of robotic manipulation skills, which are then used to learn a TP-HSMM model. This model encapsulates the observed spatial and temporal patterns of the demonstrations. We then define new task constraints based on STL specifications. Finally, we leverage Bayesian optimization to update the TP-HSMM model parameters in order to fulfill the new STL-based task requirements.

Methods

The proposed architecture integrates three core components:

  1. Probabilistic Skill Modeling (LfD): The robot initially learns a skill from human demonstrations using a Task-Parameterized Hidden Semi-Markov Model (TP-HSMM). This model captures the spatial distributions (via Gaussian components), sequential transitions (via a transition matrix), and temporal durations of the demonstrated skill.
  2. Formal Specification (STL): New spatial and temporal constraints are explicitly defined using Signal Temporal Logic (STL). Instead of a binary true/false evaluation, the authors utilize a recent formulation called New Robustness, which yields a continuous, real-valued "robustness degree." This value quantifies how well (or how poorly) a trajectory satisfies the logic constraints, providing a smooth landscape for optimization.
  3. Black-Box Optimization (BO): Because the relationship between the high-dimensional HSMM parameters and the resulting trajectory's STL robustness is non-differentiable and unknown, the authors employ Bayesian Optimization (BO). The BO algorithm treats the robustness degree as a reward function to iteratively refine a targeted subset of the HSMM parameters (component positions, state durations, and transition probabilities).

Datasets

The method was evaluated using custom experimental setups rather than standard public datasets:

  • Simulation Benchmark: A simulated 7-DOF Franka-Emika Panda robot tasked with navigating through a sequence of regions ($L_1$ to $L_3$). New constraints required the robot to visit an entirely new region ($L_4$) during a specific time window and dynamically adjust its speed to stay inside another region ($L_2$) for a set duration.
  • Real-World Industrial Setup: A physical Franka-Emika Panda robot performing a peg-in-hole style assembly task (picking up a shaft, re-orienting it, and inserting it into a holder).

Key Insights and Ideas

  • Tuning the Model, Not Just the Trajectory: Instead of optimizing a single trajectory instance, the framework optimizes the underlying parameters of the probabilistic model (the HSMM). This preserves the generalized structure of the learned skill while allowing targeted adaptations.
  • STL as a Continuous Reward Function: Traditional logic verification outputs a binary success/failure. By using the continuous robustness degree of STL, the authors transform strict logical constraints into an informative reward signal that guides the optimizer even when the robot initially fails the task completely.
  • Dimensionality Reduction for BO: Bayesian Optimization typically struggles in high-dimensional spaces. The authors successfully mitigate this by restricting the optimization domain to only the model parameters relevant to the new constraints (e.g., only modifying the duration parameters or specific transition matrix entries), reducing the parameter space down to a manageable size (e.g., 12 to 21 parameters).

Key Results

Simulation Experiments

The framework successfully adapted a baseline multi-region navigation skill to satisfy complex spatial-temporal constraints within 32 iterations. The robot successfully altered its path to include the new region ($L_4$) and modified its velocity profile to satisfy the duration constraints of region $L_2$.

Real-Robot Experiments

In the industrial assembly task, the initial LfD skill was suboptimal due to a physical shift in the environment, causing the shaft to hit the edges of the holder and generate high contact forces.

  • By defining an STL specification to keep contact forces under 2 Newtons ($|F_{\text{contact}}| < 2.0$), the BO framework adjusted the insertion skill parameters within 16 iterations.
  • The optimized policy successfully prevented the object from hitting the holder edges, significantly reducing contact forces and demonstrating a robust, force-compliant trajectory without requiring an explicit force-sensitive LfD framework.

Limitations and Future Work

  • Scalability (Curse of Dimensionality): Although parameter pruning was used, scaling this approach to highly complex, long-horizon manipulation tasks with dozens of states remains a challenge for standard Bayesian Optimization.
  • Parameter Space Geometry: The current approach treats the parameter bounds uniformly. The authors note that accounting for the specific Riemannian geometry of the parameter space (e.g., covariance matrices and transition probabilities) could lead to more efficient optimization.
  • Expressiveness: Future work aims to explore more complex, nested STL operators to handle highly intricate industrial assembly logic.

Summary updated

BibTeX
@misc{dhonthi2022optimizing,
  author = {Akshay Dhonthi and Philipp Schillinger and Leonel Rozo and Daniele Nardi},
  title = {{Optimizing Demonstrated Robot Manipulation Skills for Temporal Logic Constraints}},
  year = {2022},
  eprint = {2209.03001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.03001},
}
Figure