Ad-Hoc Teamwork from Human Demonstrations

Darius Muglich, Niklas Lauffer, Tin Dizdarević, Jakob Nicolaus FoersterNeurIPS 2026

TL;DR

When we evaluate cooperative AI agents using "human-like" proxy bots trained on big piles of unlabeled human gameplay, we often accidentally test them against only one dominant style of play. This paper shows how standard imitation-plus-reinforcement-learning pipelines collapse human diversity into a single majority convention—and introduces a latent-variable pipeline to rescue those hidden playstyles. When tested against these newly recovered conventions in the card game Hanabi, the leaderboard of top AI agents noticeably shuffles.

What Problem Does This Paper Address?

Imagine sitting down to play bridge or doubles tennis with a stranger. Success depends on conventions—unspoken rules about what a specific signal or movement means. If you want to build an AI that can team up zero-shot with humans, you have to test how well it handles different human conventions.

Testing with real humans is expensive and slow, so researchers build "proxy bots" from offline logs of human-human games (a setting the authors call ad-hoc teamwork from human demonstrations, or AHT-HD). Because datasets rarely label which convention or player group produced a game, the standard recipe is to train one "pooled" Behavioural Cloning (BC) policy on all the data, and then sharpen it into playable bots using KL-regularised reinforcement learning (PPO) so it doesn't wander too far from human behaviour.

Here is the catch: averaging over different conventions doesn't preserve them during RL sharpening. Even if a minority convention is present in the pooled BC model, self-play RL acts like a gravitational well, pulling every proxy bot toward the single most popular convention. Your "diverse" test suite ends up grading AI agents on just one narrow slice of human behaviour.

Figure 2: Pooled reconstruction can concentrate a proxy suite. Left: In Hanabi, BC-derived proxies form a narrow cluster in behaviour space, while latent-derived proxies cover additional regions of human play. Ellipses show one-standard-deviation proxy regions; Appendix A gives the behaviour space construction and density tests. Right: In the signaling game, KL-regularised reconstruction moves the pooled BC reference t = p toward the majority convention.

Methods

To unpack the hidden diversity in unlabeled logs without peeking at downstream test results, the authors build a three-stage pipeline:

Figure 1: Pipeline for same-data convention coverage. From an unlabeled dataset D, we learn convention latents, select a compact set of plausible but distinct references, and reconstruct each reference into a playable proxy using calibrated KL-regularised PPO. The resulting latent suite tests whether conclusions from BC-derived proxies remain stable under additional convention-like behaviours recovered from the same demonstrations.
  1. Masked Latent Modelling: Instead of one pooled policy, they train a Variational Autoencoder (VAE) that summarizes a player's trajectory into a single episode-level latent vector $z$. Crucially, they apply block dropout (masking) to the encoder's input observations while forcing the decoder to predict actions from clean histories. This starves the encoder of brittle, game-specific trivia and forces $z$ to capture reusable, cross-episode conventions.
  2. Evolutionary Latent Search (SP–XP): A continuous latent space has plenty of gibberish regions. To pick a small, sharp test suite of $M$ conventions, they use evolutionary strategies to maximise Self-Play (SP) return (ensuring each convention makes sense when played with itself) while penalising Cross-Play (XP) return (forcing the selected conventions to be genuinely distinct and mutually incompatible).
  3. Offline-Calibrated Policy Reconstruction: Raw decoded policies can be shaky in full game rollouts, so they are sharpened with KL-regularised PPO. Choosing how tightly to leash PPO to the reference policy (the target KL radius $\delta_{\text{tgt}}$) usually requires online tuning. Instead, the authors introduce an empirical offline calibration rule: they map a latent policy’s initial self-play score directly to an optimal KL budget, turning noisy references into strong bots without touching evaluation data.

Datasets

  • Hanabi & AH2AC2 Corpus: The main testbed is the cooperative card game Hanabi, using the private human-gameplay corpus and benchmark constraints from the Ad-Hoc Human-AI Coordination Challenge (AH2AC2), where benchmark-compliant agents train on 2,000 human games.
  • Synthetic Diagnostics: The authors use a mathematical two-convention signaling game to prove mode collapse analytically, alongside synthetic Hanabi policies (Off-Belief Learning and Other-Play) and an iterated two-lever game to validate their KL-calibration curves.

