---
title: Game Generalized Policy Improvement (GGPI)
url: https://www.emergentmind.com/topics/game-generalized-policy-improvement-ggpi
type: topic
---

# Game Generalized Policy Improvement (GGPI)

Game Generalized Policy Improvement (GGPI) is a transfer method for zero-sum, complete-information, turn-based Markov games that combines successor features with a robust max–min decision rule. In the formulation introduced in "Successor Features for Transfer in Alternating Markov Games" [2507.22278], GGPI addresses alternating Markov games with linear rewards, stores policies and successor features learned on base tasks, and performs one-shot transfer to a new task by re-evaluating stored successor features under a new reward vector and selecting actions through a pessimistic minimax aggregation. The method is designed for settings in which tasks share dynamics and feature structure but differ in reward weights, and it is accompanied by an error bound expressed in terms of task similarity and approximation error [2507.22278].

## 1. Problem setting and conceptual motivation

GGPI is defined for a two-player, turn-based (alternating) Markov game with complete information. The state space is $S$, and at each state $s$ exactly one player has the move. The available actions are written $A_1(s)$ for player 1, the “agent,” and $A_2(s)$ for player 2, the “opponent.” The transition kernel is $P(s' \mid s,a,b)$. In the alternating setting, the next state encodes whose turn it is, so only the player whose turn it is chooses a nontrivial action, while the other player’s action is a dummy or no-op; nevertheless, the joint-action notation $(a,b)$ is retained because the standard zero-sum formulation with $Q(s,a,b)$ and max–min over $(a,b)$ remains convenient [2507.22278].

The reward is zero-sum: player 1 receives $r_1(s,a,b)$ and player 2 receives $r_2(s,a,b)=-r_1(s,a,b)$. Across tasks, the reward is assumed linear in a fixed feature map $\phi:S\times A\times B\to \mathbb{R}^d$. Each task is specified by a weight vector $w\in\mathbb{R}^d$, with
$$
r_w(s,a,b)=\phi(s,a,b)^\top w.
$$

The motivation for GGPI is specific to transfer in games. Prior work in single-agent systems had shown that successor features can provide a “jump start” when agents face new tasks with different reward structures, whereas transfer in games had often relied on value transfer or equilibrium transfer. In the setting studied here, that reliance can fail when tasks differ significantly. GGPI addresses this by transferring both learning values and policies through successor features and a game-specific policy-improvement rule [2507.22278].

## 2. Value functions, minimax structure, and successor features

For stationary policies $(\pi,\sigma)$ of the agent and opponent, the value and action-value functions for player 1 are
$$
V_w^{\pi,\sigma}(s)=\mathbb{E}\!\left[\sum_{t=0}^{\infty}\gamma^t r_w(s_t,a_t,b_t)\mid s_0=s,\ a_t\sim\pi(\cdot\mid s_t),\ b_t\sim\sigma(\cdot\mid s_t)\right],
$$
and
$$
Q_w^{\pi,\sigma}(s,a,b)=r_w(s,a,b)+\gamma\,\mathbb{E}_{s'\sim P(\cdot\mid s,a,b)}\!\left[V_w^{\pi,\sigma}(s')\right].
$$
The minimax value is
$$
V_w^*(s)=\max_\pi \min_\sigma V_w^{\pi,\sigma}(s),
$$
and the corresponding optimal $Q$-function satisfies the Shapley/Littman Bellman equations for zero-sum Markov games [2507.22278].

Successor features decouple dynamics from rewards by accumulating discounted feature vectors along trajectories. In the alternating game setting, they are defined as
$$
\psi^{\pi,\sigma}(s,a,b)=\mathbb{E}\!\left[\sum_{t=0}^{\infty}\gamma^t \phi(s_t,a_t,b_t)\mid s_0=s,\ a_0=a,\ b_0=b,\ a_t\sim\pi(\cdot\mid s_t),\ b_t\sim\sigma(\cdot\mid s_t)\right].
$$
Under linear rewards,
$$
Q_w^{\pi,\sigma}(s,a,b)=\psi^{\pi,\sigma}(s,a,b)^\top w,
$$
and
$$
V_w^{\pi,\sigma}(s)=\mathbb{E}_{a\sim\pi(\cdot\mid s),\,b\sim\sigma(\cdot\mid s)}\!\left[\psi^{\pi,\sigma}(s,a,b)^\top w\right].
$$

