Goal

After this module you can define a Nash equilibrium and the exploitability of a strategy, run regret matching by hand and prove that its average strategy converges, write the counterfactual regret minimization (CFR) loop, derive the full equilibrium family of Kuhn poker, and say what “heads-up limit hold’em is solved” does and does not mean.

In January 2015 the Computer Poker Research Group at the University of Alberta announced that their program Cepheus had essentially solved heads-up limit hold’em. The seventh lecture of the course, given by Bill Chen of Susquehanna International Group (SIG), co-author of The Mathematics of Poker, asks what that claim means and how it was achieved. The question of this module is: what is a “solution” to a poker game, and how can a computer find one for a game with about decision points?

The answer has three layers. First, the target: a Nash equilibrium, which in a two-player zero-sum game is a strategy that cannot lose against any opponent in the long run. Second, a yardstick: exploitability, the amount a perfect opponent could win against a given strategy. Third, an algorithm: regret minimization, a simple rule for adjusting a mixed strategy, applied separately at every decision point of the game tree. That last step is counterfactual regret minimization, CFR, and its refinement CFR+ is what Cepheus ran.

This module builds on the pot-odds reasoning of Module 3: the indifference conditions that define an equilibrium are pot-odds calculations made from the opponent’s side. The push/fold ranges of Module 4 and Module 5 reappear as an example of a best response, and the standard deviation from Module 6 tells us how small “one thousandth of a big blind” really is. Module 8 takes up the opposite question: when to leave the equilibrium to exploit a weak opponent.

What Cepheus accomplished

The question here is what was actually computed. The answer is a pair of strategies, one for each seat, whose exploitability is below one thousandth of a big blind per hand.

Cepheus plays heads-up limit hold’em: two players, fixed bet sizes, a cap of four bets per betting round. The team (Bowling, Burch, Johanson and Tammelin) ran the CFR+ algorithm for roughly 900 CPU-years and reported an exploitability of 0.986 milli-big-blinds per hand (Bowling, Burch, Johanson and Tammelin, Science, 2015); the lecture rounded this to less than one thousandth of a big blind (Lecture 7, [02:00]-[04:01]). A perfect opponent, who knew Cepheus’s strategy exactly and played the best possible counter-strategy, would win less than 0.001 big blinds per hand on average.

That is not exactly zero, so the game is not solved in the strict sense. The authors used the phrase essentially weakly solved: the remaining edge is too small to be detected by any human within a lifetime of play. The next example makes this precise.

Example 7.1 (How long to detect a milli-big-blind).

The lecture quotes a standard deviation of about big blinds per hand for heads-up limit hold’em (Lecture 7, [04:01]). Suppose an opponent has a true edge per hand. After independent hands the average result has standard error big blinds. The edge is one standard error away from zero when

For this gives million hands, and a two-standard-error detection needs four times as many, million. At a few hundred hands an hour that is decades of non-stop play. By contrast, an edge of one hundredth of a big bet ( bb), which Chen calls the threshold of practical significance, is visible at two standard errors after hands.

Chen’s view in the lecture was that this was a milestone, the first real poker game to be solved, but an expected one: earlier strategies had already passed the one-hundredth-of-a-big-bet mark, and more CPU time was the main missing ingredient (Lecture 7, [04:01]). The interesting parts are the definitions and the algorithm, which the rest of the module develops.

Nash equilibrium, GTO and exploitability

The question here is what “optimal” means when the opponent can adapt. The answer is a strategy pair from which neither player wants to move; in two-player zero-sum games this is the same as the strategy that does best against its worst-case opponent.

Write for the first player and for the second. A pure strategy says what a player does at every decision point, for every card he could hold. A mixed strategy is a probability distribution over pure strategies. Let be the expected amount wins from when they use strategies and ; the game is zero-sum, so wins .

The payoff is bilinear: if with and , then , and the same holds in the second argument. Playing strategy 1 a third of the time and strategy 2 two thirds of the time earns one third of the first payoff plus two thirds of the second.

