[Paper Review] High-Level Strategy Selection under Partial Observability in StarCraft: Brood War
This paper proposes a reinforcement learning approach for high-level strategy selection in StarCraft: Brood War under partial observability, using an LSTM-based Q-network with an auxiliary task to predict hidden enemy unit counts. The method achieves significant win rate improvements—up to 88.8% against unseen bots—by leveraging full game-state information during training to enhance strategic decision-making under fog-of-war conditions.
We consider the problem of high-level strategy selection in the adversarial setting of real-time strategy games from a reinforcement learning perspective, where taking an action corresponds to switching to the respective strategy. Here, a good strategy successfully counters the opponent's current and possible future strategies which can only be estimated using partial observations. We investigate whether we can utilize the full game state information during training time (in the form of an auxiliary prediction task) to increase performance. Experiments carried out within a StarCraft: Brood War bot against strong community bots show substantial win rate improvements over a fixed-strategy baseline and encouraging results when learning with the auxiliary task.
Motivation & Objective
- To address high-level strategy selection in StarCraft: Brood War under partial observability, where opponents' strategies are hidden behind fog of war.
- To improve strategic decision-making by utilizing full game-state information during training, even when only partial observations are available during inference.
- To investigate whether an auxiliary prediction task—estimating hidden enemy unit counts—can enhance the performance of a strategy selection policy.
- To evaluate the method's generalization capability on unseen bots not seen during training, ensuring robustness beyond the training set.
Proposed method
- The model uses a global, non-spatial observation representation every 5 seconds, including visible unit counts, resources, technologies, game time, and opponent faction.
- An LSTM encoder with 2048 cells processes the observation, followed by a linear layer with sigmoid outputs for each of the 25 build orders to predict Q-values for strategy switching.
- An auxiliary branch predicts normalized opponent unit counts using three fully connected layers (256 units each), minimizing Huber loss with ground-truth counts available during training via a cheat flag.
- The model is trained in two stages: off-policy initialization using 2.8M games with random build order switches, followed by on-policy refinement using the learned Q-function.
- Training uses Adam optimization with a learning rate of 10^-4 (10^-5 in refinement), batch size 256 (64 in refinement), and backpropagation through time with 512-step truncation.
- A scaling factor of 10 is applied to the auxiliary loss to balance training objectives, with both losses averaged independently per mini-batch.
Experimental results
Research questions
- RQ1Can auxiliary prediction of hidden enemy unit counts improve high-level strategy selection in partially observable StarCraft: Brood War environments?
- RQ2Does leveraging full game-state information during training—despite partial observability at inference—lead to better generalization and win rates?
- RQ3How does the inclusion of memory-based unit tracking (vs. visible-only counts) affect strategy selection performance?
- RQ4To what extent does the auxiliary task improve the robustness and data efficiency of the Q-value prediction policy?
- RQ5Can the method generalize to bots not seen during training, and how does it compare to fixed-strategy baselines?
Key findings
- The model achieved a win rate of 88.8% against unseen bots (McRave-51e49b0) when using memory-based features and the auxiliary task, significantly outperforming the fixed-strategy baseline of 79.3%.
- With memory-based features and the auxiliary task, the model won 72.5% of games against a held-out set of bots not seen during training, compared to 55.6% for the baseline.
- The auxiliary task reduced Q-value prediction error and improved generalization, as evidenced by the close match between predicted and ground-truth enemy unit counts in Fig. 2.
- The use of memory-based features (tracking previously seen but hidden units) improved performance over visible-only features, increasing win rates by up to 0.9% on average.
- The auxiliary task consistently improved performance across all evaluation settings, with the highest win rate (88.8%) achieved when combining memory features and auxiliary training.
- Even without the auxiliary task, the model outperformed the baseline, indicating that the Q-network with LSTM and full-state supervision is effective, but the auxiliary task provides a critical boost in performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.