On Efficient Reinforcement Learning for Full-length Game of StarCraft II

Ruo-Ze Liu, Zhen-Jia Pang, Zhou-Yu Meng, Wenhai Wang, Yang Yu +1 more
9/23/2022
32 citations
cs.LGcs.AI
rl

Official code: liuruoze/mini-AlphaStar (371 stars, Python, Apache-2.0, PyTorch, last commit 2026-11-12). 1 more implementation below.

Abstract

StarCraft II (SC2) poses a grand challenge for reinforcement learning (RL), of which the main difficulties include huge state space, varying action space, and a long time horizon. In this work, we investigate a set of RL techniques for the full-length game of StarCraft II.

Show full abstract

We investigate a hierarchical RL approach involving extracted macro-actions and a hierarchical architecture of neural networks. We investigate a curriculum transfer training procedure and train the agent on a single machine with 4 GPUs and 48 CPU threads. On a 64x64 map and using restrictive units, we achieve a win rate of 99% against the level-1 built-in AI. Through the curriculum transfer learning algorithm and a mixture of combat models, we achieve a 93% win rate against the most difficult non-cheating level built-in AI (level-7). In this extended version of the paper, we improve our architecture to train the agent against the cheating level AIs and achieve the win rate against the level-8, level-9, and level-10 AIs as 96%, 97%, and 94%, respectively. Our codes are at https://github.com/liuruoze/HierNet-SC2. To provide a baseline referring the AlphaStar for our work as well as the research and open-source community, we reproduce a scaled-down version of it, mini-AlphaStar (mAS). The latest version of mAS is 1.07, which can be trained on the raw action space which has 564 actions. It is designed to run training on a single common machine, by making the hyper-parameters adjustable. We then compare our work with mAS using the same resources and show that our method is more effective. The codes of mini-AlphaStar are at https://github.com/liuruoze/mini-AlphaStar. We hope our study could shed some light on the future research of efficient reinforcement learning on SC2 and other large-scale games.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
liuruoze/mini-AlphaStarOfficial371PythonApache-2.02026-11-12
liuruoze/HierNet-SC2Official35PythonApache-2.02022-10-05
PyTorchApache-2.0

(JAIR'2022) A mini-scale reproduction code of the AlphaStar program. Note: the original AlphaStar is the AI proposed by DeepMind to play StarCraft II. JAIR = Journal of Artificial Intelligence Research.

37163Python, ShellJan 31, 20212 weeks agoApache-2.0
deep-learningdeep-neural-networksdeep-reinforcement-learninggamingimitation-learning+10 more
Apache-2.0

(AAAI'2019) The codes, models, logs, and data for an extended paper of the original paper "On Reinforcement Learning for Full-length Game of StarCraft". AAAI = AAAI Conference on Artificial Intelligence.

354PythonDec 24, 20214 years agoApache-2.0
deep-learningdeep-neural-networksdeep-reinforcement-learninghierarchical-reinforcement-learningreinforcement-learning+4 more

Similar Papers

Cite this paper

@article{liu2022efficient,
  title  = {On Efficient Reinforcement Learning for Full-length Game of StarCraft II},
  author = {Ruo-Ze Liu and Zhen-Jia Pang and Zhou-Yu Meng and Wenhai Wang and Yang Yu and Tong Lu},
  year   = {2022},
  eprint = {2209.11553},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.11553}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.11553.svg)](https://codeofpaper.com/paper/2209.11553)

Discussion