Multiplayer AlphaZero

Nick Petosa, Tucker BalcharXiv 2019

Abstract

DeepMind’s AlphaZero has achieved superhuman performance in two-player, zero-sum games like Chess and Go. However, many real-world scenarios involve multiple agents and non-zero-sum outcomes. This research extends the AlphaZero framework to multiplayer games by replacing its scalar value output with a vector representing all players' scores. Evaluated on 3-player versions of Tic-Tac-Toe and Connect 4, this "Multiplayer AlphaZero" consistently outperformed traditional search methods and demonstrated competitive performance against human players.

Introduction

AlphaZero is renowned for its ability to learn complex games from scratch. Yet, its original architecture is strictly bound to the two-player, zero-sum paradigm, where one player's gain is exactly equal to the other's loss. Real-world challenges—such as equity trading or multi-agent board games—rarely fit this mold. They often involve shifting alliances and outcomes where multiple players can succeed or fail simultaneously. This paper addresses the gap by adapting AlphaZero into a general-purpose learning algorithm for multiplayer environments.

Methodology

The researchers implemented a custom version of AlphaZero in Python and PyTorch, introducing several architectural and algorithmic modifications:

  1. MCTS-maxⁿ: Standard AlphaZero uses Monte Carlo Tree Search (MCTS) that alternates between two players. The multiplayer version utilizes a search tree that rotates through $n$ players.
  2. The Value Vector ($\vec{v}$): The core innovation is the shift from a scalar win probability to a value vector. Instead of predicting a single number for the current player, the network predicts the expected utility for every player simultaneously.
  3. Updated Loss Function: The training process was adjusted to minimize the Mean Squared Error (MSE) across the entire value vector.
  4. Squeeze-and-Excitation Network (SENet): The model employs a SENet architecture, which improves upon standard ResNets by better modeling dependencies between different channels of game state information.
Comparison between the standard AlphaZero architecture and the modified Multiplayer AlphaZero architecture.

Experimental Setup

Due to hardware constraints, the approach was tested on two "toy" environments designed for computational efficiency:

  • Tic-Tac-Mo: A 3-player Tic-Tac-Toe variant on a 3x5 board.
  • Connect 3x3: A 3-player Connect 4 variant on a 6x7 board with a 3-in-a-row win condition.

Key Results and Insights

The transition to a vector-based value output allows the agent to understand complex board states without the limitations of a zero-sum duality. A trained neural network acts as a powerful "instinct," enabling the agent to perform as well with 50 MCTS rollouts as a raw MCTS agent does with 3,000. The network effectively "prunes" the search tree, allowing the agent to ignore bad moves and focus on winning paths.

In Tic-Tac-Mo, the network converged steadily. In matches against graduate students, AlphaZero remained undefeated, winning 58% of games and drawing the rest. In Connect 3x3, despite a deeper search tree and less smooth convergence, the agent achieved a 79% win rate against human opponents.

Training loss (error) over iterations for the Tic-Tac-Mo environment using the SENet architecture.

Limitations and Future Work

The study was primarily limited by compute power, utilizing a single RTX 2080 Ti compared to the thousands of TPUs used by DeepMind. Future research will focus on scaling the algorithm to more complex games like Risk or Catan, handling hidden information (e.g., Poker), and further tuning hyperparameters for more stable learning in deep search trees.

Summary updated

BibTeX
@misc{petosa2019multiplayer,
  author = {Nick Petosa and Tucker Balch},
  title = {{Multiplayer AlphaZero}},
  year = {2019},
  eprint = {1910.13012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.13012},
}
Figure