Diversity-Inducing Policy Gradient: Using Maximum Mean Discrepancy to Find a Set of Diverse Policies

Muhammad A. Masood, Finale Doshi-Velez

Introduction

Standard reinforcement learning (RL) typically focuses on finding a single optimal policy. However, in many real-world applications—particularly high-stakes domains like healthcare—finding a single "best" solution is often insufficient. Decision-makers, such as clinicians, may prefer a set of near-optimal policies that offer qualitatively different strategies, allowing them to choose the one that best fits specific constraints or preferences.

This paper introduces Diversity-Inducing Policy Gradient (DIPG), a novel approach that leverages Maximum Mean Discrepancy (MMD) to discover a set of diverse, high-performing policies by comparing the distributions of trajectories they produce.

The Challenge of Diversity in RL

Existing methods for inducing diversity in RL face several hurdles:

  1. Parameter vs. Behavior: Encouraging diversity in neural network weights (e.g., Stein Variational Policy Gradient) does not guarantee behavioral diversity, as different weights can map to identical actions.
  2. Action Entropy: Methods like Soft-Q encourage high entropy at each state, often resulting in "jittery" behavior rather than distinct, coherent long-term strategies.
  3. Exploration Limits: Standard RL algorithms are designed to converge to a single global optimum, frequently overlooking other high-quality regions of the solution space.

Methodology: Diversity via MMD

DIPG formalizes policy difference as the distance between the distributions of trajectories (sequences of states and actions) induced by the policies.

Maximum Mean Discrepancy (MMD)

The authors employ MMD as the distance metric between trajectory distributions. MMD is advantageous due to its closed-form solution and superior convergence properties compared to metrics like KL-divergence.

The DIPG Objective

The standard policy gradient objective ($J_{PG}$) is augmented with an MMD-based regularization term: $$J_{MMD}(\theta) = J_{PG}(\theta) + \alpha D_{MMD}(p_\theta(\tau), Q)$$ Here, $Q$ represents a set of previously discovered policies, and $\alpha$ is a hyperparameter controlling the trade-off between optimality and diversity.

Optimization

A key contribution is showing that the gradient of the MMD term can be estimated using the "log-derivative trick" (likelihood ratio). This allows for optimization without requiring knowledge of the environment's transition dynamics, making DIPG a "plug-and-play" addition to existing policy gradient algorithms like PPO.

Experimental Evaluation

The authors evaluated DIPG across three distinct environments:

  1. Synthetic 2D Navigation: Tasks involving symmetric (Multi-goal) and asymmetric goals.
  2. Continuous Control Benchmarks: Standard MuJoCo tasks such as Ant and Humanoid.
  3. Clinical Healthcare Data: A batch RL task using the MIMIC-III database to discover diverse hypotension treatment strategies for ICU patients.

Key Results

In the 4-goal navigation task, DIPG successfully identified policies for all four goals. In contrast, baseline methods like Soft-Q often produced sub-optimal "middle" paths or failed to reach goals consistently, as seen in the trajectory visualizations.

Trajectories of Soft Q-Learning (SQL) variants on Multi-Goal and Asymmetric Goal tasks, illustrating the tendency to produce sub-optimal or non-diverse paths.

On continuous control benchmarks, DIPG-PPO maintained high returns while achieving significantly lower similarity scores (indicating higher diversity) than baseline methods. For instance, in the Ant environment, DIPG achieves a superior balance of performance and behavioral distinctness.

Performance of DIPG on the Ant environment, showing high average return and low state similarity (high diversity) compared to baselines.

Clinical Utility

On the ICU hypotension task, DIPG discovered four distinct treatment styles, all of which outperformed the average clinician's policy (return of ~9.33 vs 9.29). These styles varied in their "aggressiveness"—some favored low-dose vasopressors while others were more aggressive with fluids—providing a valuable "menu" of high-quality options for medical professionals.

Conclusion and Future Work

DIPG demonstrates that trajectory-level analysis is a powerful way to capture behavioral "style" in RL. By using MMD, the method efficiently finds a set of distinct, high-quality solutions. Future work may address hyperparameter sensitivity and explore parallel discovery of policies to improve computational efficiency.

Summary updated

BibTeX
@inproceedings{masood2019diversity,
  author = {Muhammad A. Masood and Finale Doshi-Velez},
  title = {{Diversity-Inducing Policy Gradient: Using Maximum Mean Discrepancy to Find a Set of Diverse Policies}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/821},
}
Figure