Successor Feature Sets: Generalizing Successor Representations Across Policies

Kianté Brantley, Soroush Mehri, Geoffrey J. Gordon

Abstract

Successor-style representations have many advantages for reinforcement learning: for example, they can help an agent generalize from past experience to new goals, and they have been proposed as explanations of behavioral and neural data from human and animal learners. They also form a natural bridge between model-based and model-free RL methods: like the former they make predictions about future experiences, and like the latter they allow efficient prediction of total discounted rewards. However, successor-style representations are not optimized to generalize across policies: typically, we maintain a limited-length list of policies, and share information among them by representation learning or GPI. Successor-style representations also typically make no provision for gathering information or reasoning about latent variables. To address these limitations, we bring together ideas from predictive state representations, belief space value iteration, successor features, and convex analysis: we develop a new, general successor-style representation, together with a Bellman equation that connects multiple sources of information within this representation, including different latent states, policies, and reward functions. The new representation is highly expressive: for example, it lets us efficiently read off an optimal policy for a new reward function, or a policy that imitates a new demonstration. For this paper, we focus on exact computation of the new representation in small, known environments, since even this restricted setting offers plenty of interesting questions. Our implementation does not scale to large, unknown environments --- nor would we expect it to, since it generalizes POMDP value iteration, which is difficult to scale. However, we believe that future work will allow us to extend our ideas to approximate reasoning in large, unknown environments. We conduct experiments to explore which of the potential barriers to scaling are most pressing.

Introduction

In Reinforcement Learning (RL), agents often face a fundamental trade-off between efficiency and flexibility. Model-free agents are computationally efficient at execution but struggle to adapt when environmental rewards change. Conversely, model-based agents offer high flexibility but are computationally intensive. Successor Representations (SR) have emerged as a powerful middle ground, enabling agents to generalize to new rewards by predicting future feature visitations rather than just scalar values.

However, a significant limitation of standard SRs is their policy dependence. Typically, an SR is tied to a specific policy; evaluating a different strategy often requires re-computation. In this work, we introduce Successor Feature Sets (SFS)—a mathematical framework that allows an agent to reason about the outcomes of all possible policies simultaneously by maintaining a convex set of achievable future outcomes.

The Challenge of Policy Generalization

Traditional RL agents learn value functions for specific tasks. If the reward structure changes—for instance, a robot tasked with finding "red blocks" is suddenly redirected to "blue blocks"—the agent usually requires extensive retraining. Successor Features (SFs) mitigate this by decoupling environment dynamics from rewards, predicting "discounted future features." If the features are known, the value function for any linear reward can be calculated instantly.

The remaining gap is that standard SFs only describe what features will be encountered under the current policy. While techniques like Generalized Policy Improvement (GPI) maintain a small set of policies, they do not capture the full space of possibilities. SFS addresses this by representing the entire convex hull of achievable futures.

Successor Feature Sets (SFS)

We define the Successor Feature Set ($\Phi$) as a convex set of matrices, where each matrix corresponds to a specific policy's future feature expectations. Because stochastic policies are mixtures of deterministic ones, the set of all possible outcomes forms a convex shape.

The Set-Based Bellman Equation

We derive a generalized Bellman operator that updates the entire set rather than a single vector. This operator is a contraction mapping, ensuring convergence to the true set of all possible future outcomes.

Point-Based Approximation

Exact computation of these sets is computationally expensive, inheriting the complexity of POMDP value iteration. To achieve tractability, we employ a point-based approximation: we sample a fixed set of "directions" in the feature space and maintain only the points that extend furthest in those directions. This allows us to approximate the true convex hull efficiently.

Figure 4: Visualization of the convex set approximation using specific directions in feature space.

Experimental Evaluation

We evaluated SFS in small, controlled environments to validate the theoretical framework, including Gridworld (MDP and POMDP) and a discretized Mountain Car environment.

Convergence and Error Reduction

Experiments confirm that the set-based Bellman update converges reliably. A key finding is the relationship between the number of sampled directions and the approximation error. In the Gridworld MDP, increasing the number of directions significantly reduces the Bellman error, with as few as 50 directions providing a high-quality approximation.

Figure 6: Bellman error convergence in the Grid MDP across different approximation sizes (number of directions).

Handling Partial Observability

In POMDP settings, the algorithm successfully converges, though the added uncertainty of the agent's position requires a higher density of directions to accurately map the boundary of the Successor Feature Set.

Conclusion and Future Work

Successor Feature Sets provide a unified framework bridging Predictive State Representations, POMDP value iteration, and Successor Features. By treating behavior geometrically, we can reason about the entire policy space.

While current exact methods face scalability challenges in high-dimensional or unknown environments, the insights from SFS suggest a path forward for approximate, model-free learning. Future research will focus on using nonlinear function approximation, such as deep neural networks, to represent these sets of behaviors, potentially enabling robust generalization in complex, real-world tasks.

Summary updated

BibTeX
@inproceedings{brantley2021successor,
  author = {Kianté Brantley and Soroush Mehri and Geoffrey J. Gordon},
  title = {{Successor Feature Sets: Generalizing Successor Representations Across Policies}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=t5yJLWGGIY},
}
Figure