Preprint · November 2026

Exact deep-stack endgame solving and learned turn values in a local no-limit poker engine

Aidan Yu1
1Department of Mechanical Engineering & Materials Science, Duke University, Durham, NC, USA
Correspondence: asy22@duke.edu

Abstract

We describe Borel, a locally runnable no-limit Texas hold’em engine combining exact endgame solvers, learned turn values and multiplayer self-play. A blocker-aware river solver reaches less than 0.25% pot exploitability on the tested spot across stack-to-pot ratios from 1 to 100 in 0.03–7.2 seconds. A three-player terminal kernel is 54–121 times faster than an exhaustive reference at 128 hands per player. Across seven documented value-network designs, a position-aware set transformer reaches mean error 1.316% of the pot on held-out turn positions. The resulting search agent records 2.946% pot exploitability on 100 held-out flop states; a later card-aware network reduces this to 1.175% on the same diagnostic set. Slumbot match intervals remain too wide to establish positive performance. A nine-seat compute ladder gives successive gains of 0.164, 0.145 and 0.058 big blinds per hand against the preceding blueprint, with mixed results against a broader opponent league. Configurations, seeds, checksums and evaluation outcomes are retained in a claims ledger. The strongest results concern exact solver components and the relationship between value architecture and local exploitability.

Keywords: imperfect-information games · counterfactual regret minimization · poker · reproducibility · pre-registration · multiplayer games

1Introduction

Computer poker has produced some of the clearest successes of game-theoretic AI: the near-solution of heads-up limit hold'em [1], expert- and superhuman-level heads-up no-limit play [2, 3, 4], and superhuman six-player play [5]. Outside those landmark systems, results are difficult to compare. Exact exploitability is computable only for small games, so large-game claims rest on lower bounds from local best response [6] or on match results whose variance is large even with variance reduction [7]. The engineering choices that drive outcomes, such as abstraction, leaf evaluation, iteration counts and serving code, are rarely reported alongside them.

This paper describes an engine built to make every one of its claims checkable, and reports what that produced. The project is named for Émile Borel, whose 1921 note [8] predates von Neumann's minimax theorem in the mathematical treatment of bluffing. Its long-term goal is strong full-ring play with complete hands and unrestricted multiway postflop pots. The experiments characterize the implemented components and remaining gaps.

2Evaluation discipline

The evaluation records configuration, provenance and pre-specified criteria for each campaign.

At the time of writing the ledger holds 97 claims: 83 verified, 12 gaps and 2 killed. Verified entries include measurements of failed performance criteria; claim verification and performance promotion are separate fields.

3Exact foundations

The core is a Rust crate with no third-party dependencies. Its first tier reproduces known exact results (Table 1). CFR+ [9, 1] on Kuhn poker [10] converges to exploitability below 10^{-6} antes and recovers the game value -1/18 and the known equilibrium family. On Leduc hold'em [11] it reaches below 10^{-3} antes within 10^5 iterations. Solver runs are bit-deterministic: identical configurations give identical strategy checksums and identical exploitability bit patterns.

Table 1. Exact foundations, each identity-tested against an oracle or a published value.
ComponentResult
Kuhn poker, CFR+Exploitability < 10^{-6}; value -1/18; equilibrium structure reproduced
Leduc hold'em, CFR+Exploitability < 10^{-3} antes in 10^5 iterations
7-card evaluatorPublished frequency table matched over all 133,784,560 hands; agrees with a naive evaluator on 10^6 hands
Preflop all-in equityAll disjoint combo pairs by full board enumeration over 47,008 suit classes
Heads-up jam/foldExploitability < 10^{-4} bb at 2–400 bb; jam frequency falls monotonically from 90.2% to 2.8%

4Depth-robust endgame solving

Deep stacks are where existing tools are least convenient, so endgame solvers were built to be insensitive to stack-to-pot ratio (SPR). The river solver runs vector CFR+ over the 1,081 live hand combinations, with blocker-aware terminal evaluation in O(n \log n) that agrees with an O(n^2) brute force to 10^{-9}, and an exact vector best response. The same spot solved at SPR 1 through SPR 100 reaches below 0.25% of the pot in exploitability, in 0.03 to 7.2 s on a laptop. A two-street turn-and-river solver, whose chance node over 48 river cards uses card-removal masking verified against brute force, reaches 0.024%, 0.156% and 0.339% of the pot at SPR 1, 10 and 100, in 11 s, 2.5 min and 15 min.

