Introduction
In the field of Ad Hoc Teamwork (AHT), the goal is to create a "learner" agent that can collaborate effectively with teammates without any prior coordination or joint training. Most existing research assumes "closed" teams where the number of agents is fixed. However, real-world scenarios—like an autonomous car navigating through varying traffic or a rescue robot joining a fluctuating team of humans—are "open."
This openness presents three major hurdles:
- Unknown Policies: The learner doesn't know how its teammates will behave.
- Dynamic Team Sizes: Agents can join or leave at any time, changing the team's roles and requirements.
- Variable Input Lengths: Standard Reinforcement Learning (RL) models expect a fixed-size state vector. When the number of agents changes, the "length" of the world description changes, causing traditional models to fail.
To address this, researchers introduce Graph-based Policy Learning (GPL), a framework designed for open ad hoc teamwork. By leveraging Graph Neural Networks (GNNs) and Coordination Graphs, GPL enables agents to disentangle the effects of teammate actions and robustly generalize to team compositions they have never seen before.
The GPL Architecture
The GPL framework tackles these challenges using an architecture consisting of three integrated components:
- Type Inference Model: Uses LSTMs to observe teammate behavior over time and condense it into a "type embedding"—essentially a digital fingerprint of their strategy.
- Agent Model: A GNN-based Relational Forward Model (RFM) that predicts what actions teammates are likely to take next, based on their type embeddings and the current state.
- Joint Action Value Model: Instead of just learning its own value, the learner uses a Coordination Graph (CG) to estimate a joint action-value function. This allows the learner to "credit" rewards to the specific actions of specific agents, solving the credit assignment problem.
The core innovation is a novel action-value computation that integrates these models. The learner estimates its own best action by marginalizing over the predicted actions of its teammates, effectively weighting its decisions by how likely its teammates are to help or hinder a specific outcome.
Experiments and Key Results
GPL was evaluated in three distinct multi-agent environments, modified to be "open" (agents enter/leave based on specific triggers):
- Level-based Foraging (LBF): Agents must coordinate to pick up food with different weight levels.
- Wolfpack: A predator-prey game where "hunters" must surround a "prey" to capture it.
- FortAttack: A complex tactical game where defenders must prevent attackers from reaching a fort.
In all cases, the models were trained on teams of up to 3 agents and tested on teams of up to 5 to evaluate their ability to generalize. GPL was compared against several baselines, including standard Q-Learning (QL), Multi-Agent Deep Deterministic Policy Gradient (MADDPG), and Graph Convolutional RL (DGN).
Superior Training and Faster Convergence: In all three environments, GPL variants (GPL-Q and GPL-SPI) achieved significantly higher average returns during training compared to all baselines. In FortAttack, GPL reached high shooting accuracy much faster than other models, demonstrating that its internal modeling of teammate actions provides a stronger learning signal.
Robust Generalization: When tested with larger teams (5 agents) and unseen teammate types, GPL maintained its performance while baselines often plummeted. For example, in FortAttack, GPL achieved a return of ~14-16, while standard RL baselines struggled to stay above zero.
Why it Works: * Disentanglement: By modeling joint action values, GPL can distinguish between a reward earned because the learner did something right versus a reward earned because a teammate did the heavy lifting. This leads to much more stable learning. * GNNs for Openness: Because GNNs operate on graphs rather than fixed vectors, they naturally handle a changing number of "nodes" (agents). This allows the model to scale from 3 to 5 agents without retraining.
Limitations and Future Work
While a significant step forward, the framework has a few areas for future improvement. The current model assumes the learner has full observability of the environment, whereas real-world applications often involve partial observability. Additionally, the framework currently handles discrete action spaces; extending this to continuous actions is a logical next step. Finally, GPL assumes a fully connected Coordination Graph. Future work could involve learning the graph structure itself, which might be more efficient for very large teams where not every agent interacts with every other agent.
Summary updated