Lazy-CFR: fast and near-optimal regret minimization for extensive games with imperfect information

Yichi Zhou, Tongzheng Ren, Jialian Li, Dong Yan, Jun ZhuICLR 2020

Introduction: The Bottleneck of Vanilla CFR

In the realm of artificial intelligence, "Extensive Games with Imperfect Information" (TEGIs) represent complex, sequential decision-making scenarios where players lack complete knowledge of the state—classic examples include negotiations, cybersecurity, and poker. The gold standard algorithm for solving these games is Counterfactual Regret Minimization (CFR).

However, vanilla CFR has a massive computational Achilles' heel: in every single iteration, it must traverse the entire game tree. For massive games with billions of possible states, this exhaustive traversal is computationally grueling. While existing variants like Monte-Carlo CFR (which samples paths) or Pruning-based CFR (which skips "bad" branches) attempt to mitigate this, they often lack strong theoretical guarantees or can fail in worst-case scenarios.

To address this, researchers have introduced Lazy-CFR, a novel algorithm designed to skip unnecessary computational work without losing the mathematical "near-optimality" of the original CFR algorithm.

The Lazy-CFR Methodology

The core innovation of Lazy-CFR is its "wait and see" approach to strategy updates. Instead of updating the strategy at every "information set" (a state in the game) during every round, the algorithm employs a lazy update strategy based on three key principles:

  1. Segmentation: The time horizon is divided into segments. The strategy for a specific part of the game tree is kept constant during a segment and is only updated at the beginning of the next one.
  2. The Threshold Rule: A segment ends for a specific node only when the sum of its "reach probabilities" (the likelihood of players reaching that state) exceeds a predefined constant, $B$. Intuitively, if a part of the game is rarely visited, there is no need to waste computational resources constantly updating its strategy.
  3. Efficient Implementation: To avoid the overhead of checking every node to see if it meets the threshold, the authors developed a recursive update rule. They use specialized data structures (such as $\alpha$, $\beta$, and $\hat{\alpha}$) to store cumulative rewards and reach probabilities. This allows the algorithm to perform updates via Depth First Search (DFS) only on the "active" parts of the tree.
Visualization of lazy updates across the game tree at different time steps.

Key Theoretical Insights

  • Regret is "Lazy-Friendly": The authors prove that the "regret" (a measure of how much the AI wishes it had played differently) in Lazy-CFR is almost identical to vanilla CFR. Mathematically, the regret only grows by a factor of $O(\sqrt{D})$, where $D$ is the depth of the game tree.
  • The Power of Sparsity: In large games, most states have very low reach probabilities in any given round. Lazy-CFR exploits this sparsity by effectively "sleeping" on those nodes until enough information has gathered to make an update worthwhile.
  • Theoretical Speedup: Under certain mild assumptions, Lazy-CFR is theoretically $O(\sqrt{|I|}/D)$ times faster than vanilla CFR to reach the same level of accuracy (where $|I|$ is the number of information sets).

Experimental Results

The researchers evaluated Lazy-CFR on standard poker benchmarks, including Leduc Hold’em (a simplified poker game with a 6-card or 8-card deck) and Heads-up Flop Hold’em (FHP), a much larger and more complex version of poker with roughly $10^9$ game states.

Exploitability vs. time and nodes touched for Leduc and FHP poker variants.

In the large-scale FHP experiments, Lazy-CFR+ (a variant applying lazy updates to the popular CFR+ algorithm) significantly outperformed standard CFR+ and Monte-Carlo variants. The algorithm achieved lower "exploitability"—meaning it converged closer to an unbeatable Nash Equilibrium—while touching far fewer nodes in the game tree and requiring significantly less time. Furthermore, the authors provided a lower bound for regret in these games and showed that Lazy-CFR’s upper bound is very close to it, confirming that the "laziness" does not sacrifice accuracy.

Limitations and Future Work

The primary drawback of Lazy-CFR is its space complexity. To keep track of the lazy updates, the algorithm needs to store data structures on every history (node) of the game tree, rather than just every information set.

For a massive game like Heads-up Flop Hold’em, the authors estimate Lazy-CFR would require about 10 TB of storage, compared to just 10 GB for vanilla CFR. While 10 TB is manageable for modern industrial servers, it is a significant trade-off for the massive gain in speed. Future work will likely focus on reducing this memory footprint, perhaps by designing better segmentation rules or more efficient data structures that bypass the need for per-history storage.

Summary updated

BibTeX
@inproceedings{zhou2020lazy,
  author = {Yichi Zhou and Tongzheng Ren and Jialian Li and Dong Yan and Jun Zhu},
  title = {{Lazy-CFR: fast and near-optimal regret minimization for extensive games with imperfect information}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=mQi-QmBWsy},
}
Figure