Movement Primitive Learning and Generalization: Using Mixture Density Networks

You Zhou, Jianfeng Gao, Tamim AsfourIEEE Robotics Autom. Mag 2020

Abstract

Robot imitation learning often struggles with multi-modal demonstrations where humans provide multiple valid strategies for the same task. Traditional regression methods tend to average these strategies, leading to invalid movements, while standard neural networks often suffer from mode collapse. This paper introduces a method using Mixture Density Networks (MDNs) combined with novel entropy and failure cost functions. This approach prevents mode collapse and allows robots to generalize diverse movement primitives effectively. Experimental results on the ARMAR-6 humanoid robot and synthetic tasks show significant performance gains over standard techniques.

Introduction: The Challenge of Multi-Modal Demonstrations

In robot imitation learning, skills are frequently represented as Movement Primitives (MPs)—mathematical frameworks that enable a robot to adapt learned motions to new goals. However, human demonstrations are rarely uniform. For instance, when reaching for an object behind an obstacle, a person might choose to go around the left side in some trials and the right side in others.

Standard regression techniques, such as Gaussian Process Regression (GPR), typically attempt to "average" these demonstrations. In the obstacle scenario, this results in the robot attempting to move directly through the obstacle—an invalid path. Alternatively, standard neural networks often experience mode collapse, where they fixate on the most frequent strategy and ignore others entirely. This paper addresses how to learn a mapping from task parameters to MP parameters that preserves the full diversity of human strategies.

Comparison of GPR, Original MDN, and Entropy MDN in handling multi-modal paths.

Methodology: Mixture Density Networks and Novel Cost Functions

The authors propose a two-step mapping approach using Mixture Density Networks (MDNs). Unlike deterministic networks that output a single value, an MDN outputs the parameters (means, covariances, and mixing coefficients) of a Gaussian Mixture Model (GMM). This allows the model to provide multiple "suggestions" for a movement, each associated with a probability.

To enhance the training of these networks, two core innovations are introduced:

  1. Entropy Cost: This function encourages the network to maintain high uncertainty regarding which "mode" to use across the dataset. By preventing a single dominant strategy from suppressing others, it effectively mitigates both mode and model collapse.
  2. Failure Cost: Recognizing that failed attempts (e.g., collisions) are often easier to obtain than successful demonstrations, the authors use these "negative" data points to "push" the predicted means away from failure zones.

The underlying motion representation is the Via-point Movement Primitive (VMP), which is adept at adapting to intermediate trajectory points.

The MDN architecture mapping task parameters to Movement Primitive parameters for robot generalization.

Experimental Evaluation

The approach was evaluated across four distinct scenarios:

  • Synthetic Polynomials: Testing basic regression accuracy on trajectory parameters.
  • Random-Obstacle Avoidance: A 2D task where collision-free paths were learned from human-drawn data featuring multiple navigation strategies.
  • Hit-the-Ball (Simulation): Using the MuJoCo engine and an ARMAR-6 humanoid model to hit a ball to a target, accounting for table bounces.
  • Throw-the-Ball (Real Robot): Kinesthetic teaching on the ARMAR-6 to teach direct and bounce-off-wall throwing strategies.

Key Results and Insights

The Entropy MDN demonstrated superior performance in preserving strategy diversity. In the obstacle avoidance task with 100 demonstrations, it achieved an 82% success rate, significantly outperforming traditional methods like SVR and GPR, which struggled to exceed 45% due to the "averaging trap."

Key insights from the study include:

  • Diversity is Essential: Robots must learn the distribution of valid paths, not just a single average, to remain robust under varying environmental constraints.
  • Value of Negative Data: The "Failure Cost" allows the model to learn the boundaries of the success zone more effectively without requiring additional expensive human demonstrations.
  • Real-World Scalability: The system successfully enabled the ARMAR-6 to switch between "direct throw" and "bounce throw" modes based on target location, proving its efficacy in high-dimensional joint spaces.

Limitations and Future Outlook

While effective, the MDN is constrained by the range of its training data and cannot easily extrapolate to task parameters far outside the demonstration set. Future work may involve training a discriminator to pre-evaluate GMM samples or using Reinforcement Learning to further refine the predicted movements.

Summary updated

BibTeX
@article{zhou2020movement,
  author = {You Zhou and Jianfeng Gao and Tamim Asfour},
  title = {{Movement Primitive Learning and Generalization: Using Mixture Density Networks}},
  journal = {IEEE Robotics Autom. Mag.},
  year = {2020},
  doi = {10.1109/mra.2020.2980591},
}
Figure