Conditional Imitation Learning for Multi-Agent Games

Andy Shih, Stefano Ermon, Dorsa SadighHRI 2022 · DOI

Introduction

In multi-agent reinforcement learning, agents are typically trained to succeed with a specific set of partners, often through self-play. However, these agents frequently fail when paired with novel partners—such as humans—whose playstyles differ from the training distribution. This paper addresses the challenge of training an agent that can infer a new partner's strategy and adapt its own policy to coordinate effectively, even when restricted to limited expert demonstration data and lacking knowledge of environment rewards or dynamics.

Conceptual overview of training on multiple partner strategies to adapt to a novel partner at test time.

Methodology: Low-Rank Partner Modeling

To enable rapid adaptation without overfitting to small datasets, the authors propose a framework based on Functional Tensor Train decomposition. The core idea is that while the space of all possible policies is vast, the subspace of "reasonable" or "expert-like" policies is relatively small. By imposing a low-rank inductive bias, the model can learn the underlying structure of coordination.

Instead of a standard monolithic neural network, the policy is decomposed into two distinct neural network "cores":

  1. Partner-Strategy Core ($g_1$): This core takes a partner identifier as input and produces a latent vector representing that partner's specific strategy.
  2. State Core ($g_2$): This core processes the environment state to output a matrix representing the general rules and dynamics of the game.
The low-rank policy architecture, showing the multiplication of the partner-strategy core and the state core.

As shown in the figure above, the final action probabilities are derived by multiplying the outputs of these two cores. During training, both cores are optimized via Maximum Likelihood Estimation (MLE) on a demonstration dataset. At test time, the State Core is frozen, and the agent fine-tunes only the small Partner-Strategy Core based on observed partner actions. This allows for highly data-efficient interpolation within the learned strategy subspace.

Experimental Evaluation

The proposed low-rank partner (lrp) approach was evaluated across several diverse environments:

  • Collaborative Multi-Armed Bandit: A discrete task testing basic coordination.
  • 2D Particle Environment: A continuous-action navigation task.
  • Hanabi: A partially observable cooperative card game.
  • Overcooked: A cooperative cooking game using real human-human demonstration data.

Key Results

In simulated environments like Hanabi and the Bandit task, the lrp model achieved the lowest negative log-likelihood, indicating superior prediction of expert reactions to new partners. In the continuous Particle environment, it reached the highest post-adaptation reward (303 ± 4).

In the Overcooked domain, the lrp approach consistently outperformed baselines in predicting held-out human actions. Furthermore, a live user study with 50 human participants demonstrated the model's robustness to non-stationary human behavior. The lrp agent achieved the highest collaborative score (26 ± 2) after just one round of adaptation, marking a statistically significant improvement over meta-learning (MAML) and multi-task baselines.

Discussion and Future Work

The success of the low-rank approach suggests that decoupling "how to play" (the game rules) from "who is playing" (the partner's quirks) is a powerful paradigm for multi-agent coordination. The tensor train bottleneck naturally prevents overfitting, which is critical when working with sparse real-world data like the Overcooked human dataset.

Currently, the model relies on passive adaptation, observing partner actions without actively probing their behavior. Future research could explore active adaptation strategies to further accelerate convergence. Additionally, increasing the diversity of training partners could enhance the model's ability to generalize to even more varied human playstyles.

Summary updated

BibTeX
@inproceedings{shih2022conditional,
  author = {Andy Shih and Stefano Ermon and Dorsa Sadigh},
  title = {{Conditional Imitation Learning for Multi-Agent Games}},
  booktitle = {HRI},
  year = {2022},
  doi = {10.1109/hri53351.2022.9889671},
}
Figure