[Paper Review] On Reinforcement Learning for Full-length Game of StarCraft
This paper proposes a hierarchical reinforcement learning approach with macro-actions and curriculum transfer learning to train an agent for full-length StarCraft II games. Using a two-level architecture and reward shaping, the agent achieves over 99% win rate against difficulty level-1 AI and more than 93% against the strongest non-cheating built-in AI (level-7) on a 64×64 map with limited compute resources.
StarCraft II poses a grand challenge for reinforcement learning. The main difficulties of it include huge state and action space and a long-time horizon. In this paper, we investigate a hierarchical reinforcement learning approach for StarCraft II. The hierarchy involves two levels of abstraction. One is the macro-action automatically extracted from expert's trajectories, which reduces the action space in an order of magnitude yet remains effective. The other is a two-layer hierarchical architecture which is modular and easy to scale, enabling a curriculum transferring from simpler tasks to more complex tasks. The reinforcement training algorithm for this architecture is also investigated. On a 64x64 map and using restrictive units, we achieve a winning rate of more than 99\% against the difficulty level-1 built-in AI. Through the curriculum transfer learning algorithm and a mixture of combat model, we can achieve over 93\% winning rate of Protoss against the most difficult non-cheating built-in AI (level-7) of Terran, training within two days using a single machine with only 48 CPU cores and 8 K40 GPUs. It also shows strong generalization performance, when tested against never seen opponents including cheating levels built-in AI and all levels of Zerg and Protoss built-in AI. We hope this study could shed some light on the future research of large-scale reinforcement learning.
Motivation & Objective
- To address the challenges of large state and action spaces, long horizons, and partial observability in full-length StarCraft II games.
- To develop a scalable, modular hierarchical reinforcement learning architecture that simplifies large-scale training.
- To improve sample efficiency and learning stability through curriculum transfer learning and effective reward design.
- To achieve strong performance against built-in AI opponents using limited computational resources.
Proposed method
- A two-level hierarchical architecture is used, where a high-level controller selects sub-policies and low-level policies execute macro-actions derived from expert demonstrations.
- Macro-actions are extracted from expert trajectories to reduce the action space by an order of magnitude while preserving strategic effectiveness.
- A curriculum transfer learning strategy trains the agent from easy to harder AI opponents, improving generalization and convergence.
- Reward shaping combines win/loss signals with handcrafted rewards to guide policy learning and avoid suboptimal behaviors.
- The method employs a single-machine setup with 4 GPUs and 48 CPU threads, using a mixture of combat models for improved robustness.
- Hyperparameter tuning focuses on episode count per iteration to stabilize learning, with other parameters having minimal impact.
Experimental results
Research questions
- RQ1Can a hierarchical RL architecture with macro-actions effectively reduce the complexity of full-length StarCraft II while maintaining high performance?
- RQ2How does curriculum transfer learning impact sample efficiency and final policy performance in complex, long-horizon games?
- RQ3What is the relative impact of outcome-based rewards (win/loss) versus handcrafted rewards on learning stability and final win rates?
- RQ4How does the modular two-level architecture enable better scalability and sub-policy replacement compared to non-hierarchical designs?
- RQ5What hyperparameters most significantly affect learning convergence and performance in large-scale StarCraft II training?
Key findings
- The hierarchical architecture with macro-actions achieved over 99% win rate against difficulty level-1 built-in AI on a 64×64 map using only 4 GPUs and 48 CPU threads.
- The mixture model combining combat network and rule-based strategies achieved the highest win rate (over 93%) against the most difficult non-cheating AI (level-7).
- On high-difficulty levels, the hierarchical architecture significantly outperformed the non-hierarchical single-policy baseline, demonstrating the value of abstraction and modularity.
- Outcome-based (win/loss) rewards alone led to poor performance on level-7, while handcrafted rewards improved learning stability and final results.
- Increasing the number of episodes per training iteration improved learning stability and convergence, especially on difficult levels.
- The study shows that curriculum learning and reward design are critical for achieving strong performance in large-scale, long-horizon reinforcement learning tasks.
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.