GPAT: Policy Improvement in Ad Hoc Multi-Agent Teams
- The paper introduces GPAT, which combines generalized policy improvement with a library of pretrained policies to enable zero-shot coordination with unseen teammates.
- It employs difference rewards to address credit assignment, mitigating variability in team dynamics and relying less on teammate behavior knowledge.
- Empirical results across diverse domains demonstrate that GPAT outperforms traditional baselines without requiring online adaptation or inference.
Generalized Policy Improvement for Ad hoc Teaming (GPAT) addresses zero-shot coordination in multi-agent systems where an agent—the learner—must collaborate with teammates whose policies are previously unseen and fixed. Rather than selecting a single robust or best-matching pretrained policy, GPAT leverages a library of pretrained policies, integrating their strengths via generalized policy improvement (GPI) and exploiting difference rewards to mitigate credit assignment and team-dynamics variability. GPAT achieves strong empirical performance in zero-shot ad hoc teaming tasks without requiring online adaptation or inference on the new team (Nigam et al., 17 Oct 2025).
1. Formalization of Ad Hoc Multi-Agent MDPs
The foundation for GPAT is the multi-agent Markov decision process (MMDP), defined as the tuple
where:
- : state space,
- : agent set,
- : action space for agent , joint action space,
- : transition kernel,
- : team reward,
- : discount factor.
Each agent executes 0 according to policy 1, forming joint policy 2 with action-value function
3
The ad hoc MMDP singles out a learner 4, with teammates 5 using unknown fixed policies 6 (7). The ad hoc MMDP is
8
The learner must identify a policy 9 that (for all 0) maximizes
1
with 2.
Zero-shot transfer constrains the agent to:
- Pretrain and perform policy evaluation on 3 source ad hoc teams (4).
- Deploy a learner policy on new team 5 with unseen teammate policies at test time, with no online updates or inference.
2. Generalized Policy Improvement and Difference Rewards
Generalized Policy Improvement (GPI)
Given a set of pretrained learner policies 6, each with action-value 7, the GPI action-value is
8
and the GPI policy is greedily defined as
9
Classically, if only the reward weight 0 varies and transition dynamics remain unchanged, this construction ensures 1, so 2 for all 3.
Difference Rewards
To address credit assignment, the difference reward for agent 4 is
5
where 6 is the team cumulative or immediate reward, 7 denotes teammates’ actions, and 8 is a baseline action (e.g., “do nothing” or sampled under 9’s policy). For the learner (0), focusing on 1 reduces reliance on knowledge of teammate behavior and renders learning more robust to unknown teammate policies.
3. Algorithmic Structure and Execution
GPAT comprises three stages:
A. Pretraining
- For each source team 2, train optimal learner policy 3 (computing successor features 4 in the linear-reward case).
B. Policy Evaluation with Difference Reward
- Define immediate difference reward:
5
- For each pretrained 6, estimate 7-function with respect to 8:
9
- For linear-reward cases, use successor features and fit 0 via least-squares or TD-learning:
1
C. Zero-shot Test Execution via GPI
- On a new team 2, do not update or infer online. For each 3, use
4
and act greedily:
5
Algorithmic Sketch
1
4. Experimental Results and Benchmarks
GPAT was evaluated across multiple domains:
- Cooperative Foraging: Two-agent gridworld collecting three object types; reward 6 for counts 7.
- Predator–Prey: Three predators, four prey (two yellow “easy,” two red “hard,” requiring two predators); analogous reward structure.
- Overcooked (Cramped Room + extra ingredient): Two-agent cooking, rewards for ingredient potting, dish management, soup serving, delivery; weights such as 8.
- Real-World Multi-Robot: Two TurtleBot3s in 9 grid co-foraging, with motion capture and ROS.
Baseline comparisons included:
- Oracle: Team-specific learner trained from scratch.
- Robust: Single policy trained across all source teams.
- PLASTIC: Selection of the single best pretrained policy per test team.
Metric: Interquartile mean (IQM) return over 1,000 episodes × 10 seeds, reporting 95% confidence intervals and percentage of oracle team performance.
Key Findings:
- GPAT consistently outperformed Robust and PLASTIC when the pretrained policy library contained skills relevant to the new team, notably in the first two foraging experiments, Predator–Prey, and Overcooked.
- If the library lacked any compatible skill (Foraging Exp. 3), GPAT performance degraded (to roughly 70% of optimal), while PLASTIC/Robust achieved about 80%.
- An ablation without difference rewards (“w/o DR”) showed significant performance drop, particularly an inability to switch between policies mid-episode.
- The real-robot demonstration confirmed simulator findings: TurtleBots successfully coordinated to collect complementary objects.
5. Theoretical Properties and Guarantees
GPAT builds on established theoretical results for GPI under shared dynamics. If transition kernel remains unchanged and the only variation is in linear reward weight 0, then for all 1,
2
ensuring the GPI-constructed policy is at least as good as any pretrained policy. In the ad hoc setting, where teammate policies induce a new transition kernel at test time, this guarantee does not carry over. No novel convergence or suboptimality bounds are proven for GPAT under transition shift. The hypothesis is that difference rewards render learned 3-functions less sensitive to transition changes, preserving practical effectiveness.
6. Advantages, Limitations, and Prospective Directions
Strengths:
- Zero-shot deployment: no online adaptation upon encountering new teammates.
- Dynamic mixing of all pretrained behaviors via GPI at each time-step.
- Difference rewards effectively address credit assignment and limit sensitivity to unknown teammate dynamics.
- Demonstrated empirical superiority to robust single-policy and type-based selection baselines.
Limitations:
- If the policy library lacks any skill suitable for the new team, GPAT may underperform.
- Theoretical improvement guarantees do not generally hold under transition kernel shift induced by changing teammates.
- Estimation of difference rewards necessitates sampled rollouts or TD estimates.
Potential Extensions:
- Formal suboptimality analysis under transition shift.
- Sample-efficient few-shot updates of 4 for new teams.
- Integration with partial observability or belief-driven GPI.
- Designing communication-aware difference rewards.
- Extending to multi-learner or human–in–the–loop settings.
7. Summary Table: GPAT Algorithmic Phases and Objects
| Step | Core Mathematical Objects | Key Activities |
|---|---|---|
| Pretraining | 5, 6 | Per-team optimal policy learning |
| Policy Evaluation | 7, 8 | Evaluate per-policy difference-Q or fit linear model |
| Zero-shot Test Execution | 9 | Max-pooling over 0; greedy action selection |
This encapsulates the formal structure, algorithmic innovations, empirical performance, theoretical assumptions, and potential avenues for future research in GPAT as presented in (Nigam et al., 17 Oct 2025).