Variance-Reduced Cascade Q-learning: Algorithms and Sample Complexity

Mohammad Boveiri, Peyman Mohajerin EsfahaniarXiv 2024 · DOI

TL;DR

This paper introduces Variance-Reduced Cascade Q-learning (VRCQ), a novel model-free algorithm that achieves minimax optimal sample complexity for estimating the optimal Q-function in discounted Markov Decision Processes (MDPs). By combining a new "Cascade" filtering scheme with traditional variance reduction, VRCQ provides tighter theoretical guarantees and faster convergence than previous state-of-the-art stochastic approximation methods.

Introduction: The Sample Complexity Challenge

In Reinforcement Learning (RL), a fundamental challenge is determining the sample complexity: how many interactions with an environment are required to find a near-optimal policy? While "model-based" methods (which learn the environment's transitions first) are often sample-efficient, "model-free" methods (which learn values or policies directly) are preferred in practice because they require less memory and are more flexible for large-scale applications.

However, existing model-free algorithms often struggle with "noise" in the samples, especially as the discount factor $\gamma$ (which determines how much we value future rewards) approaches 1. Previous algorithms either had suboptimal dependencies on the "horizon" ($1/(1-\gamma)$) or required very small error thresholds to be effective. The authors aim to close this gap by creating a model-free algorithm that is both worst-case (minimax) optimal and instance-optimal (performing as well as theoretically possible for a specific problem).

The Cascade Q-learning Framework

The authors propose two nested innovations to address these limitations:

  1. Cascade Q-learning (CQ): This is a new base algorithm that extends Polyak-Ruppert (PR) averaged Q-learning by adding an extra "filtering" or momentum-like step. Instead of updating the Q-value directly, CQ maintains two sequences ($Y_n$ and $Z_n$) that "cascade" into each other. This structure effectively smooths out the noise from the Bellman operator, acting as a low-pass filter for the noise that typically accumulates over the infinite horizon of an MDP.
  2. Variance-Reduced Cascade Q-learning (VRCQ): This is the full "meta-algorithm." It uses an epoch-based structure similar to SVRG (Stochastic Variance Reduced Gradient) in optimization. At the start of each epoch, it calculates a high-precision "anchor" estimate of the Bellman operator. During the epoch, it runs the CQ algorithm but "recenters" the updates using that anchor to drastically reduce variance.

A key mathematical breakthrough is showing that VRCQ achieves a geometric convergence rate while using significantly shorter epoch lengths than previous variance-reduced Q-learning methods. Specifically, VRCQ manages to use epochs that are a factor of $1/(1-\gamma)$ shorter than its predecessors, making the algorithm more "agile" and sample-efficient.

Theoretical Performance and Minimax Optimality

The primary contribution of VRCQ is its achievement of minimax optimality. It achieves a sample complexity of $\tilde{O}\left(\frac{r_{max}^2}{\epsilon^2(1-\gamma)^3}\right)$, which matches the known theoretical lower bounds for model-free RL. This represents a significant improvement over standard Q-learning, which typically exhibits a $(1-\gamma)^{-4}$ dependency.

Comparison of worst-case sample complexity and epsilon-range.

As shown in the comparison above, VRCQ maintains a competitive sample complexity across the full $\epsilon \in (0, 1]$ range, whereas other advanced methods like Mirror Descent Value Iteration are restricted to a smaller range of error thresholds to maintain their guarantees.

Sample Size and Error Bounds

Beyond worst-case analysis, the paper demonstrates that VRCQ is highly efficient in terms of its $\ell_\infty$-error bounds. The algorithm is "instance optimal" in the case of policy evaluation (where only one action is available), meaning it performs as well as any possible algorithm could for that specific environment.

The table above highlights that VRCQ's sample size requirement is optimal up to a logarithmic factor in the dimension $D$. This bridges the gap between worst-case theoretical bounds and practical performance, as validated by the authors' numerical simulations on Random Garnet MDPs. In these tests, VRCQ consistently outperformed standard variance-reduced Q-learning, achieving lower average error and lower variance across different discount factors ($\gamma = 0.80$ to $0.90$).

Limitations and Future Directions

While VRCQ represents a major step forward, several avenues for future research remain:

  • Instance Optimality for Multiple Actions: The tighter, case-by-case bound is currently only proven for singleton action sets ($|U|=1$). The authors conjecture it holds for $|U|>1$ but have yet to provide a formal proof.
  • Generative Model Assumption: The current analysis assumes a "generative model" where any state-action pair can be sampled at will. Extending these results to the "online" setting, where an agent must navigate the environment sequentially, is a critical next step.
  • Function Approximation: The current work focuses on "tabular" RL. Integrating these variance reduction techniques with deep neural networks for large-scale problems remains a significant challenge for the field.

Summary updated

BibTeX
@misc{boveiri2024variance,
  author = {Mohammad Boveiri and Peyman Mohajerin Esfahani},
  title = {{Variance-Reduced Cascade Q-learning: Algorithms and Sample Complexity}},
  year = {2024},
  eprint = {2408.06544},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.06544},
}
Figure