Two Time-scale Off-Policy TD Learning: Non-asymptotic Analysis over Markovian Samples

Tengyu Xu, Shaofeng Zou, Yingbin Liang

Introduction

In reinforcement learning (RL), off-policy learning—evaluating a "target" policy using data generated by a different "behavior" policy—is a powerful and necessary tool. However, standard Temporal Difference (TD) learning can diverge when combined with linear function approximation in off-policy settings.

To address this, researchers developed Gradient-based TD (GTD) algorithms. A top performer in this class is Temporal Difference with Gradient Correction (TDC). TDC is a "two-time-scale" algorithm: it updates a primary parameter ($\theta$) to estimate the value function at a slow rate, while simultaneously updating an auxiliary parameter ($w$) at a faster rate to "correct" the gradient.

Until recently, mathematical proofs of how fast TDC converges (non-asymptotic analysis) were limited to idealized cases where data samples were independent and identically distributed (i.i.d.). Real RL data, however, is Markovian, meaning the state at time $t+1$ depends heavily on the state at time $t$. This paper bridges that gap, providing the first non-asymptotic convergence analysis for TDC when learning from correlated, Markovian data.

Stepsize Regimes and Convergence

The authors provide a rigorous theoretical analysis of TDC under three distinct stepsize regimes, revealing the complex interaction between the fast and slow variables:

  1. Diminishing Stepsizes: Stepsizes that shrink over time. The authors characterize the exact relationship between the decay rates of the fast and slow scales. They found that the optimal balance is achieved when the fast stepsize decays at a specific rate relative to the slow one (specifically, when the slow decay $\sigma$ is $3/2$ of the fast decay $\nu$).
  2. Constant Stepsizes: Fixed stepsizes lead to fast initial convergence but leave a "noise floor" (a non-vanishing error). The primary variable $\theta$ can only converge as fast as the auxiliary variable $w$ can track the stationary point of the gradient.
  3. Blockwise Diminishing Stepsizes (Proposed): A novel approach where stepsizes are held constant within a "block" of iterations to maintain high speed, then decreased between blocks to ensure accuracy.
Error of primary variable under constant vs. diminishing stepsizes

The constant stepsize trade-off is a key insight: constant stepsizes converge exponentially fast to a neighborhood of the solution, but the size of this neighborhood (the final error) is directly proportional to the tracking error of the auxiliary variable.

Zoomed-in error showing the effect of different decay ratios

Key Results and Evaluation

Using Garnet problems (Generalized Adaptive Retrieval Networks)—a class of abstract, randomly generated Markov Decision Processes (MDPs)—the authors evaluated their findings on a configuration with 500 states, 20 actions, and 20 features.

  • Robust Convergence Rate: Under diminishing stepsizes and Markovian samples, TDC converges at a rate of $O(\frac{\log t}{t^{2/3}})$. This matches the best-known rates for the simpler i.i.d. case, proving that TDC is highly robust to correlated data.
  • Stagewise Acceleration: By using the proposed blockwise scheme, the algorithm "restarts" its linear convergence in every block with a smaller stepsize. This effectively "squeezes" the error down to zero without the sluggishness of traditional diminishing stepsizes, matching the speed of constant stepsizes while achieving high accuracy.

Limitations and Future Work

While this work provides a strong theoretical foundation, the analysis is strictly limited to linear function approximation. Extending these non-asymptotic Markovian results to non-linear models, such as Deep Neural Networks, remains a significant challenge. Additionally, the proposed blockwise algorithm introduces new hyperparameters (like block length and initial error estimates) that require careful tuning.

Looking forward, the authors suggest that their new analytical framework for two-time-scale Markovian systems could be broadly applied to other important RL algorithms, such as Actor-Critic and Gradient Q-learning.

Summary updated

BibTeX
@inproceedings{xu2019two,
  author = {Tengyu Xu and Shaofeng Zou and Yingbin Liang},
  title = {{Two Time-scale Off-Policy TD Learning: Non-asymptotic Analysis over Markovian Samples}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure