Introduction
In Reinforcement Learning (RL), the credit assignment problem remains a fundamental challenge: when an agent receives a reward, how does it determine which of its previous actions were responsible? The standard solution involves eligibility traces, which act as a fading memory of the agent's recent trajectory. When a prediction error occurs, the agent assigns credit to recently visited states based on this trace.
However, traditional eligibility traces are limited because they only reward the specific path just taken. In complex environments where multiple paths lead to the same outcome, learning from a single trajectory is often slow and high-variance. This paper introduces Predecessor Features, a method that leverages the Successor Representation (SR) to assign credit to the expected history of states, rather than just the most recent sample.
The Predecessor Representation
The core innovation lies in the symmetry of the Successor Representation. While the SR is typically used to predict future state occupancy (where am I going?), its mathematical transpose represents the "Predecessor Representation" (where did I come from?). By using the columns of the SR matrix, an agent can update the values of all viable preceding states, even those not visited in the current episode.
Proposed Algorithms
The authors propose two primary algorithms to implement this concept:
- TD-PR (Temporal Differences – Predecessor Representation): Designed for tabular environments, this algorithm learns the SR matrix and uses its columns as a rich eligibility trace. This allows the agent to propagate learning signals across a distribution of possible predecessors.
- TD-PF (Temporal Differences – Predecessor Features): This generalizes the concept to function approximation (e.g., neural networks). It learns a mapping, $\Psi$, that predicts the expected eligibility trace for any given state feature. Unlike previous "Expected Trace" methods that rely on slow Monte Carlo updates, TD-PF is "fully bootstrapped," learning its trace estimates through TD-learning itself.
Experimental Evaluation
The methods were evaluated on two distinct environments:
- Pachinko (Plinko): A grid-based game where multiple paths lead to the same reward slots. This served as a testbed for the tabular (TD-PR) and linear versions of the algorithm.
- Cartpole: A classic control benchmark used to demonstrate how Predecessor Features integrate with Deep Reinforcement Learning.
Key Results
In the Pachinko experiments, TD-PR consistently reached the optimal value function faster than standard TD($\lambda$) across various learning rates. The shift from sample-based traces to expectation-based traces significantly reduced update variance, leading to more stable learning.
In the Cartpole task, the fully bootstrapped "Predecessor Features" consistently outperformed the non-bootstrapped "Expected Trace" method. This suggests that applying TD-learning principles to the trace itself is a critical driver of performance gains.
Conclusion and Future Work
Predecessor Features provide a more efficient mechanism for credit assignment by moving from specific trajectory samples to an expectation of history. While the method shows superior convergence and robustness to parameter settings like $\lambda$ and $\gamma$, it does introduce computational overhead due to the maintenance of the $\Psi$ matrix. Future research will focus on scaling these predecessor mappings to high-dimensional visual environments and managing non-stationary policies where the environment's transition structure may change over time.
Summary updated