Discovering Diverse Nearly Optimal Policies withSuccessor Features

Tom Zahavy, Brendan O'Donoghue, André Barreto, Volodymyr Mnih, Sebastian Flennerhag, Satinder Singh

Introduction

Reinforcement Learning (RL) typically focuses on identifying a single optimal policy that maximizes a given reward function. However, in real-world applications, relying on a single solution can be brittle. If a robot's hardware is damaged or the environment changes unexpectedly, a single optimal policy may fail entirely. To address this, researchers have sought methods to discover a set of diverse, high-performing strategies.

DeepMind researchers have introduced Diverse Successive Policies (DSP), a framework designed to discover a collection of behaviors that are both qualitatively distinct and nearly optimal. By leveraging Successor Features (SFs) to represent long-term behavior and formalizing the search as a Constrained Markov Decision Process (CMDP), DSP successfully identifies multiple ways to solve complex tasks, such as a robot learning several distinct gaits that all achieve the same walking goal.

The Challenge of Diversity

Traditional approaches like "Quality-Diversity" (QD) and "Unsupervised Skill Discovery" (e.g., DIAYN) often struggle with a fundamental trade-off. Pure diversity methods can be "reward-blind," finding many different ways to fail because they do not prioritize the main task. Conversely, many diversity rewards lead to "convex maximization" problems. Because these objectives are convex functions of the state distribution, optimization often gets trapped in local maxima, resulting in agents that repeat similar behaviors rather than exploring the full range of possibilities.

Methodology

DSP is an incremental algorithm that builds a set of policies sequentially. Each new policy $\pi^i$ is trained to be as different as possible from the existing set $\Pi^{i-1}$, while maintaining a performance level "good enough" for the primary task.

Algorithm 1: The DSP framework iteratively adds policies by solving a constrained optimization problem.

The core technical components include:

  • Successor Features (SFs): Instead of comparing raw trajectories, DSP represents a policy's behavior using SFs—vectors that summarize the long-term frequency of visiting certain features. This captures the stationary distribution of a behavior, focusing on its long-term "essence."
  • CMDP Formulation: The search is framed as a Constrained Markov Decision Process. The objective is to maximize a diversity reward subject to the constraint that the extrinsic reward (the main task) stays above a defined threshold (e.g., 90% of the optimal score).
  • Explicit Diversity Rewards: The authors propose two new rewards to overcome the limitations of previous methods: Min-Correlation (differentiation from the most similar policy) and Average-Correlation (differentiation from the set's average behavior).

Experimental Results

The method was evaluated using the DeepMind Control Suite, focusing on continuous control tasks like Walker, Dog, and Cheetah.

In the Walker.stand and Walker.walk tasks, DSP discovered a wide variety of nearly optimal behaviors. For standing, while a standard RL agent finds one way to stand, DSP identified eight distinct versions, including standing on one leg, leaning forward, and "stamping" in place. All these variations maintained high extrinsic rewards.

Qualitative results for Walker.stand (left) and Walker.walk (right). The tables list the extrinsic reward ($r_e$) and its percentage relative to the first discovered policy. Each numbered image represents a distinct, near-optimal policy.

In the Dog.stand environment, the agent discovered various "three-legged" standing patterns. Crucially, without the diversity mechanism, the agent always converged to the same four-legged stance. In "no-reward" settings, the diversity mechanism alone could discover complex "Yoga-like" behaviors and locomotion skills like crawling or kneeling.

Discussion and Insights

A key insight of the paper is the duality between diversity and robustness: a set of policies robust to any possible reward function is, by definition, a diverse set. By using Successor Features, the authors focus on diversity in the limit (stationary distribution) rather than just initial movements, leading to more stable and meaningful behavioral differences.

However, the quality of diversity remains dependent on the chosen feature space $\phi$. If the features do not capture the important aspects of the environment, the discovered "diversity" might be trivial. Additionally, solving CMDPs via Lagrangian multipliers can be unstable, suggesting that future work could involve using metagradients to automatically learn optimal diversity rewards or hyperparameters during training.

Summary updated

BibTeX
@inproceedings{zahavy2021discovering,
  author = {Tom Zahavy and Brendan O'Donoghue and André Barreto and Volodymyr Mnih and Sebastian Flennerhag and Satinder Singh},
  title = {{Discovering Diverse Nearly Optimal Policies withSuccessor Features}},
  booktitle = {URL @ ICML},
  year = {2021},
  url = {https://openreview.net/forum?id=of_37LKFyNa},
}
Figure