Learning Diverse Policies in MOBA Games via Macro-Goals

Yiming Gao, Bei Shi, Xueying Du, Liang Wang, Guangwei Chen, Zhenjie Lian, Fuhao Qiu, Guoan Han, Weixuan Wang, Deheng Ye, Qiang Fu, Yang Wei, Lanxiao Huang

Introduction: The Predictability Problem in MOBA AI

While AI systems like OpenAI Five (Dota 2) and Tencent’s WuKong (Honor of Kings) have successfully defeated world champions, they often suffer from a critical flaw: a lack of policy diversity. Because these agents are typically trained using a single, hand-crafted reward function (e.g., "accumulate gold, kill enemies, destroy towers"), they tend to converge on a single "optimal" strategy regardless of the game state.

In high-level human play, strategies are highly fluid. A team composed of "assassins" plays fundamentally differently than a team of "tanks." Because standard Reinforcement Learning (RL) agents are strategically rigid, human players can easily "cheese" or counter them once their single pattern is discovered. To address this, researchers from Tencent AI Lab developed MGG (Macro-Goals Guided), a framework designed to train AI that is both mechanically flawless and strategically diverse.

The MGG Framework

To create an AI that acts as a strategic "jack-of-all-trades," the authors propose a three-stage framework that decouples high-level strategy from low-level execution.

The three-stage Macro-Goals Guided (MGG) framework.

1. Macro-Goal Extraction

The researchers first analyzed a massive dataset of replays from the top 1% of human players in Honor of Kings. They abstracted human "strategy" into two concrete macro-goals:

  • Region Intent: "Where to go" (e.g., moving to the top lane, defending the base, or invading the enemy jungle).
  • Resource Intent: "What to do" (e.g., focusing on farming gold, securing specific neutral monsters, or pushing turrets).
Visualizing Region Intent and Resource Intent.

2. Meta-Controller Training

Next, they trained a supervised learning model—the Meta-Controller—to predict these macro-goals based on the current game state and the specific hero lineup. This model utilizes an attention mechanism to understand how different hero combinations should prioritize different objectives.

3. Guided Reinforcement Learning

Finally, the actual game-playing policy is trained using Dual-clip PPO, a robust RL algorithm. Crucially, this policy is conditioned on the macro-goals sampled from the Meta-Controller. The agent receives an intrinsic reward for successfully reaching the macro-goal, ensuring that its low-level "micro" actions (like moving and aiming skills) serve the high-level "macro" plan.

Key Insights

  • Lineup-Driven Strategy: Strategy must be a function of the "draft." By using an auxiliary auto-encoding task for hero lineups, the Meta-Controller learns that a "Marksman-Core" lineup requires a fundamentally different objective path than a standard balanced team.
  • Decoupling "What" from "How": MGG uses supervised learning to learn the intent (the "what") from humans, but lets Reinforcement Learning figure out the execution (the "how"). This avoids the noisy micro-management often found in pure imitation learning while preventing the strategic blindness of pure RL.
  • Sampling for Diversity: By sampling goals from a softmax distribution rather than just picking the single "best" goal, the AI can execute different strategies in the exact same match-up, making it much harder for opponents to predict and counter.

Results and Performance

Unlike previous studies that limited the hero pool to a small subset, MGG was evaluated on the full Honor of Kings roster of 102 heroes.

  • Superior Performance: MGG achieved an impressive Elo score of 3048, significantly outperforming the standard RL-baseline (2851) and pure Supervised Learning (2183).
  • Human-Machine Testing: In a large-scale test involving over 100,000 matches, MGG maintained a 97.81% win rate against human players.
  • Quantifiable Diversity: Using the Davies-Bouldin Index (a measure of cluster separation), the authors demonstrated that MGG’s strategies are distinctly separated across different lineups, whereas the baseline RL tended to "mush" all strategies into a single behavior profile.
  • Expert-Level Execution: In specific "Resource-Grab" strategies (aggressive early-game jungling), MGG outperformed human experts in the number of neutral resources secured, proving its ability to execute complex, long-term plans.

Limitations and Future Work

While MGG successfully increases policy diversity, the authors acknowledge it does not fully solve the problem of non-transitivity (the "rock-paper-scissors" nature of MOBA strategies). A diverse AI might still randomly sample a strategy that is technically diverse but happens to be hard-countered by the opponent's specific playstyle. Future work will focus on integrating game theory to investigate these non-transitive relationships, potentially moving the AI closer to a Nash Equilibrium where it dynamically chooses the optimal diverse strategy to counter an opponent's likely intent.

Summary updated

BibTeX
@inproceedings{gao2021learning,
  author = {Yiming Gao and Bei Shi and Xueying Du and Liang Wang and Guangwei Chen and Zhenjie Lian and Fuhao Qiu and GUOAN HAN and Weixuan Wang and Deheng Ye and QIANG FU and Yang Wei and Lanxiao Huang},
  title = {{Learning Diverse Policies in MOBA Games via Macro-Goals}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=xVs5d5ZSWaa},
}
Figure