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

Provably Robust Temporal Difference Learning for Heavy-Tailed Rewards

Semih Cayci, Atilla Eryilmaz

Introduction

Standard reinforcement learning (RL) algorithms, such as Temporal Difference (TD) learning, are built on the foundational assumption that rewards are "light-tailed"—meaning they are either bounded or possess finite variance. However, many real-world systems, ranging from wireless network latencies to financial market fluctuations, exhibit "heavy-tailed" behavior. In these environments, extreme outliers occur with enough frequency that the variance of the reward distribution can be infinite.

When standard RL agents encounter these outliers, their stochastic gradient updates can become massive, causing the algorithm to oscillate wildly or diverge entirely. This paper introduces a provably robust version of TD learning and Natural Actor-Critic (NAC) that utilizes a dynamic gradient clipping mechanism to achieve convergence and near-optimal performance in these volatile settings.

The Challenge of Heavy-Tailed Rewards

In most theoretical RL frameworks, the "average" reward is considered a reliable signal for learning. In heavy-tailed scenarios, however, the average is a poor representation because the signal is dominated by extreme values. For example, in a complex software solver, the time to completion might follow a power-law distribution; most tasks finish quickly, but a few take an exponentially longer time.

Applying standard TD learning to such problems results in gradient steps that are too large to be corrected by traditional methods like iterate averaging or projection. The authors address this by creating algorithms mathematically guaranteed to handle "infinite variance" scenarios by controlling the influence of these outliers.

Methods: Dynamic Gradient Clipping

The core innovation of this research is the integration of a dynamic clipping mechanism into the TD and NAC frameworks.

1. Robust TD Learning

Instead of taking a standard step based on the semi-gradient, the algorithm "clips" the gradient if its magnitude exceeds a threshold $b_t$. Crucially, this threshold is not fixed. It evolves over time to manage the fundamental bias-variance tradeoff:

  • Bias: Clipping a gradient introduces bias because the algorithm is essentially ignoring a portion of the true signal.
  • Variance: In heavy-tailed settings, the variance is infinite, making the raw signal unusable.

By allowing $b_t$ to grow at a specific, mathematically derived rate, the authors ensure that the bias vanishes over time while the variance remains under control.

2. Robust Natural Actor-Critic (NAC)

The authors extend this robust critic (the TD learner) to policy optimization. By using the robust TD learner to estimate the value function, the "actor" can update the policy more reliably, even when the underlying reward signals are extremely noisy.

3. Theoretical Framework

The paper utilizes linear function approximation and provides analysis for both IID sampling and Markovian sampling. Unlike many studies that only provide results "on average" (expectation), this work provides high-probability bounds. This ensures the algorithm is guaranteed to work in almost every individual trial, a critical requirement for safety-critical systems.

Empirical Validation

The authors evaluated their approach using synthetic environments designed to highlight the failure modes of standard methods:

  • Randomly-Generated Markov Reward Process (MRP): A system with 256 states and a feature dimension of 128. Rewards were generated using a Pareto distribution with a tail index of 1.2 (indicating infinite variance).
  • Circular Random Walk: A structured 256-state environment where the agent moves in a circle, used to test performance in a non-random topology.

In these simulations, standard TD learning failed significantly, with error rates that increased over time as more outliers were encountered. In contrast, the Robust TD algorithm demonstrated smooth, consistent convergence toward the optimal value function, effectively neutralizing the impact of outliers.

Key Results and Insights

  • Convergence Rates: The authors proved that Robust TD learning achieves a sample complexity of $O(\epsilon^{-1/p})$ with a full-rank feature matrix, where $p$ represents the moment of the reward that remains finite.
  • NAC Performance: The robust variant of NAC achieves a sample complexity of $\tilde{O}(\epsilon^{-4-2/p})$.
  • Sample Complexity vs. Tail Index: The difficulty of the problem is directly tied to the tail index $p \in (0, 1]$. As $p$ decreases (indicating heavier tails), the number of samples required to reach a specific accuracy ($\epsilon$) increases.

Limitations and Future Work

While this work provides a rigorous foundation for robust RL, several avenues for future research remain:

  • Non-Linear Architectures: The current proofs rely on linear function approximation. Extending these guarantees to Deep Neural Networks is a significant remaining challenge.
  • Two-Timescale Complexity: The NAC algorithm presented is a "two-timescale" version, which can be slower in practice. Exploring single-timescale robust NAC could improve efficiency.
  • Off-Policy Learning: This research focuses on on-policy learning. Extending robustness to off-policy settings, where data is generated by a different policy, remains an open area of study.

Summary updated

BibTeX
@inproceedings{cayci2023provably,
  author = {Semih Cayci and Atilla Eryilmaz},
  title = {{Provably Robust Temporal Difference Learning for Heavy-Tailed Rewards}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=NapL36HSBT},
}
Figure