[Paper Review] Forward Modeling for Partial Observation Strategy Games - A StarCraft Defogger
This paper proposes a neural forward modeling approach using encoder-decoder architectures with convolutional and recurrent networks to estimate hidden game states and predict future unit counts in partially observable StarCraft: Brood War. Trained on human game replays, the defogger model improves win rates by up to 72% in a rule-based bot when integrating predictions into build and tactical decisions, demonstrating its value for strategic planning in complex, information-limited environments.
We formulate the problem of defogging as state estimation and future state prediction from previous, partial observations in the context of real-time strategy games. We propose to employ encoder-decoder neural networks for this task, and introduce proxy tasks and baselines for evaluation to assess their ability of capturing basic game rules and high-level dynamics. By combining convolutional neural networks and recurrent networks, we exploit spatial and sequential correlations and train well-performing models on a large dataset of human games of StarCraft: Brood War. Finally, we demonstrate the relevance of our models to downstream tasks by applying them for enemy unit prediction in a state-of-the-art, rule-based StarCraft bot. We observe improvements in win rates against several strong community bots.
Motivation & Objective
- To address the challenge of long-term planning in partially observable real-time strategy games where only limited information is visible at any time.
- To learn high-level game dynamics and implicit rules from human gameplay data without interactive environment interaction.
- To improve strategic and tactical decision-making in AI bots by estimating unobserved units and predicting future game states.
- To evaluate whether models trained on passive observation alone can enhance downstream AI performance in complex RTS environments.
- To demonstrate the practical utility of such models by integrating them into a state-of-the-art rule-based StarCraft bot.
Proposed method
- The model uses an encoder-decoder architecture with convolutional neural networks (CNNs) to extract spatial features from game maps and recurrent networks (LSTMs) to model temporal dependencies in game sequences.
- High-level features such as unit counts and supply are aggregated from raw game states at different spatial and temporal resolutions to define the prediction targets.
- The model is trained end-to-end on a large dataset of human replays, assuming full game state visibility during training to supervise hidden state estimation.
- Proxy tasks are introduced to evaluate model performance on predicting current hidden states and future states, with baselines including rule-based heuristics and previous-observation models.
- Predictions are integrated into a rule-based bot by replacing missing visibility with estimated unit counts and positions, particularly for build actions and tactical decisions.
- Ablation studies compare performance using predictions at different time horizons (t+0s, t+5s, t+30s) and for different bot modules (tactics, build actions, both).
Experimental results
Research questions
- RQ1Can a neural model trained solely on human game replays infer hidden game states and predict future states in a partially observable RTS environment?
- RQ2How well do encoder-decoder models with CNN and RNN components perform compared to rule-based baselines in estimating hidden unit counts and future game states?
- RQ3To what extent do predictions from such a forward model improve the performance of a downstream rule-based AI bot in actual gameplay?
- RQ4What are the relative impacts of improved state estimation on different bot modules, such as tactical engagement and unit production?
- RQ5How does the temporal horizon of predictions (immediate vs. delayed) affect the reliability and usefulness of the model in real gameplay?
Key findings
- The defogger model improves the win rate of a rule-based StarCraft bot to 66% from a 61% baseline when using predictions for both tactics and build actions, with a peak of 72% win rate under full vision.
- When used solely for build actions, the defogger improves win rates to 66%, indicating strong utility in economy and unit production planning.
- Using predictions for tactics alone results in a drop in win rate to 59%, suggesting that noisy or delayed predictions can lead to poor tactical decisions like premature engagement or indecisive retreats.
- The model significantly outperforms the previous-observation (PS) baseline in predicting enemy unit supply, as shown in Figure 3, where predictions closely track ground truth.
- The model's performance degrades with longer prediction horizons, with win rates dropping to 49% at t+30s when both modules are enhanced, indicating sensitivity to temporal uncertainty.
- The results suggest that a more tailored model for tactical decisions—potentially with different architecture or calibration—could yield better integration with the bot’s strategic modules.
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.