Sample Complexity Bounds for Two Timescale Value-based Reinforcement Learning Algorithms

Tengyu Xu, Yingbin Liang

Abstract

Two-timescale stochastic approximation (SA) is a fundamental framework for value-based reinforcement learning (RL). It underpins algorithms such as Temporal Difference learning with Gradient Correction (TDC) for policy evaluation and Greedy Gradient-Q (Greedy-GQ) for policy optimization. Despite their popularity, theoretical analysis has historically lagged behind practical implementation, often relying on diminishing stepsizes or independent and identically distributed (i.i.d.) sampling. This paper provides the first tight, non-asymptotic convergence analysis for linear and nonlinear TDC and Greedy-GQ under realistic Markovian sampling. By employing constant stepsizes and mini-batching, we demonstrate that these algorithms achieve state-of-the-art sample complexity, bridging the gap between theoretical guarantees and empirical practice.

Introduction

In reinforcement learning, many algorithms are structured as two-timescale systems. These systems involve two coupled variables updated at different rates: a "fast" iterate that tracks a sub-component (such as a projection or a gradient) and a "slow" iterate that updates the primary value function or policy parameters.

Two prominent examples include:

  • TDC (Temporal Difference with Gradient Correction): A standard approach for off-policy value estimation.
  • Greedy-GQ: A common algorithm for off-policy policy optimization.

While these algorithms are widely used, their convergence properties in realistic settings—specifically under Markovian sampling where data points are temporally correlated—have remained under-explored. Most existing proofs assume diminishing stepsizes, which are often too slow for practical use, or i.i.d. sampling, which does not reflect how RL agents actually collect data. This paper addresses these gaps by analyzing these algorithms using constant stepsizes and mini-batch updates.

Methodology: Mini-batching and Constant Stepsizes

The core technical challenge in two-timescale SA is the coupling between the fast and slow iterates. The fast iterate must accurately "track" the slow iterate to ensure stable convergence. Traditionally, constant stepsizes lead to a persistent error (a "noise floor") that prevents the algorithm from reaching an exact solution.

To overcome this, the authors utilize mini-batch sampling. By taking a batch of $M$ samples at each iteration, the variance of the stochastic updates is suppressed. This allows the algorithm to converge to a specific accuracy level ($\epsilon$) even with a fixed learning rate. The analysis decomposes the total error into two primary components:

  1. Tracking Error: The discrepancy between the fast iterate and its target, which depends on the slow iterate.
  2. Training Error: The distance between the slow iterate and the optimal solution or a stationary point.

Theoretical Results and Sample Complexity

The paper establishes new sample complexity bounds—the number of samples required to reach an $\epsilon$-accurate solution—for three major settings:

1. Linear TDC

For linear TDC in the policy evaluation setting, the authors achieve a sample complexity of $O(\epsilon^{-1} \log(1/\epsilon))$. This result is mathematically optimal, matching the theoretical lower bound for this class of algorithms. It provides a rigorous guarantee that linear TDC is as efficient as possible under Markovian sampling.

2. Nonlinear TDC

Nonlinear TDC has been used for years, but its non-asymptotic convergence rate remained unknown. This paper provides the first such bound, showing that the algorithm reaches a stationary point with a sample complexity of $O(\epsilon^{-2})$. This establishes a formal performance baseline for nonlinear value function approximation in TDC.

3. Greedy-GQ

For policy optimization via Greedy-GQ, the authors provide a significant order-wise improvement. Previous research suggested a complexity of $O(\epsilon^{-3} \log(1/\epsilon))$. This paper improves that bound to $O(\epsilon^{-2})$, matching the standard complexity found in general non-convex optimization and making the algorithm significantly more competitive in theory.

Algorithm Setting Sample Complexity Significance
Linear TDC Policy Evaluation $O(\epsilon^{-1} \log(1/\epsilon))$ Achieves theoretical optimality.
Nonlinear TDC Policy Evaluation $O(\epsilon^{-2})$ First non-asymptotic result for this setting.
Greedy-GQ Policy Optimization $O(\epsilon^{-2})$ Order-wise improvement by a factor of $1/\epsilon$.

Discussion and Limitations

While these results represent a significant step forward for RL theory, there are practical considerations for implementation. The proofs require the mini-batch size $M$ to be sufficiently large to suppress noise; in environments with extremely high variance, the required $M$ might increase computational overhead per iteration. Furthermore, for nonlinear TDC and Greedy-GQ, the results guarantee convergence to a stationary point rather than a global optimum. This is a standard characteristic of non-convex optimization but remains a central challenge for the broader RL field.

Conclusion

This work provides a robust theoretical foundation for two-timescale RL algorithms. By proving that constant stepsizes and mini-batching are sufficient for optimal or near-optimal convergence under Markovian sampling, the authors validate the common practices of RL practitioners. Future work may explore the integration of variance reduction techniques (like SVRG) or acceleration methods (like Nesterov momentum) to further refine these sample complexity bounds.

Summary updated

BibTeX
@inproceedings{xu2021sample,
  author = {Tengyu Xu and Yingbin Liang},
  title = {{Sample Complexity Bounds for Two Timescale Value-based Reinforcement Learning Algorithms}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=MJWXsIS1iw},
}
Figure