Can Large Language Models Master Complex Card Games?

Wei Wang, Fuqing Bie, Junzhe Chen, Dan Zhang, Shiyu Huang, Evgeny Kharlamov, Jie Tang

Abstract

Recent advancements in Large Language Models (LLMs) have demonstrated their versatility across diverse linguistic and reasoning tasks. However, their ability to master complex, imperfect-information games—traditionally the domain of specialized Reinforcement Learning (RL) agents—remains an open question. This paper explores whether supervised fine-tuning (SFT) on expert trajectories can transform general-purpose LLMs into competitive "card-shark" agents. We evaluate models on eight card games of varying complexity, including DouDizhu and Riichi Mahjong. Our results show that LLMs can match the performance of state-of-the-art specialized agents. Furthermore, we analyze the "specialist tax"—the decline in general reasoning capabilities following game-specific fine-tuning—and demonstrate that this loss can be mitigated through strategic data mixing.

Introduction

For decades, the benchmark for artificial intelligence mastery has been specialized Reinforcement Learning (RL) systems. From AlphaGo to MuZero, these architectures have achieved superhuman performance in games like Go and Chess. However, these systems are typically "narrow AIs," designed with custom neural network architectures tailored to specific game rules and state spaces. They lack the flexibility to perform tasks outside their primary domain.

With the emergence of Large Language Models, a new paradigm has surfaced. Researchers are now investigating whether a single, general-purpose transformer architecture can learn the deep strategy, probabilistic reasoning, and bluffing required for complex card games. While zero-shot prompting often fails in high-complexity environments, this study investigates the efficacy of the Teacher-Student paradigm: using expert data from specialized agents to train LLMs via supervised fine-tuning.

Methodology

To bypass the high computational costs associated with training RL agents from scratch, the researchers employed a multi-stage Teacher-Student framework.

1. Data Synthesis and Mapping

The study utilized high-quality gameplay trajectories from top-tier specialized AIs, such as DouZero (for DouDizhu) and DanZero (for Guandan), alongside expert human logs for Riichi Mahjong. To make these trajectories digestible for LLMs, the researchers developed a State-to-Text Mapping system. This system converted complex game states—including the player's current hand, the history of moves, and legal action sets—into structured JSON instructions.

2. Multi-Task Fine-Tuning

Models including Qwen2.5, Llama 3.1, and GLM4 were fine-tuned on these structured datasets. The training covered individual games as well as a "mixed" dataset of all eight games to observe potential knowledge transfer and cross-game synergy.

3. Mitigating the Specialist Tax

A known risk of domain-specific fine-tuning is "catastrophic forgetting," where a model loses its general-purpose capabilities. To combat this, the researchers experimented with a balanced "data diet," mixing game-specific trajectories with general instruction sets, including mathematics and coding data, to recover general reasoning skills.

Experimental Setup

The study evaluated the models across eight card games categorized by their strategic depth:

  • High Complexity: DouDizhu, Guandan, and Riichi Mahjong (1M training samples each).
  • Moderate to Low Complexity: Uno, Gin Rummy, and three variants of Texas Hold’em (400k samples each).

To measure the impact on general intelligence, the models were benchmarked against MMLU-Pro (general knowledge), Math-500, and HumanEval (coding).

Key Insights and Results

Performance Parity with Specialized Agents

Fine-tuned LLMs (ranging from 7B to 14B parameters) achieved performance levels comparable to specialized "teacher" models. In DouDizhu, the LLMs reached win rates of approximately 0.85, nearing the performance ceiling established by DouZero. Notably, these fine-tuned models significantly outperformed massive general-purpose models like GPT-4o and DeepSeek-V3 in specific game logic and strategic decision-making.

Architecture Agnosticism and Transfer Learning

One of the most significant findings was the success of the transformer architecture across eight wildly different games. Unlike specialized RL agents that require custom-built networks, the same LLM architecture mastered diverse mechanics. The researchers also observed "positive transfer" between similar games; for instance, training on multiple Poker variants improved performance across the entire Poker category. However, dissimilar games occasionally caused "conflicts," where learning one game slightly hindered performance in another.

The Specialist Tax and Recovery

Mastering complex games comes at a cost. Models fine-tuned exclusively on game data showed a sharp decline in general capabilities—the "specialist tax." A model might become a world-class Mahjong player while losing the ability to solve basic Python problems. However, the study found that by mixing a small amount of game data (8k samples) with a larger set of general instruction data (60k samples), models could regain most of their MMLU and coding scores without sacrificing their card-playing proficiency.

Discussion and Limitations

While LLMs show great promise as strategic agents, several hurdles remain:

  • Inference Latency: Specialized RL agents are lightweight and run in milliseconds. In contrast, 7B+ parameter LLMs require significant GPU resources and time to generate a single move, making them less efficient for real-time applications.
  • Teacher Dependency: Current success relies on Supervised Fine-Tuning from existing experts. A major future milestone will be achieving superhuman performance through pure self-play RL without relying on a pre-existing "teacher" AI.
  • Role Asymmetry: In games like DouDizhu, where roles (Landlord vs. Farmer) are asymmetric, data filtering is crucial. The researchers noted that models could become biased if trained on imbalanced winning data, highlighting the need for robust role-balancing strategies.

Conclusion

This research demonstrates that LLMs are capable of mastering the intricate strategies of complex card games, rivaling specialized AI systems. While specialization initially degrades general intelligence, strategic data mixing provides a path toward creating "versatile experts"—models that can play at a professional level without losing their broader reasoning capabilities.

Summary updated

BibTeX
@inproceedings{wang2025can,
  author = {Wei Wang and Fuqing Bie and Junzhe Chen and Dan Zhang and Shiyu Huang and Evgeny Kharlamov and Jie Tang},
  title = {{Can Large Language Models Master Complex Card Games?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=cmN8Wbvanr},
}
Figure