For three players on the river, an exact terminal kernel based on rank-filtered card-mass inclusion–exclusion avoids enumerating joint deals. It runs 54 to 121 times faster than its exhaustive reference at 128 hands per player, with every evaluation of all three seats over 1,081 hands taking at most 3.8 ms (median).

5Learned turn values

Real-time depth-limited search needs values at the leaves [2, 4]. We generated 8,000 exactly solved turn-start positions as training data. Some were labelled by a GPU solver, admitted only after a pre-registered agreement test with the CPU solver that it failed in its first seven attempts. The value network's gate was fixed in advance: mean absolute value error below 1.5% of the pot and 95th percentile below 5% on held-out positions, with positions at 300 big blinds or deeper required to pass separately.

The gate was passed on the seventh disclosed attempt, without moving the threshold (Table 2). The series is informative. A plain MLP was far off. An equivariant per-combination network halved the error and removed the depth penalty. Pooled equity context and a wider network helped further. Rescaling the target by effective stack reintroduced the depth penalty, because error in the rescaled units is multiplied by 1 + \mathrm{SPR} when converted back to the pot. The lesson is that the gate metric's scale must be the training scale. A set transformer [12] with attention across combinations then closed most of the remaining gap. The final model reaches 1.316% and 4.490%, with the deep slice at 1.315% and 4.444%, against a measured label-noise floor of 0.369% and 1.38%. It used about 3 of 24 budgeted GPU-hours.

Table 2. Turn value network attempts against a fixed gate (mean / 95th-percentile absolute error, % of pot; gate 1.5 / 5.0).
AttemptArchitectureMeanp95
1MLP10.8232.2
2Equivariant per-combo5.2816.2
3+ pooled equity context, wider3.7911.7
4Stack-normalized target (rejected)6.0619.7
5Set transformer, d=128\times41.866.24
6Set transformer, d=256\times61.595.42
7Set transformer, position-aware1.3164.490

6The agent and its gates

Exploitability. Agent strength requires a separate policy-level evaluation. The pre-registered agent gate measures exact exploitability of the full search-plus-network policy on 100 held-out flop states, against a target below 2% of the pot. The agent failed: mean 2.946% (95% interval 2.51 to 3.38), with 37 of 100 states under 2% and 8 over 5%. Per-state leaf error correlated with exploitability at r = 0.683, which pointed at the network. The reported evaluation uses corrected equity features; a pilot with corrupted serving features is excluded.

A card-aware network with per-pair features, trained afterwards, was evaluated as a diagnostic on the same 100 states, paired with the original. Mean exploitability fell from 2.950% to 1.175% of the pot (paired difference -1.78 percentage points, 95% interval -2.23 to -1.32). It was lower on 96 of 100 states, and 93 of 100 were under 2%. Because that network did not satisfy the separate pre-registered selection rule for a new version, the result is recorded as a diagnostic and not as a passed gate.

Matches. Against Slumbot [13], a public heads-up benchmark at 200 big blinds, a jam/fold-plus-pot-odds agent scored -24.1 \pm 35.6 bb/100 over 2,000 hands. A search agent with a solved preflop tree and real-time exact turn and river solving scored -40.2 \pm 53.3 over 5,120 hands. Both intervals include zero, and the two agents are not distinguishable from each other. The pre-registered improvement gate for the second agent failed and is recorded as such. Zero accounting mismatches occurred in either run.

7Nine seats

External-sampling Monte Carlo CFR [14] over the N-seat engine plays complete 3-, 6- and 9-seat hands end to end. At nine seats, 100 big blinds and a cheap default abstraction, one machine runs 17.5 thousand iterations per second, about 158 thousand hands per second, and grows 386 million information sets in 30 minutes. A pre-registered compute-doubling ladder measures the return on compute in duplicate, seat-rotated matches of 200,000 deals (Table 3). Each doubling wins, but the gain collapses from 0.16 to 0.06 big blinds per hand within three doublings. This diminishing-return pattern motivates direct comparisons of additional compute, richer abstractions and opponent diversity.

Table 3. Nine-seat blueprint compute-doubling ladder, gain of each rung over the previous one (bb/hand; duplicate seat-rotated matches).
ComparisonGainInformation sets
1,800 s vs. 900 s+0.164386 M
63.2 M vs. 31.6 M iterations+0.145474 M
126.3 M vs. 63.2 M iterations+0.058568 M

