Skip to main content
QUICK REVIEW

[Paper Review] Policy Gradient Optimization of Thompson Sampling Policies

Seungki Min, Ciamac C. Moallemi|arXiv (Cornell University)|Jun 30, 2020
Advanced Bandit Algorithms ResearchDecision Sciences20 references6 citations
TL;DR

This paper proposes optimizing Thompson sampling policies using policy gradient methods by treating the posterior parameter draw as a 'pseudo-action,' enabling efficient gradient-based tuning of sampling strategies. The approach improves Thompson sampling in challenging bandit settings—such as excessive arms or high noise—by learning meta-parameters that reduce over-exploration, achieving significant regret reduction in numerical experiments.

ABSTRACT

We study the use of policy gradient algorithms to optimize over a class of generalized Thompson sampling policies. Our central insight is to view the posterior parameter sampled by Thompson sampling as a kind of pseudo-action. Policy gradient methods can then be tractably applied to search over a class of sampling policies, which determine a probability distribution over pseudo-actions (i.e., sampled parameters) as a function of observed data. We also propose and compare policy gradient estimators that are specialized to Bayesian bandit problems. Numerical experiments demonstrate that direct policy search on top of Thompson sampling automatically corrects for some of the algorithm's known shortcomings and offers meaningful improvements even in long horizon problems where standard Thompson sampling is extremely effective.

Motivation & Objective

  • To address known shortcomings of Thompson sampling, such as over-exploration in short-horizon or high-armed settings, where standard TS performs poorly.
  • To develop a method that enables automated, computation-driven improvement of Thompson sampling policies beyond heuristic design.
  • To enable policy gradient optimization over families of Thompson sampling policies by redefining the decision as selecting a posterior parameter (pseudo-action) rather than a base action.
  • To demonstrate that learning meta-parameters—such as prior hyper-parameters or posterior shape—can yield substantial performance gains in Bayesian bandit problems.

Proposed method

  • Reframe Thompson sampling as a two-stage process: first sampling a parameter (pseudo-action) from a policy-dependent posterior, then selecting the optimal action under that parameter.
  • Treat the sampled parameter as the decision variable, making the action distribution tractable for policy gradient methods via the closed-form posterior density.
  • Parameterize the sampling policy using meta-parameters (e.g., prior variance, noise distribution shape), enabling gradient-based optimization over these hyper-parameters.
  • Use policy gradient estimators specialized for Bayesian bandits, including reward metrics like observed, mean, and Bayes regret, and baselines such as null, oracle, and self-baseline.
  • Apply batched policy gradient ascent with Adam optimizer, updating meta-parameters using stochastic gradients estimated from simulated bandit episodes.
  • Ensure tractability by requiring that the log-density derivative of the sampling distribution with respect to meta-parameters is computable, typically when the density is known up to proportionality.

Experimental results

Research questions

  • RQ1Can policy gradient methods be effectively applied to optimize Thompson sampling policies despite the intractable action distribution in standard formulations?
  • RQ2How do different reward metrics and baselines in policy gradient estimation affect the convergence and performance of learned Thompson sampling policies?
  • RQ3To what extent can learning meta-parameters (e.g., prior variance, posterior shape) improve Thompson sampling in settings where it is known to underperform, such as with many arms or high noise?
  • RQ4Does direct policy search over sampling policies automatically correct for Thompson sampling’s over-exploration in long-horizon or extreme settings?
  • RQ5Can the proposed method achieve performance gains comparable to or better than established bandit algorithms like Bayes-UCB or OGI in challenging bandit environments?

Key findings

  • In the high-arm setting (K=20, T=20), naïve Thompson sampling suffers from extreme over-exploration, achieving a regret of 28.802 (s.e. 0.097), which is suboptimal.
  • The trained policy gradient-optimized Thompson sampling achieves a regret of 20.348 (s.e. 0.126) when using the mean reward metric with an oracle baseline, significantly outperforming naïve TS.
  • The learned policy effectively reduces exploration by skewing pull distribution toward fewer arms over time, as visualized in Figure 4, where initial uniform allocation shifts to selective arm targeting.
  • Different reward metrics and baselines yield similar final performance, but the null baseline outperforms the oracle baseline during early training, indicating that the oracle benchmark is not tightly attainable.
  • The method successfully learns meta-parameters that reshape the posterior sampling distribution, correcting for Thompson sampling’s tendency to explore too aggressively in high-dimensional or redundant arm spaces.
  • The approach achieves performance close to the best-known algorithms (e.g., OGI, Bayes-UCB) in the tested settings, demonstrating the value of automated policy optimization for Bayesian bandits.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.