TL;DR
This paper introduces a flexible "$\lambda$-schedule" framework that generalizes Temporal Difference (TD) learning by allowing the $\lambda$ parameter to vary with each time-step. This enables reinforcement learning agents to assign arbitrary weights to different $n$-step returns—such as weighting intermediate lookahead steps equally—rather than being forced into standard TD($\lambda$)'s rigid, exponentially decaying weights. The authors provide rigorous mathematical proofs of convergence for both on-policy and off-policy variants under a general Markov noise framework.
What Problem Does This Paper Address?
Value function estimation is a core challenge in Reinforcement Learning (RL). To predict how well a policy will perform, algorithms must balance a classic trade-off: bias versus variance. One-step TD learning updates predictions based on immediate rewards (low variance, high bias), while Monte Carlo methods wait until the very end of an episode (zero bias, high variance).
The classic TD($\lambda$) algorithm elegantly bridges this gap by blending multi-step ($n$-step) returns. However, it has a major structural limitation: the weight assigned to an $n$-step return decreases exponentially as $n$ increases, controlled by a fixed $\lambda$. Empirical evidence shows that intermediate $n$-step returns often yield the absolute lowest Mean-Squared Error (MSE). Unfortunately, standard TD($\lambda$) cannot be configured to selectively focus on or equally weight these "sweet-spot" intermediate intervals.
Methods
The authors propose a $\lambda$-schedule procedure where $\lambda$ is treated as a sequence $\{\lambda_t\}_{t \geq 1}$ that can vary dynamically over time. To prevent infinite memory growth, they focus on schedules where $\lambda_j = 0$ for all steps beyond a chosen horizon $L$.
Using this framework, they develop three new algorithms:
- TD($\lambda$)-schedule: An on-policy value estimation algorithm.
- GTD($\lambda$)-schedule: A gradient-based off-policy algorithm.
- TDC($\lambda$)-schedule: A two-timescale gradient-based off-policy algorithm.
A key practical implementation highlighted is the EqualWeights($n_1, n_2$) schedule. This specific configuration assigns uniform, equal weight to all $n$-step returns within a chosen window ($n_1 \leq n \leq n_2$) and zero weight to returns outside of it.
Crucially, the paper provides proofs of "almost sure" asymptotic convergence for all three algorithms. They utilize an Ordinary Differential Equation (ODE) based analysis under a general Markov noise framework, which is particularly novel for the two-timescale TDC variant.
Datasets
The algorithms were evaluated using three standard synthetic reinforcement learning benchmarks:
- 100-State Random Walk: A randomly generated discrete Markov Decision Process (MDP) with 100 states and 5 actions per state, used to evaluate on-policy performance.
- Random Chain: A 15-state linear random walk with two absorbing states, configured as an off-policy prediction problem to evaluate the gradient variants.
- Baird's Counterexample: A classic, notoriously difficult 7-state benchmark specifically designed to test whether off-policy algorithms diverge.
Key Insights and Ideas
- Breaking Exponential Decay: By varying $\lambda$ at each step, the algorithm can construct arbitrary weightings of history, allowing practitioners to explicitly target lookahead horizons that minimize MSE for their specific environment.
- The Advantage of Intermediate Horizons: In environments with long episodes, treating intermediate returns equally (e.g., ignoring very short-term noise and very long-term variance) drops the Root Mean Squared Error (RMSE) significantly faster than standard TD($\lambda$).
- Stabilizing Off-Policy Learning: While a naive off-policy extension of the schedule framework diverges on unstable problems, combining the $\lambda$-schedule with gradient-based methods (GTD/TDC) successfully forces convergence.
Key Results
- On-Policy Superiority: On the 100-State Random Walk, the custom
EqualWeights(30, 60)schedule decreased RMSE more rapidly than any standard TD($\lambda$) baseline. - Off-Policy Performance: In the Random Chain environment, both GTD($\lambda$)-schedule and TDC($\lambda$)-schedule achieved lower steady-state RMSE compared to standard GTD2 and TDC across a wide range of step-sizes ($\alpha$).
- Baird's Counterexample Success: On Baird's benchmark, the standard off-policy TD-schedule diverged as expected. However, both GTD($\lambda$)-schedule and TDC($\lambda$)-schedule successfully converged, validating their mathematical stability guarantees.
Limitations and Future Work
- Memory Overhead: Unlike standard TD($\lambda$), which can update its eligibility traces recursively using a single memory state, the $\lambda$-schedule framework cannot be written recursively. It requires storing the agent's last $L$ states in memory, introducing a spatial overhead proportional to the schedule length.
- Manual Tuning: While the paper proves how to use arbitrary schedules, it does not provide an automated way to find the optimal schedule for a given problem; users must still select $n_1$ and $n_2$ empirically.
- Extension to Control: This work focuses entirely on policy evaluation (prediction). Extending the $\lambda$-schedule framework to control algorithms (like SARSA($\lambda$) or Actor-Critic methods) is left for future research.
Summary updated