NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-Agent Generative Adversarial Imitation Learning

Jiaming Song, Hongyu Ren, Dorsa Sadigh, Stefano Ermon

Introduction

Multi-Agent Generative Adversarial Imitation Learning (MAGAIL) extends the power of Generative Adversarial Imitation Learning (GAIL) to multi-agent systems. It enables groups of agents to learn complex cooperative or competitive behaviors from expert demonstrations without needing explicit, hand-coded reward functions. By combining a novel multi-agent actor-critic algorithm with domain-specific priors—such as zero-sum or full cooperation—the framework achieves significantly better performance and sample efficiency than standard behavior cloning.

The Challenge of Multi-Agent Imitation

Imitation Learning (IL) allows agents to learn tasks by observing experts, bypassing the notoriously difficult process of reward engineering. While single-agent IL has seen massive success, scaling this to multi-agent "Markov games" introduces severe complications.

In multi-agent settings, the environment is inherently non-stationary; as one agent learns and changes its behavior, the "optimal" response for other agents shifts. Furthermore, agents might be working together, competing, or acting entirely independently. Previous approaches often struggled with computational complexity or required access to the environment's internal reward signals. MAGAIL addresses this by providing a model-free framework capable of handling various multi-agent dynamics using only expert state-action trajectories.

Core Methodology

The MAGAIL architecture relies on two primary innovations:

1. The MAGAIL Framework and Inductive Biases

MAGAIL utilizes an adversarial setup where each agent (the "generator") attempts to perform a task, while a set of discriminators tries to distinguish the agents' behavior from expert demonstrations. The discriminator's output serves as a surrogate reward signal for the agents.

Crucially, the authors demonstrate how to incorporate inductive biases (priors) into the discriminator structure to match the nature of the environment:

  • Fully Cooperative (Centralized): Agents share a single reward and discriminator.
  • Decentralized Rationality (Mixed): Each agent has its own independent discriminator based on its local observations.
  • Zero-Sum: In two-agent competitive settings, the discriminator is structured to reflect that one agent's gain is exactly the other's loss.
Discriminator architectures for different multi-agent priors: Centralized, Decentralized, and Zero-Sum.

2. Multi-agent Actor-Critic with Kronecker-factors (MACK)

To train the agents effectively, the authors developed MACK, which follows the "centralized training, decentralized execution" paradigm. During training, a "critic" has access to the observations and actions of all agents to reduce variance and stabilize learning. At execution time, agents act based only on their local information. MACK leverages Kronecker-factored approximate curvature (K-FAC) to significantly improve sample efficiency and training stability, a critical addition given that multi-agent RL is notoriously slow.

Experimental Setup and Results

The researchers evaluated their method using the 2D Particle Environment, testing four distinct scenarios: Cooperative Communication, Cooperative Navigation, Keep-Away (competitive), and Predator-Prey (competitive/cooperative mix).

Key Insights

  • Priors are Powerful: One of the most important takeaways is that "one size does not fit all." By choosing a discriminator structure that matches the game's nature, agents learn much more effectively. For instance, forcing a "cooperative" prior on a competitive task actively hinders learning, whereas a Zero-Sum or Decentralized prior leads to competitive dominance.
  • Overcoming Covariate Shift: Simple Behavior Cloning (BC) often fails because small errors accumulate over time, leading the agent into states the expert never visited. MAGAIL's adversarial training forces the agent to learn how to recover and stay on the "expert path," leading to much more robust policies. In cooperative tasks, MAGAIL consistently outperformed BC, achieving near-expert normalized rewards where BC failed.
  • Efficiency via K-FAC: By incorporating K-FAC into MACK, the authors demonstrate that adversarial imitation learning can be practical for high-dimensional environments, providing a significant boost in sample efficiency over standard policy gradient methods.

Limitations and Future Directions

While MAGAIL represents a significant step forward, several challenges remain:

  • Scalability: Experiments focused on 2-4 agents. It remains to be seen how well the centralized critic in MACK scales to massive swarms where the joint action space explodes.
  • Expert Optimality: Like most imitation learning methods, MAGAIL assumes expert demonstrations are near-optimal. Learning from noisy or sub-optimal experts is an ongoing challenge.
  • Hyperparameter Sensitivity: Adversarial training is notoriously sensitive to hyperparameters. While MACK helps stabilize this, the min-max optimization remains more complex than standard reinforcement learning.

Future work may explore more complex hierarchical priors and apply the framework to higher-dimensional robotic control tasks.

Summary updated

BibTeX
@inproceedings{song2018multi,
  author = {Jiaming Song and Hongyu Ren and Dorsa Sadigh and Stefano Ermon},
  title = {{Multi-Agent Generative Adversarial Imitation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=ryWSaDWO-H},
}
Figure