Wasserstein Gradient Flows for Optimizing Gaussian Mixture Policies

Hanna Ziesche, Leonel Rozo

Introduction

Robots frequently rely on previously learned motion policies, often modeled as Gaussian Mixture Models (GMMs), to perform complex tasks. However, when environments change—such as a target moving or a new obstacle appearing—these policies must be adapted. This paper introduces a novel framework for adapting robot motion policies by treating GMMs as points on a geometric manifold. By formulating policy optimization as a Wasserstein gradient flow, the authors achieve significantly more stable and sample-efficient skill adaptation compared to standard reinforcement learning (RL) baselines.

The Challenge of Structured Policies

While GMMs are excellent at capturing the "shape" of a motion demonstrated by a human, they are notoriously difficult to refine using standard RL methods like PPO or SAC. These traditional algorithms typically treat policy parameters as flat vectors in Euclidean space, completely ignoring the intrinsic probabilistic structure of the GMM.

This "structure-unaware" approach often leads to unstable updates, requires massive amounts of data to converge, and can even destroy the useful prior information learned from initial human demonstrations. The core challenge is optimizing a structured probabilistic policy while ensuring the updates remain stable, physically meaningful, and sample-efficient.

Adapting a GMM policy to a new target via a manifold

Methodology: Wasserstein Gradient Flows

To solve this, the authors propose casting policy optimization as an optimal transport problem. Instead of standard gradient descent, they utilize Wasserstein Gradient Flows (WGF).

Key components of this geometric approach include:

  • The GMM Manifold: The space of GMMs is viewed as a submanifold of probability distributions. Specifically, the method leverages the Bures-Wasserstein manifold, which provides a natural geometry for Gaussian distributions.
  • Two-Step Optimization: The algorithm alternates between two specialized updates to refine the policy:
  • Component Parameters: The means and covariances of the individual Gaussians are updated using Riemannian optimization. This ensures the "shape" of the components evolves along the steepest functional path on the manifold without violating mathematical constraints (like positive-definiteness).
  • Mixing Weights: The weights—dictating how much the robot relies on each Gaussian component—are updated using an implicit Euler scheme solved via the Sinkhorn algorithm, a standard optimal transport tool.
  • Natural Trust Regions: By constraining updates using the $L^2$-Wasserstein distance, the method inherently creates a "trust region." This prevents the policy from changing too drastically between iterations, which is critical for stable learning in physical robotics.

Experimental Validation

The researchers evaluated their method on several simulated robotic tasks, initialized with 10–12 human demonstrations to "warm-start" the GMM policies:

  • 2D Reaching Task: Adapting an L-shaped reaching motion to a new target location.
  • 2D Collision Avoidance: Modifying a linear path to navigate around newly introduced spherical obstacles.
  • 2D Multi-goal Task: Learning to prioritize one goal over another by adjusting GMM weights.
  • High-Dimensional Tasks: Scaling the collision avoidance task to a 7-Degree-of-Freedom (DoF) Franka Emika Panda robot in both 3D operational space and 7D joint space.

Key Insights and Results

The geometric approach yields several major advantages over traditional RL:

  • Sample Efficiency: In the collision-avoidance task, the proposed WGF method reached a 100% success rate 6 times faster than PPO.
  • Reliability and Stability: While standard SAC struggled with high variance and often failed to converge, the Wasserstein approach produced low-variance solutions that worked consistently across different random seeds. The Wasserstein distance acts as a more "forgiving" metric than KL-divergence, accounting for the underlying geometry of the state space.
  • Ablation Success: Using the specific Bures-Wasserstein Riemannian geometry is essential. A "non-Riemannian" ablation of their algorithm was significantly noisier and failed to reach peak performance.
  • Structure Preservation: Unlike black-box neural networks, this method keeps the policy interpretable. Researchers can observe exactly which Gaussian components are stretched or shifted to avoid obstacles.

Limitations and Future Directions

While highly effective, the approach has computational overhead. The Sinkhorn algorithm used for weight updates is computationally intensive, though newer approximations could speed up this inner loop. Additionally, there is an intricate interplay between updating the Gaussian shapes and their weights; future work will explore separate adaptive learning rates for these components. Finally, the current method uses a basic reward-based REINFORCE update, and the authors aim to integrate an actor-critic framework to further boost efficiency.

Summary updated

BibTeX
@inproceedings{ziesche2023wasserstein,
  author = {Hanna Ziesche and Leonel Rozo},
  title = {{Wasserstein Gradient Flows for Optimizing Gaussian Mixture Policies}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=rW4mNcDxpS},
}
Figure