Abstract
Goal-conditioned Hierarchical Reinforcement Learning (HRL) often struggles in long-horizon tasks because the high-level policy may select subgoals that are unreachable or excessively distant. This paper introduces Hierarchical Reinforcement Learning with Adjacency Constraint (HRAC), a framework that restricts the high-level policy's subgoal generation to a "$k$-step adjacent" region. By shrinking the search space without sacrificing optimality, HRAC significantly improves training efficiency and performance across complex robotic navigation and manipulation tasks.
Introduction: The Challenge of Long-Horizon RL
Reinforcement Learning (RL) faces significant hurdles in "long-horizon" tasks, where an agent must execute a vast sequence of actions to achieve a sparse reward. Hierarchical RL (HRL) addresses this by decomposing the problem into a hierarchy: a high-level policy sets intermediate subgoals, and a low-level policy executes primitive actions to reach them.
However, a major bottleneck remains: the Goal Space. Typically, the high-level policy can select any state in the environment as a subgoal. In large or complex environments, this results in a massive search space where the policy frequently suggests subgoals that are physically unreachable or too distant for the low-level policy to master. This inefficiency slows down learning for both levels of the hierarchy.
The HRAC Framework
The core innovation of HRAC is the enforcement of an Adjacency Constraint. The high-level policy is restricted to suggesting subgoals that the low-level policy can realistically reach within a fixed number of steps ($k$).
Key Components
- Adjacency Network: Since the true shortest-path distance between states is unknown in new environments, HRAC learns an "Adjacency Network" ($\psi$). This network maps states into an adjacency space where the Euclidean distance approximates the transition distance.
- Adjacency Matrix & Distillation: The agent maintains an adjacency matrix based on its experience, recording which states it has successfully transitioned between within $k$ steps. This matrix is then distilled into the differentiable Adjacency Network using a contrastive loss.
- Differentiable Adjacency Loss: Rather than a hard constraint, HRAC implements a penalty in the high-level policy’s objective function. If a suggested subgoal is predicted to be outside the $k$-step region, an adjacency loss ($\mathcal{L}_{adj}$) is applied, providing a gradient that guides the policy toward reachable regions.
Theoretical and Practical Insights
A critical finding of this work is that optimality is preserved. The authors provide a theoretical proof that in deterministic environments, any global goal can be reached optimally by sequencing $k$-step adjacent subgoals. In stochastic environments, the performance loss is bounded.
By ensuring subgoals are reachable, the low-level policy receives frequent intrinsic rewards, effectively mitigating the sparse reward problem. Visualizations demonstrate that HRAC learns to pick subgoals that respect the environment's geometry (e.g., following hallways), whereas unconstrained agents often pick subgoals inside obstacles.
Experimental Results
HRAC was evaluated on several challenging benchmarks, including discrete maze navigation, quadrupedal locomotion (Ant Maze, Ant Gather), and robotic arm manipulation (FetchPush).
- Efficiency: In the Key-Chest task, HRAC reached peak performance in approximately 1 million steps, significantly outperforming the HIRO baseline.
- Success Rates: On the difficult Ant Maze Sparse task, HRAC achieved nearly 100% success, while baselines like HIRO and HRL-HER reached only 20-40%.
- Robustness: HRAC maintained stable performance even when Gaussian noise was added to the agent's state, demonstrating resilience to environmental stochasticity.
Limitations and Future Directions
While effective, HRAC currently relies on an adjacency matrix that may become difficult to scale for extremely high-dimensional inputs like raw video without additional dimensionality reduction. Furthermore, the current model assumes environment reversibility; future work could explore directional adjacency for environments with "one-way" transitions. Finally, the learned Adjacency Network holds potential for multi-task transfer, where a pre-trained network could accelerate learning for new objectives in the same environment.
Summary updated