Hierarchical Behaviour Spaces

Michael Tryfan Matthews, Anssi Kanervisto, Jakob Foerster, Pierluca D'Oro, Scott Fujimoto, Mikael HenaffarXiv 2026

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.

Figure 1: The n reward functions induce a n −1 simplex of behaviours. The controller πΩselects a linear combination of reward functions from the simplex, which the intra-option policy πω then acts to maximise for some number of timesteps. In this way, a large diversity of behaviours can be extracted from only a few reward functions.

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.
Figure 5: Performance on the NLE as the option space grows for both SOL and HBS at 40 billion timesteps. The shaded area denotes 1 standard error over 5 seeds. The agents start with just the scout and −∆(dlvl) rewards, before +∆(Food), −∆(AC) and +∆(XP) are added in that order. We see that HBS can make use of the extra axes of behaviour given by the new reward functions, in contrast to SOL whose performance degrades with more options.

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.

Figure 2: Results on the NetHack Learning Environment. The shaded areas denote 1 standard error over 5 seeds. We show the best setting for each method: for HBS this is using the full space of 5 reward functions, while for SOL and PPO with reward shaping this is just using the scout and −∆(dlvl) rewards.

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

Abstract

Recent work in hierarchical reinforcement learning has shown success in scaling to billions of timesteps when learning over a set of predefined option reward functions. We show that, instead of using a single reward function per option, the reward functions can be effectively used to induce a space of behaviours, by letting the controller specify linear combinations over reward functions, allowing a more expressive set of policies to be represented. We call this method Hierarchical Behaviour Spaces (HBS). We evaluate HBS on the NetHack Learning Environment, demonstrating strong performance. We conduct a series of experiments and determine that, perhaps going against conventional wisdom, the benefits of hierarchy in our method come from increased exploration rather than long term reasoning.
BibTeX
@misc{matthews2026hierarchical,
  author = {Michael Tryfan Matthews and Anssi Kanervisto and Jakob Foerster and Pierluca D'Oro and Scott Fujimoto and Mikael Henaff},
  title = {{Hierarchical Behaviour Spaces}},
  year = {2026},
  eprint = {2604.24558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.24558},
}

Loading related content...

Figure