Abstract
Effective human-agent collaboration in ad hoc settings requires agents to coordinate with unfamiliar partners without prior training. Current "black-box" reinforcement learning models often fail this task by overfitting to specific teammate behaviors at the level of primitive actions. This paper presents $HA^2$ (Hierarchical Ad Hoc Agents), a framework that utilizes Hierarchical Reinforcement Learning to decompose tasks into high-level sub-goals and low-level actions. By mimicking human task abstractions, $HA^2$ achieves superior zero-shot coordination, improved sample efficiency, and greater robustness to environmental changes compared to state-of-the-art non-hierarchical models.
Introduction
Ad hoc teaming—the ability for autonomous agents to collaborate effectively with unfamiliar teammates without prior coordination—remains a significant challenge in artificial intelligence. While humans excel at zero-shot coordination by relying on shared task abstractions, current state-of-the-art agents often struggle. These agents typically utilize "black-box" policies that map raw observations directly to low-level motor controls. This approach frequently leads to overfitting on the specific movement patterns of training partners, causing coordination to fail when agents are paired with new teammates or placed in slightly altered environments. To address this, the $HA^2$ framework proposes a hierarchical structure that aligns agent decision-making with the way humans naturally conceptualize tasks.
The $HA^2$ Framework
To bridge the gap between human and agent reasoning, $HA^2$ leverages Hierarchical Reinforcement Learning (HRL) to decompose the agent's policy into two distinct tiers:
- The Manager: Operates at a high level of abstraction. Its role is to analyze the game state and select from a set of predefined sub-tasks (e.g., "Pick up onion," "Serve soup"). This level focuses on strategic synchronization with the teammate.
- The Worker: A low-level specialist responsible for executing the sequence of primitive actions (e.g., Up, Down, Left, Right, Interact) required to complete the sub-task assigned by the Manager.
By decoupling strategy from execution, $HA^2$ acts as a regularizer, preventing the agent from learning idiosyncratic low-level dependencies on a teammate's specific positioning. This structure not only improves generalization but also aligns the agent's behavior with human-interpretable sub-goals, facilitating more intuitive and fluent collaboration.
Experimental Evaluation
The framework was evaluated using the Overcooked environment, a standard benchmark for multi-agent coordination. Testing was conducted across five standard layouts: Cramped Room, Asymmetric Advantages, Coordination Ring, Counter Circuit, and Forced Coordination. The researchers compared $HA^2$ against established baselines, including Fictitious Co-Play (FCP) and Behavioral Cloning Play (BCP). Furthermore, a human study involving 71 participants was conducted to assess the agent's performance and subjective qualities—such as trust and perceived cooperativeness—in real-time collaboration.
Results and Discussion
The experimental results demonstrate that $HA^2$ significantly enhances coordination performance. When paired with unseen agents, $HA^2$ outperformed non-hierarchical baselines by 47.9% (when paired with BCP agents) and 18.0% (with FCP agents). In human trials, teams featuring $HA^2$ agents achieved significantly higher scores and were rated by participants as more fluent and trustworthy.
Beyond raw performance, $HA^2$ exhibited remarkable robustness. In tests where kitchen layouts were modified by swapping tile positions, standard agents saw their performance collapse. In contrast, $HA^2$ remained robust, outperforming baselines by more than 10.5x on modified layouts. Additionally, the framework proved to be highly sample-efficient, achieving superior results while using 15.1x fewer training timesteps compared to previous hierarchical state-of-the-art models like HiPT.
Conclusion
The $HA^2$ framework demonstrates that enforcing human-like task abstractions through hierarchy is a powerful method for achieving robust ad hoc coordination. By separating "what to do" from "how to do it," agents become more adaptable and better aligned with human teammates. While current sub-tasks require manual definition, future work will explore automating sub-task discovery and incorporating explicit mental modeling to further refine human-agent synergy.
Summary updated