The Option Keyboard: Combining Skills in Reinforcement Learning

André Barreto, Diana Borsa, Shaobo Hou, Gheorghe Comanici, Eser Aygün, Philippe Hamel, Daniel Toyama, Jonathan J. Hunt, Shibl Mourad, David Silver, Doina Precup · DOI

Abstract

The ability to combine known skills to create new ones may be crucial in the solution of complex reinforcement learning problems that unfold over extended periods. We argue that a robust way of combining skills is to define and manipulate them in the space of pseudo-rewards (or "cumulants"). Based on this premise, we propose a framework for combining skills using the formalism of options. We show that every deterministic option can be unambiguously represented as a cumulant defined in an extended domain. Building on this insight and on previous results on transfer learning, we show how to approximate options whose cumulants are linear combinations of the cumulants of known options. This means that, once we have learned options associated with a set of cumulants, we can instantaneously synthesise options induced by any linear combination of them, without any learning involved. We describe how this framework provides a hierarchical interface to the environment whose abstract actions correspond to combinations of basic skills. We demonstrate the practical benefits of our approach in a resource management problem and a navigation task involving a quadrupedal simulated robot.

Introduction

Standard Reinforcement Learning (RL) agents typically operate on atomic, low-level actions, such as applying specific torques to joints. While Hierarchical RL introduced options—temporally extended skills like "walk to the door"—these skills are usually monolithic. If an agent learns to walk and learns to carry an object separately, it typically cannot combine them into a "walk while carrying" behavior without significant retraining. This paper addresses the lack of a robust mechanism for zero-shot skill combination by representing intentions in the space of "pseudo-rewards" or cumulants.

The Option Keyboard Framework

The core innovation of the Option Keyboard (OK) is its representation of skills. Instead of combining action distributions, which often fails to capture the underlying intent, the OK framework combines skills in the "intention space."

Methodology

  1. Extended Cumulants: Skills are defined using cumulants. By extending the action space to include a fictitious termination action ($\tau$), a single cumulant can define both the policy and its termination conditions.
  2. Successor Features: The framework leverages Successor Features to calculate the value of a policy under a new reward function instantly, provided that reward is a linear combination of previously seen rewards.
  3. Generalised Policy Improvement (GPI): The agent uses GPI to select the optimal action across all available basis options (the "keys") for any given linear combination (the "chord").
The Option Keyboard architecture: a high-level 'player' selects weights $w$ for the OK, which then interacts with the environment.

As shown in Figure 1, the system functions as a hierarchy. A high-level "player" selects a weight vector $w$ representing a desired mix of skills. The Option Keyboard then translates these weights into low-level actions $a$ in the environment until the synthesized skill terminates, returning the resulting state $s'$, reward $r'$, and discount $\gamma'$.

Experimental Evaluation

The authors evaluated the Option Keyboard in two simulated environments:

  • Foraging World: A $12 \times 12$ gridworld where an agent manages internal nutrient levels by navigating to different food types.
  • Moving-target Arena: A high-dimensional continuous control task using the MuJoCo physics engine, where an eight-degree-of-freedom quadrupedal robot must reach a moving target.

Results and Discussion

The OK player demonstrated superior adaptation and efficiency compared to standard RL baselines.

Performance comparison in the Foraging World (left) and Moving-target Arena (right), showing the OK player's superior adaptation.

In the Foraging World, the OK player significantly outperformed "flat" RL agents and agents using only basic options, especially when nutrient desirability changed mid-episode. In the quadruped task, despite being trained on only three directional options, the OK player synthesized movement in any direction to reach the moving target, outperforming standard Deterministic Policy Gradient (DPG) agents.

Limitations

While powerful, the framework currently relies on linear combinations of cumulants, which may not capture complex logical dependencies (e.g., "do X AND Y only if Z"). Furthermore, the basis options are currently hand-designed; future work will focus on autonomous option discovery.

Summary updated

Abstract

The ability to combine known skills to create new ones may be crucial in the solution of complex reinforcement learning problems that unfold over extended periods. We argue that a robust way of combining skills is to define and manipulate them in the space of pseudo-rewards (or "cumulants"). Based on this premise, we propose a framework for combining skills using the formalism of options. We show that every deterministic option can be unambiguously represented as a cumulant defined in an extended domain. Building on this insight and on previous results on transfer learning, we show how to approximate options whose cumulants are linear combinations of the cumulants of known options. This means that, once we have learned options associated with a set of cumulants, we can instantaneously synthesise options induced by any linear combination of them, without any learning involved. We describe how this framework provides a hierarchical interface to the environment whose abstract actions correspond to combinations of basic skills. We demonstrate the practical benefits of our approach in a resource management problem and a navigation task involving a quadrupedal simulated robot.
BibTeX
@inproceedings{barreto2019option,
  author = {André Barreto and Diana Borsa and Shaobo Hou and Gheorghe Comanici and Eser Aygün and Philippe Hamel and Daniel Toyama and Jonathan J. Hunt and Shibl Mourad and David Silver and Doina Precup},
  title = {{The Option Keyboard: Combining Skills in Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=DNP9dB9QWw},
}
Figure