Variational Autoencoders for Opponent Modeling in Multi-Agent Systems

Georgios Papoudakis, Stefano V. AlbrechtarXiv 2020

Introduction

In multi-agent reinforcement learning (MARL), an agent's performance is intrinsically linked to its ability to anticipate and adapt to the strategies of other participants. This process, known as opponent modeling, typically relies on the assumption that agents have access to "privileged" information, such as the private observations or specific actions of their opponents. However, in real-world applications like financial trading or competitive games, such transparency is rarely available. This paper addresses this gap by proposing a method for agents to infer opponent strategies using only their own local history.

The SMA2C Architecture

The core contribution of this work is the Self-Modeling A2C (SMA2C) algorithm. Unlike traditional models that require direct access to opponent data, SMA2C utilizes a Variational Autoencoder (VAE) to learn latent representations ($z$) of an opponent's policy based solely on the agent's local observation ($o_t$), previous action ($a_{t-1}$), reward ($r_{t-1}$), and termination signal ($d_{t-1}$).

The SMA2C architecture uses a recurrent encoder to map local history into a latent representation of the opponent's policy.

As shown in Figure 1, a recurrent neural network (RNN) processes the agent's history to produce a latent variable $z_t$. This variable is then fed into the agent's policy network, allowing it to condition its actions on the inferred strategy of the opponent. Crucially, the VAE is trained jointly with the RL objective, ensuring that the learned representations are optimized for task success rather than mere reconstruction.

Experimental Results and Generalization

The researchers evaluated SMA2C against several baselines, including OMDDPG (which has access to privileged opponent trajectories) and the method proposed by Grover et al. (2018). Testing was conducted across a variety of scenarios in the Multi-agent Particle Environment (MPE), including Speaker-Listener, Predator-Prey, and Spread tasks.

A key focus of the study was "Strong Generalization"—the ability of an agent to maintain performance when facing entirely new opponents with unseen fixed policies.

Performance comparison across MPE tasks. SMA2C (blue) demonstrates competitive performance and superior generalization in several scenarios compared to OMDDPG (green) and Grover et al. (red).

As illustrated in Figure 6, SMA2C achieves performance comparable to, and in some cases exceeding, methods that utilize privileged information. In the Speaker-Listener tasks, SMA2C notably outperformed the state-of-the-art baseline when encountering novel opponents. Ablation studies further revealed that the inclusion of the agent's own rewards in the VAE input is critical, as rewards often serve as the most direct signal of a shift in an opponent's strategy.

Conclusion and Future Work

This research demonstrates that local information is a sufficient, albeit noisy, signal for effective opponent modeling. By leveraging VAEs to extract task-relevant latent features, SMA2C avoids the overfitting common in models with full transparency, leading to better generalization. Future work will explore non-stationary environments where opponents adapt their own strategies over time, as well as the challenges posed by deceptive agents who may intentionally mask their intent.

Summary updated

BibTeX
@misc{papoudakis2020variational,
  author = {Georgios Papoudakis and Stefano V. Albrecht},
  title = {{Variational Autoencoders for Opponent Modeling in Multi-Agent Systems}},
  year = {2020},
  eprint = {2001.10829},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.10829},
}
Figure