Competitive Multi-agent Inverse Reinforcement Learning with Sub-optimal Demonstrations

Xingyu Wang, Diego Klabjan

Introduction

Inverse Reinforcement Learning (IRL) serves as a powerful framework for deducing the underlying motivations—represented as reward functions—of agents by observing their behavior. While IRL has seen success in single-agent settings, applying it to competitive multi-agent environments presents unique challenges. Most existing multi-agent IRL methods operate under the restrictive assumption that experts are perfectly rational and consistently play according to a Nash Equilibrium (NE). In practice, however, human demonstrations are often sub-optimal, characterized by errors and noise.

This paper introduces a novel framework designed to recover high-quality reward functions and strategies from sub-optimal demonstrations in zero-sum games. By utilizing adversarial training and deep neural networks, the authors move beyond the limitations of tabular representations and the assumption of expert optimality.

The Problem: Beyond the Perfect Expert

In competitive settings like sports or strategic games, agents' actions are intrinsically coupled; one agent's strategy depends heavily on the opponent's behavior. Previous IRL approaches often "decoupled" these agents, treating them as independent learners, which fails to capture the strategic interplay of competition.

Furthermore, the reliance on the Nash Equilibrium assumption means that if an expert makes a mistake, the model may fail to learn the true reward function. Finally, many traditional methods utilize quadratic programming and tabular representations, which do not scale to the massive state spaces found in complex, real-world games.

Methodology

The authors propose a framework that addresses these gaps through three primary innovations:

1. A Robust Objective Function

Rather than assuming experts are at a Nash Equilibrium, the algorithm seeks a reward function that minimizes the performance gap between the observed expert demonstrations and the calculated Nash Equilibrium of the current reward model. This approach allows the model to account for sub-optimality in the source data.

2. Adversarial Nash Equilibrium Training

To identify the Nash Equilibrium in large-scale games, the authors developed an adversarial training loop. This process utilizes Proximal Policy Optimization (PPO)—an actor-critic algorithm—to iteratively refine agent policies by pitting them against their "best response" opponents. This ensures that the learned strategies are robust against competitive counter-play.

3. Deep Neural Network Approximations

To overcome the "curse of dimensionality" associated with tabular methods, the framework models reward functions and policies using deep neural networks (specifically, 2-layer Multi-Layer Perceptrons with 256 neurons). This allows the system to generalize across states in complex environments where a full state-action lookup table would be computationally impossible.

Theoretical Foundation: The authors provide a theoretical guarantee in Proposition 1, proving that in a tabular setting, their objective function for finding the Nash Equilibrium contains no local maxima. This ensures that gradient-based optimization is theoretically capable of reaching the global optimum.

Experimental Evaluation: The Chasing Game

The framework was evaluated using a custom-built benchmark: The Chasing Game on Gridworld. This 2-vs-2 game involves "predators" attempting to minimize their distance to "preys," while the preys attempt to maximize it.

Testing was conducted on 5x5 and 10x10 grids. The 5x5 version alone features nearly 400,000 possible states, representing a significant increase in complexity compared to the 1-vs-1 games typically found in prior literature. To test the model's resilience to sub-optimality, the authors generated synthetic expert data using $\epsilon$-greedy Nash Equilibrium policies, where $\epsilon$ represents the probability of an expert making a random, non-optimal move.

Key Insights and Results

  • Robustness to Noise: The algorithm demonstrated remarkable resilience. Even when expert demonstrations were highly "noisy" (high $\epsilon$), the recovered reward function maintained a strong correlation ($\rho \approx 0.65$) with the ground truth reward.
  • Superior Scaling: On the 10x10 grid, the proposed method improved predator policy performance by 48.6% over existing benchmarks like Bayesian-IRL (BIRL) and Decentralized-IRL (DIRL). While these older methods struggled to scale with the state space, the deep-learning approach scaled gracefully.
  • Policy Quality: Policies derived from the learned rewards performed nearly as effectively as the true Nash Equilibrium policies, proving that the model captures the essence of the competitive strategy even from imperfect data.

Limitations and Future Directions

While this research marks a significant advancement, several avenues for future work remain:

  • General-Sum Games: The current framework is tailored for zero-sum environments. Extending this to general-sum games, where agents may have cooperative or overlapping interests, is a logical next step.
  • Partial Observability: The model currently assumes agents have perfect information about the game state. Adapting the framework for Partially Observable MDPs (POMDPs) would increase its applicability to real-world scenarios.
  • Computational Demand: Adversarial training for Nash Equilibria remains computationally intensive, particularly as the number of agents increases, suggesting a need for further optimization in the training loop.

Summary updated

BibTeX
@inproceedings{wang2018competitive,
  author = {Xingyu Wang and Diego Klabjan},
  title = {{Competitive Multi-agent Inverse Reinforcement Learning with Sub-optimal Demonstrations}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure