---
title: Counterfactual Regret Minimization (CFR)
url: https://www.emergentmind.com/topics/counterfactual-regret-minimization-cfr
type: topic
---

# Counterfactual Regret Minimization (CFR)

Counterfactual Regret Minimization (CFR) is a foundational no-regret learning algorithm for computing approximate Nash equilibria in large extensive-form games with imperfect information. By decomposing global objective regret into local counterfactual regrets at each information set, CFR achieves convergence through repeated local regret minimization. Since its introduction, CFR has inspired an extensive body of theoretical and algorithmic research, including rigorous regret bounds, abstraction and scaling approaches, pruning and variance reduction techniques, algorithmic accelerations, and deep learning–based function approximation strategies.

## 1. Foundations and Algorithmic Structure

CFR operates on the sequence-form representation of an extensive-form game. At each information set $I$ for player $i$, the algorithm computes the counterfactual value $v_i(I, \sigma)$, representing the expected utility for player $i$, conditioned on reaching $I$ and acting according to the current strategy profile $\sigma$. The instantaneous counterfactual regret at iteration $t$ is
\[
r_i^t(I, a) = v_i(I, \sigma_{I\rightarrow a}^t) - v_i(I, \sigma^t)
\]
where $\sigma_{I\rightarrow a}^t$ is $\sigma^t$ with $i$ deterministically choosing $a$ at $I$.

Cumulative counterfactual regret is maintained as $R_i^T(I, a) = \sum_{t=1}^T r_i^t(I, a)$. The local strategy at $I$ is updated in the next iteration via regret matching:
\[
\sigma_i^{T+1}(I, a) = \frac{[R_i^T(I,a)]_+}{\sum_{a'\in A(I)} [R_i^T(I,a')]_+}
\]
where $[x]_+ = \max(x, 0)$. Averaging the strategies over $T$ iterations yields the sequence-form average strategy.

Classic convergence guarantees establish that, in two-player zero-sum games with perfect recall, average regret per time step decreases as $O(1/\sqrt{T})$ [1205.0622].

## 2. Theoretical Analysis: Perfect and Imperfect Recall

CFR's regret guarantees fundamentally rely on the perfect recall property: each player must remember their entire observed action and observation history. For perfect recall games, the average per-iteration regret for player $i$ after $T$ rounds is upper bounded by
\[
\frac{R_i^T}{T} \leq \frac{\Delta_i |\mathcal{I}_i| \sqrt{|A_i|}}{\sqrt{T}}
\]
where $\Delta_i$ is the utility range, $\mathcal{I}_i$ is the set of information sets, and $|A_i|$ the max action count per infoset [1205.0622].

Imperfect recall arises when the abstraction merges game states such that a player forgets previously observed information. The original regret bounds do not generally apply in this case. The well-formed and skew well-formed abstraction classes were introduced to analyze this regime. In well-formed games, utilities and chance probabilities are exactly proportional after refining back to the perfect recall game, and requisite isomorphism conditions on action histories hold. For skew well-formed games, proportionality is allowed up to an additive $\delta$.

The main result is:
\[
\text{Average Regret} \leq \frac{\Delta_i K \sqrt{|A_i|}}{\sqrt{T}} + \sum_{I\in\mathcal{I}_i} |\mathcal{P}(I)|\delta_I
\]
Here $K$ collects proportionality constants across refined information sets, and $\delta_I$ is the local skew [1205.0622]. Thus, with careful abstraction, even imperfect recall abstractions can give bounded regret in the original game, with a trade-off between memory (abstraction size) and additional regret.

## 3. Practical Implications: Abstraction, Memory Reduction, and Performance

CFR requires memory linear in the number of information set–action pairs, which becomes prohibitive in large real-world domains. Abstraction—merging histories/infosets according to behavioral similarity—offers compression, though with the risk of violating perfect recall.

Empirical case studies demonstrate the following:

| Domain                    | Abstraction      | Memory Saving | Regret Impact     |
|---------------------------|------------------|---------------|-------------------|
| Die-Roll Poker            | DRP-IR           | significant   | small (well-formed, similar regret)  |
| Phantom Tic-Tac-Toe       | merge some moves | >90% (best)   | modest increase   |
| Bluff (Liar’s Dice)       | past bids "forgotten" | substantial | regret increases with abstraction |

In DRP-IR, the abstraction is well-formed, so reducing memory incurs little extra regret. In Phantom Tic-Tac-Toe, some abstractions are not well-formed, and performance degrades in predictable ways with further information loss. For Bluff, the (skew) well-formed property quantifies the trade-off: as abstraction “forgets” more, regret rises but remains bounded until essential game structure is lost. These experiments confirm the predictive value of the theoretical criteria [1205.0622].

