Cepheus and Poker AI


Cepheus and Poker AI

Simon
Today we’re unpacking a headline that sounds almost too good to be true: the University of Alberta’s Cepheus program supposedly solved poker. The key is to be precise about what it solved. Cepheus tackled heads-up limit hold’em, and it found a strategy extremely close to game-theoretic optimal play—not a perfect solution to every form of poker.

Hope
And “close” is doing important work there. The lecture describes the program’s exploitability as less than one-thousandth of a big blind per hand. In other words, an opponent who knew the strategy and chose the best possible response could still gain a tiny amount on average, but not quite zero. Reaching that level took roughly 900 CPU-years of computation, so it was a major milestone even though it wasn’t mathematically exact.

Simon
Let’s define the target. A Nash equilibrium is a set of strategies where no player can improve their result by changing strategy alone, while the other players keep theirs. In a two-player, zero-sum game like heads-up poker, an equilibrium strategy is also called game-theory optimal, or GTO. It’s a robust way to play: you can’t be exploited for more than the game’s equilibrium value.

Hope
But robust doesn’t mean it always earns the most against a particular opponent. Rock, paper, scissors is a simple example: choosing each option one-third of the time is the equilibrium strategy. If you discover that someone plays rock half the time and scissors half the time, though, you should respond with paper. You can earn more by exploiting their predictable play, but deviating from equilibrium can also make you vulnerable.

Simon
That distinction matters in poker. GTO play aims to stop an opponent from taking advantage of you. If your opponent makes mistakes, a strategy designed to exploit those mistakes might earn more—but it may give the opponent a way to exploit you in return. Cepheus’s achievement was finding a near-equilibrium strategy, not a magical strategy that earns the most against every possible player.

Hope
The lecture illustrates equilibrium with a tiny betting game. Rose and Colin each put $50 into a pot, so there’s $100 in the middle. Rose sees a card: a spade wins at showdown, and a non-spade loses. She can check or bet $100; if she bets, Colin can call or fold. Rose should bet with her winning spade, and she may also bluff with some losing hands.

Simon
Now consider Colin’s decision. If he calls and Rose is bluffing, he can win the existing $100; if she has the winning card, he loses the $100 call. That makes him indifferent when Rose bluffs at the right rate, and in the example that means Rose’s bluffs should be one for every two value bets. Colin, in turn, should call half the time. If he calls more often, the bluffs lose their appeal; if he calls less often, they become too profitable.

Hope
That’s the balancing act behind equilibrium strategies: each player’s mix keeps the other from having an easy adjustment. The particular frequencies depend on the game and the payoffs, but the central idea is broader than this toy example. A good strategy combines strong hands and bluffs in proportions that make the opponent’s response difficult to improve.

Simon
So how do you find such a strategy in a huge game? Cepheus’s approach builds on regret minimization. Imagine that at each step you choose among a few options. After seeing what each option would have earned, you can ask: how much better would I have done if I’d chosen this particular option every time instead of following my actual choices?

Hope
That difference is regret. Positive regret means, in hindsight, an alternative would have done better; negative regret means your actual choices did better than that alternative. Regret matching uses the positive regrets to guide future choices: options with more positive regret get more weight. If no option has positive regret, the method can choose among them without favoring one for that reason.

Simon
The remarkable result is that average regret can shrink as the number of iterations grows—roughly at a rate proportional to one over the square root of the number of steps in the simple bounds discussed in the lecture. When both players use this kind of process in a two-player, zero-sum game, their average strategies approach an equilibrium. The important object is the average of the strategies played along the way, not necessarily the very last strategy in the sequence.

Hope
Poker needs a more tailored version because its decision tree is enormous. Counterfactual regret minimization, or CFR, calculates regret at decision points by asking what would have happened if the player had taken a particular action there, under the relevant assumptions about reaching that point. Instead of needing to enumerate every possible full strategy and calculate everything exactly, the algorithm can update regrets as it works through hands and decisions.

Simon
That makes sampling useful, too. A run can follow a sampled hand or path through the game and use the resulting information to update the estimates. The lecture also describes weighting different parts of the game differently, so computation can focus more on parts where the current strategy needs refinement. These techniques make the problem more manageable, but they don’t make the game small.

Hope
Cepheus used CFR+, an improvement on the original method. The basic idea is to keep cumulative regrets from dropping below zero, rather than allowing a strategy to accumulate a very large negative regret. That can help the process recover when an action that looked bad earlier becomes useful as the other player’s strategy changes.

Simon
The scale is striking. To estimate the size of the limit hold’em game, the lecture considers betting sequences, board cards, and possible hand types. With a four-bet cap, there are nine betting sequences that can carry play through a round, including checking through and the different ways bets can be made and called. Across pre-flop, flop, and turn, then accounting for the possible boards and river hand types, the resulting game tree is enormous.

