Abstract
Hierarchical reinforcement learning (HRL) has the potential to solve complex long-horizon tasks using temporal abstraction and increased exploration. However, hierarchical agents are difficult to train due to inherent non-stationarity. We present Primitive Enabled Adaptive Relabeling (PEAR), a two-phase approach that solves the "non-stationarity" problem by using an agent's own progress to slice up expert demonstrations into a custom curriculum. By adaptively relabeling subgoals based on what the agent can currently achieve, PEAR enables robots to master complex tasks—like manipulating rope or tidying a kitchen—with high success rates and minimal expert data.
The Challenge of Non-Stationarity in HRL
Hierarchical Reinforcement Learning is the "divide and conquer" approach of the AI world. It splits a complex task into two levels: a high-level policy that sets subgoals (e.g., "go to the fridge") and a low-level "primitive" policy that executes the atomic actions to get there.
While elegant, HRL is notoriously unstable due to non-stationarity. As the low-level primitive learns and changes, the high-level policy’s previous experience becomes obsolete. A subgoal that was once impossible might now be easy, or vice versa. This "moving target" problem often leads to training collapses or agents that never learn to bridge the gap between subgoals. Existing methods try to fix this with "fixed-window" relabeling (choosing subgoals at set time intervals), but this is a blunt instrument that doesn't account for the agent's actual skill level.
Methods: The PEAR Approach
The authors introduce PEAR, a two-phase approach that turns expert demonstrations into a dynamic training manual.
- Adaptive Relabeling: Instead of cutting an expert demonstration into equal, arbitrary chunks, PEAR uses the low-level agent’s own value function ($Q$-function) to decide where to set a subgoal. If the agent’s current "confidence" in reaching a future state drops below a certain threshold, PEAR marks that state as a subgoal.
- Periodic Re-population: As the agent improves, PEAR periodically re-runs this relabeling process. This creates a natural curriculum: early in training, subgoals are close together and easy; as the agent gets better, the subgoals automatically stretch further apart, challenging the agent to plan over longer horizons.
- Joint Optimization: The agent is trained using a combination of standard Reinforcement Learning (SAC) and Imitation Learning (IL). The relabeled expert subgoals act as a regularizer, "nudging" the RL agent toward successful strategies without forcing it to strictly mimic the expert.
The researchers also included a margin classification objective to prevent the agent from overestimating its abilities on states it hasn't seen before (out-of-distribution states), further stabilizing the learning process.
Datasets and Environments
The study evaluated PEAR across several challenging domains, proving its high data-efficiency (requiring only a small number of directed expert demos, such as 28 for the kitchen task and 100 for others).
- MuJoCo Simulations: Six sparse-reward environments including Maze navigation, Pick and Place, Bin packing, Hollow block manipulation, Rope manipulation, and the complex "Franka Kitchen" (which requires multi-stage tasks like opening a microwave and turning a knob).
- Real-World Robotics: The authors validated the approach on a physical robotic arm performing pick-and-place, bin, and rope tasks using a RealSense D435 depth camera.
Key Insights and Results
- Subgoals as a Moving Goalpost: The most significant insight is that subgoals shouldn't be static. By tying subgoal selection to the agent's current $Q$-function, the environment effectively "levels up" with the agent.
- Theoretical Grounding: Unlike many empirical RL papers, this work provides a theoretical sub-optimality bound. They prove that by periodically re-populating the subgoal dataset, they can tighten the gap between the agent's performance and the theoretical optimum.
- State-of-the-Art Success Rates: PEAR significantly outperformed both "flat" RL baselines and state-of-the-art hierarchical methods (like HAC and RAPS). In complex robotic control tasks where other baselines failed to make progress, PEAR achieved success rates of up to 80%.
- Real-World Performance: On a physical robot, PEAR-IRL (the version using Inverse Reinforcement Learning) achieved an 80% accuracy on pick-and-place and 60% on bin tasks, whereas the next best baseline (RPL) failed to achieve any success.
Limitations and Future Work
While PEAR is powerful, it still relies on directed expert demonstrations. In some highly complex or "alien" environments, even a few expert demos might be hard to acquire. Additionally, the computational overhead of periodically re-calculating the $Q$-values for the entire expert dataset can be a bottleneck. The authors mitigated this by processing trajectories in mini-batches, but scaling this to massive datasets remains a challenge.
Future directions suggest exploring ways to generalize the adaptive relabeling process beyond expert data—perhaps by using "failed" attempts or self-generated trajectories to further boost the curriculum.
Summary updated