Definition 7.1 (Nash equilibrium).

A pair is a Nash equilibrium if neither player can gain by changing only his own strategy:

In a two-player zero-sum game an equilibrium strategy is also called game theory optimal (GTO), and is the value of the game.

Nash proved in 1950 that every finite game has at least one equilibrium in mixed strategies, extending von Neumann’s earlier minimax theorem for two-player zero-sum games. For the zero-sum case the minimax theorem says more.

Theorem 7.1 (Minimax theorem).

In a finite two-player zero-sum game,

and is an equilibrium exactly when attains the outer maximum on the left and attains the outer minimum on the right. In particular all equilibria have the same value, and any equilibrium strategy of can be paired with any equilibrium strategy of .

The minimax view gives a natural measure of how far an arbitrary strategy is from GTO.

Definition 7.2 (Best response, nemesis and exploitability).

A best response to is any that maximises ; Chen calls it the nemesis of (Lecture 7, [26:20]). The exploitability of a strategy pair is the average amount the two nemeses gain over the game value,

Both brackets are non-negative, and exactly at a Nash equilibrium. A pair is an -equilibrium when the unhalved gap is at most .

The value cancels in , so exploitability can be computed without knowing the value: compute one best response for each side and subtract. The lecture slides use the unhalved gap; Cepheus’s 0.986 mbb per hand, and our Kuhn poker figure below, use the halved version, which is the average loss per hand over the two seats.

The simplest example is rock-paper-scissors. The unique equilibrium is one third on each action, and its value is zero. Chen’s point in the lecture is that this strategy is safe but not greedy: against an opponent who throws rock and scissors half the time each, playing rock every time wins on average, while the equilibrium still only breaks even (Lecture 7, [08:05]).

Common trap: GTO means "the best way to play"

An equilibrium strategy maximises the worst case, not the expected profit against the opponent in front of you. Against a player who makes mistakes, GTO usually wins, because poker (unlike rock-paper-scissors) has dominated actions that lose to it. But a best response to his mistakes wins more. GTO is the answer to “how do I make sure I cannot be exploited?”, which is a different question from “how do I win the most from this person?”. Module 8 treats the second one.

A first poker game: Rose and Colin

The question here is what an equilibrium looks like in a game with hidden cards. The answer, in the toy game Chen used to open the lecture, is the two indifference rules that run through all of poker theory: bluff just often enough that a call breaks even, and call just often enough that a bluff breaks even.

Rose and Colin each ante $50, so the pot is $100. Rose looks at one card from a full deck; she will win a showdown if it is a spade and lose otherwise. Rose may check (showdown for the $100) or bet $100. If she bets, Colin may fold (Rose takes the pot) or call $100 (showdown for $300).

Rose bets every spade: a bet with a sure winner can only gain. The interesting choices are how often Rose bets a non-spade (a bluff) and how often Colin calls.

Colin’s calling frequency. A Rose bluff risks $100 to win the $100 pot. If Colin folds with probability , the bluff earns compared with checking and losing the pot. This is zero at . If Colin calls more than half the time, Rose should never bluff, and then his calls only ever meet spades; if he calls less, Rose should bluff every non-spade. So in equilibrium Colin calls exactly half the time, and Rose is then indifferent to bluffing.

Rose’s bluffing frequency. Colin calls $100 to win a pot of $200 (the antes plus Rose’s bet). His call breaks even when a fraction of Rose’s bets are bluffs, so bluffs and spades are in the ratio . Rose has a spade with probability , so she bluffs with probability overall, which is of her non-spades, or half of her hearts.

Value. With these strategies Rose nets $100 on average when she has a spade ($150 if called, $50 if not) and loses $50 on average otherwise: checking forfeits her ante, and a bluff loses $150 when called and wins $50 when Colin folds, which also averages a loss of $50. Her expectation is : the game is worth $12.50 per hand to Colin (Lecture 7, [12:11]), because Rose must put up her ante while holding the losing card three times out of four.