Hope
Symmetry helps. For example, many situations that differ only by swapping suits are strategically equivalent, so the program doesn’t need to treat each one as entirely new. Even after using symmetries and other shortcuts, storing and updating the strategy can require terabytes of memory. The researchers broke the problem into roughly a hundred subgames rather than trying to keep one complete tree in memory at once.

Simon
That also explains why the result took so much computing. The lecture describes the river alone as involving trillions of hand-and-board types under its counting assumptions. The researchers combined careful engineering, decomposing the game, and years of computation to get exploitability down to that tiny fraction of a big blind.

Hope
Could the same approach solve other poker variants? Omaha eight-or-better has a similar overall structure to hold’em, but players receive four hole cards instead of two. That makes the river hand space much larger—estimated in the lecture at about 82.5 times the original size. Using that rough comparison, the computation could grow from around 900 CPU-years to tens of thousands of CPU-years, before accounting for further improvements or shortcuts.

Simon
Razz offers a different challenge. Suits are largely irrelevant to the hand rankings, which creates some simplification, but players have more exposed cards and the tree can still become huge. The lecture estimates a river-hand space hundreds of times larger than hold’em’s. Some situations may be uncommon or strategically unimportant, and hand types can be grouped into buckets, but those approximations have to be chosen carefully.

Hope
Bucketing means treating hands that are sufficiently similar as one category, or abstraction. For example, some hands may have similar strategic value and can be grouped to reduce the game’s size. But poor buckets can erase important distinctions. In Omaha, card removal matters: holding a particular card can make it less likely that an opponent has a strong hand. If an abstraction ignores that, the resulting strategy may be exploitable.

Simon
The lecture gives a concrete illustration. When the board shows a flush, holding the ace of that suit can make a powerful bluff, even if the rest of your hand isn’t strong. You block the opponent from holding the nut flush and other strong flushes, which changes how likely they are to call. A coarse model that overlooks those blockers can miss the logic of the right play.

Hope
Big-bet games, such as no-limit poker, bring another difficulty: players can choose from a continuum of bet sizes. A solver might simplify the game by allowing only a few sizes, such as a half-pot bet, a pot-sized bet, or an all-in bet. But then what should the strategy do when an opponent bets a quarter of the pot or one-point-one times the pot—sizes that weren’t included?

Simon
That’s an off-tree action: something the abstraction didn’t explicitly model. Even if the solver handles its listed bet sizes well, it needs a sensible response to sizes outside that set. Adding many tiny increments sounds like a fix, but it creates many nearly identical choices that can take a long time for regret minimization to distinguish. The simplified game may still be useful, but how closely it represents the real game is a serious question.

Hope
The lecture also warns that the two-player, zero-sum guarantees don’t carry over automatically to multiplayer games. Researchers used counterfactual regret methods to create competitive three-player agents, including programs that placed first and second in a three-player limit event. But there’s no general guarantee that the result is within a specified epsilon of a Nash equilibrium.

Simon
And multiplayer equilibrium can be conceptually tricky. There may be multiple equilibria, especially in tournaments where payouts aren’t a simple winner-takes-all prize. The lecture describes how players who coordinate can shut out a third player in a simple even-or-odd game. That illustrates why collusion and the choice of equilibrium matter; simply saying “play an equilibrium” doesn’t settle every multiplayer situation.

Hope
There’s a practical question, too: does a solver’s existence change how people play? The speaker’s view was that heads-up limit hold’em players were already playing close to optimal before Cepheus appeared, partly because related strategies and research had been available. A solution still has to be learned and used, so the announcement itself doesn’t automatically transform the game.

Simon
And the value of this work reaches beyond poker. Poker involves incomplete information, uncertain intentions, and decisions that depend on what a counterparty might be doing—features that also make it interesting to people working in trading. Studying how strategies perform, how to respond to an opponent, and how to balance risk can inform thinking in both fields.

Hope
But there are open questions beyond equilibrium play. If you notice that an opponent is playing badly, exploiting them might earn more, yet it can expose you to counter-exploitation. Detecting when their behavior has changed, judging how long that change will last, and deciding how far to depart from a robust strategy turn the problem into a dynamic one.

Simon
So the careful conclusion is that Cepheus did not solve poker in the everyday sense of solving every variant or producing a strategy that can never be beaten. It produced a near-game-theory-optimal strategy for heads-up limit hold’em, with extremely low exploitability, using regret-based algorithms and substantial computation. That is a landmark—and it also shows how much larger the unsolved questions become when we move to no-limit, other variants, or multiplayer games.

Ask anything
We've read this whole study set, so questions about it get the best answers.