Abstract
Poker is a family of card games that includes many variations. We hypothesize that most poker games can be solved as a pattern matching problem, and propose creating a strong poker playing system based on a unified poker representation. Our poker player learns through iterative self-play, and improves its understanding of the game by training on the results of its previous actions without sophisticated domain knowledge. We evaluate our system on three poker games: single player video poker, two-player Limit Texas Hold'em, and finally two-player 2-7 triple draw poker. We show that our model can quickly learn patterns in these very different poker games while it improves from zero knowledge to a competitive player against human experts.
Introduction
Traditional poker AI systems, such as those based on Counterfactual Regret Minimization (CFR), typically rely on "expert knowledge" approaches. They require significant manual effort to create abstractions that condense the game's massive state space into something manageable. Furthermore, these systems are often hyper-specialized; a bot designed for Limit Texas Hold’em cannot easily be adapted to play 2-7 Triple Draw.
In contrast, human players exhibit general expertise across many poker variations. The Poker-CNN framework aims to bridge this gap by creating a data-driven, unified representation that allows a single architecture to learn the "patterns" of winning poker across different rule sets, effectively treating the game board and betting history like an image to be processed by a Convolutional Neural Network (CNN).
Methodology
The core innovation is the Unified Representation for Poker Games. The authors encode the game state into a 3D tensor to facilitate pattern recognition.
Unified Representation
- Card Encoding: Each card is a $4 \times 13$ binary matrix (suits vs. ranks). To facilitate convolution and pooling, these are zero-padded to $17 \times 17$.
- Hand Representation: A five-card hand is represented as a $5 \times 17 \times 17$ tensor, plus an additional "sum" layer that captures the whole-hand information (making it easy for the CNN to spot pairs or flushes).
- Context Layers: Additional layers encode non-card information, such as the number of chips in the pot, the current betting round, and the sequence of previous bets.
Architecture and Training
The model utilizes a CNN architecture to process these tensors, capturing spatial relationships like rank-based pairs or suit-based flushes.
The learning process happens in two stages: first, Learning to Draw using Monte Carlo simulations to estimate expected value (EV) for discard choices; and second, Learning to Bet through iterative self-play. By playing against its own previous versions, the model refines its strategy and learns to exploit its own weaknesses over multiple generations.
Experimental Setup
The researchers evaluated the model using three distinct poker variants:
- Video Poker: 250,000 hands generated via Monte Carlo simulation to establish a baseline for "perfect" play.
- Heads-up Limit Texas Hold’em (LTH): Evaluated against the ACPC (Annual Computer Poker Competition) sample players and an open-source CFR implementation.
- 2-7 Triple Draw: A complex game with three drawing rounds and seven betting rounds. The model was refined through 20 self-play epochs.
- Human Benchmarks: The models were tested against professional human players and a world champion in 2-7 Triple Draw.
Results and Discussion
A critical finding was that the model outperformed the heuristic players it was trained on. Because the CNN learns the value of actions (the resulting gain/loss) rather than just imitating the heuristic's moves, it can identify which of the teacher's actions led to success and discard the mistakes.
Performance Benchmarks
In Video Poker, Poker-CNN achieved an average return of $0.977, nearly matching professional human performance ($0.98–$0.99).
In Texas Hold’em, the model beat the heuristic player and the open-source CFR player by a large margin. In 2-7 Triple Draw, Poker-CNN significantly outperformed a standard Deep Neural Network (DNN) baseline. In matches against a world champion, the model was competitive, leading after the first 100 hands before the champion adapted to its playstyle.
Conclusion
Poker-CNN demonstrates that "pattern matching" via CNNs is a viable alternative to game-theoretic solvers. While it does not explicitly seek a Nash Equilibrium, it achieves human-expert level performance across diverse variants without requiring game-specific domain knowledge. Future work includes exploring canonical forms to reduce data requirements and combining the CNN approach with search-based strategies like Monte Carlo Tree Search.
Summary updated