Scalar Posterior Sampling with Applications

Georgios Theocharous, Zheng Wen, Yasin Abbasi, Nikos VlassisNeurIPS 2018

Researchers from Adobe and Netflix have introduced DS-PSRL, a practical reinforcement learning (RL) algorithm designed to handle "continuing" environments—those without natural resets. By utilizing a simple, deterministic schedule for updating its strategy and focusing on models defined by a single scalar parameter, DS-PSRL achieves a regret bound that grows with time but remains independent of the number of states. This makes it highly efficient for complex, large-scale systems like recommendation engines.

The Challenge of Non-Episodic Environments

Most RL theory relies on the concept of "episodes"—neatly packaged sequences where the environment resets to a starting state (similar to a video game resetting after a level). However, the real world rarely resets. Manufacturing robots, power grids, and recommendation systems operate continuously.

Existing versions of Posterior Sampling for Reinforcement Learning (PSRL)—a popular "Thompson Sampling" approach where the agent samples a model from its beliefs and acts optimally for it—struggle with these non-resetting environments. Previous solutions were often computationally expensive, mathematically inconsistent, or required "tabular" representations that count every single visit to every state-action pair. This tabular requirement makes them impractical for continuous or high-dimensional spaces where an agent might never visit the exact same state twice.

Introducing DS-PSRL

The authors propose Deterministic Schedule PSRL (DS-PSRL), an algorithm built on three core innovations:

  1. Deterministic Switching: Instead of waiting for complex statistical triggers (like doubling the number of times a state was visited), DS-PSRL switches its policy on a fixed, exponential schedule. If the current episode lasts $L$ steps, the next one lasts $2L$. This ensures the total number of policy updates is only logarithmic relative to time ($O(\log T)$), drastically reducing the computational burden of re-solving the Markov Decision Process (MDP).
  2. Scalar Parametrization: The algorithm assumes the entire environment's dynamics can be captured by a single scalar parameter ($\theta$). While seemingly restrictive, many complex systems can be modeled this way (e.g., a single "propensity to listen" parameter in a music recommendation system).
  3. Generalization: Because it doesn't rely on counting state visits, the algorithm naturally handles continuous state and action spaces.

Key Insights

  • The Power of Laziness: You don't need to update your policy the moment you learn something new. By updating "exponentially rarely," the agent maintains a stable strategy long enough to explore effectively, while still converging to optimal behavior over time.
  • Breaking the Curse of Dimensionality: In traditional RL, regret (the gap between actual and optimal performance) usually scales with the number of states ($S$). DS-PSRL’s regret is independent of $S$, depending instead on the smoothness of the model's dynamics and how quickly the posterior distribution concentrates.
  • Multi-step Exploration: By switching policies less frequently, the agent is more likely to reach distant, high-reward parts of the state space that "frequent switchers" might miss due to oscillating behavior.

Experimental Results and Efficiency

The authors evaluated DS-PSRL across distinct environments, including RiverSwim (a discrete benchmark), Linear Quadratic (LQ) Control (a continuous-state control problem), and Point of Interest (POI) Recommendation.

Theoretical Guarantee: The authors proved a Bayesian regret bound of $\tilde{O}(\sqrt{T})$. This matches the "gold standard" rate for RL algorithms but applies to a much broader class of non-episodic problems.

Efficiency: DS-PSRL requires significantly fewer policy switches than state-of-the-art algorithms like TSDE. In one experiment, DS-PSRL used only 14 switches compared to over 300 for its competitors, while achieving better or equal rewards.

Comparison of average reward and policy switches between DS-PSRL and TSDE.

Robustness in Continuous Control: In the LQ problem, DS-PSRL demonstrated rapid convergence to optimal costs while maintaining a fraction of the policy switches required by baselines.

Performance on the Linear Quadratic (LQ) control problem, demonstrating lower average cost and fewer switches.

Limitations and Future Work

The most significant limitation is the scalar assumption. While the authors showed that DS-PSRL works empirically with multiple parameters (using a Dirichlet prior), their rigorous mathematical proof is currently limited to the single-parameter case.

Additionally, the algorithm assumes the agent has access to an "exact" solver to find the optimal policy for a sampled model. In extremely complex environments, finding this optimal policy is itself a difficult task. Future work could involve extending the theoretical analysis to multi-dimensional parameters and integrating "approximate" solvers.

Summary updated

BibTeX
@inproceedings{theocharous2018scalar,
  author = {Georgios Theocharous and Zheng Wen and Yasin Abbasi and Nikos Vlassis},
  title = {{Scalar Posterior Sampling with Applications}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=HJWglwbd-r},
}
Figure