Introduction
Standard reinforcement learning (RL) agents are typically specialists: they learn a single policy to maximize one specific reward function. However, in lifelong learning or hierarchical RL, we often desire "generalist" agents that possess a library of skills they can combine to solve new, unseen tasks.
This paper tackles a fundamental question in skill discovery: Which policies should an agent learn upfront to ensure it can handle any future task reasonably well? By framing this as a robustness problem, the authors introduce an iterative algorithm to discover a diverse set of RL policies that provide a guaranteed performance floor for any task within a defined space. Assuming that all possible tasks are linear combinations of known features (e.g., "speed," "energy efficiency"), the goal is to build a set of policies such that the best policy in the set is as good as possible for the hardest possible task.
Methods
The authors introduce a framework based on Set Improving Policies (SIPs). A SIP is a method of composing a set of policies such that the resulting behavior is at least as good as any single policy in the set. The core approach involves three main components:
- Successor Features (SFs): A representation of value functions that decouples the environment dynamics from the reward weights. This allows the agent to quickly evaluate how any policy would perform under a new reward vector.
- Set-Max Policy (SMP): The most basic SIP, which simply selects the policy from the current set that yields the highest expected value for a given task.
- The Discovery Algorithm: An iterative process that functions like a game between an adversary and the agent:
- Step A: Find the "worst-case" reward—the specific combination of features where the current set of policies performs most poorly.
- Step B: Train a brand-new policy specifically to maximize this worst-case reward.
- Step C: Add this new policy to the set and repeat.
The authors mathematically prove that this algorithm results in strict improvement of the worst-case performance at every step until an optimal set is reached.
Datasets and Environments
The researchers evaluated their algorithm on two main environments:
- 2D Grid World: A 10x10 environment where the agent collects different types of items. Each item type represents a feature, and the "task" is defined by the weights assigned to these items.
- DeepMind Control Suite: A standard benchmark for continuous control, testing six domains (Acrobot, Cheetah, Fish, Hopper, Pendulum, and Walker). Instead of using default rewards, raw state observations (positions and velocities) were used as features to define the task space.
Key Insights and Ideas
- Robustness Breeds Diversity: Even though the algorithm is purely mathematical—minimizing a loss for the worst-case scenario—the resulting policies are visually and functionally diverse.
- The "Active Set" Property: Not all learned policies remain useful forever. As the set grows, older policies might become redundant if their "territory" is covered better by newer ones. The authors show these "inactive" policies can be pruned without hurting worst-case performance.
- SMP as a Lower Bound: While the theory focuses on the simple Set-Max Policy (picking one policy), the results apply to more complex composition methods like Generalized Policy Improvement (GPI), which switches between policies at every time step. GPI consistently performs even better than the theoretical SMP.
Key Results
- Monotonic Improvement: In both the grid world and control suite, the worst-case reward value increased strictly with each iteration, confirming the theoretical proofs.
- Outperforming Baselines: The algorithm significantly outperformed "naive" ways of building a policy set, such as training on random reward vectors or orthogonal feature vectors.
- Efficiency: In transfer learning experiments, the discovered set reached high performance levels using far fewer policies than baseline methods. For example, to reach a specific performance threshold in the grid world, the proposed algorithm needed only 4 policies, while baselines needed 7 to 9.
Limitations and Future Work
- Linear Reward Assumption: The theory relies on the assumption that rewards are linear combinations of features. While common in the Successor Features literature, it may not capture highly non-linear or sparse reward structures.
- Computational Cost: Each iteration requires training a new RL policy from scratch, which can be computationally expensive in complex environments.
- Feature Engineering: The quality of the discovered set depends heavily on the chosen features. If the features do not capture the relevant aspects of the environment, the discovered "skills" might not be useful for real-world tasks.
Future work could involve extending this framework to non-linear reward spaces or integrating the discovery process into a more end-to-end hierarchical RL system.
Summary updated