RIDGE: State-Conditioned Reward Blending for Behavioral Coverage in Deep RL Game Agents

Al Muqshith Mohammed Shifan, Kevin Christopher Chua, Ali Neshati, Loutfouz Zaman, Cristiano PolitowskiarXiv 2026 · arXiv

TL;DR

RIDGE (Reactive Inter-persona Dynamic Goal Engine) is a single-agent reinforcement learning architecture that dynamically blends multiple "personas" (like Explorer or Survivor) within a single episode based on the game state. By using a multi-head critic to maintain stable value estimates for each persona, RIDGE sidesteps the "switching-stability dilemma" that typically causes PPO agents to fail when rewards change mid-run.

What Problem Does This Paper Address?

In automated game playtesting, developers often train different RL agents to mimic different playstyles, or "procedural personas." For example, an Explorer rewards map novelty, while a Survivor rewards staying alive.

The problem is that these agents are rigid: an Explorer will keep exploring even while starving to death, whereas a human player naturally shifts priorities. Simply changing the reward function mid-episode (e.g., "stop exploring and find food now") usually breaks popular algorithms like Proximal Policy Optimization (PPO). This is known as the switching-stability dilemma: PPO’s value function requires a stable, stationary signal to converge. When rewards shift abruptly, the agent's learning process collapses.

Methods

RIDGE introduces two primary design choices to allow for fluid, mid-episode behavioral shifts:

  1. State-Conditioned Blender: Instead of hard-switching between rewards, RIDGE uses a "blender" that calculates weights for each persona based on slow-moving state variables (like hunger, health, or proximity to enemies). These weights are smoothed using a sigmoid function and normalized via softmax, ensuring the aggregate reward changes gradually as the agent's situation changes.
  2. Multi-Head Critic: To maintain training stability, RIDGE uses a shared encoder but maintains one separate "value head" for each persona. Each head is trained only on its specific, stationary persona reward (e.g., the "Warrior" head only cares about combat rewards). The policy then uses a blended advantage—a weighted sum of the advantages from each head—to decide on actions. This isolates the value-function learning from the shifting mixture of the overall reward.
Algorithm 1: The RIDGE training loop, showing how persona rewards are blended into a single policy update.

Datasets

The authors evaluated RIDGE using Crafter, an open-world survival benchmark inspired by Minecraft. Crafter features a sequential "tech tree" of 22 achievements (e.g., collecting wood $\rightarrow$ placing a table $\rightarrow$ crafting a pickaxe). Success in Crafter requires balancing survival, exploration, and resource management, making it an ideal testbed for persona blending.

Key Insights and Ideas

  • Internal vs. External Control: Unlike previous methods that require an external user to set blending weights, RIDGE computes them internally. The agent "feels" hungry or threatened and shifts its own priorities accordingly.
  • Stability through Decomposition: The multi-head critic is the "secret sauce." By letting each head focus on a single stationary goal, the agent can handle a non-stationary global goal. As shown in the value loss plots, RIDGE remains as stable as the most consistent specialist agents.
  • The Sharpness Trade-off: The authors introduced a "sharpness" parameter ($\alpha$). If $\alpha$ is too low, the agent receives a muddy, uniform mixture of all rewards. If it's too high, it approaches the "hard-switching" regime that breaks PPO. A moderate sharpness allows for clear but smooth transitions.

Key Results

  • Cross-Branch Coverage: RIDGE is the only agent capable of solving both branches of the "wood-tier split" (crafting a Pickaxe vs. crafting a Sword) within a single training run. Specialist agents (Craftsman or Warrior) excel at one but fail at the other.
Fig. 1: Per-achievement success rate over the final 100 episodes. RIDGE is the only condition with substantial success on both Make Wood Pickaxe and Make Wood Sword. Mean over n=3 seeds per condition.
  • State-Conditioning is Essential: In ablation studies, a "uniform mixture" agent (where all persona rewards are always active with equal weight) performed 30–50% worse than the state-conditioned RIDGE agent. This proves that the timing of the rewards matters as much as the rewards themselves.
  • Stable Learning: Despite the complex shifting rewards, RIDGE’s value loss stayed low and stable, comparable to the "Explorer" specialist, which has the most stable reward signal.
Fig. 3: Value loss over training (log scale). RIDGE maintains stable value-function learning under blended rewards, compa- rable to the most stable specialist (Explorer). n=3 seeds per condition; shaded bands are min/max.

Limitations and Future Work

  • Seed Variance: The current results are based on $n=3$ seeds per condition. While the effects are large, the authors acknowledge that larger multi-seed sweeps are needed for definitive statistical claims.
  • Environment Diversity: RIDGE has currently only been demonstrated on Crafter. Testing on other complex, multi-goal environments would further validate the architecture.
  • Ablation Granularity: Future work could include a single-head version of RIDGE to more precisely measure exactly how much the multi-head critic contributes to stability compared to the smooth blending alone.

Summary updated

Abstract

A deep RL agent trained on a fixed persona reward plays one way: an Explorer keeps exploring while starving, a Survivor hoards on an empty map. Since each persona fixes its own reward, automated playtesting trains N agents for N styles. Changing reward composition mid-episode runs into the switching-stability dilemma: PPO degrades under non-stationary rewards. We present RIDGE, a single-agent architecture that sidesteps the dilemma with two design choices: a state-conditioned blender that computes softmax-normalized sigmoid weights from slow-moving state variables, and a multi-head critic that trains one value head per persona on its own stationary signal. On Crafter with four personas, one \ridge agent acquires both branches of the wood-tier crafting/combat split that no fixed-persona baseline solves jointly, and a sharpness ablation confirms state-conditioning drives the gain. We position these results as demonstrations of the blending mechanism's dynamics across n=3 seeds per condition; larger multi-seed sweeps remain future work.
BibTeX
@misc{shifan2026ridge,
  author = {AL Muqshith Mohammed Shifan and Kevin Christopher Chua and Ali Neshati and Loutfouz Zaman and Cristiano Politowski},
  title = {{RIDGE: State-Conditioned Reward Blending for Behavioral Coverage in Deep RL Game Agents}},
  year = {2026},
  eprint = {2611.05601},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.05601},
}
Figure