Thompson Sampling for Complex Online Problems

Aditya Gopalan, Shie Mannor, Yishay Mansour

TL;DR

This paper extends the power of Thompson Sampling (TS)—a classic "Bayesian" algorithm—to complex multi-armed bandit problems where actions are interconnected and feedback is aggregated (such as seeing only the maximum reward of a group). The authors provide a new frequentist regret bound proving that Thompson Sampling naturally exploits these connections to learn faster than standard methods, even when the underlying math lacks a simple "closed-form" solution.

What Problem Does This Paper Address?

In a standard Multi-Armed Bandit (MAB) problem, an agent picks one "arm" and observes its reward. However, real-world problems are rarely that simple. Consider Web Advertising: a publisher doesn't just show one ad; they show a subset of ads. If they only see whether any ad was clicked (the "MAX" reward), they don't know exactly which specific ad was the winner.

Standard algorithms like UCB (Upper Confidence Bound) often treat every possible combination of ads as a separate, independent arm. If you have 100 ads and pick 3, there are over 160,000 combinations. Treating them independently makes learning impossibly slow. This paper addresses how to design an algorithm that understands the "coupling" between these actions—knowing that learning about one subset of ads tells you something useful about another.

Methods

The authors advocate for Thompson Sampling, a pseudo-Bayesian approach where the learner maintains a belief (a prior distribution) about the world. In each round, the algorithm:

  1. Samples a possible version of reality from its current belief.
  2. Picks the action that would be optimal in that sampled reality.
  3. Observes the result and updates its belief (the posterior).

Key Methodological Innovations: * General Regret Bound: The authors develop a novel proof technique that views the evolution of the posterior distribution as a "path-based optimization problem." This allows them to prove that TS works for almost any likelihood function, even without the "conjugate priors" (mathematical shortcuts) usually required for such proofs. * Information Complexity: They characterize the regret (the cost of learning) based on the "KL divergence geometry" of the problem. Essentially, if actions are highly informative about each other, the regret constant shrinks. * Implementation via Particle Filters: Since complex problems often result in "messy" math where you can't write down the posterior distribution exactly, the authors use particle filters to approximate the distribution numerically.

Experimental Setups

The paper uses synthetic experimental setups to benchmark the algorithm against standard UCB:

  1. MAX Reward Subset Selection: Choosing a subset of $M$ arms out of $N$ and observing only the maximum reward.
  2. Average Reward Subset Selection: Choosing a subset and observing the average reward.
  3. Job Scheduling: Assigning $N$ types of jobs to 2 machines to minimize the "makespan" (the time the last machine finishes), observing only the total time each machine took.

Key Insights and Ideas

  • TS is "Naturally" Structural: Unlike UCB, which requires a carefully designed "bonus" term for every specific problem structure, Thompson Sampling handles correlations automatically through the Bayes update. If two actions share a common parameter, updating one automatically updates the other.
  • The "Grain of Truth" is Enough: The theoretical results hold as long as the initial "fictitious" prior puts some non-zero mass on the true parameters. You don't need a "perfect" prior for the algorithm to converge to the optimal strategy.
  • Breaking the Exponential Curse: For the MAX reward feedback, the authors show that the regret scales much better than the "decoupled" approach. Instead of scaling with the total number of subsets, it scales more closely with the number of underlying "basic" arms.

Key Results

Cumulative regret comparisons showing Thompson Sampling significantly outperforming UCB in MAX reward settings, alongside makespan scheduling results.
  • Theoretical Regret: The authors prove a frequentist regret bound that scales logarithmically with time ($B + C \log T$). Crucially, the constant $C$ is "non-trivial," meaning it captures the benefit of information coupling across complex actions.
  • Numerical Superiority: As seen in the MAX reward experiments (e.g., 100 arms, picking 3), standard UCB stays in a "discovery phase" for a long time, accumulating massive regret. In contrast, Thompson Sampling identifies the best arms almost immediately, flatlining its regret curve.
  • Efficiency: For subset selection with average rewards (where there are $\approx 10^{13}$ possible actions), Thompson Sampling remains computationally feasible by sampling from a 100-dimensional Gaussian instead of searching through trillions of combinations.

Limitations and Future Work

  • Discrete Prior Assumption: The current mathematical proof requires the prior to be supported on a finite (though potentially very large) set of points. While the authors suspect it works for continuous priors, the "measure-theoretic" proof for that is significantly more complex and left for future work.
  • Additive Constants: The bound includes an additive constant ($B$) that can be large in theory, though the authors note this is likely an artifact of the proof technique and isn't observed in their numerical experiments.
  • Adversarial Settings: The paper focuses on "stochastic" bandits (where rewards come from a fixed distribution). Extending these "path-based" proofs to adversarial settings (where rewards can change maliciously) is a promising next step.

Summary updated

BibTeX
@inproceedings{gopalan2014thompson,
  author = {Aditya Gopalan and Shie Mannor and Yishay Mansour},
  title = {{Thompson Sampling for Complex Online Problems}},
  booktitle = {International Conference on Machine Learning},
  year = {2014},
  url = {https://openreview.net/forum?id=B1WR_sZ_-B},
}
Figure