Successor Features Support Model-based and Model-free Reinforcement Learning

Lucas Lehnert, Michael L. LittmanarXiv 2019

Abstract

Reinforcement learning (RL) has traditionally distinguished between model-free methods, which are computationally efficient but inflexible, and model-based methods, which offer better generalization at higher computational costs. This paper introduces the Linear Successor Feature Model (LSFM), providing a formal mathematical bridge between these two paradigms. By learning "reward-predictive" representations that capture future reward sequences for any policy, LSFMs enable agents to generalize across tasks even when both transitions and rewards change. We demonstrate that LSFMs naturally discover bisimulation relations, allowing for effective state compression and robust transfer in various grid-world environments and complex tasks like the Combination Lock.

Introduction

A fundamental tension in RL exists between model-free (MF) and model-based (MB) approaches. MF methods learn values for specific policies, making them efficient but "brittle" when environment dynamics or goals shift. Conversely, MB methods learn environment dynamics, offering flexibility and generalization, though often at the cost of high data requirements and computational complexity.

The challenge lies in finding a representation that compresses high-dimensional inputs into a latent state space suitable for knowledge reuse. While Successor Features (SFs) have been used to handle reward changes in fixed-transition environments, their application to changing dynamics has been limited. This research addresses this gap by asking if a representation can be learned that is predictive of future rewards for any policy, effectively transforming SFs into a model-based engine.

The Linear Successor Feature Model (LSFM)

The authors propose the Linear Successor Feature Model (LSFM) to learn "reward-predictive" representations. Unlike value-predictive representations that overfit to a specific policy's value, reward-predictive representations aim to predict future reward sequences for any arbitrary action sequence.

Mapping states to latent features in a three-state MDP.

The LSFM utilizes Successor Features, which represent the expected future occupancy of features. It employs a set of matrices ($F_a$) to linearly map current state features to their successor features. The model is trained via a multi-part objective function minimizing reward prediction error and SF prediction error (a fixed-point equation analogous to the Bellman equation), while maintaining unit-norm feature vectors. This allows the LSFM to capture the underlying structure of transitions and rewards without explicit high-dimensional reconstruction.

Theoretical Insights: Bridging MF and MB

A key contribution of this work is the formal proof that learning to predict future reward outcomes—a hallmark of model-based RL—is mathematically equivalent to learning successor features, a concept rooted in temporal-difference and model-free RL.

Furthermore, LSFMs are shown to discover "bisimulation relations." They automatically group states that behave identically regarding transitions and rewards. This discovery occurs through standard gradient descent, avoiding the need for computationally expensive metrics like Wasserstein distance. Because these representations are reward-predictive across all abstract policies, the LSFM functions as a strict model-based architecture, offering superior robustness during transfer compared to value-predictive models that often suffer from state "aliasing."

Experimental Evaluation

The LSFM was evaluated on several benchmarks, including Column World, Puddle World, and a Combination Lock task.

Demonstration of state compression and value estimation in Column World.

In the Column World example, the model successfully clusters states into columns based on their distance to a reward, effectively compressing the task representation. In Puddle World, the LSFM compressed 100 grid states into an 80-dimensional latent space while maintaining accurate reward rollouts over 200 steps.

Transfer experiments showed that agents using LSFM-learned features reached optimal policies in new environments significantly faster than standard tabular model-based agents. In the Combination Lock task, the LSFM demonstrated its ability to ignore irrelevant information (a "broken" random dial), leading to perfect generalization in new configurations where value-predictive agents failed due to negative transfer.

Conclusion

The Linear Successor Feature Model provides a robust framework for learning compressed, transferable representations in RL. By unifying the predictive power of SFs with the flexibility of model-based learning, it offers a path toward more efficient and generalizable agents. Future work will focus on scaling these methods to high-dimensional continuous inputs using deep learning and exploring automated methods for determining optimal latent space dimensions.

Summary updated

BibTeX
@misc{lehnert2019successor,
  author = {Lucas Lehnert and Michael L. Littman},
  title = {{Successor Features Support Model-based and Model-free Reinforcement Learning}},
  year = {2019},
  eprint = {1901.11437},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.11437},
}
Figure