ReCollab: Retrieval-Augmented LLMs for Cooperative Ad-hoc Teammate Modeling
Conor Wallace, Umer Siddique, Yongcan Cao
TL;DR
Ad-hoc teamwork requires rapid inference of unseen teammate policies under partial observability. The authors propose CoLLAB, an LLM-based rubric-driven world model for classifying teammate types, and ReCoLLAB, a retrieval-augmented variant that grounds predictions with exemplar trajectories. They construct a discriminative behavior rubric via feature selection using mutual information $I(f_j;\\tau)$ and type prototypes $(\\mu_{j,\\tau},\\sigma_{j,\\tau})$, then route to the corresponding best-response policy $\\pi^{1,\\hat{\\tau}}$. In cooperative Overcooked across layouts Cramped Room, Asymmetric Advantage, and Coordination Ring, ReCoLLAB achieves near Pareto-optimal trade-offs between classification accuracy and cumulative return, outperforming CoLLAB and several baselines. The results underscore retrieval grounding as a key factor for robustness in ad-hoc teamwork and point to future work on richer fingerprints and online policy adaptation.
Abstract
Ad-hoc teamwork (AHT) requires agents to infer the behavior of previously unseen teammates and adapt their policy accordingly. Conventional approaches often rely on fixed probabilistic models or classifiers, which can be brittle under partial observability and limited interaction. Large language models (LLMs) offer a flexible alternative: by mapping short behavioral traces into high-level hypotheses, they can serve as world models over teammate behavior. We introduce \Collab, a language-based framework that classifies partner types using a behavior rubric derived from trajectory features, and extend it to \ReCollab, which incorporates retrieval-augmented generation (RAG) to stabilize inference with exemplar trajectories. In the cooperative Overcooked environment, \Collab effectively distinguishes teammate types, while \ReCollab consistently improves adaptation across layouts, achieving Pareto-optimal trade-offs between classification accuracy and episodic return. These findings demonstrate the potential of LLMs as behavioral world models for AHT and highlight the importance of retrieval grounding in challenging coordination settings.
