Conditional Neural Expert Processes for Learning from Demonstration

Yigit Yildirim, Emre Ugur · DOI

Introduction

Learning from Demonstration (LfD) is a cornerstone of modern robotics, yet it faces a significant hurdle when demonstrations are multimodal. For instance, when teaching a robot to navigate around an obstacle, different teachers might choose to go left or right. Standard models like Conditional Neural Movement Primitives (CNMP) often attempt to fit a single model to all data, leading to an "averaging" effect where the robot might try to go straight through the obstacle. Traditionally, solving this required manual labeling of demonstration modes—a tedious and often impractical task.

Conditional Neural Expert Processes (CNEP) addresses this by autonomously discovering and specializing in different behavioral modes. By utilizing a gating mechanism and multiple "expert" networks, CNEP learns complex, multi-modal skills without requiring manual labels, effectively avoiding the pitfalls of inconsistent demonstration averaging.

Architecture and Methodology

CNEP extends the CNMP architecture by incorporating a "Mixture of Experts" approach. The framework consists of three primary components:

  1. Encoder: Maps a set of observation points (time and sensorimotor state) into a latent representation.
  2. Gate Network: Analyzes the latent representation to assign probabilities to various Query Networks.
  3. Query Networks (Experts): Multiple decoders where each expert specializes in a specific type of motion or "mode."
Overview of the CNEP architecture, showing the flow from demonstration observations through the encoder and gate network to specific expert predictions.

To facilitate unsupervised mode discovery, CNEP employs a specialized loss function comprising weighted reconstruction loss, batch entropy (to ensure all experts are utilized), and individual entropy (to encourage decisive gating). At inference, the system adopts a winner-take-all strategy, executing the trajectory from the expert with the highest gate probability. This prevents the generation of physically impossible intermediate states that often result from simple averaging.

Experimental Evaluation

The authors evaluated CNEP across synthetic 1D signals and real-world robotic tasks, including obstacle avoidance with a Baxter robot and a complex pick-and-place task involving wine glasses.

In multimodal synthetic tests, CNEP achieved a Mean Squared Error (MSE) of 0.027, significantly outperforming CNMP (0.112) and ProMP (0.199). A key advantage is CNEP's ability to handle trajectory intersections. While standard models often become "confused" at crossing points, CNEP’s gating mechanism maintains commitment to a single consistent mode based on the latent context.

Comparison of reconstructed trajectories. (a) shows observation points. (b) demonstrates how CNEP successfully identifies and follows a single mode with high probability, whereas CNMP produces an averaged, inaccurate trajectory.

In the high-dimensional wine glass task (utilizing 1280 vision features), CNEP successfully identified the correct movement mode to place glasses on a rack, whereas traditional methods like GMM failed to even achieve a successful grasp.

Conclusion and Future Directions

CNEP represents a significant step forward in scaling LfD by enabling unsupervised discovery of movement styles. Its robustness in high-dimensional spaces and ability to adapt "on-the-fly" by switching experts makes it highly suitable for complex environments.

Current limitations include a lack of inherent precision guarantees (often mitigated with a PID controller) and the requirement to manually set the number of experts. Future research may explore dynamic expert allocation to further automate the learning process for increasingly complex robotic behaviors.

Summary updated

BibTeX
@article{yildirim2024conditional,
  author = {Yigit Yildirim and Emre Ugur},
  title = {{Conditional Neural Expert Processes for Learning from Demonstration}},
  journal = {IEEE Robotics and Automation Letters},
  year = {2024},
  doi = {10.1109/lra.2024.3477169},
}
Figure