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:
- 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.
- 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.
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.
- 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.
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