Discovery of Options via Meta-Learned Subgoals

Vivek Veeriah, Tom Zahavy, Matteo Hessel, Zhongwen Xu, Junhyuk Oh, Iurii Kemaev, Hado van Hasselt, David Silver, Satinder Singh

Introduction

Reinforcement Learning (RL) agents often struggle with "long-horizon" problems where a goal is many steps away. While humans naturally break down complex tasks into subgoals (e.g., "walk to the door" before "drive to the store"), RL agents typically operate on "primitive actions" (e.g., move left, move right).

The Options Framework was designed to solve this by allowing agents to learn "options"—sequences of actions that achieve a specific subgoal. However, discovering these options automatically remains a major challenge. Most existing methods either overfit options to a single specific task or require humans to hand-design the subgoals.

To address this, researchers introduced MODAC (Meta-gradients for Option Discovery using Actor-Critic), a framework that automatically discovers reusable options across multiple RL tasks. By using meta-gradients to optimize option-rewards and termination functions, the system learns a library of task-independent skills that significantly accelerate learning in completely new environments.

The MODAC Architecture

MODAC utilizes a hierarchical manager-worker architecture designed to enforce task-independence and utility-driven learning.

MODAC Architecture
  1. The Manager: A high-level policy that chooses between "options" and "primitive actions." Crucially, the manager sees the specific task goal.
  2. The Options (Workers): Each option has its own policy, reward function (defining its subgoal), and termination function. Crucially, options do NOT see the task goal. This forces them to learn general, task-independent behaviors (like "find a doorway") rather than task-specific ones.
  3. Meta-Gradient Learning: The parameters for the option-rewards and terminations are updated using an "outer loop." The system evaluates whether changing the subgoal of an option helps the manager perform better across all training tasks. It then uses the gradient of the manager's performance to update the options.
  4. Switching Cost: To prevent the manager from rapidly jittering between options, a small penalty is added every time a new option is initiated, encouraging the discovery of truly "temporally extended" behaviors.

Key Insights and Results

The researchers evaluated MODAC on two main platforms: an illustrative 4-room Gridworld and DeepMind Lab, a challenging 3D first-person environment with complex physics and partial observability.

Gridworld Experiments and Results
  • Meaningful Discovery: In the Gridworld, MODAC discovered options that clearly targeted the entrances to different rooms—the exact points of high utility for navigation.
  • Superior Transfer: When moved to new, unseen tasks, a manager using MODAC’s pre-trained options learned significantly faster than "Flat" agents (using only primitive actions) and outperformed strong hierarchical baselines like MLSH and Option-Critic.
  • Temporal Extension: In DeepMind Lab, discovered options lasted an average of 12 steps. While the manager only selected options ~64% of the time, those options were responsible for over 95% of the agent's actual behavior, showing they were doing the "heavy lifting" of exploration.
  • Sample Efficiency: Useful options could be discovered with as few as 5M to 10M frames of experience, which is relatively low for complex 3D environments.
  • Options + Primitives = Flexibility: The architecture highlights that a manager should be able to pick both options (for "macro" movement) and primitive actions (for "last-mile" precision). If an agent only has options, it might get close to a goal but be unable to perform the fine-tuned movements needed to reach it.

Limitations and Future Work

While highly effective for spatial tasks, the current experiments are heavily centered on navigation. It remains to be seen how well this scales to non-spatial subgoals (e.g., "pick up an object" or "combine ingredients"). Additionally, like many meta-gradient methods, hyperparameters such as the "switching cost" and the number of options require tuning for different domains. Future work may explore integrating these meta-learned options within a model-based RL framework, where the agent plans ahead using a mental model, potentially unlocking even greater sample efficiency.

Summary updated

BibTeX
@inproceedings{veeriah2021discovery,
  author = {Vivek Veeriah and Tom Zahavy and Matteo Hessel and Zhongwen Xu and Junhyuk Oh and Iurii Kemaev and Hado van Hasselt and David Silver and Satinder Singh},
  title = {{Discovery of Options via Meta-Learned Subgoals}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=AADxnPG-PR},
}
Figure