Q-Learning with Fine-Grained Gap-Dependent Regret

Haochen Zhang, Zhong Zheng, Lingzhou Xue · DOI

Abstract

In Reinforcement Learning (RL), model-based methods have traditionally provided tighter theoretical guarantees than model-free methods. This paper closes that gap by introducing the first fine-grained regret bounds for model-free RL. By developing a new analytical framework that distinguishes between optimal and suboptimal state-action pairs, the authors prove that model-free algorithms can match the efficiency of model-based ones when environments exhibit clear action gaps. The work identifies and corrects significant errors in previous state-of-the-art methods and introduces UCB-Hoeffding, a simplified algorithm that achieves superior performance.

Introduction

A central challenge in Reinforcement Learning is minimizing regret, defined as the difference between the rewards obtained by an optimal policy and those collected by the learning agent. Historically, model-based algorithms—which learn an internal model of environment transitions—have enjoyed "fine-grained" regret bounds. These bounds scale with the difficulty of individual actions. In contrast, model-free methods—which learn value functions directly—were limited to "coarse" bounds dependent on the single most difficult choice in the entire environment (the minimum gap, $\Delta_{min}$).

The "gap" ($\Delta$) represents the value difference between the optimal action and a suboptimal one. If these gaps are large, learning should be faster. However, if even one state has a tiny gap, previous model-free theory predicted poor performance across the whole process. This paper provides the mathematical precision needed to bring model-free Q-learning on par with model-based approaches.

Methods and Algorithms

The authors address the theoretical gap through three primary contributions:

  1. Analytical Framework: A novel approach to separate the analysis of optimal state-action pairs from suboptimal ones. Recognizing that suboptimal actions are visited far less frequently ($O(\log T)$) allows for significantly tighter cumulative error bounds.
  2. Refining Existing Methods: The authors identified critical flaws in the Adaptive Multi-step Bootstrap (AMB) algorithm, specifically regarding truncation rules and martingale difference conditions. They proposed Refined AMB to rectify these theoretical inconsistencies.
  3. UCB-Hoeffding: A simplified algorithm was introduced that utilizes standard Bellman updates with Upper Confidence Bounds. Despite its simplicity compared to multi-step bootstrapping methods, it achieves the desired fine-grained bounds.
Algorithm 1: UCB-Hoeffding

Key Insights

The core of the paper's success lies in the "Imbalance" Insight. By formalizing the fact that suboptimal actions are quickly identified and avoided, the researchers showed that these actions contribute minimally to estimation error. This allows the regret bound to scale with $1/\Delta_h(s,a)$ for each specific action rather than being bottlenecked by a global minimum.

Furthermore, the paper highlights the risks of complex bootstrapping. Multi-step bootstrapping can break the martingale property required for standard concentration inequalities if not handled with extreme care. The authors demonstrate that simpler algorithms, when analyzed correctly, often outperform their more complex counterparts.

Results

The theoretical analysis culminates in the first fine-grained bound for model-free RL, showing that UCB-Hoeffding achieves a regret bound of approximately $O(\sum \frac{H^5}{\Delta_h(s,a)} + \frac{H^6 |Z_{opt}|}{\Delta_{min}})$. This represents a substantial improvement over previous $O(H^6 SA / \Delta_{min})$ results.

Empirical evaluations on synthetic episodic tabular MDPs confirmed these findings. In simulations across various scales, UCB-Hoeffding and Refined AMB significantly outperformed the original AMB. The experiments verified the predicted logarithmic growth of regret, with UCB-Hoeffding emerging as the most effective algorithm overall.

Conclusion

This work successfully bridges the theoretical performance gap between model-based and model-free RL for tabular MDPs. While the current bounds involve high-order polynomial factors of the horizon $H$, the introduction of fine-grained analysis is a major step forward. Future research will focus on extending these results to function approximation settings (such as Deep Q-Learning) and seeking "horizon-free" bounds that are less sensitive to episode length.

Summary updated

BibTeX
@inproceedings{zhang2026q,
  author = {Haochen Zhang and Zhong Zheng and Lingzhou Xue},
  title = {{Q-Learning with Fine-Grained Gap-Dependent Regret}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=fE0RJto3Na},
}
Figure