## 4. Extension to General-Sum and Multiplayer Settings

In two-player general-sum games and multiplayer games, convergence to Nash equilibrium is not guaranteed via external regret minimization. However, CFR eliminates iteratively strictly dominated strategies in such settings [1305.0034]. For two-player non–zero–sum games, worst-case performance is bounded: if regret per iteration $\epsilon$ and overall utility offset $\delta$ (with $|u_1 + u_2| \leq \delta$), the average profile is a $2(\epsilon+\delta)$–Nash equilibrium.

For multiplayer poker, modifications involve replacing the averaging procedure with the current strategy profile, yielding considerable savings in memory and computation [1305.0034].

## 5. Advanced CFR Techniques: Pruning, Discounting, and Acceleration

### Regret-Based Pruning

Regret-based pruning (RBP) algorithms, including Total RBP, reduce computation and space by "pruning" actions with persistently negative regret, which are provably not included in any best response [1609.03234]. Total RBP permanently removes memory for action branches outside all equilibrium supports:
- Criterion: For information set $I$, action $a$ is pruned after sufficient iterations $T$ if $T \cdot \mathrm{NBV}(I,a) \leq \sum_{t=1}^T v^{\sigma^t}(I)$, for near counterfactual best response NBV.
- Pruned branches can be "warmed" via NBV-based regret reset.

Space savings and convergence are significant, scaling with game size (up to 10× in large Leduc Hold'em), as best response supports are generally much smaller than the game tree.

### Discounted CFR and Variants

Early errors or dominated actions can pollute regret signals and slow learning. Discounted CFR (DCFR) introduces weights—multiplicative factors to discount earlier or negative regrets and output averaging:
\[
R^{T}(I,a) = \sum_{t=1}^{T} w_t r^t(I,a)
\]
Choice of parameters $(\alpha,\beta,\gamma)$ for positive/negative regrets and averaging allows for flexible variant design. Empirically, e.g., DCFR₍3/2,0,2₎ converges 2–3× faster than CFR+ in some no-limit poker domains; discounting improves learning especially in games with catastrophic errors [1809.04040].

## 6. Deep Learning–Based CFR and Modern Scalability

Neural and deep CFR techniques remove the need for domain expert–designed abstraction, enabling end-to-end learning in massive games:
- Deep CFR: Uses neural networks to approximate regret and average strategy over sampled game traversals, retraining from scratch each iteration [1811.00164].
- Double Neural CFR: Maintains two separate networks (regret sum network and average strategy network), improving sample efficiency and removing the need for large tabular storage [1812.10607].
- SD-CFR: Avoids a policy network; reconstructs the average strategy directly from stored value networks, reducing approximation error and outperforming Deep CFR in exploitability [1901.07621].
- D2CFR: Incorporates dueling neural networks to separately estimate state and action values, with MC-based rectification to stabilize early training and faster convergence [2105.12328].

These methods demonstrate that neural function approximation generalizes across similar infosets, supporting computations previously infeasible for tabular CFR, while maintaining theoretical links to the original regret decomposition.

## 7. Theoretical Unification, Extension to Unknown Games, and Future Directions

Recent research rigorously formalizes the connection between CFR and Online Mirror Descent (OMD) or Follow-the-Regularized-Leader (FTRL). In particular, regret matching is equivalent to FTRL/OMD over a tree-structured sequence-form, with prediction and discounting variants mapping to "optimistic" and "weighted" mirror descent, respectively. This equivalence facilitates new algorithms with explicit convergence guarantees and adaptive weighting schemes [2110.04961, 2404.13891].

For sequential unknown decision problems, model-free CFR-type algorithms with sublinear regret—$O(T^{3/4})$—can be constructed using on-path exploration, importance sampling, and partial feedback, making CFR applicable in environments where neither the full tree nor reward structure is explicitly available [2103.04539].

The field increasingly explores robust predictive and asynchronous variants [2503.12770], hierarchical skill abstractions [2305.17327], behavioral/perturbed refinements [1711.03441], and information-gain–driven extensions for learning in unknown or RL settings [2110.07892]. The future trajectory of CFR research integrates online convex optimization, variance reduction, hierarchical decomposition, deep function approximation, and exploration, targeting massively large imperfect-information games and unknown or adversarial environments.

---

In summary, Counterfactual Regret Minimization combines theoretically grounded regret decomposition with scalable, abstraction and function-approximation–based algorithms. Its scope now encompasses not only equilibrium computation in extensive-form games with perfect and imperfect recall, but also efficient abstractions, deep and transfer learning, variance reduction, and robust model-free learning in sequential decision-making under uncertainty.

Source: https://www.emergentmind.com/topics/counterfactual-regret-minimization-cfr