In the world of Reinforcement Learning (RL), we often dream of agents that don't just think move-by-move, but instead plan using high-level strategies—like "exit the room" or "find the keys." This is the core of Temporal Abstraction, formalized through the Options Framework. However, a nagging problem in modern Deep RL is that agents tend to be "lazy": they usually only learn about the specific strategy they are currently using, leaving other potentially better strategies ignored.
A new paper from Martin Klissarov and Doina Precup (NeurIPS 2021) titled "Flexible Option Learning" revisits a classic idea—intra-option learning—and scales it for the deep learning era.
TL;DR
The authors introduce Multi-updates Option Critic (MOC), an algorithm that allows an RL agent to update multiple high-level "options" (strategies) simultaneously from a single experience. By leveraging a clever decomposition of state-option distributions, MOC significantly improves sample efficiency and prevents the "rich-get-richer" problem where one option dominates others, leading to more diverse and useful behaviors.
What Problem Does This Paper Address?
In the standard options framework, an agent chooses an "option" (a sub-policy), executes it for several steps, and then picks a new one. Historically, "intra-option learning" allowed agents to update all options that were consistent with the action taken. For example, if both "Go to the Door" and "Explore the Room" would have suggested moving left, a single "move left" action should help the agent learn about both.
However, as RL moved into Deep RL (using neural networks for function approximation), this simultaneous updating mostly disappeared. Most modern implementations only update the option currently being executed. This leads to two major issues:
- Data Inefficiency: We throw away valuable information about what other options could have learned.
- Degenerate Solutions: A "rich-get-richer" phenomenon occurs where an option that happens to be updated early becomes more likely to be picked again, eventually causing a single option to take over the entire policy, defeating the purpose of having a hierarchy.
Methods
The authors propose a scalable method to update all "relevant" options, where relevance is defined by how likely an option was to be selected in a given state.
The key technical contribution is a decomposition of the state-option distribution. They show that you can estimate how likely any option $o$ was to be selected, even if you were actually running option $o'$. By using this "upon-arrival" probability, they can weight updates for all options without needing to reset the simulator or introduce complex new estimators.
They introduce a hyperparameter, $\eta$, which acts as a "flexibility knob." It represents the probability of updating all options versus just the sampled one. This allows practitioners to balance the computational cost and the potential variance introduced by off-policy updates.
Datasets
The researchers evaluated MOC across a diverse range of environments to prove its versatility:
- FourRooms: A classic tabular gridworld used to test basic navigation and option discovery.
- MountainCar: Used with linear function approximation to test transfer learning (e.g., doubling gravity mid-training).
- MuJoCo (Continuous Control): High-dimensional physics simulations including HalfCheetah, Ant, and Walker2d.
- MiniWorld: A 3D vision-based navigation environment that tests the algorithm's ability to handle high-dimensional pixel inputs.
Key Insights and Ideas
- Breaking the Monopoly: By updating all options, MOC prevents a single option from "winning" too early. This forces the agent to maintain a diverse set of skills, which is crucial for adapting to new tasks.
- Off-Policy is the Secret Sauce: The method essentially treats intra-option learning as a form of off-policy evaluation. It uses Importance Sampling to ensure that updates to non-active options remain unbiased and consistent.
- Natural Compatibility: Unlike previous "all-option" update methods that required complex inference (like Expectation-Maximization), MOC is "plug-and-play." It works naturally with standard policy gradient frameworks like PPO and A2C.
- Variance Reduction: Interestingly, updating all options can act as a variance reduction technique (similar to "Expected SARSA"), leading to more stable learning curves.
Key Results
MOC demonstrates clear advantages over standard Option-Critic (OC) and Actor-Critic (AC) baselines in both learning speed and the diversity of learned behaviors.
- Speed: In the FourRooms domain, MOC reached the same performance as the standard Option-Critic in roughly half the number of episodes.
- Robustness to Change: In transfer tasks (like changing the gravity in MountainCar or adding walls in Ant), MOC adapted much faster than baselines. It "remembered" how to use its options more effectively in the new context.
- Meaningful Abstractions: Qualitative results showed that MOC learns distinct, interpretable behaviors. For example, in the AntWalls environment, one option specialized in walking forward, while another specialized in navigating around obstacles. Standard methods often failed to create this clear separation.
Limitations and Future Work
While powerful, MOC has a few hurdles:
- Deterministic Policies: Because the method relies on Importance Sampling, it currently cannot be used with purely deterministic intra-option policies (where the probability of an action is either 0 or 1).
- Computational Overhead: Updating $N$ options is more computationally expensive than updating one, though the authors argue the gains in sample efficiency (needing fewer environment steps) outweigh this cost.
- The $\eta$ Schedule: The paper uses a fixed $\eta$, but the authors suggest that a state-dependent $\eta$ (perhaps focusing updates on "bottleneck" states) could be a fruitful area for future research.
By bringing intra-option learning back into the deep learning fold, this paper provides a much-needed tool for building agents that can truly master complex, hierarchical tasks.
Summary updated