Coachable agents for interactive gameplay

Roberto Capobianco, Harm van Seijen, Nolan D. Bard, Neil Burch, Fatima Davelouis, Josh Davidson, Alisa Devlic, Yunshu Du, Ishan Durugkar, Siddhant Gangapurwala, Daniel Hernandez, G. Zacharias Holland, Sahil Jain, Kenta Kawamoto, Raksha Kumaraswamy, Patrick MacAlpine, Dustin R. Morrill, Declan Oller, Francesco Riccio, Akanksha Saran, Craig Sherstan, Kaushik Subramanian, Thomas J. Walsh, Samuel Barrett, Kizza N. Frisbee, Mady Govil, Johannes Günther, Varun R. Kompella, James A. MacGlashan, Maxwell Svetlik, Michael D. Thomure, Jaden B. Travnik, Kevin Waugh, Elahe Aghapour, Florian Fuchs, Andreanne Lemay, Shruti Mishra, Takuma Seno, Peter Stone, Michael Spranger, Peter R. WurmanarXiv 2026

TL;DR

Standard reinforcement learning (RL) agents excel at finding a single, near-optimal way to solve a task, but they lack the flexibility to adapt how they do it based on real-time user preferences. This paper introduces a framework using style-conditioned Universal Value Function Approximators (UVFAs) and a novel algorithm, Cat-RAC, to train "coachable" agents. These agents can dynamically alter their behavioral style (e.g., driving conservatively to save fuel, or using specific combat tactics) at run time without needing to be retrained.

What Problem Does This Paper Address?

Traditional RL typically produces rigid, single-track policies. However, in real-world applications and interactive video games, we often care deeply about the manner in which a task is accomplished. For instance, you might want a cleaning robot to operate quietly while a baby sleeps, or a game developer might want an NPC to exhibit distinct playstyles to keep combat engaging.

Standard multi-task or goal-conditioned RL approaches treat these variations as entirely separate tasks, which downplays their commonalities and obscures the continuous spectrum of behaviors a user might want to select from. The authors tackle the challenge of keeping a primary task objective fixed (e.g., winning a race or defeating an enemy) while providing flexible, real-time control over secondary behavioral characteristics—which they define as styles.

Methods

The authors build their framework around several key algorithmic innovations designed to handle high-dimensional, complex control spaces:

  • Style-Conditioned UVFAs: They extend Universal Value Function Approximators by splitting the reward function into two parts: a fixed task reward and a dynamic style reward modulated by a multi-dimensional style vector $\theta$: $$r(s, a; \theta) = r_{task}(s, a) + r_{style}(s, a, \theta)$$ Both the policy and the critic are conditioned on this vector, allowing a single network to express a wide family of behaviors.

  • Categorical Regularized Actor-Critic (Cat-RAC): Developed specifically to handle the complex action space of a PlayStation 5 controller in Horizon Forbidden West, which mixes discrete button combinations with continuous joystick inputs. Cat-RAC replaces standard Soft Actor-Critic (SAC) entropy with a generic regularizer tailored to mixed action spaces and introduces a regression regret-matching update to stabilize gradients through categorical policy heads.

  • Data Efficiency Tools: To stabilize training across diverse styles, the framework leverages Task Impersonation (relabeling transitions under alternative style descriptors at update time) and Stratified Sampling via specialized event-driven replay buffers to ensure subtle styles aren't washed out by dominant behaviors.

Datasets

Rather than static datasets, the framework was trained and evaluated across three highly dynamic simulation environments:

  1. Gran Turismo 7 (GT7): A high-fidelity racing simulator used to test driving styles like tire preservation, fuel saving, drifting, and aggressiveness modulation.
  2. Horizon Forbidden West (HFW): A AAA open-world game used as a massive combat testbed. The agent fought against 19 distinct enemy machine types across 3 locations, evaluating 20 different combat styles (including specific weapon preferences, elemental states, and part-removal strategies). It was also tested against 5 out-of-distribution (OOD) scenarios featuring unseen, flying, or paired enemies.
  3. DeepMind Control Suite (DMC) Humanoid: A standard 21-dimensional continuous control robotics benchmark used to demonstrate the composition of physical styles (combining discrete arm poses with continuous gait lengths).

Key Insights and Ideas

  • Contextualized Style Adherence: The agents do not simply blindly execute style requests; they intelligently exploit environment mechanics to satisfy them. For example, when coached to use a frost elemental style in HFW, the agent chooses a weak weapon to quickly inflict the "brittle" status effect, and then immediately switches to a high-damage weapon to maximize the style-rewarded damage while the enemy is frozen.
  • Run-Time Pareto Tuning: Because the policy is conditioned on continuous weights, users can dynamically slide along a Pareto frontier at run time. By dialing down the style weight, a user can give the agent more flexibility to prioritize raw task success (winning the fight or race) over strict style adherence.
  • Emergent Compositionality: The framework successfully composes independent styles (e.g., combining a specific weapon style with an elemental style), even if the agent encountered that exact combination less than once every million training scenarios.

Key Results

  • Gran Turismo 7: By adjusting the style weights, the agent successfully extended fuel range and tire life, delaying required pit stops by up to 60% at a modest cost of only 2–3 seconds per lap.
Figure 2: Fuel and tire wear style adjustments along with humanoid gait controls.
  • Horizon Forbidden West: Evaluation matrices showed a powerful diagonal dominance, proving a strong, reliable correspondence between the requested style and the executed behavior across thousands of battles. The agent also maintained high win rates and generalized robustly to out-of-distribution, unseen enemies.
Figure 3: Style performance matrix showing strong diagonal alignment and combat timelines in HFW.

Limitations and Future Work

  • Style Over-Prioritization: When style rewards are set relatively high compared to the base task reward, the agent can hyper-focus on the style to its own detriment. For instance, when tasked with "part removal" against weak enemies, the agent sometimes timed out because it spent too much time chasing the machine to line up the perfect shot instead of just defeating it.
  • Partial Observability: In complex games like HFW, certain elements (like transient projectiles) lack consistent engine representations, leaving a degree of partial observability that can occasionally disrupt execution.
  • Sim-to-Sim Discrepancies: Minor physics and timing differences between the fast "headless" build used for training and the graphical build used for rendering introduced slight out-of-distribution effects during visual evaluations.

Summary updated

BibTeX
@misc{capobianco2026coachable,
  author = {Roberto Capobianco and Harm van Seijen and Nolan D. Bard and Neil Burch and Fatima Davelouis and Josh Davidson and Alisa Devlic and Yunshu Du and Ishan Durugkar and Siddhant Gangapurwala and Daniel Hernandez and G. Zacharias Holland and Sahil Jain and Kenta Kawamoto and Raksha Kumaraswamy and Patrick MacAlpine and Dustin R. Morrill and Declan Oller and Francesco Riccio and Akanksha Saran and Craig Sherstan and Kaushik Subramanian and Thomas J. Walsh and Samuel Barrett and Kizza N. Frisbee and Mady Govil and Johannes Günther and Varun R. Kompella and James A. MacGlashan and Maxwell Svetlik and Michael D. Thomure and Jaden B. Travnik and Kevin Waugh and Elahe Aghapour and Florian Fuchs and Andreanne Lemay and Shruti Mishra and Takuma Seno and Peter Stone and Michael Spranger and Peter R. Wurman},
  title = {{Coachable agents for interactive gameplay}},
  year = {2026},
  eprint = {2607.00642},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.00642},
}
Figure