This paper addresses one of the most persistent bottlenecks in Reinforcement Learning (RL): the manual labor required to design task hierarchies. By introducing HI-MAT (Hierarchy Induction via Models And Trajectories), the authors provide a way to "learn how to learn" by extracting structural knowledge from a single successful example.
The Problem: The Curse of Dimensionality and Manual Hierarchies
Reinforcement Learning often fails in large state spaces because the agent has too many possibilities to explore. Hierarchical Reinforcement Learning (HRL) solves this by breaking a massive task into a hierarchy of smaller subtasks (e.g., "Go to the door" $\rightarrow$ "Open the door" $\rightarrow$ "Enter the room").
The MAXQ framework is a popular way to implement HRL, but it comes with a major catch: a human expert usually has to engineer the hierarchy, define the subgoals, and identify which state variables are relevant for each subtask. While previous attempts at automation existed (like HEXQ or VISA), they often resulted in bloated hierarchies because they relied solely on state variable changes or general causal models without considering the specific context of a successful solution.
HI-MAT: Automating Hierarchy Discovery
HI-MAT automatically discovers MAXQ task hierarchies by analyzing a single successful trajectory and the underlying action models. It produces compact, "safe" state abstractions that allow agents to learn complex tasks significantly faster and transfer that structural knowledge to new, related problems.
The algorithm takes two inputs: a set of Dynamic Bayesian Networks (DBNs) (which describe how actions affect state variables) and a single successful trajectory from a source task. It processes these through several key steps:
- Causally Annotated Trajectory (CAT): It transforms the raw trajectory into a graph where edges represent causal dependencies. If Action A sets a variable that Action B needs, a causal link is drawn.
- Recursive Partitioning: Starting from the final goal, HI-MAT "parses" the trajectory backward. It identifies groups of actions that work together to achieve a specific literal (subgoal) and defines these as subtasks.
- Safe State Abstraction: For each discovered subtask, the algorithm identifies the minimum set of state variables needed to make optimal decisions. This "safe" abstraction ensures that the agent doesn't lose vital information while ignoring irrelevant noise.
- Action Generalization: It looks at the DBNs to see if other actions (not seen in the example trajectory) have similar effects on the relevant variables. If they do, it adds them to the subtask’s available actions, making the hierarchy more robust.
Key Insights and Performance
The authors evaluated HI-MAT on three distinct domains: a synthetic Modified Bitflip domain, the classic Taxi Domain, and Wargus, a real-time strategy (RTS) environment requiring complex multi-resource coordination.
- The Power of the Trajectory: While a causal model (DBN) tells you what could happen, a trajectory tells you what needs to happen to succeed. This context allows HI-MAT to ignore "distractor" dependencies that DBN-only methods (like VISA) get tripped up by.
- Structure over Values: Transferring the hierarchy (the structure of the task) is often more effective than transferring the value function (the specific "goodness" of states). In the Taxi domain, trying to reuse old value functions actually slowed down learning (negative transfer), whereas reusing the HI-MAT hierarchy led to immediate speedups.
- Stricter is Better: In the Wargus experiments, HI-MAT actually outperformed manually engineered hierarchies. The algorithm found "stricter" termination conditions for subtasks than the human designers did, effectively narrowing the search space for the agent.
Results Summary
- Exponential Compactness: In the Bitflip domain, HI-MAT produced a hierarchy that was exponentially smaller than the one produced by VISA, leading to much faster convergence.
- Human-Level Performance: In the Taxi domain, the automatically discovered hierarchy performed as well as a manually engineered one, and both significantly outperformed flat Q-learning.
- Superior Scaling: In complex domains like Wargus, HI-MAT-enabled agents converged to optimal policies faster than those using manual hierarchies.
Limitations and Future Work
Currently, HI-MAT is designed for tasks with conjunctive "AND" goals (achieve A AND B) and does not yet handle disjunctive "OR" conditions. Furthermore, the algorithm assumes that DBN models of the actions are already available; learning these models from data simultaneously is a natural next step. Finally, once the hierarchy is induced, it remains static. Future work could explore "structural transfer," where the hierarchy itself dynamically adapts to fit a target task that differs significantly from the source.
Summary updated