Whether the larger blueprint is broadly better depends on the opponents. In a pre-registered league of 28.8 million hand plays against four fixed opponent populations, the larger blueprint improved against two, was inconclusive against one and regressed against one. The pre-registered "broad improvement" criterion therefore failed.

8Discussion

The principal outputs are exact endgame solvers, efficient card-aware terminal evaluation and a documented value-network comparison. The policy experiments show that low average value error can coexist with substantial exploitability. The later card-aware model motivates confirmation on fresh states, while the nine-seat league motivates broader opponent testing.

The gap to the full-ring goal is large. Strong nine- and ten-seat play with unrestricted multiway postflop pots, validated learned values in multiplayer settings, arbitrary bet sizes and externally demonstrated strength are all open entries in the ledger.

Use. Borel is a research and study tool. Using it in real-money online play would violate site terms of service and is cheating; it is not designed or released for that.

9Conclusion

Borel combines exact local solving with learned values and multiplayer self-play. The tested river solves remain accurate over a wide depth range, and card-aware architectures improve value prediction and diagnostic policy performance. Establishing strong complete-game play requires fresh policy evaluations, broader opponents and tighter match uncertainty.

Data and code availability

Source, pre-registrations, the claims ledger and all receipts are in the private project repository. cargo test --release runs the pre-registered foundation gates.

References

  1. O. Tammelin, N. Burch, M. Johanson, and M. Bowling. Solving heads-up limit Texas hold'em. In Proceedings of the 24th International Joint Conference on Artificial Intelligence (IJCAI), 645–652, 2015.
  2. M. Moravčík, M. Schmid, N. Burch, et al. DeepStack: Expert-level artificial intelligence in heads-up no-limit poker. Science, 356(6337):508–513, 2017.
  3. N. Brown and T. Sandholm. Superhuman AI for heads-up no-limit poker: Libratus beats top professionals. Science, 359(6374):418–424, 2018.
  4. N. Brown, A. Bakhtin, A. Lerer, and Q. Gong. Combining deep reinforcement learning and search for imperfect-information games. In Advances in Neural Information Processing Systems 33, 2020.
  5. N. Brown and T. Sandholm. Superhuman AI for multiplayer poker. Science, 365(6456):885–890, 2019.
  6. V. Lisý and M. Bowling. Equilibrium approximation quality of current no-limit poker bots. In AAAI Workshop on Computer Poker and Imperfect Information Games, 2017.
  7. N. Burch, M. Schmid, M. Moravčík, D. Morrill, and M. Bowling. AIVAT: A new variance reduction technique for agent evaluation in imperfect information games. In Proceedings of the 32nd AAAI Conference on Artificial Intelligence, 949–956, 2018.
  8. É. Borel. La théorie du jeu et les équations intégrales à noyau symétrique gauche. Comptes Rendus de l'Académie des Sciences, 173:1304–1308, 1921.
  9. M. Zinkevich, M. Johanson, M. Bowling, and C. Piccione. Regret minimization in games with incomplete information. In Advances in Neural Information Processing Systems 20, 2007.
  10. H. W. Kuhn. A simplified two-person poker. In Contributions to the Theory of Games, vol. 1, Annals of Mathematics Studies 24, 97–103. Princeton University Press, 1950.
  11. F. Southey, M. Bowling, B. Larson, C. Piccione, N. Burch, D. Billings, and C. Rayner. Bayes' bluff: Opponent modelling in poker. In Proceedings of the 21st Conference on Uncertainty in Artificial Intelligence (UAI), 550–558, 2005.
  12. J. Lee, Y. Lee, J. Kim, A. Kosiorek, S. Choi, and Y. W. Teh. Set Transformer: A framework for attention-based permutation-invariant neural networks. In Proceedings of the 36th International Conference on Machine Learning, PMLR 97:3744–3753, 2019.
  13. E. Jackson. Slumbot NL: Solving large games with counterfactual regret minimization using sampling and distributed processing. In AAAI Workshop on Computer Poker and Imperfect Information, 2013.
  14. M. Lanctot, K. Waugh, M. Zinkevich, and M. Bowling. Monte Carlo sampling for regret minimization in extensive games. In Advances in Neural Information Processing Systems 22, 2009.