Abstract
In reinforcement learning, the discovery of high-level, reusable skills—known as options—is critical for scaling to complex tasks. This paper presents a novel pipeline for automatically extracting these options from expert demonstrations. By integrating nonparametric Bayesian segmentation with One-Class Support Vector Machines (OC-SVM), the proposed method autonomously defines the initiation sets, policies, and termination conditions of skills. Evaluated in the Four Rooms domain, the discovered options match the performance of handcrafted alternatives and significantly accelerate agent learning compared to flat architectures.
Introduction
Standard Reinforcement Learning (RL) often operates on a "flat" action space, requiring agents to make low-level decisions at every time step. This approach struggles with long-horizon tasks where a single goal may require thousands of micro-actions. Hierarchical Reinforcement Learning (HRL), specifically the Options Framework, addresses this by allowing agents to execute multi-step skills. However, defining these options—specifically their initiation sets, policies, and termination conditions—typically requires manual engineering. This work focuses on the autonomous discovery of options from raw trajectory data, identifying the temporal and spatial boundaries of each skill without human intervention.
Methodology
The discovery process follows a three-stage pipeline designed to transform raw demonstration data into modular options:
- Skill Segmentation: Expert trajectories are decomposed into distinct segments using Nonparametric Bayesian Reward Segmentation (NPBRS). This utilizes a Beta-Process Autoregressive Hidden Markov Model (BP-AR-HMM) to infer the number and location of unique skills without prior specification.
- Policy Learning: For each identified segment, Maximum Entropy Inverse Reinforcement Learning (MaxEnt IRL) is applied to recover the underlying reward function, which is then used to derive an optimal policy for that specific sub-task.
- Boundary Discovery: To define the initiation and termination sets, the authors employ a One-Class Support Vector Machine (OC-SVM). By treating the start and end points of segmented trajectories as positive examples, the OC-SVM learns a boundary (hypersphere) in the state space. States within these boundaries trigger the start or end of an option.
Experimental Results
The method was evaluated in the Four Rooms domain, a classic benchmark where an agent must navigate through narrow hallways (bottlenecks) to reach goals. The pipeline successfully identified four primary skills corresponding to inter-room navigation.
Key findings include:
- Bottleneck Identification: The OC-SVM naturally identified hallways as termination zones. These bottleneck states are mathematically significant as they serve as transition points between different regions of the environment.
- Learning Efficiency: Agents utilizing the discovered options reached peak performance in approximately 25 episodes, whereas flat Q-learning agents required nearly 100 episodes to stabilize.
- Performance Parity: The autonomously learned options performed as effectively as those manually designed by experts. While the learned options were slightly more restrictive in their initiation sets, this actually helped focus the agent's planning.
Conclusion
This research demonstrates that usable, high-level options can be extracted from expert demonstrations by combining Bayesian segmentation with anomaly-detection-based boundary discovery. By automating the definition of initiation and termination sets, the framework reduces the burden on human designers while maintaining high performance. Future work will explore extending this framework to continuous state spaces and probabilistic termination conditions to handle more complex, real-world robotic environments.
Summary updated