[Paper Review] (More) Efficient Reinforcement Learning via Posterior Sampling
This paper proposes Posterior Sampling for Reinforcement Learning (PSRL), a provably efficient algorithm that selects policies by sampling from a posterior distribution over MDPs and executing the optimal policy for the sample. It achieves an $ ilde{O}( au S ilde{S} ilde{A} ilde{T})$ regret bound—among the first for a non-optimistic algorithm—and outperforms state-of-the-art optimistic methods like UCRL2 in simulations, demonstrating superior sample efficiency and practical performance.
Most provably-efficient learning algorithms introduce optimism about poorly-understood states and actions to encourage exploration. We study an alternative approach for efficient exploration, posterior sampling for reinforcement learning (PSRL). This algorithm proceeds in repeated episodes of known duration. At the start of each episode, PSRL updates a prior distribution over Markov decision processes and takes one sample from this posterior. PSRL then follows the policy that is optimal for this sample during the episode. The algorithm is conceptually simple, computationally efficient and allows an agent to encode prior knowledge in a natural way. We establish an $ ilde{O}(τS \sqrt{AT})$ bound on the expected regret, where $T$ is time, $τ$ is the episode length and $S$ and $A$ are the cardinalities of the state and action spaces. This bound is one of the first for an algorithm not based on optimism, and close to the state of the art for any reinforcement learning algorithm. We show through simulation that PSRL significantly outperforms existing algorithms with similar regret bounds.
Motivation & Objective
- To develop a provably efficient reinforcement learning algorithm that does not rely on optimism for exploration.
- To establish finite-time regret bounds for a posterior sampling-based approach in MDPs.
- To demonstrate that PSRL is computationally efficient and naturally incorporates prior knowledge.
- To show through simulation that PSRL significantly outperforms existing algorithms with similar regret bounds.
- To establish theoretical and empirical justification for posterior sampling as a viable alternative to optimistic exploration in RL.
Proposed method
- PSRL operates in fixed-length episodes, sampling a single MDP from the posterior distribution at the start of each episode.
- It then computes and executes the optimal policy for the sampled MDP over the episode duration.
- The algorithm maintains a prior over MDP transition dynamics and reward distributions, updated sequentially with observed data.
- Regret analysis leverages concentration inequalities and bounds on the sum of exploration bonuses derived from posterior variance.
- The method separates the learning algorithm from the theoretical analysis, enabling flexible design and robust performance.
- It uses conjugate priors (Dirichlet for transitions, normal-gamma for rewards) to enable efficient posterior updates and sampling.
Experimental results
Research questions
- RQ1Can posterior sampling achieve provably efficient learning in reinforcement learning without relying on optimism?
- RQ2What is the finite-time regret bound of PSRL in terms of episode length, state and action space sizes, and time horizon?
- RQ3How does PSRL compare empirically to optimistic algorithms like UCRL2 in terms of regret and learning speed?
- RQ4Can PSRL effectively incorporate prior knowledge and maintain computational efficiency?
- RQ5Does posterior sampling lead to better sample efficiency than optimism-based methods in challenging MDPs?
Key findings
- PSRL achieves an $ ilde{O}( au S ilde{A} ilde{T})$ expected regret bound, which is among the first for a non-optimistic reinforcement learning algorithm.
- In the RiverSwim MDP, PSRL reduced total regret by over 90% compared to UCRL2 under both episodic and infinite-horizon settings.
- For random 10-state, 5-action MDPs, PSRL achieved a mean regret of $7.30 \times 10^3$ over 10,000 steps, compared to UCRL2’s $1.13 \times 10^5$.
- PSRL outperformed UCRL2 by a large margin in both episodic and non-episodic settings, with faster convergence in regret over time.
- The algorithm’s performance is robust even under a misspecified prior, as shown in simulations with diffuse priors.
- PSRL’s regret bound holds regardless of prior structure, and the method is computationally efficient due to single-sample policy optimization per episode.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.