Generalized Emphatic Temporal Difference Learning: Bias-Variance Analysis

Assaf Hallak, Aviv Tamar, Rémi Munos, Shie Mannor

Introduction

In Reinforcement Learning (RL), policy evaluation is the fundamental task of estimating the value function—the expected cumulative reward—of a specific target policy. This task becomes significantly more complex in the off-policy setting, where an agent learns about a target policy using data generated by a different behavior policy. While off-policy learning is essential for utilizing historical data or learning from human demonstrations, it often leads to instability when combined with function approximation.

The Off-Policy Challenge

Standard methods like Temporal Difference (TD) learning are known to diverge in off-policy scenarios. To address this, Importance Sampling TD (IS-TD) was introduced to provide unbiased estimates, though it often suffers from extreme variance. More recently, Emphatic TD (ETD) was proposed as a stable alternative. However, ETD has largely functioned as a "black box," lacking formal error bounds and offering little flexibility for users to balance stability against accuracy.

Comparison of off-policy error between standard TD and Emphatic TD.

As shown in the figure above, standard TD-error can spike toward infinity in off-policy settings, whereas Emphatic-TD maintains a bounded error, highlighting its inherent stability.

The $ETD(\lambda, \beta)$ Framework

This paper introduces $ETD(\lambda, \beta)$, a generalized framework that adds a decay rate parameter, $\beta$, to the emphatic trace. This parameter allows the algorithm to span a spectrum of methods:

  • $\beta = 0$: Reduces to standard TD, which may diverge.
  • $\beta = 1$: Corresponds to full Importance Sampling TD.
  • $\beta = \gamma$: Recovers the original ETD algorithm, where $\gamma$ is the discount factor.

By varying $\beta$, researchers can now tune the algorithm's behavior to suit specific problem constraints.

Theoretical Stability and Error Bounds

The core theoretical contribution of this work is the proof that the projected Bellman operator underlying $ETD(\lambda, \beta)$ is a contraction. This property guarantees that the algorithm will converge to a unique, stable solution. Leveraging this, the authors derive the first formal asymptotic error bounds for ETD, explicitly linking approximation error to the choice of $\beta$ and the discrepancy between the target and behavior policies.

The Bias-Variance Trade-off

The parameter $\beta$ serves as a critical "knob" for managing the bias-variance trade-off. Increasing $\beta$ reduces asymptotic bias (improving accuracy in the limit) but increases the variance of updates. Conversely, lower values of $\beta$ enhance stability at the cost of higher bias.

The U-shaped error curve demonstrating the optimal decay rate $\beta$.

Experimental validation on synthetic MDPs reveals a characteristic "U-shaped" error curve. Interestingly, the results suggest that the original ETD setting ($\beta = \gamma$) is often suboptimal. By selecting an intermediate value for the decay rate, practitioners can achieve a significantly lower total Mean Squared Error (MSE) than the default formulation allows.

Conclusion and Future Work

By unifying disparate off-policy algorithms into a single mathematical family, this research provides a rigorous foundation for understanding and improving emphatic learning. While the current analysis focuses on asymptotic bounds, future work aims to provide finite-time analysis and develop adaptive methods for automatically tuning $\beta$ during training. Extending these insights from policy evaluation to policy improvement (control) remains a promising frontier for stable off-policy reinforcement learning.

Summary updated

BibTeX
@inproceedings{hallak2016generalized,
  author = {Assaf Hallak and Aviv Tamar and Rémi Munos and Shie Mannor},
  title = {{Generalized Emphatic Temporal Difference Learning: Bias-Variance Analysis}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  doi = {10.1609/aaai.v30i1.10227},
}
Figure