Transfer with Model Features in Reinforcement Learning

Lucas Lehnert, Michael L. LittmanarXiv 2018

Introduction

A central challenge in Reinforcement Learning (RL) is transfer learning: the ability of an agent to take knowledge learned in one environment and apply it to a new, slightly different one. Recent research has focused on Successor Features (SFs), which are powerful because they decouple environment dynamics from rewards. If rewards change while the underlying physics (transitions) remain constant, an SF-based agent can adapt almost instantly. However, SFs have a significant limitation: they are typically tied to a specific transition function and policy. If the environment's layout or the agent's behavior changes, the SFs usually break.

This paper introduces Model Features, a novel state representation that captures the underlying structure of the environment itself, making it robust to changes in both rewards and transitions. By bridging the gap between Successor Features and Model Reductions (specifically the concept of bisimulation), the authors demonstrate a path toward more generalizable RL agents.

Model Features and Bisimulation

The core idea behind Model Features is to identify and cluster "behaviorally equivalent" states. The authors define these as features that assign identical values to states that are bisimilar—meaning they yield the same immediate rewards and lead to the same clusters of future states, regardless of the action taken. This is a form of lossy compression that retains only the information necessary for optimal decision-making.

The Successor Feature Connection

A key theoretical contribution of this work is Proposition 1, which proves that if an agent learns Successor Features under an exploratory policy, it is mathematically equivalent to learning a compressed version of the environment's transition and reward models. While SFs are often viewed as a "model-free" way to handle rewards, this paper shows they actually encode deep structural information about transition dynamics, effectively acting as a "discounted infinite-step model."

Learning Methodology

To learn these representations, the authors propose an iterative algorithm that minimizes a loss function based on two components:

  1. The error in predicting immediate rewards from features.
  2. The "temporal difference" error of the Successor Features themselves.

The algorithm combines gradient descent (using the Adam optimizer) with k-means clustering. The clustering step is crucial as it forces the representation to collapse equivalent states into the same "abstract" state, effectively performing model reduction during the learning process.

Experimental Results

The authors evaluated their approach on synthetic environments designed to test structural discovery and transfer capabilities.

Structural Discovery in Grid Worlds

In a $30 \times 3$ Grid World experiment, the agent's row position was designed to be irrelevant to the reward (only the column mattered). As shown in Figure 1, the algorithm successfully identified this irrelevance. Starting from high-dimensional, scattered initial features, the model learned to collapse the 90 ground states into a 3-state abstract model corresponding to the three columns.

Visualization of state space compression in a 30x3 Grid World.

Robust Transfer and Error Bounds

In experiments with randomly generated MDPs (50 ground states clustered into 5 abstract states), Model Features trained on a single task allowed for highly accurate value predictions across 20 different tasks with varying transition and reward functions.

The authors also provide a mathematical guarantee (Theorem 2) showing that even if the learned Model Features are only approximately correct, the error in the resulting value function remains bounded. Figure 2 illustrates this convergence, showing that the empirical error stays well below the theoretical bound across various data collection policies.

Error in value function estimation over training steps compared to theoretical bounds.

Discussion and Future Work

While Model Features represent a significant step toward robust transfer, several challenges remain. The current implementation relies on k-means clustering and matrix inversions, which may be computationally expensive in high-dimensional or continuous state spaces. Furthermore, the theory assumes an "exploratory policy" that visits all possible transitions, which is difficult to guarantee in complex environments. Future work will focus on integrating these concepts with deep neural networks to test performance on benchmarks like Atari and complex robotics simulations.

Summary updated

BibTeX
@misc{lehnert2018transfer,
  author = {Lucas Lehnert and Michael L. Littman},
  title = {{Transfer with Model Features in Reinforcement Learning}},
  year = {2018},
  eprint = {1807.01736},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.01736},
}
Figure