Abstract
We propose a practical non-episodic PSRL algorithm that, unlike recent state-of-the-art PSRL algorithms, uses a deterministic, model-independent episode switching schedule. Our algorithm, termed deterministic schedule PSRL (DS-PSRL), is efficient in terms of time, sample, and space complexity. We prove a Bayesian regret bound under mild assumptions. Our result is more generally applicable to multiple parameters and continuous state-action problems. We compare our algorithm with state-of-the-art PSRL algorithms on standard discrete and continuous problems from the literature. Finally, we show how the assumptions of our algorithm satisfy a sensible parametrization for a large class of problems in sequential recommendations.
Introduction
Reinforcement Learning (RL) theory has traditionally focused on episodic environments where the system resets periodically. However, many real-world applications—ranging from industrial robotics to recommendation engines—operate in a "continuing" manner without natural resets. Existing algorithms for these non-episodic environments, such as Posterior Sampling for Reinforcement Learning (PSRL), often rely on data-dependent triggers to update policies. Specifically, they may update when visit counts to state-action pairs double. This approach faces two significant challenges: the "Tabular Trap," where tracking visits is impossible in continuous or high-dimensional spaces, and high computational overhead due to frequent policy re-computation.
Methodology: Deterministic Schedule PSRL
The proposed Deterministic Schedule PSRL (DS-PSRL) addresses these challenges by replacing complex, data-driven update triggers with a simple, model-independent exponential schedule.
The Exponential Schedule
Instead of monitoring state-action visit counts, DS-PSRL uses a fixed schedule where the length of each episode doubles over time. If an episode lasts $L$ steps, the subsequent episode is set to $2L$. This ensures that the total number of policy updates remains logarithmic ($O(\log T)$) relative to the total time horizon $T$, drastically reducing computational costs.
Model Generalization and Posterior Sampling
To handle large-scale and continuous spaces, DS-PSRL assumes the environment's transition dynamics are governed by a smooth, low-dimensional parameter $\theta$. At the start of each scheduled episode, the agent:
- Samples a model parameter from its current posterior belief.
- Computes the optimal policy for the sampled model.
- Executes this policy for the duration of the episode.
This parameter-centric approach allows the agent to generalize knowledge across the state space, bypassing the limitations of tabular methods.
Experimental Evaluation
The algorithm was benchmarked against state-of-the-art methods like TSDE across three distinct domains:
- RiverSwim: A discrete benchmark testing exploration capabilities in both scalar and multi-parameter settings.
- Linear Quadratic (LQ) Control: A standard continuous state-action problem from control theory.
- Sequential Recommendations: A simulated task demonstrating the applicability of the algorithm's Lipschitz continuity assumptions to real-world recommendation logic.
Key Results and Insights
Superior Exploration in Discrete Environments
A critical finding is that "less is more" regarding policy updates. In challenging environments like RiverSwim, frequent data-driven updates can cause agents to oscillate between policies, preventing deep exploration. DS-PSRL's deterministic schedule forces the agent to commit to a strategy long enough to reach distant, high-reward states.
Performance in Continuous Control
In the LQ control task, DS-PSRL demonstrated that its general-purpose RL framework can match the performance of specialized control algorithms. This confirms its versatility across both discrete and continuous domains.
Theoretical and Computational Efficiency
Theoretically, DS-PSRL achieves a Bayesian regret bound of $\tilde{O}(\sqrt{T})$. Empirically, it maintains this performance while requiring far fewer policy switches than competitors (e.g., 10-14 switches vs. hundreds for TSDE), making it suitable for large-scale deployment.
Limitations and Future Directions
While DS-PSRL shows strong empirical performance with multiple parameters, the current theoretical proof primarily addresses single scalar parameters. Extending this to high-dimensional vectors is a key area for future work. Additionally, while the number of updates is reduced, solving the sampled MDP remains a potential bottleneck in extremely complex environments. Finally, the theoretical guarantees rely on the environment being "weakly communicating"; environments with irreversible "dead ends" may require further algorithmic refinements.
Summary updated