Poker-CNN: A Pattern Learning Strategy for Making Draws and Bets in Poker Games Using Convolutional Networks

Nikolai Yakovenko, Liangliang Cao, Colin Raffel, James Fan

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, particularly for heads-up Limit Texas Hold’em, often relies on Counterfactual Regret Minimization (CFR). While effective, CFR requires extensive domain expertise to create abstractions that group similar game states, making the math tractable but the resulting systems brittle and hyper-specialized. An AI built for Texas Hold’em cannot easily transition to 2-7 Triple Draw.

The authors address this by proposing Poker-CNN, a general-purpose architecture that treats poker as a pattern-recognition problem. By moving away from expert-knowledge-based abstractions toward a data-driven approach, the goal is a system that learns the "patterns" of any poker game—understanding card interactions and betting signals—with minimal game-specific tuning.

Methods

The core innovation is a Unified Representation of poker states processed by Convolutional Neural Networks (CNNs).

3D Tensor Representation

A poker hand is represented as a 3D tensor (e.g., $31 \times 17 \times 17$ for Triple Draw). Cards are mapped to a $4 \times 13$ binary matrix (suits vs. ranks) and zero-padded. Additional layers encode contextual data: draw rounds remaining, pot size, player position, and betting history.

CNN Architecture

Inspired by computer vision, the model utilizes $3 \times 3$ convolutional filters. This allows the network to recognize "geometric" patterns in the card matrix—vertical bars represent pairs or trips (same rank), while horizontal bars represent flushes (same suit).

The Poker-CNN architecture, showing the transition from input tensors through convolutional and pooling layers to the final output layer.

Iterative Self-Play

The model is initially trained on data from heuristic players. To improve, it enters a self-play loop, playing against itself and previous versions. This prevents over-optimization against a single strategy and helps discover robust, unexploitable playstyles.

Results

The system was evaluated across three distinct games: Video Poker, Limit Texas Hold’em, and 2-7 Triple Draw.

In Video Poker, Poker-CNN achieved an average return of $0.977, nearly matching professional human performance ($0.98–$0.99) and significantly outperforming standard deep neural networks (DNNs).

Comparison of average returns across different player models, demonstrating the superior performance of the CNN with 3x3 filters.

In Texas Hold’em, the model beat the ACPC sample player and an open-source CFR implementation by large margins. In a 500-hand trial against a professional human, the model was statistically tied, proving its competitiveness.

In 2-7 Triple Draw, Poker-CNN significantly outperformed its heuristic starting point. When pitted against a World Champion, the model held its own for the first 100 hands before the human expert began to adapt to the CNN's regularities.

Discussion and Conclusion

While Poker-CNN is strong, it is not "perfect" in a game-theoretic sense. Human experts noted that the CNN made "regular mistakes" because it doesn't explicitly calculate a Nash Equilibrium, allowing top-tier humans to eventually exploit its patterns.

Future work includes incorporating card isomorphisms to speed up training and combining this data-driven CNN approach with traditional search-based methods (like AlphaGo) to create a more formidable, less exploitable player. Poker-CNN demonstrates that treating poker as a visual pattern recognition problem is a viable path toward general-purpose game AI.

Summary updated

BibTeX
@inproceedings{yakovenko2016poker,
  author = {Nikolai Yakovenko and Liangliang Cao and Colin Raffel and James Fan},
  title = {{Poker-CNN: A Pattern Learning Strategy for Making Draws and Bets in Poker Games Using Convolutional Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=rJbkqeWdWS},
}
Figure