Decoupling Value and Policy for Generalization in Reinforcement Learning

Roberta Raileanu, Rob Fergus

Abstract

Standard reinforcement learning (RL) agents often fail to generalize to unseen environments because they utilize a shared representation for both action selection (policy) and state evaluation (value). This paper introduces Invariant Decoupled Advantage Actor-Critic (IDAAC), a framework that decouples these two components and incorporates an adversarial auxiliary loss. By forcing the agent to ignore level-specific "noise" and temporal cues, IDAAC achieves state-of-the-art generalization performance on the Procgen benchmark and demonstrates significant robustness to visual distractors.

Introduction: The Problem of Representation Asymmetry

Deep RL agents are notorious for overfitting to their training environments. While an agent may master a specific game level, it often fails when faced with minor variations, such as a change in background color or platform arrangement.

The authors identify a fundamental cause: Policy-Value Representation Asymmetry. In standard actor-critic architectures, the policy ($\pi$) and the value function ($V$) share a neural network encoder. However, the value function requires significantly more information than the policy to be accurate. To estimate the "value" of a state, an agent must often distinguish between identical-looking states based on how many steps remain in a specific level. This forces the encoder to memorize "spurious correlations"—such as unique background patterns—that are irrelevant to the core task. This noise pollutes the policy's representation, preventing the learning of generalizable skills.

Methodology: The IDAAC Framework

To address these issues, the authors propose IDAAC, which rests on three primary technical innovations:

  1. Decoupling: The architecture uses separate neural networks for the policy and the value function. This architectural split prevents the value function's requirement for level-specific details from leaking into the policy's decision-making process.
  2. Advantage Prediction (DAAC): The policy network is assigned an auxiliary task: predicting the Advantage ($A$). Unlike the absolute Value ($V$), which measures expected total reward, the Advantage is a relative measure (how much better is this action than the average?). Advantage is inherently more invariant to cosmetic changes and level lengths, providing a cleaner training signal for a generalizable policy.
  3. Instance Invariance: An adversarial component is introduced to strip away level-specific timing information. A discriminator attempts to determine the temporal order of two observations from the same trajectory. The policy encoder is trained to "fool" this discriminator, effectively forcing it to discard information about "how many steps are left" and focus on gameplay mechanics.
The IDAAC architecture employs a policy encoder and a discriminator to ensure learned features are invariant to specific level instances and temporal progress.

Key Insights: The Value-Generalization Paradox

A central finding of this research is the Value-Generalization Paradox: in shared-network RL, a more accurate value function often correlates with worse generalization. High value accuracy typically implies that the agent has successfully memorized the unique idiosyncrasies of training levels. By focusing on relative measures (Advantage) and explicitly removing temporal cues, IDAAC bypasses this trap.

Value estimates ($V$) often vary significantly between levels even for similar states, whereas a generalizable policy should remain consistent.

Experimental Results

The paper evaluates IDAAC on two major benchmarks:

  • Procgen: A suite of 16 procedurally generated games. IDAAC achieved a new state-of-the-art (SOTA), significantly outperforming previous methods like UCB-DrAC and PPG. Crucially, the "generalization gap" between training and test performance was markedly smaller than that of standard PPO.
  • DeepMind Control (DMC) with Distractors: In tasks like Cartpole with natural video backgrounds, IDAAC maintained high performance while standard agents were completely distracted by the visual noise.

Conclusion and Future Work

IDAAC demonstrates that decoupling representations and enforcing instance invariance are vital for robust RL. While highly effective, the approach assumes that "time-remaining" is a nuisance variable, which may not hold for tasks where precise deadline management is a core mechanic. Future work may explore the theoretical underpinnings of why advantage prediction serves as such a potent regularizer and seek to reduce the computational overhead of the multi-network architecture.

Summary updated

BibTeX
@inproceedings{raileanu2021decoupling,
  author = {Roberta Raileanu and Rob Fergus},
  title = {{Decoupling Value and Policy for Generalization in Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure