TL;DR
Deep Counterfactual Regret Minimization (Deep CFR) is a way to find strong strategies in large games where players cannot see each other's cards. It keeps the regret-tracking logic of CFR but stores regrets in neural networks instead of tables, so it can run on the full game without first shrinking it with hand-made abstractions. In heads-up poker it approaches the strength of the best abstraction-based solvers and beats the previous neural method, NFSP.
Builds on: Counterfactual Regret Minimization, Feedforward Neural Network, Stochastic Gradient Descent · Leads to: later neural solvers for imperfect-information games that follow the same regret-network pattern
Why it mattered
Before this paper, the strongest poker programs were built in two steps. A designer grouped similar situations into buckets by hand or with clustering, solved the smaller game with tabular CFR, and mapped the answer back to the full game. The bucketing needed domain knowledge, and it could miss strategic details. The authors called out a chicken-and-egg problem: a good abstraction needs the equilibrium, but finding the equilibrium needs the abstraction.
Deep CFR showed that the bucketing step could be replaced by a learned function. The authors report that it is the first non-tabular variant of CFR to be successful in large games, and the method became a template for later work that trains a network on regrets or advantages collected from self-play. It also gave a clear recipe that others could reuse: sample games, store regret-like targets in a memory, and fit a network to that memory.
The problem
A two-player zero-sum imperfect-information game can be solved in principle by CFR, which iterates a regret-minimising learner at every information set and converges to a Nash equilibrium in its average strategy. In practice the game tree is too big. Flop hold'em, the game studied here, has more than nodes and more than information sets, and heads-up limit Texas hold'em has more than nodes. Tabular CFR needs one table entry per information set and action, so memory and time grow with the game. Monte Carlo variants reduce the work per iteration but still store a table.
Neural networks generalise across similar situations, which is why deep reinforcement learning works on large games. But the paper observes that most popular reinforcement-learning algorithms do not converge to equilibria in imperfect-information games, and the earlier neural method, Neural Fictitious Self-Play (NFSP), converges more slowly than CFR. The question is whether a network can approximate CFR itself without a table and without abstraction.
How it works
The method runs in pipeline order. Each stage passes a product to the next.
- Input: an information set. A player's view of the game is the cards it holds, the public cards, and the bets so far. This is the only thing the networks see. Check: two histories that look the same to the player map to the same input.
- Traverse the tree with external sampling. On each iteration, for each player in turn (the traverser), the algorithm walks down the game tree. At the traverser's own decisions it tries every action; at the opponent's and chance decisions it samples one action. Check: the traverser's full branching is kept, so its regret estimates have low variance.
- Turn the network's outputs into a strategy. At each traverser decision, a value network predicts an advantage for each action. Regret matching turns the positive advantages into probabilities. Tiny instance: if the network predicts advantages (2, minus 1) for Bet and Check, the positive parts are (2, 0), so the strategy is Bet with probability 1. If it predicts (3, 1), the strategy is (0.75, 0.25). Check: the probabilities always sum to 1.
- Record the samples. After the subtree is explored, the algorithm computes an advantage sample for each action and adds it to an advantage memory, tagged with the iteration number. It also records the opponent's strategy in a separate strategy memory. Memories have a fixed size and use reservoir sampling, a rule that keeps a uniform random subset of everything seen so far when the memory is full.
- Retrain from scratch. After the traversals of an iteration, a fresh value network is trained to predict the stored advantages with a weighted squared error. Training from scratch was better in the authors' ablation than fine-tuning the previous network.
- Output: an average-strategy network. The average of the strategies played over all iterations converges to equilibrium, not the last one. A separate policy network is trained on the strategy memory, weighted by iteration number, so that its output is that average. Check: the final policy is the one used to play, and it is the one whose error is measured.
flowchart LR A[Information set] --> B[External-sampling traversal] B --> C[Advantage memory with reservoir sampling] C --> D[Fresh value network trained each iteration] D --> E[Regret matching gives next strategy] E --> B B --> F[Strategy memory] F --> G[Average-strategy network]
The math
Let be the strategy at information set on iteration , and let be the instantaneous regret of action , the gain from playing instead of the current strategy. The cumulative regret is , and regret matching sets , where . This is the rule the tiny instance in step 3 applies. See Counterfactual Regret Minimization for the derivation.
Step 2 in symbols: the sampled regrets
External sampling gives an estimate of the advantage. The paper's Lemma 1 states that, averaged over the random sampling, this estimate equals the advantage of over the current strategy, divided by the probability that the opponent and chance reach . The sample is therefore unbiased up to that known factor, which is why the network is trained on it directly.
Step 3 in symbols: the advantage network
The value network is a feedforward network with parameters for player . It is initialised to output zero. Its outputs feed regret matching, so the strategy at is proportional to the positive part of .
Step 4 in symbols: the training losses
The advantage network minimises, over its memory of samples , the weighted squared error . The weight is the iteration of the sample, which is the linear weighting that makes older samples count less. The policy network minimises the same kind of loss on its strategy memory, with the target equal to the recorded strategy rather than an advantage.
Step 5 in symbols: the guarantee
The paper's Theorem 1 bounds the total regret after iterations by a term that shrinks with the number of traversals and a term that grows with the square root of the approximation error . Corollary 1 gives the average regret as , where is the number of information sets, the largest number of actions at one, and the range of payoffs. The bound holds with high probability when the memories are large enough. The practical reading is that if the networks fit their targets well, the average regret goes to zero.
Results
The main experiments use heads-up flop hold'em (FHP), a version of limit hold'em that ends after the second betting round with three community cards. The network for each player has seven layers and 98,948 parameters. Memories hold up to 40 million information sets per player. Results are reported in milli-big-blinds per game (mbb/g), a standard measure of win rate, where one mbb/g is a thousandth of a big blind won per hand on average. Lower exploitability is better.
- Against NFSP in FHP: Deep CFR reaches an exploitability of 37 mbb/g and NFSP reaches 47 mbb/g, and the authors report that Deep CFR is also more sample efficient. The authors also report that their NFSP reimplementation reaches a value lower than the original paper's on Leduc hold'em, so the comparison is against a strong version of the baseline.
- Against tabular abstractions in FHP: Deep CFR reaches a similar exploitability to a tabular solver on an abstraction with 3.6 million clusters, and converges with two to three orders of magnitude fewer samples than a lossless abstraction.
- Head-to-head in heads-up limit hold'em (HULH): Deep CFR beats NFSP by mbb/g. Against tabular solvers on abstractions with , and buckets, Deep CFR scores , and mbb/g. So it wins against the smallest abstraction, loses narrowly to the middle one, and loses by more to the largest.
- Ablations: fine-tuning one network across all iterations, instead of training from scratch each iteration, leaves the final exploitability about 50% higher. Reservoir sampling keeps improving after the memory fills, while a sliding window starts to get worse once it is full.
Limits. The method is shown on two-player zero-sum games. It loses to the largest abstraction it was compared with, so it does not yet match the best hand-built pipeline at full scale. The authors say that larger games will need better sampling and lower-variance payoffs, and they point to follow-up work on both. The comparisons are on poker only, and the training is expensive: flop hold'em uses 10,000 traversals per iteration, and heads-up limit hold'em trains each network for 32,000 SGD steps.
Reading guide
- Section 2, Notation and background. Read with Extensive-Form Game, Information Set and Nash Equilibrium open. Exploitability is defined here; it is the distance from equilibrium that the results use.
- Section 2.1, CFR. Needs Counterfactual Regret Minimization and No-Regret Learning for regret matching. The Nash convergence statement is the reason the average strategy matters.
- Section 2.2, Monte Carlo CFR. Needs Monte Carlo Method and Importance Sampling; external sampling is the variant used.
- Section 3, Related work. Read after the method. It compares to NFSP, to regression CFR and to first-order methods; the comparisons assume you know what a fictitious-play learner does.
- Section 4, Algorithm. Needs Feedforward Neural Network, Mean Squared Error, Stochastic Gradient Descent and Adam Optimizer. Reservoir sampling is defined in the text where it first appears. Algorithm 1 and Algorithm 2 are the two loops; read them against the pipeline above.
- Section 5, Setup. The architecture figure and the training numbers. Skim the rules in Appendix A.
- Section 6, Results. Tables and figures, each caption stated in plain terms before you read the numbers.
Check yourself
QuestionRecall: what does regret matching do with the advantages a network predicts?Show answer
It takes only the positive part of each action's predicted advantage, and plays each action with probability proportional to that positive part. If no action has a positive value, a fallback is needed; the paper plays the highest-regret action with probability 1.
QuestionA network predicts advantages (3, 1) for two actions. What probabilities does regret matching give?Show answer
The positive parts are 3 and 1, which sum to 4. The probabilities are and .
QuestionWhy does Deep CFR average strategies over all iterations and train a separate policy network, rather than playing the latest network?Show answer
The theory says that the average of the strategies played over time converges to equilibrium in a two-player zero-sum game, not the last strategy. The separate policy network is trained on the strategy memory, weighted by iteration, so that its output approximates that average and can be played directly.
QuestionIn the paper's head-to-head results, Deep CFR beats NFSP but loses to the largest abstraction. What does that tell you about the method's current standing?Show answer
It shows that the method is competitive with the best hand-built pipelines at the scale tested, and clearly better than the previous neural baseline, but not yet better than the largest abstraction. The gap is small (11 mbb/g with a standard error of 2), and the authors identify variance and sampling as the bottlenecks for bigger games.
Sources
- Brown, Lerer, Gross, Sandholm, "Deep Counterfactual Regret Minimization", 2018 (arXiv:1811.00164).
- Game theory, Wikipedia.
- Minimax theorem, Wikipedia.