Introduction
Reinforcement Learning (RL) often struggles with "long-horizon" problems where rewards are sparse, such as navigating complex mazes or performing multi-step robotic assembly. While Hierarchical Reinforcement Learning (HRL) attempts to mitigate this by decomposing tasks into subgoals, training these hierarchies remains a significant challenge. Learning from Demonstration (LfD) is a common acceleration technique, but it typically assumes access to expert-level demonstrations. In practice, demonstrations are frequently suboptimal—noisy, inefficient, or incomplete.
The paper "Hierarchical Reinforcement Learning from Demonstration via Reachability-Based Reward Shaping" proposes HRLfD-RbRS, a framework that leverages even a single suboptimal demonstration to guide hierarchical agents toward expert-level performance.
Methodology: Reachability-Based Reward Shaping
The core innovation of HRLfD-RbRS is the use of reachability to define a search space around a demonstration, rather than forcing strict imitation.
Shortest Transition (ST) Distance
Traditional Euclidean distance is often a poor proxy for reachability in environments with obstacles. For instance, two points separated by a wall are spatially close but functionally distant. The authors employ Shortest Transition (ST) distance—the actual number of steps required to reach a state—to measure proximity to the demonstration trajectory.
Dual-Level Guidance
The framework implements reward shaping at both levels of the hierarchy:
- High-Level Constraint ($m$-reachability): The high-level policy generates subgoals constrained within an $m$-step reachability region of the demonstration. This ensures the agent remains near a known successful path while retaining the flexibility to optimize its trajectory.
- Low-Level Guidance: The low-level policy is guided by a potential function that rewards similarity to the demonstration's state-action transitions, providing a dense learning signal.
Experimental Setup
The authors evaluated HRLfD-RbRS on several benchmarks using the MuJoCo physics engine and Meta-World:
- Discrete Maze: A 13x17 grid world requiring precise navigation.
- Ant Maze & Ant Gather: Continuous locomotion tasks involving navigation and object collection.
- Meta-World Manipulation: "Door Open" and "Drawer Open" tasks requiring multi-stage robotic arm coordination.
Results and Key Insights
HRLfD-RbRS consistently outperformed state-of-the-art baselines, including UOF and ForgER, across all tested environments.
Surpassing the Teacher
A significant advantage of the reachability-based approach is the agent's ability to discover "shortcuts." By searching within a proximal region rather than strictly following the demo, the agent can find more direct routes that the teacher missed. In Maze and Ant Maze tasks, the agent eventually achieved higher rewards and shorter paths than the original suboptimal demonstration.
Sample Efficiency
The dual-level shaping provides a robust learning signal that leads to superior sample efficiency. As shown in the learning curves, HRLfD-RbRS reaches peak performance significantly faster than competing methods.
Conclusion
HRLfD-RbRS demonstrates that a single suboptimal demonstration can be a powerful tool for solving long-horizon RL tasks when combined with reachability-based constraints. By allowing the agent to explore "around" the demonstration rather than just "on" it, the framework enables the discovery of policies that surpass the teacher's performance. Future research will explore generalization to randomized environments and higher-dimensional control tasks.
Summary updated