Leveraging Transformers for StarCraft Macromanagement Prediction
Not on the map. Why?
Abstract (arXiv)
Inspired by the recent success of transformers in natural language processing and computer vision applications, we introduce a transformer-based neural architecture for two key StarCraft II (SC2) macromanagement tasks: global state and build order prediction. Unlike recurrent neural networks which suffer from a recency bias, transformers are able to capture patterns across very long time horizons, making them well suited for full game analysis. Our model utilizes the MSC (Macromanagement in StarCraft II) dataset and improves on the top performing gated recurrent unit (GRU) architecture in predicting global state and build order as measured by mean accuracy over multiple time horizons. We present ablation studies on our proposed architecture that support our design decisions. One key advantage of transformers is their ability to generalize well, and we demonstrate that our model achieves an even better accuracy when used in a transfer learning setting in which models trained on games with one racial matchup (e.g., Terran vs. Protoss) are transferred to a different one. We believe that transformers' ability to model long games, potential for parallelization, and generalization performance make them an excellent choice for StarCraft agents.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 15 of its 21 references that are in the map. First posted on arXiv 11 Oct 2021.
Builds on
15 of 21 references.
References · 15
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2018Image Transformercited by 772
- 2019Attention Augmented Convolutional Networkscited by 363
- 2017StarCraft II: A New Challenge for Reinforcement Learningcited by 274
- 2020Measuring Systematic Generalization in Neural Proof Generation with Transformerscited by 43
- 2019Studying the Inductive Biases of RNNs with Synthetic Variations of Natural Languagescited by 37
- 2017STARDATA: A StarCraft AI Research Datasetcited by 7
3 more
Built on by
Citing papers per year: 2022: 1; 2023: 0; 2024: 2.
3 papers.
- 2022Transformer-based Value Function Decomposition for Cooperative Multi-agent Reinforcement Learning in StarCraftcited by 5
- 2024Enabling Multi-Agent Transfer Reinforcement Learning via Scenario Independent Representationcited by 1
- 2024SC-Phi2: A Fine-tuned Small Language Model for StarCraft II Macromanagement Taskscited by 1
- 2024SC-Phi2: A Fine-tuned Small Language Model for StarCraft II Macromanagement Tasks17 Sep 2024
- 2024Enabling Multi-Agent Transfer Reinforcement Learning via Scenario Independent Representation13 Feb 2024
- 2022Transformer-based Value Function Decomposition for Cooperative Multi-agent Reinforcement Learning in StarCraft15 Aug 2022