Abstract
Temporal abstractions in the form of options have been shown to help reinforcement learning (RL) agents learn faster. However, despite prior work on this topic, the problem of discovering options through interaction with an environment remains a challenge. In this paper, we introduce a novel meta-gradient approach for discovering useful options in multi-task RL environments. Our approach is based on a manager-worker decomposition of the RL agent, in which a manager maximises rewards from the environment by learning a task-dependent policy over both a set of task-independent discovered-options and primitive actions. The option-reward and termination functions that define a subgoal for each option are parameterised as neural networks and trained via meta-gradients to maximise their usefulness. Empirical analysis on gridworld and DeepMind Lab tasks show that: (1) our approach can discover meaningful and diverse temporally-extended options in multi-task RL domains, (2) the discovered options are frequently used by the agent while learning to solve the training tasks, and (3) that the discovered options help a randomly initialised manager learn faster in completely new tasks.
Introduction
Reinforcement Learning (RL) agents frequently encounter challenges when faced with sparse rewards and long time horizons. In such scenarios, the distance between an agent's actions and the eventual goal makes learning inefficient. Temporal abstraction, particularly through the Options Framework, offers a solution by allowing agents to treat sequences of primitive actions as single high-level choices. While the benefits of options are well-documented, discovering them automatically—without human intervention or task-specific engineering—remains a significant hurdle in the field.
Existing methods often fail to produce options that are truly task-independent, meaning they capture the underlying structure of the environment rather than just solving a specific instance of a problem. This paper introduces MODAC (Meta-gradients for Option Discovery using Actor-Critic), a framework designed to discover reusable skills that accelerate learning across diverse tasks.
Methodology: The MODAC Framework
MODAC utilizes a hierarchical manager-worker architecture combined with a nested optimization loop driven by meta-gradients.
Architecture
The agent is decomposed into four primary neural network components:
- Manager: Observes the task goal and selects between primitive actions or high-level options.
- Option-Policies: The "workers" that execute specific sequences of actions.
- Option-Rewards & Terminations: These define the internal "subgoal" for each option, determining what the option is trying to achieve and when it should end.
Meta-Gradient Learning
The system operates through two loops. In the inner loop, the Manager and Option-Policies learn to maximize environment rewards using standard actor-critic methods. In the outer loop, the system evaluates the Manager's performance improvement and applies meta-gradients to update the Option-Reward and Termination networks. This effectively asks: "How should the definition of this subgoal be adjusted to make the Manager more successful in the future?"
To ensure the discovered options are generalizable, the Option-Policies and Option-Rewards are denied access to the specific task goal. This "goal hiding" forces the options to learn environmental regularities, such as navigating to doorways or hallways, which are useful regardless of the final destination.
Experimental Setup
The researchers evaluated MODAC across three distinct domains to test its versatility:
- Illustrative Gridworld: A four-room navigation task used to visualize whether discovered options correspond to intuitive landmarks.
- DeepMind Lab: A complex 3D first-person environment featuring procedurally generated layouts, requiring agents to navigate and explore efficiently.
- Atari: A suite of classic games where options were discovered via unsupervised auxiliary tasks (pixel control) and then tested on their ability to improve game-score performance.
Results and Discussion
MODAC demonstrated a superior ability to discover and utilize temporal abstractions compared to established baselines like Option-Critic and MLSH (Meta-Learned Shared Hierarchies).
Qualitative Abstractions
In the gridworld domain, MODAC discovered options that targeted specific bottleneck areas. Visualization of these options shows policies that direct the agent toward "subgoal" regions, which often correspond to rooms or transitions that are frequently traversed during training.
Performance and Transfer
- Superior Transfer: In DeepMind Lab, managers equipped with pre-trained MODAC options learned significantly faster in new environments than "flat" agents.
- Temporal Extension: Discovered options in 3D environments lasted an average of 12 steps. The manager chose these options over 60% of the time, accounting for more than 95% of the agent's total behavior.
- Unsupervised Utility: In Atari, the framework successfully converted unsupervised pixel-control tasks into useful options that accelerated learning on the actual game tasks, despite the option-policies never seeing the game score during training.
Conclusion
MODAC represents a significant step toward the automated discovery of reusable skills in RL. By treating subgoals as meta-parameters, the framework allows for the emergence of task-independent behaviors that capture environmental logic. While the approach is computationally intensive due to the meta-gradient optimization and requires careful tuning of switching costs, it provides a robust path forward for scaling hierarchical RL to complex, multi-task domains. Future work may involve integrating these meta-learned subgoals into model-based RL for more efficient long-term planning.
Summary updated