TL;DR
Hierarchical Behaviour Spaces (HBS) is a new hierarchical reinforcement learning framework that allows a high-level controller to dynamically blend predefined reward functions using linear combinations. When evaluated on the notoriously difficult NetHack Learning Environment, HBS achieves state-of-the-art results, revealing that the primary benefit of hierarchy in this context is enhanced exploration through automated intrinsic reward tuning, rather than long-horizon temporal reasoning.
What Problem Does This Paper Address?
Reinforcement learning (RL) agents struggle in long-horizon environments where a single sparse reward (like winning a game) provides little guidance. Hierarchical RL (HRL) attempts to solve this by breaking tasks down into a two-tier system: a high-level "controller" policy that selects macro-actions or "options," and a low-level "intra-option" policy that executes primitive actions to fulfill those options.
Recent scalable approaches rely on a set of predefined reward functions to guide these low-level options. However, these methods limit the controller to picking exactly one option reward at a time. This constraint severely restricts the expressivity of the agent's behavior. If the optimal action requires a subtle mix of two objectives (e.g., exploring while safely avoiding damage), a discrete choice forces a sub-optimal compromise.
Methods
The authors introduce Hierarchical Behaviour Spaces (HBS). Instead of choosing from a discrete set of $n$ options, the high-level controller outputs a vector of continuous coefficients, $\rho \in [0, 1]^n$. These coefficients define a linear combination of the $n$ predefined reward functions, effectively creating an $n-1$ simplex of possible behaviors.
The low-level policy is conditioned directly on these coefficients, learning to optimize whatever composite reward the controller demands. To make this practical and high-throughput, both policies are trained concurrently as separate heads on top of a shared neural network using Proximal Policy Optimization (PPO). In practice, the authors found that quantizing the continuous coefficient space into discrete bins yielded the best empirical performance.
Datasets
The method is evaluated on the NetHack Learning Environment (NLE), a highly complex, procedurally generated terminal-based roguelike game. NetHack is widely considered an unsolved grand challenge for RL due to its massive action space, complex systems, and extremely long horizons (a successful human run takes $10^4$ to $10^5$ turns).
Unlike prior work that optimizes for the easily gameable in-game "score," the authors use the scout score (map exploration) as the primary objective, alongside four auxiliary intrinsic rewards: dungeon level depth, armor class improvement, food consumption, and experience point gain.
Key Insights and Ideas
- Hierarchy as Automated Intrinsic Reward Tuning: Conventional wisdom dictates that HRL succeeds because the high-level controller can reason over longer timescales (long-term credit assignment). HBS flips this assumption. The authors showed that changing the controller's discount factor ($\gamma_\Omega$) had almost no impact on performance. Instead, HBS excels because it acts as a dynamic, automated tuner of intrinsic rewards, modifying exploration strategies on the fly.
- Orthogonal Axes of Behaviour: In traditional HRL, each reward function must induce a sensible, self-contained policy. In HBS, reward functions act as axes in a behavior space. Individual rewards don't need to make sense on their own; they just need to be orthogonal to others to maximize the diversity of behaviors the controller can synthesize.
- Positive Scaling with More Options: In standard option-learning frameworks, adding more reward functions expands the discrete action space, often degrading performance. In HBS, adding more reward functions introduces more dimensions to the behavior space, which actually improves performance.
Key Results
HBS was trained for 40 billion timesteps on the NLE, outperforming flat PPO, PPO with reward shaping, and Scalable Option Learning (SOL). While HBS is less sample-efficient in the first 5 billion timesteps, it converges to a significantly higher final scout score.
Qualitatively, HBS demonstrates superior exploration capabilities. It achieves drastically higher visitation rates to difficult, deep-dungeon waypoints like Minetown and Sokoban. Notably, it successfully navigates the Sokoban branch twice as often as the next best baseline, proving its ability to handle complex sub-goals that require backtracking.
Limitations and Future Work
- Predefined Rewards: HBS currently relies on human-engineered reward functions to define the behavior space axes. Integrating automated reward synthesis (e.g., using Large Language Models or unsupervised skill discovery) is an open area for future work.
- Initial Sample Inefficiency: The continuous nature of the behavior space means HBS takes longer to start learning effectively compared to flat baselines, making it computationally expensive upfront.
- Quantization Compromise: Although the theory supports a continuous behavior space, the authors had to use discrete, quantized bins for the coefficients to achieve stable performance, indicating room for architectural improvement in continuous meta-control.
Summary updated