Abstract
In reinforcement learning (RL), the performance of an agent is often measured by its cumulative regret—the difference between the rewards of an optimal policy and the rewards actually collected. While standard worst-case analyses suggest that regret grows at a rate of $\sqrt{T}$, many real-world environments possess a "sub-optimality gap" that allows for much faster learning. This paper provides the first theoretical proof that a simple, model-free Q-learning algorithm can achieve logarithmic cumulative regret ($\log T$) by exploiting this gap, matching the theoretical efficiency of more complex, memory-intensive model-based methods.
Introduction
A central challenge in Reinforcement Learning is the exploration-exploitation trade-off. To minimize regret, an agent must explore the environment to find high-reward actions while simultaneously exploiting its current knowledge. Traditionally, theoretical guarantees for RL algorithms have focused on the minimax regret, which scales with $\sqrt{T}$ where $T$ is the number of steps. While robust, this bound is often pessimistic.
In many practical scenarios, the environment is "benign," meaning there is a strictly positive difference—a sub-optimality gap ($\Delta_{min}$)—between the value of the best action and the value of the second-best action. Previous research established that model-based algorithms, which explicitly learn transition probabilities, could achieve logarithmic regret in these settings. However, it remained an open question whether model-free algorithms like Q-learning, which are preferred in practice for their low memory overhead, could achieve the same efficiency. This work answers that question in the affirmative.
The Sub-Optimality Gap
The sub-optimality gap, $\Delta_{min}$, represents the minimum difference between the optimal Q-value and the Q-value of any sub-optimal action across all states and time steps. When this gap is positive, the environment provides a clear signal that allows an agent to eventually identify the optimal policy with high confidence. Once the optimal policy is identified, the agent stops accumulating regret, leading to the logarithmic growth rate rather than the square-root growth seen in "harder" environments where actions may be nearly indistinguishable.
Methodology: Q-learning with UCB-Hoeffding
The authors analyze a variant of Q-learning known as Q-learning with UCB-Hoeffding, originally introduced by Jin et al. (2018). This algorithm maintains an estimate of the Q-function and adds an "optimistic" bonus to actions based on the Hoeffding inequality. This bonus encourages the exploration of state-action pairs that have not been visited frequently.
Novel Analysis Technique
The primary contribution of this paper is a novel "counting approach" used to bound the regret. The analysis proceeds in three main stages:
- Interval Layering: The range of possible sub-optimality gaps is partitioned into disjoint intervals (e.g., $[\Delta, 2\Delta), [2\Delta, 4\Delta), \dots$).
- Error Bounding: The authors bound the number of times the algorithm can select a sub-optimal action within each specific interval. This involves showing that the optimistic bonuses eventually shrink enough to prevent the agent from choosing sub-optimal actions.
- Summation: By aggregating these bounds across all layers, the authors derive a total regret bound that scales with $\log T$.
Key Theoretical Results
The paper establishes logarithmic regret bounds for two primary RL settings:
1. Episodic Tabular MDPs
For an episodic Markov Decision Process (MDP) with $S$ states, $A$ actions, and a planning horizon $H$, the expected regret is bounded by: $$O\left(\frac{H^6 SA}{\Delta_{min}} \log(SAT)\right)$$ This result is significant because it matches the known lower bounds for this problem class in terms of its dependence on $S, A,$ and $T$. Notably, the algorithm does not require prior knowledge of $\Delta_{min}$ to achieve this rate; it is naturally adaptive.
2. Infinite-horizon Discounted MDPs
The analysis extends to discounted MDPs where the horizon $H$ is effectively replaced by the term $\frac{1}{1-\gamma}$ (where $\gamma$ is the discount factor). The algorithm maintains its logarithmic efficiency in this setting as well.
Discussion and Implications
Memory Efficiency
One of the most compelling arguments for Q-learning is its space complexity. Model-based algorithms typically require $O(S^2AH)$ space to store transition matrices. In contrast, the analyzed Q-learning approach requires only $O(SAH)$ space. This paper proves that this memory efficiency does not come at the cost of theoretical performance in gap-dependent environments.
Adaptivity and Robustness
Unlike some model-based methods that require a "burn-in" period—a phase of pure exploration before the algorithm becomes efficient—the Hoeffding-based Q-learning bonus is effective from the first step. Furthermore, the algorithm's ability to adapt to the environment's specific $\Delta_{min}$ without manual tuning makes it highly robust.
Limitations and Future Work
While a breakthrough, the work identifies several areas for improvement:
- Horizon Dependence: The $H^6$ factor in the regret bound is likely higher than necessary. Future work may utilize "reference value functions" to reduce this exponent and achieve a tighter bound.
- Function Approximation: The current proof is limited to tabular MDPs. Extending logarithmic regret analysis to linear or neural function approximation remains a significant challenge in RL theory.
- The Gap Assumption: The results depend on $\Delta_{min} > 0$. In environments where the gap is zero or extremely small, the regret reverts to the standard $\sqrt{T}$ rate.
Conclusion
This research demonstrates that simple, model-free Q-learning is theoretically as powerful as more complex model-based approaches in environments with a sub-optimality gap. By providing the first logarithmic regret bound for Q-learning, the authors bridge the gap between the practical popularity of model-free methods and our theoretical understanding of their efficiency.
Summary updated