Double Neural CFR
- Double Neural CFR is a neural generalization of the classic Counterfactual Regret Minimization, replacing tabular records with dual networks for efficient strategy learning.
- It utilizes recurrent architectures with attention and mini-batch MCCFR to manage massive state spaces while achieving convergence rates similar to traditional methods.
- Empirical evaluations show that the method attains near-optimal exploitability with dramatically lower memory and computational demands compared to tabular CFR and deep RL.
Double Neural Counterfactual Regret Minimization (Double Neural CFR) is a neural generalization of the Counterfactual Regret Minimization (CFR) framework for solving large-scale imperfect information extensive-form games. The central innovation is the replacement of tabular cumulative regret and strategy representations with two separate neural networks, enabling efficient learning and generalization over massive or continuous state spaces. By leveraging recurrent neural architectures with attention, robust sampling strategies, and mini-batch Monte Carlo variants of CFR (MCCFR), Double Neural CFR attains convergence rates and solution qualities that match or outperform classic tabular CFR, while requiring drastically reduced memory and computation (1812.10607).
1. Principles of Counterfactual Regret Minimization
CFR provides a principled iterative algorithm for computing Nash equilibria in multi-agent imperfect information extensive-form games. Key elements include:
- Information Sets and Strategies: Each player observes information sets , partitioning histories where that player acts. A strategy assigns distributions over legal actions at each .
- Reach Probabilities: Under joint strategy profile , the reach probability for a history is , with contributions factored into each player's portion and opponents' portions.
- Counterfactual Values: The counterfactual value of for player is the average utility received if 0 reaches 1 and the rest of the game is played according to 2; precise definition:
3
- Regret Calculation and Matching: After each iteration, instantaneous regrets 4 are computed for all actions 5. These are accumulated into 6. The (behavioral) strategy for the next iteration is given by regret matching:
7
- Averaged Strategies: The average strategy up to iteration 8 is the reach-weighted average of past strategies.
The standard CFR machinery is efficient but fundamentally constrained by the necessity of tabular representations, which scale poorly in games with vast numbers of information sets or actions.
2. Double Neural Representation Architecture
Double Neural CFR introduces a dual-network paradigm:
- Regret-Sum Network (RSN): Parameterized by 9, RSN encodes cumulative regret values 0 over the joint space of information sets and actions.
- Avg-Strategy Network (ASN): Parameterized by 1, ASN outputs cumulative strategy numerators 2, which are required for reach-weighted averaging.
Encoding Information Sets:
Each information set is represented as a variable-length sequence of private information, public observations, and actions. This sequence is processed by a recurrent neural network (e.g., LSTM or GRU), producing hidden states, which are then fed through an attention mechanism to produce a fixed-dimensional embedding 3. A final output head maps 4 to a 5-dimensional vector representing the regrets or average strategy numerators for all actions at that information set.
Network Fitting Process:
After each sample-based CFR iteration, two empirical memories 6 and 7 are assembled. These are used to perform regression updates: 8
9
Standard minibatch SGD (e.g., Adam) is used for this fitting procedure.
3. Stochastic Optimization and Mini-batch Variants
The neural networks are trained using data from mini-batch Monte Carlo Counterfactual Regret Minimization (MCCFR) and its positive variant MCCFR0:
- Robust Sampling: At decision nodes, 1 actions are sampled uniformly without replacement. Setting 2 matches outcome sampling; 3 recovers external sampling. The robust policy 4 yields importance weights for terminal histories, with favorable bias-variance trade-offs especially at intermediate 5.
- Mini-batch MCCFR: 6 independent trajectories are sampled per iteration. For an information set 7, the mini-batch counterfactual value estimate is:
8
- Mini-batch MCCFR9: The cumulative regret update is replaced by the positive-part version:
0
This allows efficient exploitation of variance-reduced updates and improved convergence.
4. End-to-End Algorithmic Workflow
The procedure follows three main stages per iteration:
- Strategy Extraction: At each information set, extract 1 by regret-matching on 2 from the RSN, following the formula from CFR.
- Sampling and Data Collection: Using the current policy, sample 3 robust trajectories to generate empirical memories:
- 4: ((information set, action), instantaneous sampled regret)
- 5: ((information set, action), 6)
- Network Training: Update RSN and ASN parameters using least-squares regression against cumulative targets, as described above.
Training employs minibatch optimizers, gradient clipping, and early stopping on MSE loss. Initialization of network weights can be random or performed by warm-starting from a tabular solution.
Pseudocode Summary (abbreviated):
6
5. Empirical Evaluation and Performance
Double Neural CFR has been evaluated in One-Card Poker and No-Limit Leduc Hold'em environments with state spaces exceeding 7 configurations. Key empirical findings include:
- Achieves exploitability 8 in 9–0 iterations, on par with classic tabular CFR/CFR1 but using only 2 network parameters, in contrast to 3–4 for dense tabular approaches.
- Dramatically outpaces deep RL-based fictitious self-play (NFSP), which requires around 5 iterations to