Diverse Policies Converge in Reward-free Markov Decision Processe

Fanqi Lin, Shiyu Huang, Weiwei TuarXiv 2023 · DOI

Abstract

While traditional Reinforcement Learning (RL) seeks a single "best" way to solve a task, this paper introduces a unified framework for Diversity RL—the art of training a population of agents to behave in distinct, robust ways. We provide the first rigorous theoretical proof for the convergence of these algorithms and demonstrate that treating policy selection as a contextual bandit problem significantly speeds up the discovery of diverse behaviors.

Introduction

Standard RL algorithms are often "one-trick ponies," finding solutions that fail when environment conditions change or opponents adapt. To build more robust and unpredictable agents, researchers have turned to "Diversity RL," which encourages a population of agents to explore different areas of the state-action space.

However, the field has lacked theoretical grounding; until now, no formal proof existed regarding if or how fast these diverse populations converge to stable, distinct behaviors. Existing algorithms use disparate strategies for policy selection and reward calculation, making systematic comparison difficult. This work addresses these gaps by proposing a unified framework and a more efficient selection strategy.

A Unified Framework for Diversity RL

We decompose Diversity RL into a unified framework consisting of two main functions:

  1. SelectZ: Choosing which "skill" or policy to update in the current episode.
  2. CalR: Calculating the "intrinsic reward" that quantifies a policy's uniqueness relative to its peers.

As shown in the table below, our framework encompasses existing methods while introducing a novel selection strategy.

Table 1: Comparison of Diversity RL methods within the proposed unified framework. Our work introduces Bandit Selection, which can be paired with various reward calculation methods.

Bandit Selection Innovation

The paper’s most significant contribution is framing policy selection as a Contextual Bandit problem. Instead of picking a policy at random (Uniform Sampling) or training them sequentially (Iteration Fashion), we utilize a bandit algorithm (specifically LinUCB). In this setup:

  • Arms: The different policies in the population.
  • Context: The current state of the environment or the policy's features.
  • Reward: The gain in diversity achieved after an update.

By using a bandit approach, the system learns to prioritize updating policies that are currently "lagging behind" in diversity, rather than wasting time on policies that are already distinct.

Experimental Evaluation

We validated our approach using both theoretical proofs and controlled environments to isolate the effects of the selection strategy:

  • 3-state MDP: A simplified environment used for geometric visualization, allowing us to project policy behaviors onto a 2D simplex to observe policies spreading out as they become more diverse.
  • Numerical Simulations: We compared Bandit Selection against Uniform and Iterative baselines across varying population sizes ($N=4$ to $16$) and diversity thresholds.

Key Insights

  • Diversity as a Moving Target: We prove that as long as an algorithm can incrementally increase the distance between policies, the entire population will eventually converge to a "target diversity set."
  • The Efficiency Gap: Uniform sampling is inefficient because it treats all policies equally. Once a policy is "unique enough," continuing to sample it provides diminishing returns. Bandit selection identifies this and shifts resources to other policies.
  • Robustness to Initialization: "Iteration fashion" is highly sensitive to initialization. Our unified framework with bandit selection mitigates this by allowing any policy to be updated at any time based on its potential for improvement.

Results

  • Faster Convergence: In head-to-head tests, the Bandit Selection method reached target diversity thresholds significantly faster than both Uniform Sampling and Iteration Fashion.
  • Higher Ceiling: Bandit Selection often achieved a higher final "diversity score" (measured via Mutual Information) than the baselines.
  • Theoretical Regret Bounds: We provided a formal regret bound for our selection method, proving mathematically that the efficiency gains are a property of the algorithm itself.

Conclusion and Future Work

This work establishes a solid theoretical and practical foundation for Diversity RL in reward-free MDPs. Future research will focus on integrating external task rewards to find policies that are both diverse and high-performing. Additionally, defining the "context" for extremely high-dimensional state spaces (like raw video frames) remains a challenge for scaling the bandit selection approach.

Summary updated

BibTeX
@misc{lin2023diverse,
  author = {Fanqi Lin and Shiyu Huang and Weiwei Tu},
  title = {{Diverse Policies Converge in Reward-free Markov Decision Processe}},
  year = {2023},
  eprint = {2308.11924},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.11924},
}
Figure