Mastering Poker with Deep CFR: Building an AI for 6-Player No-Limit Texas Hold’em
Mastering Poker with Deep CFR: Building an AI for 6-Player No-Limit Texas Hold’em
Building a reproducible training system for strong no-limit Texas Hold’em, with six-handed play as the main target and support for four- and five-handed tables, changing lineups, and unequal stacks.
The agent must play by the documented rules and use exactly the game information available to a human in its seat. Deep CFR is our starting point; we will replace algorithms and architecture when measured results justify it.
Status: building v0.5, a reproducible research release, on the way to v1.0. No current model has demonstrated professional-level Hold’em strength.
Release plan · 1.0 strength standard · Current progress · Quick start · Roadmap · Documentation
The next release is v0.5, followed by v1.0. The rebuilt system belongs to the 1.0 roadmap.
v0.5 is a research release. It should let someone train, interrupt and resume a run, export a playable model, and reproduce its evaluation. It ships with a documented longer training experiment: fixed settings and budgets, multiple seeds, learning curves, throughput and memory measurements, model artifacts, and every failure or weak result. Legal play and the player-information boundary remain mandatory. Professional strength, positive win rate, and completion of search or adaptation are not v0.5 requirements.
We can run longer exploratory training once the implementation, recovery and resource checks pass. Weak or inconclusive poker results are useful data; they do not block the next budgeted experiment. We will use that evidence to choose improvements for v1.0 instead of repeatedly tuning small diagnostics. A research checkpoint is clearly labelled as such; publishing it does not certify professional strength.
Version 1.0 is earned by demonstrated playing strength. We will release it only when the code, paired with a documented and repeatable training recipe, produces an agent that meets our lower-end professional cash-game standard in the declared benchmark format.
A working trainer, completed roadmap, larger network, or long GPU run does not qualify on its own. We must actually train and evaluate qualifying models; “this should become strong with enough training” is not release evidence.
Our target is at least the lower end of professional no-limit cash-game play. For this project, we use a conservative, measurable release test: demonstrably winning play against a credible reference group representing that level, under a specified ruleset and resource budget.
“Lower-end professional” is a project target, not an established numerical poker rating. Before the qualification campaign, we must document the stakes, format, reference-group selection, and evidence that the group represents established winning professionals or comparably strong regulars. A job title, a few winning sessions, or success against our own bots is insufficient.
We will not claim “better than X% of poker players” without defining and measuring the relevant player population. Professional-level evidence applies to the tested format and opponents; it does not imply a universal ranking across cash games, tournaments, stakes, or player pools.
| Requirement | Evidence needed for 1.0 |
|---|---|
| A credible strength benchmark | Direct evaluation against the documented human reference group, or an independently validated benchmark demonstrably calibrated to that group in the same format. Our style agents and historical checkpoints alone cannot establish professional strength. |
| A statistically supported result | Positive net win rate in big blinds per 100 hands (BB/100), with the lower bound of a predeclared 95% confidence interval above zero on the primary qualification benchmark. Include the declared rake and all completed hands; use an analysis that accounts for shared deals, sessions, opponents, and repeated measurements. |
| A reliable training recipe | At least three independently seeded training runs under the same declared recipe and compute budget, with per-seed results and all failures retained. Each must meet its predeclared qualification criteria; a lucky seed or the best intermediate checkpoint cannot rescue a failed campaign. |
| Fresh confirmation | Freeze the selected code, model, opponents/selection procedure, and evaluation protocol before the final test. Use held-out opponents or sessions and fresh evaluation data. Choose sample size, meaningful effect target, stopping rules, and scenario limits before looking at the results. An inconclusive result does not qualify. |
| Correct and fair play | Verified legal betting and settlement, consistent chip accounting, no privileged information in decisions, no sharing of private observations between agents, and no silent substitution of invalid actions. |
| Supported table conditions | Separate results for four-, five-, and six-handed starts, changing lineups, and declared unequal-stack scenarios. Publish predeclared regression limits for secondary scenarios; do not hide a failure in an overall average. |
| A reproducible release package | Versioned rules, source, dependencies, training configuration, hardware/runtime/cost record, complete resume support, model hashes and retrieval instructions, and a report sufficient to repeat training and evaluation. A fresh training reproduction must confirm the recipe's quality. |
The primary strength benchmark starts with six-handed, 100 BB cash play. The qualification protocol must pin the opponent population, seating, stack/reset policy, rake, decision-time limits, and any search or adaptation allowed during play. Four-/five-handed and other stack-depth results are reported separately; a professional-strength claim extends only to formats that have passed their own qualification checks.
These are our release requirements, not a claim that a particular win rate or hand count universally defines a professional player. Exact exploitability is useful in the small games we can solve; we do not have an exact exploitability certificate for full multiplayer no-limit Hold’em.
The professional reference group and final qualification protocol have not yet been established. Until both the evidence and the implementation meet this standard, the project stays pre-1.0.
| Area | Target |
|---|---|
| Game | Cash-game no-limit Texas Hold’em, table stakes, standard deck, one board |
| Players | Six-handed first; four and five players are first-class table configurations |
| Stacks | Begin with 100 BB; expand to unequal stacks and declared 20–200 BB scenarios |
| Table lifecycle | Arrivals, departures, sit-outs, and top-ups between hands |
| Information | Own hole cards, public board and actions, legal betting bounds, public stacks/positions, and legitimately observed opponent history |
| Current research rules | No rake or antes; the release benchmark must explicitly name its rake/rules profile. Unraked results do not establish profitability after rake. |
| Interface | A headless agent API, reproducible evaluation, and a way to inspect and replay decisions |
Hidden opponent cards, undealt cards, deck order, simulator seeds, and future outcomes never belong in the agent's input. Training may use simulated payoffs and counterfactual branches to construct learning targets; those targets do not grant extra information during play. Search must infer possible hidden worlds from legitimate observations.
The rules profile, observation contract, and session contract define the supported behavior. Tournament payouts/ICM, straddles, multiple runouts, and live audiovisual tells are outside the initial scope.
The project began as an earlier Deep CFR implementation. We are rebuilding its learning and evaluation foundations, retaining useful regression cases and replacing components as their successors pass meaningful checks. Backwards compatibility is not a requirement.
| Area | Current evidence |
|---|---|
| Rules engine | Maintained Rust pokers fork, pinned to an audited revision; integer chips, legal raises, side pots, and settlement checks. Engine audit |
| Player information and sessions | Immutable player observations, complete public history, identity-owned records, and changing four-to-six-player lineups. Observation / session contracts |
| Evaluation | Reproducible schedules, separate data splits, paired reports, varied style opponents, and hash-pinned historical models. Professional-strength opponents remain an open requirement. Benchmark guide |
| Tabular reference | Kuhn and Leduc CFR checked against exact best responses and independently solved equilibrium values. Results |
| Neural baseline | Small-game Deep CFR with complete snapshot-average training recovery and verified inference exports. Fresh snapshot readiness passes in both games. Contract, snapshot design |
| Neural convergence | Snapshot confirmation passes: 8/8 seeds in each game meet the original exploitability and value-error limits. Milestone 3 is complete. Latest results |
| Hold’em decisions | Full current-hand event encoding, variable-seat masks, board reveal stages and a small sequence model. Contract |
| Hold’em betting | Exact legal bet candidates, per-action regret/value heads and branch-payoff targets. Contract |
| Hold’em collection | External sampling for every role against isolated current policies, with exact action records and reproducible 100 BB checks. Contract |
| Hold’em fitting | Separate role reservoirs and whole-iteration rollback, with explicit sampled replay/root normalization and verified recovery. Reference contract, sampled trainer |
| Hold’em baseline pipeline | Averaged play, full iteration-boundary recovery, deterministic button rotation and a multi-seed training/arena runner. Contract, first report. Substantial learning and strength remain unproven. |
The longer v0.5 experiment is complete. All three six-handed 100 BB seeds reached 512 iterations, with 147,456 scheduled evaluation hands, zero invalid actions and verified checkpoint recovery. The report retains every seed and learning curve. All 48 paired comparisons are inconclusive; the final policies lose heavily against the style pool. This is research evidence, not demonstrated strength or a release announcement.
Full-game learning remains unproven. The paired policy comparison found no consistent fitting improvement, and the persistent critic failed its cost screen. Expanding a second own decision reduced variance on controlled frozen probes, but the fresh six-run comparison did not meet its consistency criterion: one seed improved clearly relative to its control, while all final policies still lost heavily against styles. All six jobs reached 512 iterations with verified recovery; first-decision collection remains the default.
The reliable-target architecture comparison is also complete: larger and card-separated models fit training examples better, but none qu
No open issues yet, or sync has not completed.