An Introduction of mini-AlphaStar

Ruo-Ze Liu, Wenhai Wang, Yanjie Shen, Zhiqi Li, Yang Yu, Tong LuarXiv 2021

TL;DR

This paper introduces mini-AlphaStar (mAS), a scaled-down, open-source implementation of DeepMind's AlphaStar, designed for easier research and training on commercial hardware. By reducing hyper-parameters, mAS aims to make the complex StarCraft II AI research more accessible, while retaining the core architectural and training principles of its larger predecessor.

What Problem Does This Paper Address?

StarCraft II (SC2) is a notoriously challenging real-time strategy game for AI due to its massive state and action spaces, long time horizons, and imperfect information. While DeepMind's AlphaStar achieved human Grandmaster level, its immense computational requirements (128,000 CPU cores, 384 TPUs for 44 days) made it inaccessible for most researchers. Furthermore, AlphaStar's use of a raw-level API and extensive human data raised questions about its ability to explore novel strategies and its fairness in human comparisons. This paper addresses the need for a more accessible, research-friendly version of AlphaStar that retains its core innovations but can be trained and experimented with on more modest hardware.

Methods

The mini-AlphaStar (mAS) implementation is based on AlphaStar's published paper and pseudocode. The core architecture remains the same: a Deep Neural Network (DNN) comprising three encoders (entity, spatial, scalar), a core LSTM, and six output heads (action type, delay, queue, selected unit, target unit, target location).

The training process follows AlphaStar's two-stage approach:

  1. Supervised Learning (SL): An initial agent is trained on human replay data to imitate expert behavior.
  2. Reinforcement Learning (RL): The pre-trained agent is then refined through self-play matches using an actor-learner scheme.

A key modification for mAS is the significant reduction of hyper-parameters, such as batch size, embedding size, and network dimensions, to enable training on standard commercial machines. The paper also mentions a multi-agent league mechanism for collecting diverse agents and improving training, similar to AlphaStar.

Datasets

The paper states that training data for the supervised learning phase consists of pre-processed StarCraft II game replays from human players. These replays are formatted into feature-action pairs and trajectories. No new datasets are introduced; the focus is on re-implementing an existing agent.

Key Insights and Ideas

  • Democratizing SC2 AI Research: The primary insight is that by carefully scaling down hyper-parameters, the core components of a state-of-the-art SC2 agent like AlphaStar can be made trainable on much more accessible hardware, opening up research to a wider community.
  • Architectural Fidelity: The paper emphasizes that mAS retains the fundamental DNN architecture and training pipeline of AlphaStar, suggesting that these core elements are robust and transferable even with reduced scale.
  • Open-Source Contribution: The decision to open-source the mAS code is a significant contribution, fostering collaboration and further research in complex game AI.

Key Results

The paper reports that the implemented mAS code is functional and can be trained. The supervised learning and reinforcement learning components are confirmed to be running as expected. However, the authors note that the "final performance of the training is not ideal," implying that while the system works, achieving AlphaStar's level of performance with the reduced scale and hyper-parameters is challenging. Specific quantitative results on win rates or performance metrics are not detailed in this introductory paper, as the focus is on the implementation and its accessibility.

Limitations and Future Work

The authors acknowledge that the "final performance of the training is not ideal." This suggests that the hyper-parameter reduction, while enabling accessibility, may have come at the cost of peak performance.

Future work mentioned includes:

  • Finishing the implementation of certain functions, specifically "z value generation."
  • Conducting more experiments to assess and improve the performance of mAS.
  • Further exploration and improvements on the implemented system.

Summary updated

Abstract

StarCraft II (SC2) is a real-time strategy game in which players produce and control multiple units to fight against opponent's units. Due to its difficulties, such as huge state space, various action space, a long time horizon, and imperfect information, SC2 has been a research hotspot in reinforcement learning. Recently, an agent called AlphaStar (AS) has been proposed, which shows good performance, obtaining a high win rate of 99.8% against human players. We implemented a mini-scaled version of it called mini-AlphaStar (mAS) based on AS's paper and pseudocode. The difference between AS and mAS is that we substituted the hyper-parameters of AS with smaller ones for mini-scale training. Codes of mAS are all open-sourced (https://github.com/liuruoze/mini-AlphaStar) for future research.
BibTeX
@misc{liu2021introduction,
  author = {Ruo-Ze Liu and Wenhai Wang and Yanjie Shen and Zhiqi Li and Yang Yu and Tong Lu},
  title = {{An Introduction of mini-AlphaStar}},
  year = {2021},
  eprint = {2104.06890},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.06890},
}
Figure