PIPER: Primitive-Informed Preference-based Hierarchical Reinforcement Learning via Hindsight Relabeling

Utsav Singh, Wesley A Suttle, Brian M. Sadler, Vinay P. Namboodiri, Amrit Bedi

Abstract

Hierarchical Reinforcement Learning (HRL) offers a promising path toward solving complex, long-horizon robotic tasks by decomposing them into high-level goal setting and low-level execution. However, HRL often suffers from non-stationarity—where the high-level policy's data becomes obsolete as the low-level policy improves—and the generation of infeasible subgoals. We present PIPER, a framework that addresses these challenges through an automated "primitive-in-the-loop" preference system and hindsight relabeling. By regularizing the high-level policy with the low-level's value function, PIPER ensures that subgoals remain within the agent's current capabilities. Our results across five challenging robotic environments demonstrate that PIPER significantly outperforms existing state-of-the-art HRL methods.

Introduction

Reinforcement Learning (RL) has achieved remarkable success in structured domains like games, but high-dimensional robotic manipulation remains a significant challenge. Hierarchical Reinforcement Learning (HRL) attempts to manage this complexity by employing a "manager" (higher-level policy) to set subgoals and a "worker" (lower-level primitive) to execute actions to reach them.

Despite its potential, HRL faces two primary hurdles. First is non-stationarity: as the worker learns and its behavior changes, the rewards the manager previously received for specific subgoals may no longer be accurate, leading to unstable training. Second is the problem of infeasible subgoals: managers often set targets that are beyond the worker's current skill level, causing learning to stall. PIPER (Primitive-Informed Preference-based Hierarchical Reinforcement Learning via Hindsight Relabeling) is designed to mitigate these issues by decoupling reward learning from the immediate worker policy and grounding subgoal generation in the worker's actual capabilities.

Methodology

Overview of the PIPER framework showing the interaction between the higher-level policy, lower-level primitive, and the environment, alongside the five evaluation tasks.

PIPER introduces three core innovations to stabilize and enhance hierarchical learning:

1. Primitive-in-the-Loop (PiL) Feedback

Traditional preference-based learning typically requires human intervention to rank trajectories. PIPER automates this process using a "primitive-in-the-loop" system. It leverages sparse environment rewards to automatically generate preferences between different trajectories. This allows the system to learn a robust reward model without requiring continuous human supervision.

2. Hindsight Relabeling for Preferences

In sparse-reward environments, most trajectories fail to reach the final goal, making them indistinguishable to a standard reward model. PIPER applies Hindsight Experience Replay (HER) logic to preference learning. By picking a state the robot actually reached and treating it as the intended goal, the reward model can learn meaningful distinctions even from "failed" attempts. This relabeling ensures the reward model ($r_\phi$) is trained on a dense signal, which in turn provides a stable learning target for the manager.

3. Primitive-Informed Regularization

To prevent the manager from setting impossible tasks, PIPER regularizes the higher-level policy using the lower-level's value function. This mechanism encourages the manager to select subgoals that the worker currently estimates it can achieve. By balancing task progress with the worker's actual skill level, PIPER ensures a smoother curriculum of learning.

Experimental Setup

The framework was evaluated on five diverse and challenging sparse-reward robotic environments:

  • Maze Navigation: Navigating a 7-DoF arm through a four-room maze.
  • Pick and Place: Manipulating a block to a target location.
  • Push: Moving a block to a specific coordinate.
  • Hollow: A high-precision task requiring a 7-DoF arm to place a hollow block over a vertical peg.
  • Franka Kitchen: A complex, high-dimensional environment involving multi-step tasks like opening a microwave.

Results and Discussion

Success rates of PIPER compared to state-of-the-art HRL (HAC, HIER, DAC) and flat RL baselines across the five evaluation environments.

PIPER demonstrated superior performance compared to several state-of-the-art baselines, including HAC, HIER, and DAC. In the most difficult tasks, such as "Hollow" and "Pick and Place," PIPER achieved success rates exceeding 50%, whereas most baseline algorithms failed to make any progress.

Ablation studies confirmed the necessity of PIPER's components. Without Hindsight Relabeling, the agent was unable to learn a functional reward model from sparse data. Similarly, removing the primitive-informed regularization led to the generation of overly ambitious subgoals, which significantly slowed or completely stalled the learning process. Notably, PIPER even outperformed non-hierarchical agents (like SAC) provided with hand-tuned dense rewards, suggesting that a well-structured hierarchy is more effective than complex reward engineering.

Conclusion

PIPER effectively addresses the core weaknesses of hierarchical RL by using automated preferences and value-function regularization. By decoupling the reward signal from the worker's immediate behavior and ensuring subgoal feasibility, PIPER enables agents to master complex manipulation tasks that were previously unreachable. Future work will explore extending PIPER to pixel-based environments and incorporating safety constraints into the preference-learning process.

Summary updated

BibTeX
@inproceedings{singh2024piper,
  author = {Utsav Singh and Wesley A Suttle and Brian M. Sadler and Vinay P. Namboodiri and Amrit Bedi},
  title = {{PIPER: Primitive-Informed Preference-based Hierarchical Reinforcement Learning via Hindsight Relabeling}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=l6Hef6FVd0},
}
Figure