Leaf-Value Tables for Pruning Non-Zero-Sum Games

Nathan R. Sturtevant

Abstract

Traditional game-tree pruning algorithms, such as alpha-beta, are highly effective in zero-sum games where scores are linearly related. However, in non-zero-sum games, these linear classifiers become "leaky," failing to prune many branches because they do not account for the discrete nature of possible outcomes. This paper introduces Leaf-Value Tables (LVTs), which enumerate all possible game outcomes to create a precise pruning boundary. In complex games like Spades, LVTs can reduce search effort by up to two orders of magnitude, enabling deeper search and significantly stronger play.

Introduction

In classic two-player games like Chess, the game is "zero-sum": any gain for one player is an equivalent loss for the other. This relationship allows the alpha-beta algorithm to prune branches of the search tree efficiently using simple linear comparisons. However, many real-world scenarios and multi-player games are non-zero-sum.

In a 3-player game of Spades, for instance, players can all lose points simultaneously or all gain points. Because the total sum of scores is not constant, standard linear pruning techniques miss many opportunities to stop searching. The authors propose a method to prune these non-constant-sum trees optimally by understanding the exact space of possible scores.

The Challenge of Non-Zero-Sum Pruning

In zero-sum games, the "pruning zone" is defined by a simple straight line. In non-zero-sum games, the boundary of possible scores is often a jagged, complex shape defined by the specific rules of the game. Standard algorithms assume a continuous linear boundary, which often includes many "impossible" score combinations, leading to inefficient search.

Figure 1: Linear vs. Non-Linear Boundaries. The shaded region represents the linear assumption of possible scores, while the discrete dots (bound vectors) represent the actual possible outcomes stored in an LVT.

As shown in Figure 1, the Leaf-Value Table allows the algorithm to "see" the true shape of the outcome space. By storing an explicit enumeration of every possible outcome that can occur at the end of a game, the algorithm can prune branches that lead to score combinations that are physically impossible according to the game's rules.

Methods: Leaf-Value Tables and Optimal Pruning

The authors move beyond the standard $Max^n$ algorithm by introducing the LVT-based pruning rule.

  1. The Leaf-Value Table: For small games, the table is pre-computed; for larger ones, it is populated dynamically. It stores all valid score vectors $(s_1, s_2, ..., s_n)$.
  2. Optimal Pruning Rule: To prune a node, the algorithm checks the LVT. If there is no possible outcome in the table where every player can simultaneously improve upon their current guaranteed lower bounds, the branch is safely pruned.
  3. Monotonic Heuristics: The LVT can be dynamically filtered. For example, if a player has already taken 2 tricks, the LVT is restricted to outcomes where that player has at least 2 tricks, further tightening the pruning bounds.
Figure 4: Pruning in a 3-player game tree. Branch (e) is pruned because the bounds maintained at node (c) indicate that no outcome in that branch can satisfy the requirements of the players higher up the tree.

Experimental Results

The primary test-bed for this research was the card game Spades. The results demonstrate that knowing the exact possible outcomes is a game-changer for search efficiency:

  • Node Reduction: In 3-player Spades, using LVTs reduced the number of nodes expanded from 2.7 million to just 8,600—a 300-fold reduction in search effort.
  • Win Rates: In a tournament of 100 games, an agent using LVT-based speculative pruning won 62.3% of games against agents using the previous best linear-pruning techniques.
  • Search Depth: The efficiency gains allowed the LVT agent to search deeper within the same time constraints, leading to significantly higher average scores (263 vs 226 points).

Conclusion and Future Work

While LVTs provide a massive boost in efficiency, their size grows as $O(t^n)$, where $t$ is the number of outcomes and $n$ is the number of players. This makes them ideal for games with relatively small outcome spaces like trick-taking card games, but potentially prohibitive for games with continuous or massive score ranges. Future work involves applying these tables to other non-constant-sum domains, such as economic simulations or automated negotiation, where discrete outcome spaces can be identified.

Summary updated

Abstract

Algorithms for pruning game trees generally rely on a game being zero-sum, in the case of alpha-beta pruning, or constant-sum, in the case of multi-player pruning algorithms such as speculative pruning. While existing algorithms can prune non-zero-sum games, pruning is much less effective than in constant-sum games. We introduce the idea of leaf-value tables, which store an enumeration of the possible leaf values in a game tree. Using these tables we are can make perfect decisions about whether or not it is possible to prune a given node in a tree. Leaf-value tables also make it easier to incorporate monotonic heuristics for increased pruning. In the 3-player perfect-information variant of Spades we are able to reduce node expansions by two orders of magnitude over the previous best zero-sum and non-zero-sum pruning techniques.
BibTeX
@inproceedings{sturtevant2005leaf,
  author = {Nathan R. Sturtevant},
  title = {{Leaf-Value Tables for Pruning Non-Zero-Sum Games}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
}
Figure