TL;DR
This paper introduces RandomizedQ, a novel model-free reinforcement learning algorithm that successfully combines the empirical advantages of Bayesian (sampling-based) exploration with agile, step-wise policy updates. By utilizing an optimistic mixture of two Q-function ensembles, it achieves both a sublinear worst-case regret bound and the first-ever logarithmic gap-dependent regret bound for model-free randomized Q-learning, all while remaining computationally efficient.
What Problem Does This Paper Address?
In reinforcement learning (RL), balancing exploration (trying new things) and exploitation (using what you know) is a fundamental challenge. Most provably efficient model-free algorithms rely on bonus-based methods, adding an artificial "optimism bonus" to uncertain actions (like UCB-Q). However, Bayesian-based exploration (posterior sampling) often shows superior performance in practice.
Unfortunately, theoretical understanding of Bayesian exploration in model-free RL has lagged behind. Existing approaches either suffer from computational intractability or force the agent to update its policy in slow, rigid "stages" to make the mathematical proofs work. These stage-wise updates prevent the agent from responding agilely to new data, severely degrading practical performance. The authors set out to answer a key question: Can we design a model-free RL algorithm with Bayesian exploration that is computationally tractable, sample-efficient, and capable of agile, step-wise policy updates?
Methods
The authors propose RandomizedQ, which replaces explicit exploration bonuses with randomized learning rates sampled from Beta distributions. To achieve both agility and theoretical correctness, RandomizedQ maintains and mixes two distinct Q-function ensembles:
- An Adaptation Ensemble: This ensemble uses a fast-adapting learning rate scaled as $O(H/m)$ (where $H$ is episode length and $m$ is the visit count). This allows the agent to quickly exploit recent observations but causes it to rapidly forget early initialization.
- An Exploration (Staged) Ensemble: This ensemble updates on a slower, staged schedule, preserving long-term optimism and preventing the algorithm from prematurely discarding early data.
Instead of waiting for a stage boundary to update the policy, RandomizedQ performs optimistic mixing at every single step, combining the step-wise agility of the first ensemble with the stable optimism of the second.
Additionally, the authors identify and fix a critical technical gap in prior literature (specifically in the analysis of the RandQL algorithm), introducing a novel reverse filtration and backward martingale construction to properly bound the concentration of randomized learning rates.
Datasets
The algorithm was evaluated on standard tabular RL exploration benchmarks using the rlberry library:
- Grid-World Environments: A standard $10 \times 10$ grid-world and a larger, scarcer $25 \times 25$ grid-world where the agent receives a reward only upon reaching the far corner.
- Chain MDPs: Deep exploration chain environments consisting of $L=20$ and $L=50$ states, where a single wrong move sends the agent back to the beginning, making random exploration highly inefficient.
Key Insights and Ideas
- The Learning Rate Dilemma: Simply randomizing learning rates to mimic standard UCB algorithms doesn't work because the network quickly "forgets" its optimistic initialization. Separating the tracking of recent data from long-term exploration via two distinct ensembles resolves this tension.
- Agility via Mixing: You don't have to sacrifice real-time policy updates to get clean mathematical proofs. Mixing a fast and a slow ensemble allows step-by-step agility while anchoring the proof in the stable properties of the staged ensemble.
- Fixing the Martingale Assumption: Prior work assumed that the partial sums of randomized learning rates formed a standard martingale. The authors realized this independence assumption was broken and fixed it using a backward martingale construction, solidifying the theoretical foundation for randomized learning rates.
Key Results
- Theoretical Guarantees:
- Gap-Independent Regret: Proves a worst-case regret bound of $\widetilde{O}(\sqrt{H^5SAT})$, matching the theoretical performance of bonus-based UCB-Q.
- Gap-Dependent Regret: Establishes an expected logarithmic regret bound of $O\left(\frac{H^6SA}{\Delta_{\min}} \log^5(SAHT)\right)$ under a positive sub-optimality gap $\Delta_{\min}$. This is a milestone result for model-free sampling-based RL.
- Empirical Performance: In experiments, RandomizedQ consistently achieved lower total regret than UCB-Q, standard RandQL, and Staged-RandQL, demonstrating faster learning speeds particularly in large environments with sparse rewards.
The table below highlights how RandomizedQ uniquely satisfies all key algorithmic and theoretical desiderata compared to closely related works:
Limitations and Future Work
- Memory and Compute Overhead: Because RandomizedQ tracks two separate Q-function ensembles simultaneously, it effectively doubles the memory and computational footprint per step compared to single-ensemble methods like Staged-RandQL.
- Tabular Constraint: The current theoretical guarantees are limited to episodic tabular settings (finite states and actions).
- Future Directions: The authors point to extending this randomized learning rate framework to function approximation settings (such as linear or deep neural network representations) and incorporating variance reduction techniques to achieve minimax-optimal regret bounds.
Summary updated