Multiagent Cooperation and Competition with Deep Reinforcement Learning

Ardi Tampuu, Tambet Matiisen, Dorian Kodelja, Ilya Kuzovkin, Kristjan Korjus, Juhan Aru, Jaan Aru, Raul VicentearXiv 2015

Abstract

This paper investigates the extension of Deep Q-Networks (DQN) from single-player to multiagent environments using the game Pong. By modifying reward signals, the researchers demonstrate that independent agents can spontaneously develop either competitive or cooperative strategies. The study provides a foundation for understanding decentralized learning in complex, non-stationary environments where agents must adapt to the evolving behaviors of others.

Introduction

While Reinforcement Learning (RL) has achieved significant success in single-agent Atari environments, multiagent systems introduce the challenge of non-stationarity. From the perspective of a single agent, the environment's dynamics change as other agents learn and adapt. This research explores whether the standard DQN architecture can navigate these instabilities to reach stable, meaningful interactions, specifically focusing on the emergence of social phenomena like cooperation and competition without explicit communication.

Methods

The experimental setup involved two independent DQNs, each controlling a paddle in a modified version of the Atari Learning Environment (ALE) that supports real-time two-player Pong. There was no shared memory or centralized controller; each agent treated the other as a dynamic part of the environment.

The core of the experiment was "reward engineering." By varying the reward for scoring ($\rho$) while keeping the penalty for losing the ball fixed at -1, the authors created a spectrum of environments:

  • Fully Competitive: $+1$ for scoring, $-1$ for losing.
  • Fully Cooperative: $-1$ for either player losing the ball, with no reward for scoring.
  • Transition Scenarios: Intermediate values of $\rho$ were tested to observe behavioral shifts as scoring incentives decreased.

Key Insights and Results

The study revealed that agents are highly sensitive to reward magnitudes, with behavior shifting abruptly from competition to "keep-alive" strategies as $\rho$ decreases.

Emergent Strategies

In cooperative modes, agents discovered optimal strategies to sustain rallies, such as hitting the ball horizontally across the top of the screen to minimize the risk of missing. This led to a dramatic increase in longevity; while competitive rallies averaged ~7 paddle-bounces, cooperative rallies exceeded 650 bounces.

Behavioral Metrics

The researchers tracked several proxies for social behavior during training:

  • Paddle-bounces per point: In competitive training, this metric increased as agents learned to return faster shots (see Figure 1a).
  • Wall-bounces: Cooperative agents learned to hit the ball straight, reducing wall-bounces from ~0.87 in competitive mode to nearly 0.01. Figure 1b illustrates the initial downward trend in wall-bounces as agents refine their returns.
  • Serving Time: Competitive agents learned to serve immediately to maximize scoring opportunities, whereas cooperative agents learned to "stall" to delay the risk of a negative reward (see Figure 1c).
Evolution of behavioral metrics during training: (a) paddle-bounces per point, (b) wall-bounces per paddle-bounce, and (c) serving time per point.

DQN Optimism

A notable finding was the "optimism" of DQNs in competitive settings. Both agents predicted positive future rewards in a zero-sum game where the average reward should be zero, highlighting a known bias in Q-learning where agents overestimate action values.

Discussion and Future Work

The results demonstrate that stable multiagent interactions can emerge from independent decentralized learners. However, the study also identified limitations, such as the tendency for Q-value overestimation. Future research could utilize Double DQN to provide more realistic reward expectations. Additionally, scaling these methods to environments with tens or hundreds of agents remains a significant challenge, likely requiring new approaches to handle the "curse of dimensionality" and the potential development of communication protocols between agents.

Summary updated

BibTeX
@misc{tampuu2015multiagent,
  author = {Ardi Tampuu and Tambet Matiisen and Dorian Kodelja and Ilya Kuzovkin and Kristjan Korjus and Juhan Aru and Jaan Aru and Raul Vicente},
  title = {{Multiagent Cooperation and Competition with Deep Reinforcement Learning}},
  year = {2015},
  eprint = {1511.08779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1511.08779},
}
Figure