TL;DR
Reinforcement learning (RL) agents often generalize to unintended goals when deployed out-of-distribution, posing a significant challenge for AI safety. This paper systematically investigates how multi-stage, sequential training pipelines shape an agent's final preferences. To explain these dynamics, the authors introduce Latent Policy Gradients (LPG), a highly accurate and interpretable method that predicts an agent's out-of-distribution behavior directly from its training history.
What Problem Does This Paper Address?
When an RL agent is trained, it might maximize rewards by pursuing a proxy feature rather than the intended goal. When placed in a novel, out-of-distribution (OOD) environment, the agent may competently pursue this unintended proxy—a phenomenon known as goal misgeneralisation.
While this is a known issue for single-task training, modern frontier AI systems are trained via complex, multi-stage pipelines (e.g., pre-training, supervised fine-tuning, and RL from human feedback). We currently lack a principled framework to predict how these sequential training stages interact to shape an agent's final OOD behavior. This paper addresses this gap by studying how values are formed, persist, or are inhibited across sequential training regimes.
Methods
The authors approach the problem from both an empirical and a modeling perspective:
- Empirical Preference Mapping: They train CNN-based RL agents using Proximal Policy Optimization (PPO) in procedurally generated mazes. Agents are trained sequentially across one or two stages to navigate toward specific objects. They then evaluate the agents' OOD behavior by placing them in environments with choices between two novel or familiar objects, mapping out an empirical preference distribution using Elo ratings.
- Latent Policy Gradients (LPG): To predict these preferences without simulating millions of neural network parameters, the authors propose LPG. This method compresses the agent's internal state into a low-dimensional latent weight vector $w$ (dimension = 10, matching the number of object features). LPG simulates the training pipeline by performing gradient ascent on a simplified, entropy-regularized policy objective over these latent variables.
Mathematically, the authors demonstrate that multi-stage training under LPG acts as an iterated projection onto hyperplanes, where a learned saliency matrix $S$ naturally induces a feature similarity metric ($SS^\top$) that governs how training on one feature transfers to another.
Datasets
The authors created a controlled benchmark using procedurally generated 8×8 maze environments.
- Objects: The environment contains objects defined by combinations of 4 shapes (cross, plus, diamond, ring) and 3 colors (black, red, blue), yielding 12 base objects. Novel shapes (circle, hollow-diamond) and colors (green) are introduced during evaluation.
- Pipelines: They evaluated 190 unique training pipelines (both single and two-stage, with and without visual distractor objects), training a total of 298 agents.
- Evaluation: Agents were rolled out across 276 unique OOD evaluation environments containing pairs of objects to generate a robust dataset of over 82,000 behavioral choice data points.
Key Insights and Ideas
- OOD Preferences are Coherent: Rather than acting erratically in unseen environments, agents exhibit highly structured, transitive preferences that conform closely to Boltzmann-rationality.
- Shape Trumps Color: Due to the inductive biases of CNNs, shape features (especially the cross shape) are significantly more salient than color features during goal learning.
- First Impressions Last (Value Persistence): Features rewarded in the first stage of training leave a permanent mark. The preferences learned early persist downstream, even if the second training stage rewards entirely different features.
- The Inherent Ordering Effect: When training stages share a feature, that feature's value is heavily reinforced. Crucially, this dominant feature acts to inhibit the agent from learning new, non-shared features in the second stage (resembling "gradient starvation" or "plasticity loss"). As a result, flipping the order of training stages fundamentally alters the agent's final OOD goals.
Key Results
- High Predictive Accuracy: The simple Elo-based preference model achieves a 89.73% directional accuracy in predicting which object an agent will choose in held-out OOD environments.
- LPG Outperforms Baselines: In rigorous cross-validation and transfer tests (such as predicting two-stage behavior from models trained only on single-stage data), the proposed LPG model consistently achieved the lowest modeling loss (KL divergence). It significantly beat "Memoryless" baselines (which assume only the final task matters) and "Simultaneous" baselines (which ignore the order of training).
Limitations and Future Work
While foundational, the study has a few acknowledged limitations:
- Toy Domain: The experiments are restricted to 2D gridworld mazes and a single architecture type (CNN + PPO). Extending this framework to value-based methods (like DQN) or Transformer-based architectures is an open next step.
- Linear Feature Assumption: The preference function parametrisation assumes that goal values decompose linearly over features. This works well for factorial object descriptions (color + shape) but might fail in complex environments where goals have non-compositional or highly contextual structures.
- Perfecting the Dynamics: While LPG captured the presence of ordering effects, the authors note that a simultaneous baseline performed closely in some metrics, suggesting that the exact mathematical formulation of stage-ordering dynamics can be further refined in future work.
Summary updated