The two indifference rules are general. Write for the pot and for the bet.

Proposition 7.1 (Indifference rules for a polarised bet).

Suppose a bettor’s hands are either sure winners or sure losers, and the defender holds a bluff-catcher. In equilibrium:

  1. the defender continues (calls) with probability , the minimum defence frequency, so that a bluff breaks even;
  2. a fraction of the bettor’s bets are bluffs, so that a call breaks even.
Minimum defence frequency (solid) and the break-even fold frequency of a pure bluff (dashed) against bet size as a fraction of the pot, with the common sizes from one third pot to three times pot marked
Figure 7.1. Minimum defence frequency (solid) and the break-even fold frequency of a pure bluff (dashed) against bet size as a fraction of the pot, with the common sizes from one third pot to three times pot marked

Figure 7.1 shows the defence frequency falling from 75 percent against a third-pot bet to 50 percent against a pot-size bet and 25 percent against a bet of three times the pot. Chen used exactly this argument in the question session: if the pot is 10 and the bet is 1, a pure bluff needs only one fold in eleven, so the defender must continue with ten hands in eleven (Lecture 7, [54:46]).

Common trap: defending exactly the minimum defence frequency with any hands

The rule says how often to continue, not with which hands. In real games a bettor chooses bluffs that block the defender’s best hands. Chen’s example from pot-limit Omaha: with a possible flush on board, a hand containing the ace of that suit but nothing else is an excellent bluff, because it removes many of the opponent’s nut hands, the ones that would never fold (Lecture 7, [54:46]). A defence that ignores card removal is exploitable even if its overall frequency is right.

Regret and regret matching

The question here is how a computer can find an equilibrium without solving the indifference equations by hand, since a real poker game has billions of them. The answer is to play the game against itself many times, each time shifting weight toward the actions one regrets not having played.

Consider one player with pure strategies . In each round he chooses a mixture . Then an adversary, who may be arbitrarily hostile, reveals the payoff of each pure strategy, and the player earns .

Definition 7.3 (Regret and regret matching).

The cumulative regret of strategy after rounds is how much more the player would have earned by playing every time:

Write . Regret matching chooses the next mixture in proportion to positive regret,

and plays any fixed mixture (we use the uniform one) when no regret is positive.

Negative regret means the player’s actual choices did better than always playing , so gets no weight. A strategy with large positive regret is one that would have paid well; it gets weight in proportion.

Example 7.2 (Regret matching against an adversary).

The lecture’s example has and, each round, one strategy pays 1 and the other pays 0 (Lecture 7, [20:15]). The table applies round by round.

mixture payoffs earnedregrets after
1
2
3
4
5

In round 1 there are no regrets yet and the lecture simply starts with . In round 4 the regret of falls below zero, so round 5 puts all weight on . The adversary can always pay off whichever strategy the player weighted less, but the next theorem says the player’s regret still grows only like .

Theorem 7.2 (Regret matching has vanishing average regret).

Suppose every instantaneous regret satisfies . Under regret matching, for every ,

Why does a no-regret rule find equilibria? Let both players run regret matching against each other. Player uses the payoffs , player uses , and we keep the average strategies and .

Theorem 7.3 (Self-play average strategies approach equilibrium).

If both players’ average regrets are at most after rounds, then is a -equilibrium. With regret matching, .

Only the average strategy carries this guarantee. The current strategy can keep cycling, as the next example shows.

Example 7.3 (Self-play on the Rose and Colin game).

In units of $25, Rose’s two strategies are “bet spades only” and “bet every card”, and Colin’s are “call” and “fold”. Rose’s payoff matrix (rows Rose, columns call then fold) is

For example, “bet every card” against “call” wins $150 a quarter of the time and loses $150 otherwise, a loss of $75, or units. The equilibrium mixes “bet every card” with probability (that is, Rose bluffs of her non-spades), Colin calls with probability , and the value is unit, the loss of $12.50 found above.

Start both players at one half and update both regrets after each round with the exact expected payoffs:

