Statistical Efficiency of Thompson Sampling for Combinatorial Semi-Bandits

Pierre Perrault, Etienne Boursier, Michal Valko, Vianney Perchet

Overview

This paper bridges a long-standing gap in combinatorial multi-armed bandits (CMAB) by proving that Thompson Sampling can be both computationally efficient and statistically optimal. The authors provide a tight regret analysis for variants of Combinatorial Thompson Sampling (CTS), demonstrating that it matches the performance of the best-known (but computationally intractable) algorithms while remaining practical for large-scale problems like network routing and matching.

The CMAB Trade-off

In a Combinatorial Multi-Armed Bandit (CMAB) setting, an agent selects a "super arm" (such as a portfolio of assets or a path in a graph) rather than a single arm. With semi-bandit feedback, the agent observes the individual outcomes of every base arm within that chosen super arm.

The primary challenge is minimizing "regret"—the difference between the agent's earned reward and the optimal reward achievable with perfect knowledge. Historically, existing algorithms faced a strict trade-off:

  1. CUCB (Combinatorial Upper Confidence Bound): Computationally efficient but suffers from a sub-optimal regret factor that scales linearly with the size of the super arm ($m$).
  2. ESCB (Efficient Sampling for Combinatorial Bandit): Statistically optimal (scaling with $\log^2 m$), but solving its underlying optimization problem is NP-hard, rendering it unusable for large real-world graphs.

The authors investigate whether Thompson Sampling—a Bayesian approach that samples from a distribution to balance exploration and exploitation—can achieve the best of both worlds.

Combinatorial Thompson Sampling (CTS) Variants

The authors analyze two main variants of the CTS policy, along with a refined version for specific edge cases:

  • CTS-BETA: Designed for independent outcomes bounded in $[0, 1]$. It uses Beta distributions as priors for each arm. The agent draws a sample from each arm's posterior, then uses an "Oracle" (an efficient solver for the specific combinatorial problem, like Dijkstra’s algorithm for shortest paths) to pick the best super arm based on those samples.
  • CTS-GAUSSIAN: Designed for the more general "multivariate sub-Gaussian" setting, where arms might have complex dependencies. It utilizes Gaussian priors.
  • CLIP CTS-GAUSSIAN: A refined version for linear reward functions. It "clips" the sampled values between the empirical mean and a UCB-style bound. This prevents the algorithm from being overly optimistic when arms are positively correlated, which can otherwise trigger excessive exploration.

Key Theoretical Insights

To prove tight regret bounds, the authors employ a stochastic dominance argument. They demonstrate that the error in the Thompson Sampling estimates is "weaker" than a set of independent Gaussian variables, allowing them to use powerful concentration inequalities to bound the regret.

Furthermore, previous analyses often tried to control the maximum error across all arms ($\ell_\infty$ norm). This paper achieves a tighter bound by controlling the sum of errors ($\ell_1$ norm) relative to the specific super arm being played. Crucially, they also show that CTS-GAUSSIAN works even when arm outcomes are not independent, provided the joint distribution is "C-sub-Gaussian."

Results: Optimality and Efficiency

The theoretical and empirical results confirm that CTS successfully bridges the gap between CUCB and ESCB.

1. Theoretical Optimality For independent outcomes, the authors prove that CTS-BETA achieves a regret of $O(\log^2(m) \cdot n \log T / \Delta)$. This matches the optimal rate of the computationally inefficient ESCB and significantly improves upon the $O(m)$ factor seen in CUCB.

Comparison of regret bounds showing CTS matching the optimal logarithmic dependence on m.

2. Computational Efficiency Unlike ESCB, which requires solving a difficult non-linear optimization in every round, CTS only requires a single call to a standard linear oracle (like a shortest-path solver). This makes it orders of magnitude faster.

The authors evaluated their algorithms on real-world routing scenarios (the Chesapeake road network) and synthetic matching problems (complete bipartite graphs $K_{n,n}$). In matching problems, CLIP CTS-GAUSSIAN matched the performance of the optimal ESCB while being vastly more scalable.

Execution time comparison (in milliseconds) demonstrating the massive scalability advantage of CTS over ESCB on matching problems.

As shown above, for a $K_{8,8}$ graph, ESCB takes nearly 4.7 seconds (~4694 ms) per round, while CTS takes merely ~0.005 seconds (~5.42 ms).

Limitations and Future Work

  • The Oracle Assumption: The paper assumes the existence of an efficient "Oracle" to solve the underlying combinatorial problem. While true for paths and matchings, some combinatorial problems remain NP-hard even with perfect information.
  • Prior Selection: The theoretical analysis requires a parameter $\beta > 1$ for the Gaussian variance, which acts as a "theoretical artifact." In practice, $\beta=1$ works perfectly well, but a theoretical bridge for this gap is still needed.
  • Correlated Priors: While the paper handles correlated outcomes, it uses independent priors for the arms. Using a correlated (multivariate) prior could further improve performance by allowing the agent to learn about one arm by observing another.

Summary updated

BibTeX
@inproceedings{perrault2020statistical,
  author = {Pierre Perrault and Etienne Boursier and Michal Valko and Vianney Perchet},
  title = {{Statistical Efficiency of Thompson Sampling for Combinatorial Semi-Bandits}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=xWMbWSvpZK},
}
Figure