Compositional Servoing by Recombining Demonstrations

Max Argus, Abhijeet Nayak, Martin Büchner, Silvio Galesso, Abhinav Valada, Thomas Brox

TL;DR

This paper introduces a framework that treats robot imitation learning as a graph traversal problem. By breaking down a few long demonstrations into "partial demonstrations" and recombining them into a searchable graph, robots can perform complex, multi-stage tasks and even transfer skills between different tasks with high precision and minimal data.

What Problem Does This Paper Address?

Traditional imitation learning for robots usually falls into two camps: Deep Policy Learning, which requires massive amounts of data and often fails to generalize to new scenes, and Visual Servoing, which is highly precise and data-efficient but typically limited to repeating a single, specific trajectory.

The challenge is "long-horizon" manipulation—tasks with many steps (like picking up a specific shape and inserting it into a hole). If a robot only has one full demonstration, it might fail if the starting conditions change slightly. Collecting enough full-task demonstrations to cover every possible variation is prohibitively expensive and difficult to automate. The authors aim to bridge this gap by allowing robots to "mix and match" pieces of different demonstrations to find the best path to a goal.

Methods

The authors propose Compositional Servoing, which operates on two levels:

  1. High-Level Planning (The Graph):
    • Existing demonstrations are manually segmented into "parts" (e.g., reaching, grasping, inserting).
  2. These parts become nodes in a Demonstration Graph.
  3. Edges between nodes are weighted based on a similarity function that measures how well the end of one segment matches the beginning of another.
  4. During inference, the robot uses a shortest-path algorithm to find the optimal sequence of segments to get from its current "live state" to a desired "goal state."
  5. Low-Level Control (The Servoing):
    • Once a path is chosen, the robot uses the FlowControl algorithm. This uses optical flow to find pixel-wise correspondences between the robot's current camera view and the demonstration frames.
  6. It estimates the 3D transformation needed to align the current view with the demo view and moves the arm accordingly.

The researchers tested several similarity functions to help the robot "locate" itself on the graph, including flow-based similarity (FS), nearest neighbor features (VINN), and hierarchical localization (HLOC).

Datasets

The study did not use a standard static dataset but rather custom-generated data for two specific tasks:

  • Shape-sorting: Grasping a specific shape (trapeze or oval) and inserting it into a corresponding hole in a cube.
  • Pick-and-place: Grasping a shape and moving it to a red surface.

Evaluations were conducted in:

  • Simulation: A custom PyBullet environment using a KUKA iiwa robot.
  • Real-world: A tabletop setup using a Universal Robot UR-3 equipped with an Intel RealSense RGB-D camera.

Key Insights and Ideas

  • Modularity Wins: Breaking a task into three parts (3-P: locate, re-orient, insert) significantly outperformed using a single, unsegmented demonstration (1-P). This "decouples" the planning, allowing the robot to pick the best grasp demonstration independently of the best insertion demonstration.
  • Zero-Shot Skill Transfer: The robot could perform a "pick-and-place" task more successfully by using segments borrowed from "shape-sorting" demonstrations. This suggests that robot "primitives" (like grasping) are highly reusable across different high-level goals.
  • Goal-Conditioning is Essential: Simply having a library of demos isn't enough. Providing a visual "goal image" allows the graph search to filter for the correct objects, which is critical in scenes with multiple different shapes.
  • Robustness to Change: Because the system relies on local visual alignment (optical flow) rather than global scene coordinates, it is more resilient to changes in lighting or camera viewpoints than standard end-to-end policies.

Key Results

  • Simulation: In shape-sorting, the 3-part (3-P) approach consistently achieved higher success rates than the 1-part or 2-part versions, especially as the number of available demonstrations increased.
  • Real-World Performance: Using the HLOC similarity function, the 3-P graph approach achieved an 85% success rate in the shape-sorting task, compared to only 55% for the standard 1-P baseline.
  • Efficiency: The system demonstrated "few-shot" capability, showing significant performance gains with as few as 5 to 20 additional demonstrations.

Limitations and Future Work

  • Manual Annotation: Currently, the demonstrations must be manually segmented into parts and the foreground objects must be masked. The authors note that automating this segmentation would be a major next step.
  • Similarity Assumptions: The framework assumes that visual similarity correlates with task success. In very complex or cluttered environments, more sophisticated similarity metrics (perhaps learned from task failure/success) might be required.
  • Dynamic Environments: The current system is designed for static tabletop manipulation; adapting it to environments with moving obstacles or dynamic targets remains a challenge.

Summary updated

BibTeX
@inproceedings{argus2024compositional,
  author = {Max Argus and Abhijeet Nayak and Martin Büchner and Silvio Galesso and Abhinav Valada and Thomas Brox},
  title = {{Compositional Servoing by Recombining Demonstrations}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  url = {https://openreview.net/forum?id=XqtFa8SWb3},
}
Figure