Rose P(bet all)Colin P(call)Rose regrets afterColin regrets after
1
2
3
4

Once Rose stops bluffing, Colin’s regret for folding climbs by one unit a round, and from round 7 he starts folding sometimes; Rose’s bluffs then become profitable again, and so on. Carrying the same rule on, the current strategies keep swinging between extremes, but the averages settle down: after , and rounds the average bluff share is , and , the average call frequency is , and , and the unhalved equilibrium gap is , and units. The gap shrinks by about per factor of ten in , consistent with the rate of Theorem 7.2. (These long-run numbers come from iterating the same exact update rule in a few lines of code; the first rows above can be checked by hand.)

Counterfactual regret minimization

The question here is how to apply regret matching to poker, where a pure strategy is a choice at every one of billions of decision points and the number of pure strategies is astronomically large. The answer is to run a separate small regret matcher at each decision point, with payoffs that are weighted as if the player had tried to reach that point.

A history is the sequence of everything that has happened: cards dealt and actions taken. An information set of player is the set of histories that player cannot tell apart: same own cards, same public cards, same betting, different opponent cards. A behaviour strategy is a probability distribution over the actions at each information set. Write for the probability of reaching , and split it as , the product of player ‘s own action probabilities times everything else (the opponent’s actions and chance).

Definition 7.4 (Counterfactual value and counterfactual regret).

The counterfactual value of information set for player is

where runs over terminal histories below and is the probability of going from to . The regret of action at in round is , where plays at and is otherwise unchanged. CFR accumulates and sets by regret matching at every information set.

The word counterfactual refers to the weight in ; each history is weighted by how likely chance and the opponent are to lead there, but player ‘s own probability of steering there is replaced by 1. The value is what would expect at if he had played to reach it (Lecture 7, [30:27]). Without that, a decision point the current strategy rarely visits would get almost no regret signal and could never improve.

The final strategy is the average strategy, weighted by the player’s own reach probability, .

Theorem 7.4 (CFR converges to equilibrium).

(Zinkevich, Johanson, Bowling and Piccione, 2007.) In a two-player zero-sum game with perfect recall, a player’s overall regret is at most the sum of the positive counterfactual regrets over his information sets. With regret matching at each information set, the average profile after iterations is a -equilibrium with , where is the number of information sets, the largest number of actions at one of them, and the range of payoffs.

The proof is a careful induction over the tree, and we omit it. The important consequence is that the bound grows only linearly in the number of information sets, and the work per iteration is one pass through the tree. The loop below is the one our Kuhn poker solver uses (file rust/crates/poker-cli/src/kuhn.rs).

CFR, one iteration = one tree walk for every deal (chance outcome)
 
R[I][a] = 0 and S[I][a] = 0 for every information set I and action a
 
strategy(I):
    p[a] = max(R[I][a], 0) for each action a
    if sum(p) > 0: return p / sum(p)
    else:          return uniform over the actions
 
walk(h, reach):                 # reach[i] = player i's own reach probability
    if h is terminal: return payoff of h to player 1
    i = player to act at h;  I = information set of player i at h
    s = strategy(I)
    for each action a:
        r = copy(reach);  r[i] = r[i] * s[a]
        u[a] = walk(h + a, r)
    node = sum over a of s[a] * u[a]
    sign = +1 if i is player 1 else -1        # payoff to the player at I
    for each action a:
        R[I][a] += reach[other(i)] * sign * (u[a] - node)
        S[I][a] += reach[i] * s[a]
    return node
 
repeat T times:
    for each deal d:            # unequal deal odds: multiply reach by them
        walk(root of d, reach = [1, 1])
 
output average strategy: S[I][a] / (sum over b of S[I][b])

Two features matter for poker scale. First, the payoffs fed to regret matching need only be unbiased estimates: one can deal a random hand, walk only that part of the tree, and still converge, because sampled regrets average out to the true ones (Monte Carlo CFR). Second, the sampling can be weighted. Chen’s example is a turn card whose part of the tree is already well understood: one can visit it a tenth as often and count its results ten times, spending the computation where the regrets are still large (Lecture 7, [30:27]).

