Conditions on Features for Temporal Difference-Like Methods to Converge

Marcus Hutter, Samuel Yang-Zhao, Sultan Javed Majeed

Introduction

In reinforcement learning (RL), linear function approximation is the workhorse for estimating value functions in high-dimensional or continuous state spaces. However, the literature is filled with counter-examples where standard algorithms like Temporal Difference (TD) learning fail to converge, even when the features are capable of perfectly representing the true value function. This paper provides a definitive theoretical answer to this problem by introducing the "flat extrema" condition.

The Bellman Template and Natural Algorithms

The authors analyze a broad class of "natural algorithms"—including $TD(\lambda)$, $GTD(\lambda)$, and Residual Gradient methods—through a unified framework called the Bellman Template. These algorithms are characterized by solving a projected Bellman equation. The paper demonstrates that the convergence of these methods depends not on the representability of the value function, but on the geometric properties of the feature space.

The "Flat Extrema" Condition

The central result of the paper, Theorem 5.1, states that natural algorithms converge to a unique solution if and only if every non-zero linear combination of the features achieves its maximum and minimum values over a region of the state space that the agent visits with non-zero probability (under the stationary distribution $\mu$).

Figure 1: Comparison between a 'pointy' feature (f) and a 'flat' feature (g). The sharp peak in f can lead to algorithmic 'blindness' and divergence.

When a feature has a "sharp" or "pointy" maximum (as seen in function $f$ in Figure 1), there is zero probability of the agent being exactly at that point in a continuous space. This creates ambiguity: the algorithm cannot distinguish between the correct value function and a scaled-up version of it, potentially leading to divergence. Conversely, "capping" the peaks (function $g$) ensures the algorithm can observe the extrema.

Practical Implications: State Aggregation

One of the most significant practical insights is the theoretical validation of state aggregation. By grouping states into discrete bins, researchers create features that are naturally piecewise constant. Because every "bin" has a non-zero measure under $\mu$, these features inherently satisfy the flat extrema condition.

Figure 5: Piecewise constant features used in state aggregation. These features are 'safe' because they reach their extrema over entire partitions of the state space.

As shown in Figure 5, state aggregation ensures that the function $\varphi(s)$ is constant over partitions $\mathcal{S}_i$. The authors suggest that even piece-wise linear features can be made safe if they are constructed to ensure such flat maxima.

Conclusion

By unifying 25 years of RL counter-examples—from Baird’s divergence to Tsitsiklis and Van Roy’s representability failures—into a single geometric rule, this work provides essential guidance for feature engineering. To ensure convergence, researchers must ensure that their linear feature sets do not "hide" their most extreme values in regions of zero probability.

Summary updated

BibTeX
@inproceedings{hutter2019conditions,
  author = {Marcus Hutter and Samuel Yang-Zhao and Sultan Javed Majeed},
  title = {{Conditions on Features for Temporal Difference-Like Methods to Converge}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/357},
}
Figure