The successor-feature recursion retains the same form as in the single-agent case, but the transition kernel and action sampling reflect turn-taking:
$$
\psi^{\pi,\sigma}(s,a,b)=\phi(s,a,b)+\gamma\,\mathbb{E}_{s'\sim P(\cdot\mid s,a,b)}\,\mathbb{E}_{a'\sim\pi(\cdot\mid s'),\,b'\sim\sigma(\cdot\mid s')}\!\left[\psi^{\pi,\sigma}(s',a',b')\right].
$$
The opponent’s policy $\sigma$ affects $\psi$ through the future action choices that determine feature visitation. This is the central structural reason successor features can be used for transfer in games rather than only in single-agent MDPs [2507.22278].

## 3. The GGPI decision rule

The immediate precursor to GGPI is single-agent generalized policy improvement, which evaluates each stored successor-feature model on a new task and acts greedily with respect to the maximum over the corresponding action values. GGPI extends that idea to zero-sum games by making the transfer rule robust both to the opponent’s action and to the choice of policy in the stored library [2507.22278].

Let $\tilde Q^{\Pi_i}(s,a,b)$ be an approximation to the action-value function associated with stored policy $\Pi_i$ under the current task or environment. GGPI defines the agent’s transfer policy by
$$
\pi_{\mathrm{GGPI}}(s)\in \arg\max_{a\in A}\ \min_{b\in B}\ \min_{i\in\{1,\dots,n\}} \tilde Q^{\Pi_i}(s,a,b).
$$
The three nested operators have distinct roles:

- **$\min_b$**: adversarial opponent action.
- **$\min_i$**: pessimistic aggregation across the library to guard against approximation error or task mismatch.
- **$\arg\max_a$**: the agent chooses the action that maximizes this worst-case value.

When successor features are stored, transfer to a new task $w'$ is performed by re-evaluating them as
$$
\tilde Q_{w'}^{\Pi_i}(s,a,b)=\hat\psi^{\pi_i,\sigma_i}(s,a,b)^\top w',
$$
and then applying the same GGPI rule. The ideal minimax value for a new task is
$$
V_{w'}(s)=\max_\pi \min_\sigma V_{w'}^{\pi,\sigma}(s),
$$
while GGPI approximates it by restricting the maximization to the stored library and using the pessimistic aggregation
$$
V_{w'}^{\mathrm{GGPI}}(s)\approx \max_a \min_b \min_i \tilde Q_{w'}^{\Pi_i}(s,a,b).
$$

A common misconception is to read GGPI as simply “max over policies in a game.” In the formulation analyzed here, the distinctive feature is the additional $\min_i$ over the policy library. The paper explicitly uses this pessimistic construction in its theorem, and it is this construction that underpins the stated robustness and transfer bound [2507.22278].

## 4. Learning procedure and one-shot transfer

The algorithmic pipeline has three stages: learning base tasks, storing policies and successor features, and one-shot transfer to a new task. Base tasks $\{w_i\}$ are selected to span the space of interest. For each task, the agent and opponent are trained in the alternating zero-sum game until convergence, for example by tabular $Q$/successor-feature learning. In the reported implementation, both agents update temporal-difference errors asynchronously with a one-step lookahead into the other’s action [2507.22278].

For each stored task, the algorithm keeps the agent’s policy $\Pi_i$, optionally the opponent’s policy $\sigma_i$, and the successor features $\psi^{\pi_i,\sigma_i}$. The Bellman recursion is estimated in practice with temporal-difference updates:
$$
\psi \leftarrow \psi + \alpha\left[(\phi + \gamma \psi(s',a',b'))-\psi(s,a,b)\right],
$$
where $(a',b')$ are sampled from $(\pi_i,\sigma_i)$ and $s'$ is sampled from $P$. The paper also stores $\tilde Q^{\Pi_i}(s,a,b)\approx \psi^{\pi_i,\sigma_i}(s,a,b)^\top w_i$, and in the pursuer–evader experiments it uses successor-feature tables per task for both pursuer and evader [2507.22278].

Transfer to a new task $w'$ is explicitly one-shot. At state $s$, the acting player computes $\tilde Q_{w'}^{\Pi_i}(s,a,b)$ for every stored policy and joint action, applies
$$
a_{\mathrm{GGPI}}(s)\in \arg\max_a \min_b \min_i \tilde Q_{w'}^{\Pi_i}(s,a,b),
$$
and executes the selected action. No additional optimization or fine-tuning is required: transfer consists of evaluating the stored successor features on $w'$ and applying the robust action selector.

The implementation details reported for the experimental setting are tabular. The method uses tabular successor-feature tables (“sf-table”) per task and per agent, which permits exact multiplication by $w'$. For larger problems, the paper notes that function approximation, including neural networks, can be used, but the reported experiments employ tables and asynchronous $Q$-updates with one-step opponent lookahead [2507.22278].

## 5. Theoretical guarantees and transfer bound

The paper proves a variant of generalized policy improvement for games. The starting assumption is a uniform approximation bound: for each stored policy $\Pi_i$,
$$
\left|Q^{\Pi_i}(s,a,b)-\tilde Q^{\Pi_i}(s,a,b)\right|\le \epsilon
$$
for all states, actions, opponent actions, and library indices. Defining
$$
Q_{\min}(s,a,b)=\min_i Q^{\Pi_i}(s,a,b), \qquad \tilde Q_{\min}(s,a,b)=\min_i \tilde Q^{\Pi_i}(s,a,b),
$$
the GGPI policy is
$$
\pi_{\mathrm{GGPI}}(s)\in \arg\max_a \min_b \tilde Q_{\min}(s,a,b).
$$

Two operator properties are used in the proof: the Bellman operator for zero-sum games is monotone, and it is a $\gamma$-contraction under suitable norms. Using these properties, the paper shows that repeated application of the GGPI operator yields an error bounded by
$$
\epsilon \frac{1+\gamma}{1-\gamma}
$$
in the limit, starting from the pointwise approximation error on $\tilde Q_{\min}$ [2507.22278].

The task-similarity result is stated as Proposition 1. Let $M_i$ and $M_j$ be two zero-sum Markov games in the class $M^\phi$, meaning they share features and dynamics but have different weights $w_i,w_j$. Define the maximum instantaneous reward difference
$$
\delta_{ij}=\max_{s,a,b}\left|r_i(s,a,b)-r_j(s,a,b)\right|.
$$
If $Q_i^*$ is the optimal $Q$-function in task $i$, $Q_i^{\Pi_j^*}$ is the value of executing an optimal policy from task $j$ in task $i$, and the approximations satisfy the same uniform $\epsilon$ bound, then the transfer performance obeys
$$
Q_i^*(s,a,b)-Q_i^{\pi_{\mathrm{GGPI}}}(s,a,b)\le \frac{2}{1-\gamma}\delta_{ij}+\frac{2}{1-\gamma}\epsilon.
$$

The interpretation given in the paper is direct: transfer error scales with task dissimilarity $\delta_{ij}$ and approximation error $\epsilon$, both amplified by $(1-\gamma)^{-1}$. When tasks are similar and the $Q$/successor-feature approximations are accurate, GGPI’s one-shot transfer is provably close to optimal; improvement over any single stored policy is guaranteed by the GGPI construction [2507.22278].

## 6. Pursuer–evader evaluation

The empirical study is conducted in a turn-based gridworld pursuer–evader game. At each time step, one agent moves and the other agent’s action is effectively a no-op, but the joint-action form $Q(s,a,b)$ is preserved for minimax evaluation. The feature vector $\phi(s,a,b)$ concatenates Manhattan distances between the evader and pursuer, Manhattan distances between the evader and each candidate goal, and terminal reward indicators for reaching each goal. Tasks differ by weights assigned to these distance and terminal-reward components; one example task vector reported in the paper is
$$
[0.7,-1.3,0.7,0,0,0,0,0,0].
$$
The reported discount factor is $\lambda=\gamma=0.9$, described as best performing in the experiments [2507.22278].

The preliminary training result is structurally important. Base Task 1 was trained for 20,000 iterations, and without terminal rewards, transfer to Task 2 yielded no improvement in cumulative return. After adding terminal reward features and tuning weights, successful policy and reward transfer was obtained. The paper therefore identifies feature engineering—specifically the inclusion of terminal reward features—as critical for effective transfer [2507.22278].

At transfer time, the successor-feature table from Task 1 is copied, re-evaluated with the new task weights, and GGPI initializes the policy. The action selector forms the $n\times |A|\times |B|$ tensor of $Q$-values by multiplying stored successor-feature tables by $w'$, then applies the max–min rule. Both players use a one-step lookahead to anticipate each other’s action [2507.22278].

The reported results are qualitative. Introducing the terminal reward feature and appropriate weights leads to improved one-shot transfer, better cumulative returns, and effective goal-directed behavior in Task 2 across 9 different initial configurations. In a wider set of initial conditions, GGPI achieves higher success rates with improved path efficiency compared to the baseline algorithms. The paper also reports that transfer degrades as task dissimilarity increases, consistent with the $\delta_{ij}$-dependent bound [2507.22278].

## 7. Scope, limitations, and related uses of “game GPI”

GGPI, in the strict sense introduced for alternating Markov games, has a narrow scope. The assumptions are zero-sum, alternating, complete-information games; stationary policies; linear rewards of the form $r_w(s,a,b)=\phi(s,a,b)^\top w$; and uniform approximation error bounds over stored $Q$-functions. The paper further notes that the $\min_i$ aggregation is conservative, and that in practice one might prefer $\max_i$ combined with $\min_b$; however, the analyzed variant uses $\min_i$ for robustness to approximation error and task shifts. Extensions to general-sum or simultaneous-move stochastic games would require adapting both the minimax structure and the successor-feature analysis [2507.22278].

The term “GGPI” is also used more loosely in nearby literature, and distinguishing these usages avoids a common terminological confusion. In "Zero-Shot Coordination in Ad Hoc Teams with Generalized Policy Improvement and Difference Rewards" [2510.16187], the authors do not use the term GGPI, but they do implement GPI in a game or multi-agent context through
$$
\pi_G^a(s)\in \arg\max_{a^a} \max_i Q^{\pi_i^{a*}}_{i,\Delta r^a}(s,a^a),
$$
where transfer occurs across teammate-induced dynamics and no formal guarantee is claimed in the ad hoc setting. In "CASA: Bridging the Gap between Policy Improvement and Policy Evaluation with Conflict Averse Policy Iteration" [2105.03923], “game GPI” refers instead to generalized policy iteration in Atari, emphasizing gradient alignment and entropy-regularized improvement rather than successor-feature transfer. In "Generalized Policy Improvement Algorithms with Theoretically Supported Sample Reuse" [2206.13714], GPI denotes mixture-based sample reuse under trust-region control, and its extension to games is framed through fixed-opponent or slowly varying-opponent updates rather than through successor features.

These neighboring uses suggest that “Game Generalized Policy Improvement” names a family resemblance rather than a single universally fixed construction. In the encyclopedic sense, the most specific and technically distinctive usage is the one in alternating zero-sum Markov games: successor features under linear rewards, one-shot transfer through re-evaluation on $w'$, and robust action selection by
$$
\arg\max_a \min_b \min_i \tilde Q_{w'}^{\Pi_i}(s,a,b).
$$
That is the formulation for which explicit transfer bounds, implementation details, and pursuer–evader evidence are given [2507.22278].

Source: https://www.emergentmind.com/topics/game-generalized-policy-improvement-ggpi