EnMatch: Matchmaking for Better Player Engagement via Neural Combinatorial Optimization

Kai Wang, Haoyu Liu, Zhipeng Hu, Xiaochuan Feng, Minghao Zhao, Shiwei Zhao, Runze Wu, Xudong Shen, Tangjie Lv, Changjie Fan

Introduction

In competitive multiplayer gaming, matchmaking has traditionally prioritized "skill fairness"—the practice of pairing players of nearly equal ability. However, research suggests that perfectly balanced matches do not always maximize player satisfaction or long-term retention. EnMatch addresses this by shifting the primary objective toward maximizing player engagement. By treating $k$-vs-$k$ team formation as a Neural Combinatorial Optimization (NCO) problem, EnMatch leverages reinforcement learning to navigate massive search spaces and identify team compositions that keep players coming back.

The EnMatch Framework

The EnMatch framework integrates deep learning with traditional optimization heuristics to solve the NP-hard problem of $k$-vs-$k$ matchmaking (e.g., 3-vs-3 or 15-vs-15). Unlike traditional linear programming tools, EnMatch is designed to handle non-linear objectives like predicted human behavior.

The EnMatch framework architecture, detailing the engagement model, heuristic operator, and graph encoder-decoder components.

The system consists of four primary components:

  1. Engagement Model (EnMatchNet): A multi-task learning model that predicts player churn based on granular data, including win/loss streaks, player roles (e.g., Main vs. Support), and social behaviors like chatting or upvoting teammates.
  2. Graph Encoder-Decoder: A Graph Attention Network (GAT) encodes player embeddings to capture potential interactions within the match pool. A Transformer-based decoder then selects players using a Masked KNN Search to maintain efficiency while respecting constraints like maximum allowed tier gaps.
  3. Heuristic Operator: Inspired by Large Neighborhood Search (LNS), this component iteratively "destroys" and "repairs" initial solutions to find local optima, ensuring the final team-ups are as engaging as possible.
  4. Reinforcement Learning: The entire policy is trained via Proximal Policy Optimization (PPO), using the collective predicted engagement of matched players as the reward signal.

Experimental Evaluation

The framework was evaluated on two large-scale industrial datasets from NetEase: SPG (a 3-vs-3 basketball game with over 850,000 matches) and RPGPVP (a 15-vs-15 MMORPG with over 400,000 matches). These datasets are unique because they include "diversity teams" (cross-tier matching), allowing the model to learn that skill-balanced teams are not the only path to a positive player experience.

Key Results and Insights

EnMatch demonstrated significant improvements across both simulated and real-world environments. In simulations, it consistently outperformed state-of-the-art baselines in cumulative engagement rewards.

Comparison of cumulative engagement rewards across different matchmaking methods on SPG and RPGPVP datasets.
  • Performance Gains: EnMatch increased engagement rewards by 2.15% in 3-vs-3 scenarios and a substantial 11.76% in complex 15-vs-15 matches. It also improved engagement prediction accuracy by 2.5% to 3.2% over existing models.
  • Real-World Impact: During a two-week online A/B test, EnMatch led to a 1.64% to 7.19% increase in the total number of matches played, proving that engagement-oriented matching directly translates to better retention.
  • Efficiency: Despite its complexity, the system maintains a response time of under 200ms for pools of approximately 400 players, making it viable for live production environments.

Beyond quantitative metrics, the study revealed that "diversity teams"—those with mixed skill levels—often foster better social interaction, such as higher chat frequencies and more upvotes, than perfectly balanced teams. Additionally, the model accounted for role-dependent churn, recognizing that "Main" players are more sensitive to losing streaks than "Support" players, and adjusted matchmaking accordingly.

Conclusion

EnMatch demonstrates that Neural Combinatorial Optimization can effectively bridge the gap between complex human behavioral objectives and large-scale matchmaking. By moving beyond simple fairness, the framework provides a scalable solution for fostering healthier, more engaged gaming communities. Future work will explore longer-term retention metrics and the application of these NCO techniques to other complex assignment problems outside of the gaming industry.

Summary updated

BibTeX
@inproceedings{wang2024enmatch,
  author = {Kai Wang and Haoyu Liu and Zhipeng Hu and Xiaochuan Feng and Minghao Zhao and Shiwei Zhao and Runze Wu and Xudong Shen and Tangjie Lv and Changjie Fan},
  title = {{EnMatch: Matchmaking for Better Player Engagement via Neural Combinatorial Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28760},
}
Figure