Model-free Posterior Sampling via Learning Rate Randomization

Daniil Tiapkin, Denis Belomestny, Daniele Calandriello, Eric Moulines, Remi Munos, Alexey Naumov, Pierre Perrault, Michal Valko, Pierre Menard

Introduction

In reinforcement learning (RL), the challenge of balancing exploration—discovering new information about the environment—and exploitation—leveraging known information to maximize rewards—remains a central hurdle. Traditionally, algorithms have approached this through two main paradigms: model-based methods, which are sample-efficient but computationally intensive, and model-free methods, which are computationally simple but often struggle with efficient exploration.

Presented at NeurIPS 2023, "Model-free Posterior Sampling via Learning Rate Randomization" introduces Randomized Q-learning (RandQL). This algorithm represents the first computationally tractable model-free approach based on posterior sampling, bridging the gap between the simplicity of Q-learning and the robust exploration capabilities of Bayesian methods.

The RandQL Algorithm

The core innovation of RandQL is the use of Learning Rate Randomization. While standard Q-learning uses a fixed or decaying learning rate ($\alpha$), RandQL introduces stochasticity directly into the update step.

Mechanism

The algorithm maintains an ensemble of $J$ Q-value estimates. For every update to a state-action pair $(s, a)$, the agent samples a unique learning rate $w$ from a Beta distribution:

$$w \sim \text{Beta}(H, n)$$

Where $H$ represents the planning horizon and $n$ is the number of times that specific state-action pair has been visited. This randomized step-size naturally induces "optimism in the face of uncertainty." In states that have been rarely visited (low $n$), the variance of the sampled learning rate is high, occasionally producing large Q-value updates that encourage the agent to re-explore those actions. As $n$ increases, the variance decreases, and the estimates stabilize.

Theoretical Variants

To facilitate rigorous theoretical analysis, the authors also propose Staged-RandQL. In this version, Q-values are updated in batches of exponentially increasing size. This structure helps manage the bias inherent in iterative Q-learning updates, allowing the authors to prove that RandQL is stochastically similar to sampling from the posterior of a model-based algorithm like Posterior Sampling Reinforcement Learning (PSRL).

Extending to Continuous Spaces

To move beyond simple tabular environments, the authors integrate RandQL with adaptive discretization, often referred to as "zooming." In continuous state-action spaces, the algorithm does not maintain a fixed grid. Instead, it dynamically partitions the space, creating a finer discretization (zooming in) only in regions that appear promising based on the randomized Q-value estimates. This allows the agent to maintain computational efficiency while achieving high precision in high-reward areas.

Empirical Performance

The authors evaluated RandQL across a variety of benchmarks, comparing it against both traditional model-free baselines and modern deep RL algorithms.

  • Tabular Benchmarks: In $10 \times 10$ Grid-world and 15-state Chain environments, RandQL significantly outperformed OptQL (standard bonus-based Q-learning). It achieved a regret bound of $\tilde{O}(\sqrt{H^5 SAT})$, matching the theoretical performance of state-of-the-art model-free algorithms that rely on complex, manually tuned exploration bonuses.
  • Continuous Environments: In a 2D Ball environment with sparse rewards, Adaptive-RandQL was compared against DQN and Bootstrapped DQN. RandQL proved more efficient at navigating the environment to find distant rewards, demonstrating that learning rate randomization is a powerful driver for exploration even in non-tabular settings.
  • Computational Efficiency: A key advantage of RandQL is its low overhead. It maintains the $O(H)$ time and space complexity per episode characteristic of standard Q-learning, making it significantly faster than model-based competitors like UCBVI.

Conclusion and Future Directions

RandQL demonstrates that carefully calibrated noise in the learning process is not a hindrance but a feature. By replacing deterministic exploration bonuses with randomized updates, the authors provide a mathematically sound and computationally efficient framework for posterior sampling in a model-free context.

While RandQL currently lags slightly behind the most efficient model-based methods in terms of raw sample efficiency—due to the inherent speed at which model-based agents propagate information—it opens several new avenues for research. Future work may involve combining RandQL with variance reduction techniques to reach tighter information-theoretic regret bounds or integrating learning rate randomization into deep neural networks to improve exploration in high-dimensional robotics and control tasks.

Summary updated

BibTeX
@inproceedings{tiapkin2023model,
  author = {Daniil Tiapkin and Denis Belomestny and Daniele Calandriello and Eric Moulines and Remi Munos and Alexey Naumov and Pierre Perrault and Michal Valko and Pierre MENARD},
  title = {{Model-free Posterior Sampling via Learning Rate Randomization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=IrjXmIKFyx},
}
Figure