Introduction
In reinforcement learning (RL), agents are typically trained to maximize a specific reward function. However, real-world applications often require agents to be versatile, handling a variety of tasks that may not be known at training time. A common approach to this "lifelong learning" challenge is to pre-train a "toolbox" of policies that can be later composed or selected. The fundamental challenge lies in determining which policies should be included in this set to ensure robust performance across any potential future task.
DeepMind researchers have proposed a principled framework for policy discovery based on maximizing worst-case performance. By framing the problem as one of robustness, the resulting algorithm naturally discovers a diverse set of skills that can be effectively combined to solve novel challenges.
Problem Formulation and Robustness
Standard RL focuses on a single task. In contrast, this work considers a set of $n$ policies and seeks to optimize their collective performance on the task where they currently perform the worst. If policies in the set are too similar, the agent will fail on tasks requiring fundamentally different behaviors. Conversely, random selection offers no performance guarantees.
The authors address this by identifying a set of policies such that the "worst-case" performance—the expected value on the task the agent is least prepared for—is maximized. This approach ensures a guaranteed minimum level of performance across the entire task space.
Methodology: Set Improving Policies (SIPs)
The core of the proposed method is the concept of Set Improving Policies (SIPs). A SIP is a mechanism for combining a set of policies such that the resulting behavior is at least as good as any individual policy in the set for any given task. Two primary SIPs are explored:
- Set-Max Policy (SMP): A conservative strategy where the agent selects the single best policy from its set for a given task.
- Generalized Policy Improvement (GPI): A more advanced approach that selects the best action in every state by evaluating the maximum value across all policies in the set.
Worst-Case Policy Iteration
The researchers introduced Algorithm 1 (SMP worst-case policy iteration), an iterative loop designed to expand the policy set:
- Identify Weakness: Determine the "adversarial reward"—the specific task where the current policy set performs most poorly.
- Train Specialist: Use standard RL to train a new policy optimized for this worst-case task.
- Expand Set: Add the new specialist to the toolbox.
The authors provide a formal proof that this process leads to monotonic improvement: the worst-case performance of the set strictly increases with each iteration until an optimum is reached. To maintain computational efficiency, the algorithm utilizes Successor Features (SFs), which decouple environment dynamics from reward functions, allowing for rapid performance prediction across new tasks.
Experimental Evaluation
The approach was evaluated in two distinct environments: a 2D Grid World and the DeepMind Control Suite. In the Grid World, tasks were defined by varying weights on different items (e.g., 'X', 'Y', 'O', '8'). In the Control Suite, tasks involved continuous control of various "bodies" (e.g., Walker, Hopper), with rewards defined as linear combinations of agent observations.
Key Results and Diversity
A significant finding is that optimizing for robustness naturally breeds behavioral diversity. To address weaknesses in the set, the algorithm is forced to discover behaviors fundamentally different from existing ones. In the Control Suite, this resulted in the discovery of distinct locomotion gaits (running forward, walking backward) and even static "yoga poses" (standing on one leg) without manual reward engineering.
In terms of efficiency, the proposed algorithm outperformed baselines such as training on random rewards or orthogonal feature axes. As shown in the results, the SMP approach required significantly fewer policies to achieve high performance thresholds compared to these alternatives.
Conclusion and Future Directions
This work demonstrates that a focus on worst-case robustness is a powerful driver for discovering diverse and effective RL policies. While the current framework assumes linear reward functions and fixed environment dynamics, it provides a solid theoretical foundation for building versatile agents. Future research may extend these principles to handle non-linear rewards and varying environment physics, further enhancing the robustness of autonomous systems in complex, changing worlds.
Summary updated