Skip to main content
QUICK REVIEW

[Paper Review] Is Q-Learning Minimax Optimal? A Tight Sample Complexity Analysis

Gen Li, Changxiao Cai|arXiv (Cornell University)|Feb 12, 2021
Reinforcement Learning in RoboticsComputer Science58 references18 citations
TL;DR

This paper provides a tight sample complexity analysis of Q-learning in the synchronous setting for tabular Markov decision processes, proving that Q-learning is minimax suboptimal when |A| ≥ 2, with sample complexity scaling as O(|S||A|/(1−γ)^4ε²), while TD learning (|A|=1) achieves minimax optimality at O(|S|/(1−γ)^3ε²). The work identifies over-estimation in Q-learning as the source of sub-optimality and extends results to asynchronous Q-learning with horizon dependence O(1/(1−γ)^4).

ABSTRACT

Q-learning, which seeks to learn the optimal Q-function of a Markov decision process (MDP) in a model-free fashion, lies at the heart of reinforcement learning. When it comes to the synchronous setting (such that independent samples for all state-action pairs are drawn from a generative model in each iteration), substantial progress has been made towards understanding the sample efficiency of Q-learning. Consider a $γ$-discounted infinite-horizon MDP with state space $\mathcal{S}$ and action space $\mathcal{A}$: to yield an entrywise $\varepsilon$-approximation of the optimal Q-function, state-of-the-art theory for Q-learning requires a sample size exceeding the order of $\frac{|\mathcal{S}||\mathcal{A}|}{(1-γ)^5\varepsilon^{2}}$, which fails to match existing minimax lower bounds. This gives rise to natural questions: what is the sharp sample complexity of Q-learning? Is Q-learning provably sub-optimal? This paper addresses these questions for the synchronous setting: (1) when $|\mathcal{A}|=1$ (so that Q-learning reduces to TD learning), we prove that the sample complexity of TD learning is minimax optimal and scales as $\frac{|\mathcal{S}|}{(1-γ)^3\varepsilon^2}$ (up to log factor); (2) when $|\mathcal{A}|\geq 2$, we settle the sample complexity of Q-learning to be on the order of $\frac{|\mathcal{S}||\mathcal{A}|}{(1-γ)^4\varepsilon^2}$ (up to log factor). Our theory unveils the strict sub-optimality of Q-learning when $|\mathcal{A}|\geq 2$, and rigorizes the negative impact of over-estimation in Q-learning. Finally, we extend our analysis to accommodate asynchronous Q-learning (i.e., the case with Markovian samples), sharpening the horizon dependency of its sample complexity to be $\frac{1}{(1-γ)^4}$.

Motivation & Objective

  • To resolve the open question of whether Q-learning achieves minimax optimal sample complexity in the synchronous setting for tabular MDPs.
  • To identify the fundamental statistical limits of Q-learning by comparing its sample complexity to minimax lower bounds.
  • To investigate the impact of over-estimation in Q-learning and its role in sub-optimality when multiple actions are present.
  • To extend the analysis to asynchronous Q-learning with Markovian samples, refining the horizon dependency.
  • To establish tight upper and lower bounds for both synchronous and asynchronous Q-learning under the ℓ∞-norm error criterion.

Proposed method

  • Derives a tight upper bound for synchronous Q-learning using recurrence relations and concentration inequalities on the error vector Δt.
  • Introduces auxiliary sequences Q̂k(a) and Q̄k to decouple the max operator and control over-estimation effects in Q-learning.
  • Employs a hard instance construction with two actions and a single state to derive a minimax lower bound that matches the upper bound up to log factors.
  • Applies Freedman’s inequality and Bernstein-type concentration to control the deviation of empirical transition probabilities.
  • Adapts the analysis to asynchronous Q-learning by modeling the process as a Markovian sampling scheme with mixing time constraints.
  • Uses iterative error propagation and recursive decomposition to bound the expected ℓ∞-error of Q-learning estimates.
Figure 1: The constructed hard MDP instance used in the analysis of Theorem 3 , where $p=\frac{4\gamma-1}{3\gamma}$ and the specifications are described in ( 46 ).
Figure 1: The constructed hard MDP instance used in the analysis of Theorem 3 , where $p=\frac{4\gamma-1}{3\gamma}$ and the specifications are described in ( 46 ).

Experimental results

Research questions

  • RQ1Is Q-learning minimax optimal in terms of sample complexity for tabular MDPs with |A| ≥ 2?
  • RQ2What is the exact dependence of Q-learning’s sample complexity on the effective horizon 1/(1−γ) in the synchronous setting?
  • RQ3How does over-estimation in Q-learning contribute to its sub-optimality compared to TD learning?
  • RQ4Can the sample complexity of asynchronous Q-learning be tightened, particularly in terms of the (1−γ)−1 dependence?
  • RQ5What is the minimax lower bound for Q-learning, and does it match the upper bound up to logarithmic factors?

Key findings

  • For |A| = 1 (TD learning), the sample complexity is minimax optimal and scales as O(|S|/(1−γ)^3ε²), matching the minimax lower bound up to logarithmic factors.
  • For |A| ≥ 2, Q-learning’s sample complexity is O(|S||A|/(1−γ)^4ε²), which is strictly suboptimal compared to the minimax lower bound of O(|S||A|/(1−γ)^3ε²).
  • The sub-optimality of Q-learning is rigorously attributed to over-estimation in the Q-value update, which accumulates error across iterations.
  • The analysis establishes that the effective horizon dependence in Q-learning is O(1/(1−γ)^4), which is worse than the optimal O(1/(1−γ)^3) achievable by model-based methods.
  • For asynchronous Q-learning with Markovian samples, the sample complexity scales as O(1/(1−γ)^4) in the effective horizon, matching the synchronous case up to log factors.
  • The paper constructs a hard MDP instance where the expected ℓ∞-error of Q-learning is bounded below by Ω(1/√(μ_min(1−γ)^4T log^3 T)), proving the tightness of the upper bound.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.