Key Insights and Ideas

  • Action support $\neq$ convention coverage: Just because a pooled imitation model assigns probability to a minority move doesn't mean RL fine-tuning will preserve that playstyle. Reward maximisation naturally branches onto the majority convention—even under forward-KL regularisation.
  • Information bottlenecks extract reusable styles: An unregularised VAE memorises episode-specific quirks. Masking observations during encoding degrades same-episode reconstruction slightly, but dramatically improves cross-episode transfer—proving it isolates transferable strategy.
  • Small probes expose brittle leaderboards: You don't need to model every human on Earth to audit a benchmark. Constructing just three distinct, human-grounded latent proxies from the exact same dataset is enough to expose blind spots in standard proxy suites.

Key Results

  • Breaking Proxy Concentration: In Hanabi, standard BC proxies have an average Self-Play (SP) score of $23.82$ and Cross-Play (XP) of $23.78$—a tiny $0.04$ gap, meaning the bots play almost identically. The 3-bot latent suite achieves $21.24$ SP and $11.93$ XP (a $9.31$ gap), proving they represent distinct, coherent conventions.
  • Rescuing the Human Tail: Measuring coverage of real human gameplay in a 19-D behaviour-statistic space (via reverse KL, lower is better), the latent suite covers human play better than BC ($3.21$ vs. $4.13$), and combining them drops KL to $2.88$. In the bottom 10% of human games most neglected by BC proxies, the latent suite assigns higher density 87.2% of the time ($95.5\%$ in an independent replication).
  • Leaderboard Shuffles: Evaluating 13 benchmark-compliant agents across 1,024 games reveals that agent rankings depend on the test suite. For example, BR-BC-Reconstruct + OBL drops from rank 9 on BC proxies ($19.895$) to rank 11 on latent proxies ($16.053$), getting overtaken by continuous-latent baselines. Meanwhile, BR-Latent-Reconstruct + OBL claims the top spot on the latent suite ($19.819$).

Limitations and Future Work

The authors are careful not to oversell what a synthetic proxy suite can do:

  • Falsification, not ground truth: The 3-proxy latent suite is a diagnostic probe to test benchmark sensitivity, not an accurate frequency map of human conventions or a replacement for real human trials.
  • Static episode latents: Compressing an entire game into one fixed vector $z$ misses dynamic, mid-game strategy shifts, and latent modes might still blur together rare conventions.
  • Domain specificity: The offline KL-calibration curve is an empirical heuristic tailored to PPO+KL in these domains, not a universal law, and Hanabi is the only domain tested end-to-end with real human logs. Future work aims to explore richer mode-discovery techniques and test which proxy suites actually predict coordination with live humans.

Summary updated

Abstract

Human players in cooperative games often rely on conventions: reusable patterns of play that coordinate well when used by the whole team, but can fail otherwise. Evaluating agents in this setting is difficult because human demonstration datasets are usually unlabeled: trajectories do not identify which player, group, or convention produced them. As a result, standard proxy-based evaluations can miss important population diversity. In particular, proxy bots produced by regularised self-play around a pooled behavioural cloning policy can remain concentrated around a single dominant mode of play. We introduce a pipeline for recovering and evaluating this hidden convention diversity from unlabeled demonstrations. Our method first learns latent convention structure from the dataset, then selects a compact set of distinct but plausible conventions, and finally reconstructs each selected convention into a high-performing playable proxy using KL-regularised PPO. A key practical challenge is that KL-regularised PPO is sensitive to the KL penalty, which is often tuned using online interaction. We provide an empirical offline calibration procedure for choosing the requested KL target in the PPO+KL reconstruction settings studied here. On Hanabi, we find that the BC-derived proxy suite is highly concentrated, and that the relative ordering of agents changes when evaluation uses the latent proxy suite instead.
BibTeX
@inproceedings{muglich2026ad,
  author = {Darius Muglich and Niklas Lauffer and Tin Dizdarević and Jakob Nicolaus Foerster},
  title = {{Ad-Hoc Teamwork from Human Demonstrations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=wYE8NC5FXe},
}
Figure