Hokoff: Real Game Dataset from Honor of Kings and its Offline Reinforcement Learning Benchmarks

Yun Qu, Boyuan Wang, Jianzhun Shao, Yuhang Jiang, Chen Chen, Zhenbin Ye, Lin Liu, Yang Jun Feng, Lin Lai, Hongyang Qin, Minwen Deng, Juchao Zhuo, Deheng Ye, Qiang Fu, Yang Guang, Yang Wei, Lanxiao Huang, Xiangyang Ji

TL;DR

Researchers from Tsinghua and Tencent have introduced Hokoff, a massive suite of offline datasets and benchmarks derived from the popular MOBA Honor of Kings. By providing high-dimensional, multi-agent, and hierarchical action space data, Hokoff bridges the gap between simplistic academic benchmarks and the messy complexity of real-world applications.

The Need for Complex Offline RL Benchmarks

Offline Reinforcement Learning (RL) is the "holy grail" for real-world deployment: it allows agents to learn from fixed, pre-collected datasets without risky or expensive trial-and-error in the actual environment. However, the field has been stuck using "toy" datasets like D4RL (MuJoCo or Atari), which are often too simple or purely academic.

Honor of Kings 1v1 Interface

Real-world scenarios—like autonomous driving or robotics—involve high-dimensional observations, complex coordination between multiple agents, and hierarchical decision-making. Existing benchmarks rarely capture these nuances. Furthermore, Offline Multi-Agent RL (MARL) suffers from a severe lack of standardized, open-access datasets, forcing researchers to rely on inconsistent, self-made data.

The Hokoff Framework

The authors propose a comprehensive framework for offline RL/MARL research consisting of three core modules:

Hokoff Framework Pipeline
  1. Sampling: Using "Multi-Level Models" (checkpoints from pre-trained PPO models) to generate diverse trajectories ranging from "poor" to "expert" levels.
  2. Training: A robust pipeline that supports various baseline algorithms and provides user-friendly APIs for developing new ones.
  3. Evaluation: A protocol based on win rates against different levels of AI opponents, which is more meaningful in a zero-sum game than raw episode returns.

The QMIX+CQL Baseline: To handle the game's complex hierarchical action space (e.g., choosing a button, then a target, then a direction), the authors introduced a novel baseline. It treats each "head" of the action space as an individual agent and applies QMIX (a popular MARL algorithm) combined with Conservative Q-Learning (CQL) to penalize value overestimation.

Dataset Overview

The Hokoff suite includes data for both 1v1 and 3v3 game modes:

  • Multi-Difficulty: Datasets categorized as norm (level-1 opponents) and hard (level-5/7 opponents), with sub-categories for poor, medium, expert, and mixed behavior policies.
  • Multi-Task: Data involving a diverse pool of heroes with distinct roles and skillsets.
  • Generalization: Specific setups to test how well a model performs against unseen heroes or different opponent skill levels.
  • Subtasks: Simplified environments like Destroy Turret (1v1) and Gain Gold (3v3) to evaluate specific skills without the full complexity of a match.

Key Insights and Results

  • Hierarchical is Hard: Standard offline RL algorithms struggle with the structured action spaces found in MOBAs. Treating the action hierarchy as a multi-agent coordination problem (via QMIX+CQL) significantly improves performance.
  • The Generalization Gap: There is a massive disparity between training performance and evaluation in generalization settings. Current methods are remarkably poor at handling "out-of-distribution" opponents or heroes.
  • Multi-Task Synergy: Training on multi-task datasets (multiple heroes) leads to a substantial performance boost compared to single-task models, though they still struggle to exceed the performance of the original behavior policy.
  • Pessimism is Necessary: The results confirm that "pessimistic" approaches (like CQL or IQL) are essential to combat value overestimation caused by the distributional shift between the dataset and the learned policy.
  • 1v1 and 3v3 Benchmarks: The proposed QMIX+CQL outperformed standard baselines across most 1v1 tasks. In the 3v3 multi-agent setting, IND+ICQ (Implicit Constraint Q-learning) generally showed the highest performance, highlighting the difficulty of credit assignment in complex cooperative environments.
  • Efficiency: Training an offline agent to a specific skill level (e.g., Level 5) took only 9 hours on 2 CPUs, whereas online RL required 60 hours on 4,000 CPUs to reach the same level. This underscores the massive resource-saving potential of the offline approach.

Limitations and Future Work

The authors note that while offline RL is efficient, it is heavily dependent on the quality and diversity of the initial dataset; training an "expert" agent still requires a wealth of high-level battle data. Future work includes integrating the framework with larger-scale platforms like KaiwuDRL and expanding the dataset to include even higher-level expert data and more diverse environmental factors to further challenge the limits of current offline RL algorithms.

Summary updated

BibTeX
@inproceedings{qu2023hokoff,
  author = {Yun Qu and Boyuan Wang and Jianzhun Shao and Yuhang Jiang and Chen Chen and Zhenbin Ye and Lin Liu and Yang Jun Feng and Lin Lai and Hongyang Qin and Minwen Deng and Juchao Zhuo and Deheng Ye and QIANG FU and YANG GUANG and Yang Wei and Lanxiao Huang and Xiangyang Ji},
  title = {{Hokoff: Real Game Dataset from Honor of Kings and its Offline Reinforcement Learning Benchmarks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=jP3BduIxy6},
}
Figure