Learning from Demonstration with Weakly Supervised Disentanglement

Yordan Hristov, Subramanian RamamoorthyICLR 2021

This paper tackles a fundamental hurdle in robotics: the "semantic gap" between how humans describe tasks and how robots actually execute them. The authors propose a Learning from Demonstration (LfD) framework that uses "weak" human labels to organize a robot's internal representation of a task. By aligning specific dimensions of a latent space with intuitive concepts like "press softly" or "pour sideways," robots can generate new, interpretable behaviors from simple user specifications.

Bridging the Semantic Gap in Imitation Learning

When teaching a robot via demonstration, the robot records high-dimensional, low-level data such as joint angles, motor torques, and camera pixels. However, humans reason using high-level abstractions like "move faster," "push harder," or "place it behind the cube."

Human demonstrating a task to a PR2 robot

Traditional imitation learning is often a "black-box" process. The robot copies the motion but lacks an understanding of the underlying concepts. If a user wants to adjust a learned behavior (e.g., "do that same thing, but more gently"), they typically must provide entirely new demonstrations. This paper seeks to ground human symbols in robot sensorimotor data, creating a translation layer that allows for flexible, concept-based control.

Structuring the Latent Space with Weak Supervision

The core of the proposed approach is a Conditional Variational Autoencoder (CVAE) designed to handle multi-modal data, including vision, motion, and force.

The proposed framework mapping inputs to a disentangled latent manifold

The framework relies on several key mechanisms:

  • Disentangled Latent Space: Instead of a messy, uninterpretable cloud of data, the model's internal latent space is highly structured. Specific dimensions are explicitly tied to concept groups. For example, one dimension might represent spatial location while another represents applied force.
  • Weak Supervision: Instead of requiring an expert to label every single attribute of every demonstration at every timestep, the model only needs a single, high-level label per demonstration (e.g., "this is a soft press"). The optimization process encourages the latent space to align itself with these weak labels, acting as "common sense" anchors.
  • Architecture: The encoder uses 2D Convolutions for images and 1D Convolutions for trajectories, fused by a Multi-Layer Perceptron (MLP). The decoder utilizes a Temporal Convolutional Network (TCN), allowing the model to generate a full time-series trajectory from a single point in the latent space and a static image of the scene.
  • Compositionality: Because the latent space is disentangled, users can "mix and match" concepts at test time. For instance, combining a "hard" latent value with "fast" and "left" values generates a novel behavior the robot may never have seen in that exact combination.

Experiments and Key Insights

The researchers evaluated their method using a PR2 robot on two primary tasks: a "dabbing" task (pressing a sponge onto a table relative to a red cube) and a "pouring" task (transferring liquid between colored cups). The models processed 128x128 RGB images, 7-DoF joint positions, and 7-DoF joint efforts.

Key Findings

  • Continuous Nuance: Even though the training labels are discrete ("soft" vs. "hard"), the authors utilize continuous latent variables. This allows the robot to capture a spectrum of behaviors, enabling it to execute "softer" or "less soft" motions via interpolation.
  • Overcoming Posterior Collapse: A common failure in generative models is "posterior collapse," where the model ignores the input image and generates a generic motion. The weakly supervised loss forces the model to actively use the visual context (like cup placement) to satisfy the label requirements.
  • High Accuracy and Precision: Models using weak labels (VAE-weak, AAE-weak) significantly outperformed unsupervised baselines. In the dabbing task, VAE-weak achieved near 90-100% accuracy in generating trajectories that matched requested "effort" labels. Furthermore, the Mean Absolute Error (MAE) for spatial tasks was substantially lower, indicating precise grounding of spatial commands.
  • Smooth Interpolation: In the pouring task, sliding a value along a single latent dimension allowed the robot to smoothly transition its target from the red cup to the blue cup.

Limitations and Future Work

While promising, the approach has limitations. Evaluating the accuracy of generated motions currently relies on manually written heuristic scripts to check if a motion is truly "fast" or "soft." Future work aims to incorporate learned evaluators. Additionally, the current system generates open-loop trajectories; integrating this into a closed-loop system that reacts to real-time physical disturbances is a crucial next step. Finally, scaling the system beyond a fixed, pre-defined vocabulary to unrestricted natural language remains an open challenge.

Summary updated

BibTeX
@inproceedings{hristov2021learning,
  author = {Yordan Hristov and Subramanian Ramamoorthy},
  title = {{Learning from Demonstration with Weakly Supervised Disentanglement}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure