Emphatic Temporal-Difference Learning

Ashique Rupam Mahmood, Huizhen Yu, Martha White, Richard S. SuttonarXiv 2015

Introduction

In reinforcement learning (RL), agents typically use Temporal-Difference (TD) learning to estimate the value of states. However, scaling these methods to large-scale environments requires function approximation (e.g., linear models or neural networks). A long-standing challenge in the field is the "deadly triad": the instability that arises when combining off-policy learning, bootstrapping, and function approximation.

Standard TD algorithms allocate resources based on the frequency of state visits under the behavior policy. This is problematic when a user has specific "interest" in certain states (like starting positions) or when the agent must learn about a target policy that differs significantly from its current behavior. Naive attempts to reweight updates often lead to divergence. Emphatic Temporal-Difference (ETD) learning addresses this by introducing a principled way to selectively emphasize updates, ensuring stability and convergence even in off-policy scenarios.

The ETD($\lambda$) Algorithm

ETD($\lambda$) modifies the standard TD update by incorporating two key scalars:

  1. Interest $i(s)$: A user-defined weight representing the importance of accurately estimating the value of state $s$.
  2. Emphasis $M_t$: A dynamic scalar that modulates the update at each step.

The core innovation lies in the calculation of emphasis. $M_t$ is not merely the current interest; it is an accumulated trace that accounts for the interest in the current state plus the emphasis of preceding states that "bootstrapped" from it. By scaling eligibility traces with $M_t$, ETD effectively aligns the update distribution with the occupancy probabilities of the target policy rather than the behavior policy. This mathematical correction ensures that the underlying update matrix remains positive definite, guaranteeing global asymptotic stability for linear function approximation.

Empirical Evaluation: The Miner Problem

To demonstrate the algorithm's capabilities, the authors introduced the "Miner problem," a custom gridworld environment. In this task, an agent wanders the grid following a fixed, random behavior policy while simultaneously attempting to learn the value functions for three distinct target policies: "uniform," "headfirst," and "cautious."

The Miner problem gridworld environment used for empirical testing.

Key Results

ETD($\lambda$) successfully learned the value functions for all three target policies simultaneously from a single stream of off-policy data. As shown in the performance curves, the algorithm correctly preserved the relative ordering of the policies' values (e.g., identifying the "cautious" policy as the most effective for gold collection).

While the algorithm provides strong theoretical convergence guarantees, the empirical results highlighted a practical challenge: high variance. Because emphasis traces can grow significantly due to importance sampling ratios, the authors utilized update clipping to maintain stability during training. Despite this, ETD($\lambda$) maintains the same $O(n)$ computational complexity as standard TD($\lambda$), making it a viable candidate for large-scale applications.

Conclusion

Emphatic TD learning provides a unified framework for stable off-policy learning with function approximation. By formalizing the concepts of interest and emphasis, it allows researchers to specify what they care about without risking algorithmic divergence. Future work remains focused on combining ETD with variance-reduction techniques, such as weighted importance sampling, to further improve its empirical robustness.

Summary updated

BibTeX
@misc{mahmood2015emphatic,
  author = {Ashique Rupam Mahmood and Huizhen Yu and Martha White and Richard S. Sutton},
  title = {{Emphatic Temporal-Difference Learning}},
  year = {2015},
  eprint = {1507.01569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1507.01569},
}
Figure