Universal Successor Representations for Transfer Reinforcement Learning

Chen Ma, Junfeng Wen, Yoshua Bengio

Reinforcement learning (RL) agents typically have to start from scratch when their goal changes, even if the environment's "physics" remain identical. Standard Deep RL is notoriously sample-inefficient. An agent might spend millions of steps learning to navigate a maze to find a goal, but if that goal moves, the agent often has to relearn almost everything.

The core issue is that standard value functions conflate two distinct pieces of information:

  1. Dynamics: Where the agent is likely to go following a given policy.
  2. Rewards: How much the agent values those destinations.

This paper introduces Universal Successor Representations (USR), a method that decouples an agent's understanding of environment dynamics from its specific goals. By learning how to reach any state in a "universal" way, the agent can generalize to unseen tasks and learn new goals significantly faster than starting from a random initialization.

Methods and Architecture

The authors build upon Successor Representations (SR), which factorize the value function into state features ($\phi$), a successor measure ($\psi$ — expected future state visits), and reward weights ($w$). The core innovation is extending this to a Universal Successor Representation (USR) that generalizes across a space of goals ($g$).

To achieve this, the authors propose the Universal Successor Representation Approximator (USRA).

USRA Architecture

The USRA is a deep neural network architecture that:

  1. Learns State Features: Uses an autoencoder to map raw pixel inputs into a latent feature space $\phi(s)$.
  2. Universal Mapping: Takes both the state $s$ and the goal $g$ as input to predict the successor representation $\psi(s, g)$ and the policy $\pi(s, g)$.
  3. Goal-Specific Rewards: Uses a separate network to predict the reward weights $w(g)$ for a given goal.

Trained using an actor-critic framework, the "critic" learns the USR (predicting future state occupancy), while the "actor" uses this to optimize the policy. Because the USR is universal, the agent learns the relationship between states and goals across many tasks simultaneously.

Key Insights and Results

The researchers evaluated their approach in a four-room grid-world environment using raw pixel inputs. The agent was trained on up to 48 "source" goals and tested on 16 "unseen" target goals.

Decoupling and Generalization: By separating where the agent goes (USR) from what it wants (reward weights), the model becomes highly modular. Training on a variety of goals allows the network to interpolate. Even for unseen goals, it can estimate the successor representation based on proximity to known goals. The USR and policy successfully generalized, with performance improving as the number of source goals increased.

Transfer Speed and the "Small $k$" Penalty:

Learning with Initialization

Agents initialized with a pre-trained USRA reached target goals significantly faster than a randomly initialized baseline. The USRA provides a "warm start" with a deep understanding of the environment's layout.

Interestingly, when trained on too few source goals (e.g., $k=1$), the agent actually performed worse than the baseline. This indicates that a minimum threshold of task diversity is required for the universal features to become helpful rather than restrictive.

Limitations and Future Work

While promising, the experiments were limited to a 2D grid-world with consistent dynamics. If the environment's physics change (e.g., a door is locked in one task but open in another), the learned USR would likely fail. Additionally, the current approach relies on an autoencoder to learn state features before RL training begins; integrating feature learning more tightly with the RL objective could yield more task-relevant representations in complex 3D environments or tasks with continuous action spaces.

Summary updated

BibTeX
@inproceedings{ma2018universal,
  author = {Chen Ma and Junfeng Wen and Yoshua Bengio},
  title = {{Universal Successor Representations for Transfer Reinforcement Learning}},
  booktitle = {Workshops @ ICLR},
  year = {2018},
}
Figure