TL;DR
Hierarchical Reinforcement Learning (HRL) often struggles because the high-level policy gets lost searching for subgoals in a massive state space. This paper introduces HRAC (Hierarchical Reinforcement learning with Adjacency Constraint), which restricts subgoals to a $k$-step reachable region, significantly boosting training efficiency and performance across complex locomotion and manipulation tasks without sacrificing optimality.
What Problem Does This Paper Address?
Reinforcement Learning (RL) is great at simple games but often fails at long-horizon tasks like navigating a maze or building a complex structure. Hierarchical RL (HRL) tries to fix this by splitting the work: a high-level policy sets "subgoals" (e.g., "go to the kitchen"), and a low-level policy executes the atomic actions to get there.
The bottleneck? In most HRL frameworks, the high-level policy can pick any state in the entire environment as a subgoal. If the environment is large, the high-level policy spends ages suggesting impossible subgoals (like walking through a wall), and the low-level policy never receives a consistent "reward" signal for reaching them. This leads to massive training inefficiency.
Methods
The authors propose the $k$-step Adjacency Constraint. The core idea is simple: the high-level policy should only be allowed to pick subgoals that the low-level policy can reasonably reach within $k$ steps.
The Adjacency Network
To implement this, the authors don't just use Euclidean distance (which ignores walls). Instead, they define a Shortest Transition Distance—the minimum expected steps to get from state A to state B.
- Adjacency Matrix: As the agent explores, it records which states it reached within $k$ steps in a binary matrix.
- Distillation: This matrix is used to train an Adjacency Network ($\psi$). Using a contrastive-like loss, the network learns to map states into an "adjacency space." In this space, if two states are reachable within $k$ steps, their Euclidean distance is small; if not, it's large.
- Differentiable Constraint: This network is then plugged into the high-level policy's training objective as a penalty (a hinge loss). If the high-level policy suggests a "non-adjacent" subgoal, it gets penalized.
Theoretical Grounding
Crucially, the authors prove that in deterministic environments, this constraint preserves the optimal policy. You aren't losing the "best" path by only looking $k$ steps ahead at a time. In stochastic (random) environments, they prove the performance loss is bounded by the "reliability" of the environment's transitions.
Datasets
The researchers evaluated HRAC on a diverse set of benchmarks:
- Discrete Grid Worlds: Key-Chest (pick up a key, open a chest) and Maze.
- MuJoCo Locomotion: Quadrupedal "Ant" robots in Ant Gather, Ant Maze, Ant Push, and a particularly difficult Ant Maze Sparse version.
- Robot Arm Manipulation: FetchPush and FetchPickAndPlace tasks, which require precise 3D coordination.
- Stochastic Variants: They added Gaussian noise to the Ant robot's positions to test how the algorithm handles "slippery" or unpredictable physics.
Key Insights and Ideas
- Search Space Reduction: By limiting subgoals to a $k$-step radius, the high-level policy's effective action space shrinks from the size of the entire world to a small local bubble. This makes exploration much faster.
- Stronger Learning Signals: When subgoals are always "nearby," the low-level policy reaches them more often. This creates a denser "intrinsic reward" signal, helping the low-level agent learn its skills much faster.
- The "Aha" Moment on Stochasticity: The paper identifies the Transition Mismatch Rate ($\mu_k$). This metric quantifies how much the high-level's "intended" state distribution differs from what the low-level actually achieves. This insight allows them to prove that HRAC remains robust even when the world is unpredictable.
- Memory Matters: Unlike previous reachability methods that sample directly from recent trajectories (which are biased), HRAC uses an explicit adjacency matrix to sample explored states uniformly, leading to a much more accurate distance measure.
Key Results
- Superior Efficiency: HRAC consistently outperformed state-of-the-art baselines like HIRO and HRL-HER. In the Key-Chest task, HRAC reached peak performance while baselines barely got off the ground.
- Sparse Reward Mastery: In Ant Maze Sparse, where the robot only gets a reward at the very end, HRAC was the only method to achieve a high success rate, while others failed to explore effectively.
- Robustness: Even when significant noise was added to the environment ($\sigma=0.1$), HRAC maintained its performance, whereas the baseline HIRO's performance degraded significantly.
- Visual Proof: Heatmaps show that HRAC's subgoals are "interpretable"—they follow the path of the maze and avoid suggesting subgoals inside walls, unlike unconstrained agents.
Limitations and Future Work
- Goal Space Discretization: For continuous tasks, the authors currently discretize the goal space to build the adjacency matrix. While effective for 2D/3D navigation, this might not scale well to extremely high-dimensional spaces (like raw pixel inputs).
- Environmental Reversibility: The current implementation assumes a single adjacency network is enough. If an environment is heavily "one-way" (you can fall down a hole but not climb back up), the authors suggest using two sub-networks (a "Forward" and "Backward" embedding), though this wasn't the focus of the current experiments.
- Future Directions: The authors suggest integrating modern representation learning (like VQ-VAE) to handle vast state spaces and exploring how these learned adjacency metrics could be shared across different tasks (multi-task learning).
Summary updated