Demonstrate Once, Imitate Immediately (DOME): Learning Visual Servoing for One-Shot Imitation Learning

Eugene Valassakis, Georgios Papagiannis, Norman Di Palo, Edward Johns

TL;DR

DOME (Demonstrate Once, Imitate Immediately) is a one-shot imitation learning framework that allows robots to perform new tasks immediately after a single human demonstration, with zero additional training or data collection. By combining learned image-conditioned segmentation with visual servoing, DOME achieves near 100% success rates on diverse real-world tasks even in the presence of distractor objects and novel configurations.

What Problem Does This Paper Address?

Teaching robots through imitation learning (IL) typically suffers from two major bottlenecks: data inefficiency and deployment lag. Many methods require dozens of demonstrations or hours of autonomous "practice" (reinforcement learning) before they can reliably perform a task. Furthermore, most systems struggle when the environment changes—for example, if an object is moved or if "distractor" items are added to the scene.

Existing "coarse-to-fine" approaches attempt to solve this by reaching a "bottleneck pose" (the starting point of the interaction) and then replaying recorded movements. However, these often rely on classical visual servoing, which requires prior knowledge of the object’s 3D geometry, or they require lengthy self-supervised fine-tuning after the demonstration. DOME aims for the "holy grail" of imitation: immediate deployment from a single demo with no prior object knowledge.

Methods

DOME splits the problem into two phases: reaching the bottleneck and replaying the interaction.

  1. The Bottleneck Strategy: During a demonstration, the user moves the robot to a "bottleneck pose" (where the robot is ready to interact with the object), captures an image, and then performs the task. The robot records the end-effector (EE) velocities during the interaction.
  2. Image-Conditioned Segmentation: To handle distractors, DOME uses a segmentation network trained with Feature-wise Linear Modulation (FiLM). It takes the "bottleneck image" as a query to find and mask the same object in the "live image" from the robot's wrist camera.
  3. Learned Visual Servoing: A Siamese CNN compares the segmented live image to the segmented bottleneck image. It predicts the relative x, y, scale (z), and rotation needed to align them. This moves the robot automatically to the exact relative pose seen in the demonstration.
  4. Sim-to-Real Training: Crucially, both networks are trained entirely in simulation using random objects from ShapeNet and ModelNet40. Heavy domain randomization (varying lights, textures, and distractors) allows the model to generalize to real-world objects it has never seen before.
Fig. 2: Overview of DOME, with the illustrated task involving opening the lid of the yellow box. EE: end-effector.

Datasets

  • Training: The authors generated a synthetic dataset of 160,000 images for segmentation and 80,000 for servoing using BlenderProc. They used thousands of unique 3D models from ShapeNet and ModelNet40 to ensure the networks learned general geometric features rather than specific objects.
  • Evaluation: The system was tested on 7 real-world everyday tasks: Hammering a nail, lifting a lid and dropping a ball, scooping a bag, drawing a triangle, placing a cup, inserting a ring on a peg, and grasping a cup.

Key Insights and Ideas

  • Decoupling is Key: By separating the "reaching" (a general visual task) from the "interaction" (a task-specific velocity replay), the robot can leverage general-purpose vision models to solve the hardest part of generalization.
  • Segmentation as a Filter: The image-conditioned segmentation acts as a powerful "attention" mechanism. By masking out everything except the target object, the servoing network is shielded from the "noise" of distractor objects.
  • The Power of FiLM: The authors found that using FiLM to modulate a U-Net architecture was more effective for this task than simple image concatenation, as it better integrates the "query" information from the bottleneck image.
  • Zero-Shot Sim-to-Real: The results prove that training on a massive variety of random 3D shapes in simulation is sufficient to perform high-precision visual servoing on real-world household items.
Fig. 3: Simulated data examples. Top: Bottleneck image. Mid- dle: Live image. Bottom: ground truth object segmentation.

Key Results

DOME was compared against several baselines, including Behavioral Cloning (BC), Residual Reinforcement Learning (RRL), and Coarse-to-Fine IL (CTF).

  • Success Rate: DOME achieved near 100% success across all 7 tasks.
  • Robustness: While the CTF baseline failed when distractors were added, DOME maintained its high performance.
  • Efficiency: DOME required 0 minutes of training or data collection after the demonstration. In contrast, CTF required 40 minutes of data collection and ~18 minutes of training per task.
  • Speed: The system is robust to high controller gains, meaning the robot can move quickly to the bottleneck without losing accuracy.

Limitations and Future Work

  • Bottleneck Constraints: The target object must be at least partially visible in the initial frame, and the bottleneck image itself must be "clean" (the user must ensure the object is well-centered).
  • Geometric Sensitivity: While DOME generalizes to new poses, it cannot yet generalize to different instances of an object (e.g., demonstrating on a red hammer and deploying on a blue mallet) because the open-loop replay depends on the specific geometry of the tool.
  • 6-DoF Scaling: The current implementation focuses on 4-DoF visual servoing (x, y, z, and yaw). Extending this to full 6-DoF (including pitch and roll) is a noted direction for future research.

Summary updated

BibTeX
@inproceedings{valassakis2022demonstrate,
  author = {Eugene Valassakis and Georgios Papagiannis and Norman Di Palo and Edward Johns},
  title = {{Demonstrate Once, Imitate Immediately (DOME): Learning Visual Servoing for One-Shot Imitation Learning}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2022},
  doi = {10.1109/iros47612.2022.9981982},
}
Figure