The successor representation (SR) is a way of encoding a state in reinforcement learning by the expected discounted future occupancy of every other state when an agent starts there and follows a given policy. It separates the predictive structure of the environment from the reward function, so that the value function becomes a simple product of the successor representation and the reward vector.
Proposed by Peter Dayan in 1993 and later generalized to successor features for large and continuous state spaces, the idea sits between model-free and model-based reinforcement learning. It is used for fast adaptation to changing goals, transfer between tasks, exploration bonuses and, in neuroscience, as a model of predictive maps in the hippocampus.
How the successor representation is defined
For a fixed policy pi and a discount factor gamma, the successor representation M(s, s’) is the expected discounted number of future visits to state s’ when starting from state s. Formally, it sums gamma to the power t times the indicator that the agent is in s’ at time t, over all future time steps. In a tabular setting with n states, M is an n x n matrix, and row s is the representation of state s.
The key identity is V(s) = sum over s’ of M(s, s’) R(s’), where R is the expected immediate reward in each state. Value is therefore a linear readout of predicted future occupancy. Under the transition matrix P of the policy, M has the closed form (I minus gamma P) inverse, which links it directly to the Bellman equation.
The table below summarizes the main quantities involved.
| Quantity | Meaning | Typical form |
|---|---|---|
| M(s, s’) | Discounted future visits to s’ from s | n x n matrix in tabular case |
| R(s’) | Expected immediate reward in s’ | Vector of length n |
| Discount factor gamma | Weight of distant future visits | 0.9 to 0.99 in most tasks |
| Feature vector phi(s) | Compact description of a state | Hand-designed or learned |
| Successor features psi(s) | Discounted sum of future phi | Same dimension as phi |
Learning the successor representation from experience
The SR satisfies its own Bellman-style recursion: M(s, 🙂 equals the one-hot vector of s plus gamma times the expected M of the next state. This allows learning with temporal difference updates that look almost identical to TD(0) for values, except that the prediction target is a vector rather than a scalar.
After each transition from s to s’, the agent moves M(s, 🙂 toward the indicator of s plus gamma M(s’, 🙂 with a learning rate alpha. In parallel, a reward estimate is learned by regression on observed rewards. Eligibility traces and n-step bootstrapping can be applied in the usual way.
With successor features, states are described by a feature vector phi, and psi(s) accumulates discounted future features. If reward is approximately linear in the features, r = phi times w, then the value equals psi times w. In deep reinforcement learning, psi is produced by a neural network head trained with a TD loss, while w is fit by regression on rewards.
Comparison with model-free and model-based methods
The successor representation offers a middle ground in computation and flexibility. Model-free methods such as Q-learning cache a single scalar per state, which is cheap but must be relearned slowly when rewards change. Model-based methods store a transition model and plan, which adapts instantly but is computationally expensive.
The comparison below makes these differences explicit.
| Approach | What is stored | Reaction to new rewards | Reaction to new transitions |
|---|---|---|---|
| Model-free value learning | Scalar values or Q-values | Slow relearning | Slow relearning |
| Successor representation | Predictive occupancy map | Immediate via new reward vector | Slow relearning of M |
| Model-based planning | Transition and reward model | Immediate | Immediate after model update |
| Dyna architecture | Values plus learned model | Moderate via simulated updates | Moderate via simulated updates |
The SR thus excels at reward revaluation but remains policy-dependent: if the optimal policy changes because rewards moved, the stored occupancy map no longer matches the new behavior and must be updated.
Uses in transfer, exploration and neuroscience
The strongest practical use is transfer across tasks that share dynamics but differ in reward. With successor features and generalized policy improvement, an agent keeps psi for several previously learned policies and, for a new reward vector w, picks in each state the action that maximizes value across all stored policies. This often yields a strong policy without any new training.
The following table lists representative applications and why the SR suits them.
| Application | How the SR is used | Benefit |
|---|---|---|
| Multitask transfer | Reuse psi with new reward weights w | Fast zero-shot or few-shot adaptation |
| Exploration | Low SR norm marks rarely visited states | Count-like bonus in large spaces |
| Option discovery | Eigenvectors of M define subgoals | Useful temporally extended actions |
| Representation learning | SR as auxiliary prediction target | Features that capture dynamics |
| Neuroscience models | Hippocampal place cells as predictive maps | Explains revaluation behavior in animals |
Limitations and common misconceptions
The SR is not a full world model. It summarizes where a fixed policy tends to go, not what each action does, so it cannot plan new routes when walls appear or transitions change. Tabular SR also scales quadratically with the number of states, which is why successor features and function approximation are required in realistic domains.
- Linear reward assumption: successor features transfer value exactly only when reward is linear in phi.
- Policy dependence: an SR learned under one policy can mislead after the policy changes substantially.
- Feature quality matters: poor phi produces poor psi, regardless of how well TD learning converges.
- Variance of vector targets: learning many outputs at once can be slower and noisier than learning a scalar value.
Understanding it simply
Imagine you know a city well. From your home, you know which streets and places you usually pass on your daily walks. That knowledge does not depend on where the best coffee is today.
The successor representation is this kind of map of where you tend to go next. To judge a starting point, the agent combines the map with the current rewards. If rewards move, only the reward list changes. The map stays useful, so the agent can adapt in an instant.
Applied in practice
A warehouse robotics team trains mobile robots to move between storage aisles, charging docks and packing stations. Layout and travel dynamics stay fixed for months, but the pickup priorities change several times a day as orders arrive. Retraining a value function for each new priority pattern would take far too long.
The team learns successor features over a 64-dimensional state encoding for a handful of base routing policies, then expresses each new priority pattern as a reward weight vector. When a rush order makes one packing station urgent, the robots compute new values with a single dot product per state and choose actions through generalized policy improvement. Adaptation happens within seconds, and retraining is reserved for real layout changes, such as a new aisle that alters the transitions themselves.