NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Emphatic Approach to the Problem of Off-policy Temporal-Difference Learning

Richard S. Sutton, Ashique Rupam Mahmood, Martha White

TL;DR

This paper introduces "emphatic TD($\lambda$)", a novel off-policy temporal-difference learning algorithm that achieves stable learning by selectively emphasizing updates based on a "followon trace." This approach offers a simpler and more robust alternative to existing gradient-TD methods for off-policy learning with function approximation, addressing a critical challenge in reinforcement learning.

What Problem Does This Paper Address?

Temporal-difference (TD) learning is a cornerstone of reinforcement learning, enabling agents to learn long-term predictions about future rewards. However, a significant challenge arises in off-policy learning, where an agent learns about one policy (the target policy) while acting according to a different policy (the behavior policy). This scenario is crucial for learning from historical data, demonstrations, and for general world knowledge acquisition.

Traditional TD methods, especially when combined with function approximation (e.g., linear models), become unstable in off-policy settings. This instability can lead to parameter divergence, rendering the learning process useless. While some methods like gradient-TD have been developed to address this, they often introduce additional complexity and parameters. The authors aim to provide a simpler, yet stable, off-policy TD learning algorithm.

Methods

The core innovation is the introduction of "emphatic TD($\lambda$)". This algorithm modifies the standard TD($\lambda$) update by incorporating an emphasis weighting that is proportional to a "followon trace". This trace, denoted by $F_t$, captures how much emphasis should be placed on updates at a given time step.

Here's a breakdown of the key methodological aspects:

  • Emphatic Updates: Instead of treating all updates equally, emphatic TD($\lambda$) reweights them. This emphasis is determined by the followon trace, which is recursively defined and influenced by importance sampling ratios.
  • Followon Trace ($F_t$): This is a novel concept that quantifies the "interest" in future states, considering both the behavior policy and the target policy. It's essentially a weighted sum of importance sampling ratios, discounted over time.
  • Stability Proof: The paper rigorously proves that emphatic TD($\lambda$), under general conditions (including state-dependent discounting and bootstrapping), leads to a stable expected update. This stability is demonstrated by showing that the algorithm's key matrix is positive definite.
  • Generalizations: The authors extend their approach to handle state-dependent discounting ($\gamma(s)$) and bootstrapping ($\lambda(s)$), as well as a user-specified interest function ($i(s)$) for prioritizing certain states. This makes the algorithm more flexible and applicable to a wider range of problems.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and uses illustrative examples rather than large-scale datasets.

Key Insights and Ideas

  • The Power of Emphasis: The central idea is that by selectively emphasizing updates, we can overcome the instability inherent in off-policy TD learning. This emphasis acts as a form of "intelligent attention" to crucial parts of the learning process.
  • Followon Trace as a Stabilizer: The followon trace is the key mechanism for achieving stability. It effectively corrects for the discrepancies between the behavior and target policies by reweighting updates in a way that mirrors the expected future state distribution under the target policy.
  • Simplicity and Elegance: Compared to gradient-TD methods, emphatic TD($\lambda$) is presented as simpler, requiring only one learned parameter vector and one step-size parameter, making it easier to implement and tune.
  • Generalization Capabilities: The inclusion of state-dependent discounting, bootstrapping, and interest functions makes the algorithm highly adaptable to various reinforcement learning scenarios, including those involving options and complex temporal structures.

Key Results

  • Guaranteed Stability: The paper provides a theoretical proof that emphatic TD($\lambda$) is stable under general off-policy learning conditions with linear function approximation. This is a significant theoretical contribution, as instability has been a major roadblock for many off-policy TD algorithms.
  • Empirical Demonstration of Stability: The authors present empirical results on illustrative problems (e.g., the "0->20 problem") showing that emphatic TD($\lambda$) converges to the correct value, while conventional off-policy TD diverges.
  • Reduced Variance (in some cases): While not universally guaranteed, the emphasis mechanism can help to mitigate the high variance often associated with importance sampling in off-policy learning.

Limitations and Future Work

  • Asymptotic Convergence: While stability is proven, the paper focuses on the stability of the expected update. Full convergence with probability one requires additional conditions on the step-size schedule. The authors cite recent work by Yu (2015a,b) that addresses this.
  • High Variance Potential: The paper acknowledges that for certain problems and settings, emphatic TD($\lambda$) can still exhibit high variance, particularly when importance sampling ratios become very large. Strategies for mitigating this include adjusting step sizes, modifying policies, or using weighted importance sampling.
  • Empirical Comparison: The authors state that a thorough empirical comparison with other methods is beyond the scope of the current paper.
  • Future Work:
    • Extending emphatic TD($\lambda$) to action-value and control methods (e.g., Sarsa($\lambda$), Q($\lambda$)).
  • Developing "true online" forms of emphatic TD.
  • Exploring weighted importance sampling with emphatic TD.
  • Investigating the impact of varying emphasis parameters on asymptotic approximation error.
  • Developing algorithms that directly work with the smaller A matrix for stability analysis and variance reduction.
  • Exploring the theoretical benefits of emphasis in scenarios where the feature representation is insufficient.

Summary updated

BibTeX
@article{sutton2016emphatic,
  author = {Richard S. Sutton and Ashique Rupam Mahmood and Martha White},
  title = {{An Emphatic Approach to the Problem of Off-policy Temporal-Difference Learning}},
  journal = {J. Mach. Learn. Res.},
  year = {2016},
  url = {https://openreview.net/forum?id=_bU2SWANQx},
}
Figure