Example 7.4 (How big is heads-up limit hold'em?).

The lecture counts the river nodes, which dominate the tree (Lecture 7, [34:30]-[36:33]).

  • Betting sequences per round. With a cap of bets, the sequences that continue to the next street are check-check plus two ways (bet first or check then bet) to end with bets in for each , so . With that is 9 per round, for pre-flop, flop and turn.
  • Flops up to suit symmetry. One suit: . Two suits: . Three suits: ranks may repeat, so . Total 1755.
  • Turn and river cards: .

This gives betting-and-board sequences reaching the river. The slide multiplies by holdings per player (it prints 2126; the count of unordered two-card holdings is 1081, which halves the total without changing the order of magnitude) for about river situations. Visiting each about a thousand times is a large but finite job, and the strategy alone needs terabytes of storage.

Worked example: Kuhn poker

The question here is what CFR converges to in a game small enough to solve completely by hand. The answer is a one-parameter family of equilibria with value for the first player, which our CFR implementation reaches to within antes per hand.

Rules. Kuhn poker (H. W. Kuhn, 1950) uses a three-card deck, J < Q < K. Figure 7.2 draws the betting tree. Each player antes 1 chip and receives one card; the third card is unseen. Player 1 (P1) may check or bet 1. After a check, P2 may check (showdown for the antes) or bet 1, and then P1 folds or calls. After a bet, P2 folds or calls. Payoffs are the chips won from the opponent: at a showdown with no bet, after a bet and call, and for whoever folds.

P1 first to act P2 after check P2 facing bet P1 check, then bet showdown: 1 P1 folds: -1 showdown: 2 P2 folds: +1 showdown: 2 check bet check bet fold call fold call
Figure 7.2. The Kuhn poker betting tree after the deal. Leaves show the chips that change hands; at a showdown the higher card wins them. Each player has three cards times two decision points, so six information sets each

Step 1: remove the obvious moves. With the K a player always wins a showdown, so P1 calls a bet with it and P2 calls and bets with it. With the J a player always loses a showdown, so P1 and P2 both fold it to a bet. With the Q after a check, P2 should check: a bet is called only by the K and folds out only the J, which would have lost the showdown anyway. Finally P1 never bets the Q. Against those P2 moves, a bet with the Q is called by the K and folds the J, earning . Checking the Q earns at least , where is how often P2 bets his J after a check (fold to a bet: ; call: ).

Step 2: name what is left. Five numbers remain. P1 bets the J with probability , bets the K with probability , and calls with the Q after checking and facing a bet with probability . P2 calls a bet with the Q with probability and bets the J after a check with probability .

Remark 7.1 (A local symbol).

In this section is Kuhn’s bluffing parameter, as in the literature. It is not the break-even fold frequency , which the course notation elsewhere also calls .

Step 3: indifference conditions. A mixed action is only played when the player is indifferent between its options. Each condition is a small pot-odds calculation; in each, the opponent holds each of the other two cards with probability before the action.

  1. P2 with the Q facing a bet sees a J (bet with probability ) or a K (bet with probability ). Calling wins 2 against the J and loses 2 against the K; folding loses 1 either way. Indifference: , so . Since , .
  2. P1 with the J. Checking loses 1 for sure (P2’s K bets and P1 folds; P2’s Q checks and wins the showdown). Bluffing loses 2 to the K and, against the Q, wins 1 if P2 folds and loses 2 if he calls: . Indifference: .
  3. P1 with the K. Betting wins 1 from the J (it folds) and on average from the Q: total . Checking wins 1 from the Q (it checks behind) and on average from the J (it bluffs with probability and P1 calls): total . Indifference: .
  4. P2 with the J after a check sees P1’s checked Q (always) or checked K (probability ). Checking loses 1 to both. Betting wins 1 when the Q folds, loses 2 when the Q calls and loses 2 to the K. Indifference: , so .
  5. P1 with the Q facing a bet after checking sees P2’s K (always bets) or J (bets with probability ). Calling: against the K, against the J; folding: . Indifference: , again , consistent with condition 3.
Proposition 7.2 (The Kuhn poker equilibria).

For each the following is a Nash equilibrium, and every equilibrium has this form.

cardP1 openingP1 facing a bet after checkingP2 after a checkP2 facing a bet
Jbet foldbet fold
Qcheckcall checkcall
Kbet callbetcall

The value of the game is chip per hand for P1.

Step 4: what CFR does. Our solver runs the loop above on the 12 information sets and measures the exploitability of the average strategy exactly, by enumerating each player’s 64 pure strategies (a best response can always be taken pure). One detail of the implementation: within an iteration the six deals are walked one after another and the regrets are updated after each deal, so later deals in an iteration already see the updated strategy. This is why the first point of the curve is not the exploitability of the uniform strategy.

$ rust/target/release/poker plot kuhn-cfr-convergence --out kuhn.svg
wrote kuhn.svg (0.0s)
$ grep -o 'after[^<]*' kuhn.svg
after 100000 iterations: 6.33e-4
Exploitability of the CFR average strategy on Kuhn poker against the number of iterations, both on log scales, with a dashed reference line falling like one over the square root of the iteration count
Figure 7.3. Exploitability of the CFR average strategy on Kuhn poker against the number of iterations, both on log scales, with a dashed reference line falling like one over the square root of the iteration count

Figure 7.3 starts at about antes per hand after one iteration, falls to about at 10 iterations, at 100, at 1000 and at 10,000, and ends at after 100,000 iterations. On the log-log axes the curve wiggles around a straight line of slope close to , slightly steeper than the dashed reference: every factor of 100 in work buys roughly a factor of 10 in accuracy, as Theorem 7.4 promises. Reading out the average strategy after 100,000 iterations of the same loop shows which member of the family it found: P1 bets the J with probability and the K with , and calls with the Q after checking with probability ; P2 bluffs the J of the time and calls with the Q of the time; and the value is against . CFR has no preference among the equilibria: the it lands on is an accident of the starting point and the order of the deals.

CFR+ and other refinements

The question here is what Cepheus changed in the basic algorithm. The answer is a one-line change to the regret update plus better bookkeeping, which together made the computation much faster in practice.

Floored regrets. In vanilla CFR an action that was terrible early on, such as folding aces pre-flop, piles up a huge negative regret. If later it becomes right in some spot, it takes many iterations for the regret to climb back above zero. CFR+ (Tammelin, 2014) stores instead of : after each update, . An action that becomes good is then picked up immediately (Lecture 7, [32:29]).

Chen illustrates why early strategies are so poor. If CFR starts from a random opponent, the best reply is to bet and raise with everything, since a random player folds often and the pot only grows. Both players’ strategies then have to be walked back from that extreme as they co-evolve (Lecture 7, [32:29]). Flooring keeps the walk-back short.

Other changes in CFR+:

  • Alternating updates: update one player’s regrets per pass, then the other’s, so each always responds to the opponent’s newest strategy.
  • Weighted averaging: give iteration weight proportional to in the average strategy, so the poor early strategies fade out.
  • Exhaustive passes: walk the whole tree each iteration rather than sampling, which the floor makes worthwhile (the slides note this choice).
  • Engineering: symmetries of suits, splitting the tree into about a hundred subgames that fit in memory, compressed storage, and cache-friendly river updates (Lecture 7, [38:35]).

Key point

CFR and CFR+ never solve an equation. They only add numbers (regrets) and normalise them, millions of times, at every information set. The equilibrium appears as the average of a long self-play history, which is why the method scales to games with information sets.

Common trap: reading off the last iterate

The convergence guarantee in Theorem 7.3 and Theorem 7.4 is for the average strategy. In vanilla CFR the current strategy can cycle forever, as in the Rose and Colin example. CFR+ has the empirical property that its current strategy is often close to equilibrium too, but a solver that reports the current strategy of plain CFR or regret matching can be far from GTO.

Worked example: a best response to a fixed calling range

The question here is what “exploiting a strategy” looks like with real cards. The answer is a best-response calculation: fix one player’s strategy and choose, hand by hand, the action with the higher expected value.

Heads-up, effective stacks of 10 big blinds, no antes. The small blind (SB) posts 0.5 and either folds or moves all-in. The big blind (BB) uses a fixed calling range,

22+, A2+, KQ, KJ, KT, QJ, QT, JT

(every pair, every ace, and every two-broadway hand; in the PokerStove notation of the slides this is written 22+, A2+, JT+, but our tool reads JT+ as JT only, so we list the hands). That is of the 1326 starting hands, percent.

We measure results in big blinds from the start of the hand, so folding the SB is worth . If the SB jams, the BB folds with probability and the SB wins the big blind (); otherwise the pot is and the SB’s result is , where is the SB hand’s equity against the calling range:

$ poker equity random "22+,A2+,KQ,KJ,KT,QJ,QT,JT" --seed 1
hand/range                 equity %    win %   tie %
-------------------------  --------  -------  ------
random                      38.2083  36.9934  1.2149
22+,A2+,KQ,KJ,KT,QJ,QT,JT   61.7917  60.5769  1.2149
mode: monte-carlo   samples: 2000000
$ poker equity 72o "22+,A2+,KQ,KJ,KT,QJ,QT,JT" --seed 1
hand/range                 equity %    win %   tie %
-------------------------  --------  -------  ------
72o                         28.6718  28.2174  0.4544
22+,A2+,KQ,KJ,KT,QJ,QT,JT   71.3282  70.8738  0.4544
mode: monte-carlo   samples: 2000000
$ poker equity 32o "22+,A2+,KQ,KJ,KT,QJ,QT,JT" --seed 1
32o                         28.7128  28.2085  0.5043
22+,A2+,KQ,KJ,KT,QJ,QT,JT   71.2873  70.7829  0.5043
$ poker equity 62o "22+,A2+,KQ,KJ,KT,QJ,QT,JT" --seed 1
62o                         29.4512  28.9805  0.4707
22+,A2+,KQ,KJ,KT,QJ,QT,JT   70.5489  70.0781  0.4707

(poker is rust/target/release/poker; the last two outputs omit the repeated header and footer lines. Each run is Monte Carlo with 2,000,000 samples and seed 1.)

Jamming every hand. Averaged over all SB hands, and , so by , bb. Jamming blind beats folding everything () by more than half a big blind per hand.

Hand by hand. For an SB hand made of two different ranks from 2 to 9, card removal leaves of the remaining BB hands in the calling range, . Setting equal to gives the break-even equity . So:

  • 62o, with : , better than folding by bb;
  • 72o, with : , worse than folding by bb;
  • 32o, with : , also a fold.

Of the eleven weak offsuit hands we checked (32o, 42o, 52o, 62o, 72o, 82o, 92o, 43o, 63o, 73o, 83o), only 72o and 32o fall below . The SB’s nemesis against this calling range is “jam everything except a few of the very worst hands”. The margins for 72o and 32o are six to seven Monte Carlo standard errors of the equity, so the conclusion is not noise.

This calculation is exactly one half of an exploitability computation. To finish it one would compute the BB’s best response to the SB’s strategy, and compare both with the equilibrium of the jam-or-fold game, as Module 5 does for tournament push/fold charts. A calling range that is too tight lets the SB jam almost any two cards profitably; that is what being exploitable means in practice.

Beyond heads-up limit: other games and the limits of solving

The question here is whether the Cepheus approach carries over to the games people actually play. Chen’s answer in 2015 was: to other limit games, yes, with more computer time; to no-limit and multiplayer games, only with new ideas.

Other limit games. Limit Omaha hi-lo has the same betting tree as limit hold’em, but each player holds four cards: river holdings instead of , a factor of 165. The slide gets 82.5 by dividing by the ordered count 2162 used above; either way it is two orders of magnitude (Lecture 7, [40:36]). Razz has only 13 distinct card values, but four up-cards per player and one more betting round: river situations, about 374 times the hold’em count. Both are within reach of a large computing budget, especially with bucketing: forcing similar hands to share a strategy, which shrinks the game to a subgame on a strategy subspace , . Bucketing works as well as the buckets are chosen; putting aces with seven-five suited ruins it (Lecture 7, [42:36]).

No-limit and pot-limit. A bet can be any size, and every bet size needs a reply, and every reply needs replies of its own. Programs of the time (the lecture mentions a commercial one with three sizes) restrict bets to a short menu such as half pot, pot and all-in (Lecture 7, [44:36]). Two problems follow. An opponent can bet a size off the menu, and the program must map it to a nearby size, which an expert can exploit. And making the menu fine (one percent of the pot, two percent, …) creates many nearly equivalent actions, which slows regret matching because it must separate options of almost equal value (Lecture 7, [46:39]). After this lecture, programs that combined CFR with re-solving subgames during play (DeepStack and Libratus, 2017) beat professional players at heads-up no-limit, but neither is an exact solution.

Three or more players. CFR can be run in multiplayer games, and Risk and Szafron used it to build programs that finished first and second in the annual three-player limit hold’em competition. But two guarantees are lost. CFR no longer provably converges to a Nash equilibrium. And even an exact equilibrium guarantees nothing: there can be many equilibria, and two opponents can coordinate against a third (Lecture 7, [48:42]). Chen’s simplest example is a three-player odd-or-even game in which the odd one out wins: if two players agree that one always shows one finger and the other always two, the third can never be the odd one out.

What breaks

The guarantees of this module rest on assumptions that real poker often breaks. Two players and zero sum: with three or more players, or with a rake, the minimax theorem fails and an equilibrium is no longer a safe strategy. An exact game model: abstractions (bucketed hands, a menu of bet sizes) are solved instead of the real game, and the solution can be exploitable in the real game by much more than its exploitability in the abstract one. Linear utility: tournament chips are not money (Module 5), and a player’s utility for money may be concave, which the lecture’s question session flags as an open topic (Lecture 7, [56:50]). Enough computation: the error falls only like , so each extra digit of accuracy costs a hundred times more work.

Why it matters

Game theory gives poker a precise notion of a correct strategy and a precise measure, exploitability, of how wrong any strategy is. Regret minimization turns that definition into a procedure that a computer can run on games far beyond hand calculation. For a human player the payoff is less a strategy to memorise than a set of anchors: indifference, the minimum defence frequency, the bluff-to-value ratio, and the habit of asking how an opponent’s nemesis would respond.

From the lecture

  • The milestone and its price. Chen describes Cepheus as the first real poker game to be solved, while noting that the Alberta group had already passed one hundredth of a big bet a few years earlier; the last factor was mostly computing time, about 900 CPU-years, and he jokes that with that much hardware he would solve a few problems too (Lecture 7, [04:01]).
  • Safety, not greed. Using rock-paper-scissors he stresses that the equilibrium only guarantees not losing; against someone who never throws paper, throwing rock every time is better, the “Aerosmith strategy” (Lecture 7, [08:05]).
  • Effect on real games. Asked whether the solution would change heads-up limit games, he expects little effect: strong players had already moved close to optimal play from earlier computer work, and knowing a strategy is not the same as having learned it (Lecture 7, [50:43]).
  • Exploiting without being exploited. On how to profit from an opponent who drifts from optimal play, he mentions work at Carnegie Mellon on risking only part of what the opponent has already given away, and calls it a much harder, dynamic problem than finding the equilibrium (Lecture 7, [62:55]). He also explains why trading firms like poker: incomplete information and thinking about what the counterparty knows (Lecture 7, [58:51]).

Results at a glance

The numbered results of this module, in order.

Further reading

Homework

The problems for this module are in Homework 7: