Abstract
Hierarchical Reinforcement Learning (HRL) using the Option-Critic architecture allows agents to learn temporal abstractions end-to-end. However, this approach often suffers from "option degeneracy," where learned options either collapse into a single dominant policy or switch at every timestep, negating the benefits of hierarchy. We present Attention Option-Critic (AOC), which addresses this by introducing learnable attention masks for each option. By forcing options to focus on specific state features through diversity and sparsity regularization, AOC promotes the discovery of specialized, stable, and interpretable skills. Our results in navigation tasks and Atari games demonstrate that AOC leads to more balanced option utilization and significantly faster transfer in complex environments.
Introduction
In Reinforcement Learning (RL), temporal abstraction enables agents to reason over extended time scales using "options"—high-level behaviors like "navigating to a room." While the Option-Critic framework provides a gradient-based method to learn these options, it lacks mechanisms to ensure they remain distinct and meaningful. Without constraints, the optimization process often leads to a single option dominating the entire task or options that terminate too frequently, losing the benefit of long-term planning.
The authors of AOC argue that the missing component is state abstraction. A truly modular skill should not only define a policy but also specify which parts of the observation space are relevant to its execution. By learning what to ignore, options become more robust and reusable.
Methods: The AOC Architecture
The core of the AOC framework is a learnable attention mechanism integrated into the Option-Critic architecture. Each option $\omega$ is equipped with a mask $h_\omega(s)$ that filters the state observation $s$ before it is processed by the intra-option policy and termination functions.
To prevent all options from attending to the same features, AOC employs two key regularization terms in its loss function:
- Diversity: Encourages options to have different attention masks (e.g., via cosine similarity penalties).
- Sparsity: Forces options to ignore irrelevant information, narrowing their focus to essential features.
This setup allows the agent to learn an implicit "initiation set" for each option; an option becomes specialized for regions of the state space where its attention mask highlights task-relevant information.
Key Insights and Results
The primary advantage of AOC is the emergence of specialized, interpretable behaviors. In the Four-Rooms task, standard Option-Critic typically results in one option dominating nearly 90% of the steps. In contrast, AOC maintains a balanced distribution of option usage, as each option becomes specialized for specific regions.
Stability and Interpretability
By examining the attention masks (as seen in Figure 6b), we can interpret the agent's logic. In complex tasks like Seaquest, the agent learns to use different options for mid-screen combat versus managing the oxygen bar. This specialization prevents "option takeover" because an option cannot effectively control the agent in states where its mask filters out critical information.
Superior Transfer Performance
AOC shows significant gains in transfer learning. When the environment changes—such as moving a goal or blocking a hallway—AOC adapts much faster than the baseline. Because its skills are modular and tied to specific state features, the agent can reuse relevant options in the new configuration rather than relearning a monolithic policy from scratch. In "blocked hallway" scenarios, AOC adapted quickly while standard Option-Critic often failed to transfer at all.
Conclusion
Attention Option-Critic successfully mitigates option degeneracy by coupling temporal abstraction with state abstraction. While the framework requires careful tuning of regularization weights for diversity and sparsity, it offers a path toward more interpretable and robust hierarchical agents that can generalize across tasks.
Summary updated