Wasserstein Policy Optimization

David Pfau, Ian Davies, Diana Borsa, João G. M. Araújo, Brendan D. Tracey, Hado van Hasselt

Abstract

Wasserstein Policy Optimization (WPO) is a reinforcement learning framework designed for continuous control that integrates the efficiency of deterministic policy gradients with the flexibility of stochastic policies. By utilizing the theory of Wasserstein gradient flows, WPO enables agents to exploit action-value gradients for arbitrary probability distributions without relying on the reparameterization trick. Experimental results across the DeepMind Control Suite and high-dimensional tasks demonstrate that WPO offers superior scaling and competitive performance compared to state-of-the-art methods like Soft Actor-Critic (SAC) and Maximum a Posteriori Policy Optimization (MPO).

Introduction

In the field of reinforcement learning (RL) for continuous control—essential for robotics and complex physical simulations—practitioners typically face a trade-off between two primary paradigms. Stochastic policy gradients (SPG) offer flexibility and robust exploration but often suffer from high variance and sample inefficiency. Conversely, Deterministic Policy Gradients (DPG) leverage the gradient of the action-value function ($\nabla_a Q$) to achieve high sample efficiency, yet they are limited to deterministic outputs and can struggle with exploration.

Bridging this gap usually involves the "reparameterization trick," a technique popularized by algorithms like Soft Actor-Critic (SAC). However, this trick restricts the choice of policy distributions (typically to Gaussians) and introduces mathematical constraints. Wasserstein Policy Optimization (WPO) provides a principled alternative by deriving policy updates from the perspective of optimal transport, specifically Wasserstein gradient flows, allowing for the use of action-value gradients with any stochastic policy.

Methodology: Policy Updates via Wasserstein Gradient Flows

The fundamental innovation of WPO lies in its derivation of policy updates. Rather than focusing solely on parameter changes, WPO considers how the entire probability distribution of actions should evolve to maximize expected reward. This evolution follows the steepest descent under the 2-Wasserstein metric.

The Update Rule

By projecting the non-parametric "flow" of the distribution onto a parametric space (such as a neural network), the authors derive a closed-form update rule: $$\theta_{t+1} = \theta_t + F_{\theta\theta}^{-1} \mathbb{E}_\pi [\nabla_\theta \nabla_a \log \pi(a|s) \nabla_a Q^\pi(s, a)]$$ In this expression, $F_{\theta\theta}$ represents the Fisher Information Matrix (FIM), which serves as a natural preconditioner for the gradient. To maintain computational efficiency, WPO typically employs a diagonal approximation of the FIM.

Regularization and Stability

To ensure stable learning and prevent premature policy collapse, WPO incorporates:

  1. KL Regularization: A Kullback–Leibler divergence penalty is used to constrain the step size in distribution space, similar to the approach in MPO.
  2. Gradient Squashing: For environments with "sharp" reward landscapes, an optional cube-root squashing function is applied to the action-value gradients to prevent numerical instability.

Experimental Evaluation

The authors evaluated WPO across three distinct regimes to test its versatility and scaling properties:

  1. DeepMind Control Suite: A standard benchmark featuring 49 MuJoCo-based tasks. WPO performed comparably to or better than established baselines like SAC and DDPG.
  2. High-Dimensional Scaling: The researchers created a "Combined Humanoid" task by concatenating replicas of the Humanoid Stand task, resulting in action spaces with up to 105 dimensions. In these settings, WPO significantly outperformed other methods, demonstrating superior efficiency in coordinating high-dimensional actions.
  3. Real-World Physics (Tokamak Fusion): WPO was applied to a simulation of magnetic confinement fusion, controlling 19 magnetic coils to stabilize plasma. It achieved higher rewards and more stable policy variance than MPO.

Key Insights

WPO reveals a deep theoretical link between optimal transport and policy gradients. It demonstrates that using the gradient of the action-value function is the natural result of following the steepest ascent in the space of all possible distributions.

A critical advantage of WPO is its independence from the reparameterization trick. This allows the framework to be applied to complex distributions, such as Gaussian Mixture Models (GMMs) or normalizing flows, where reparameterization is difficult. Furthermore, in fully observed environments, WPO naturally converges toward deterministic policies—the theoretical optimum—without requiring the manual entropy tuning often needed by other stochastic methods.

Limitations and Future Work

While WPO shows great promise, it is sensitive to specific modeling choices, such as activation functions (e.g., ELU vs. SiLU). Additionally, results on "Dog" tasks suggest that WPO may be more sensitive to partial observability than some baselines.

Future research directions include exploring the use of non-Gaussian distributions and implementing more sophisticated second-order optimization techniques, such as Kronecker-factored Approximate Curvature (KFAC), to replace the diagonal FIM approximation.

Summary updated

BibTeX
@inproceedings{pfau2025wasserstein,
  author = {David Pfau and Ian Davies and Diana Borsa and João G. M. Araújo and Brendan D. Tracey and Hado van Hasselt},
  title = {{Wasserstein Policy Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=oAKe7MG9GM},
}
Figure