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, substantial progress has been made towards understanding the sample efficiency of Q-learning. Consider a $\gamma$-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-\gamma)^5\varepsilon^{2}}$, which fails to match existing minimax lower bounds. This paper addresses these questions: (1) when $|\mathcal{A}|=1$, we prove that the sample complexity of TD learning is minimax optimal and scales as $\frac{|\mathcal{S}|}{(1-\gamma)^3\varepsilon^2}$; (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-\gamma)^4\varepsilon^2}$. Our theory unveils the strict sub-optimality of Q-learning when $|\mathcal{A}|\geq 2$, and rigorizes the negative impact of over-estimation. Finally, we extend our analysis to asynchronous Q-learning, sharpening the horizon dependency of its sample complexity to $\frac{1}{(1-\gamma)^4}$.
Introduction
Q-learning is the "Hello World" of model-free reinforcement learning (RL). Despite its ubiquity, a fundamental theoretical question has lingered for years: Is Q-learning minimax optimal? In other words, does it use the absolute minimum number of samples required by information theory to reach a certain accuracy?
In this work, researchers provide a definitive answer by tightening the analysis of how the "effective horizon" ($H = 1/(1-\gamma)$) impacts sample complexity. They reveal that while Q-learning is a powerhouse, it is provably sub-optimal in certain settings due to a well-known practical issue: over-estimation bias.
Methodology
The authors analyze Synchronous Q-learning (where independent samples for all state-action pairs are drawn from a generative model) and Asynchronous Q-learning (where samples come from a single Markovian trajectory). Their technical approach includes:
- Novel Error Decomposition: Instead of using crude upper bounds at each iteration, they expand the error term recursively to track variance aggregation more precisely.
- Freedman’s Inequality: This martingale concentration inequality is used to provide tight variance control over the stochastic updates.
- Hard Instance Construction: To prove sub-optimality, they constructed a specific "hard" MDP designed to highlight the "over-estimation" bias in the
maxoperator, where multiple actions lead to identical outcomes.
Key Results
The study establishes the first sharp sample complexity analysis for Q-learning, improving previous bounds by a factor of the horizon. A critical finding is the distinction between policy evaluation and control:
- TD Learning ($|A|=1$): The sample complexity is $\tilde{O}(H^3)$, which matches the minimax lower bound, proving its optimality.
- Q-Learning ($|A| \ge 2$): The complexity jumps to $\tilde{O}(H^4)$, revealing a strict sub-optimality compared to the $H^3$ theoretical limit.
As shown in the table above, this work significantly sharpens the horizon dependency compared to prior literature (e.g., Wainwright 2019b, Chen et al. 2020), which often cited $H^5$ dependencies. For the asynchronous setting, the authors similarly improved the known horizon dependency from $H^5$ down to $H^4$.
Discussion and Future Work
This research rigorizes the intuition that over-estimation bias isn't just a nuisance—it fundamentally slows down the convergence rate relative to the horizon. Vanilla Q-learning is not minimax optimal for control; reaching the $H^3$ limit likely requires model-based methods or variance-reduced model-free methods like Speedy Q-learning.
Future research directions include investigating whether Double Q-learning can provably reach minimax optimality and extending these tight horizon dependencies to settings involving function approximation (e.g., Deep Q-Networks).
Summary updated