Regret Bounds for Thompson Sampling

Summary

Regret measures the cumulative reward lost to not knowing in advance. For the classical Bernoulli bandit, Thompson sampling is asymptotically optimal — it matches the Lai–Robbins lower bound with the sharpest possible constant — and also enjoys non-asymptotic worst-case regret. These classical results, however, don’t explain TS’s success on the tutorial’s complex, structured problems (shortest paths, linear/GLM bandits, RL). Two general-purpose techniques do: (1) translating any UCB regret bound into a TS bound via a pessimism/width argument, yielding bounds through the eluder dimension; and (2) a genuinely different information-theoretic analysis via the information ratio, yielding bounds that scale with the entropy of the optimal action and directly explain both TS’s efficient use of rich feedback and its known failure modes.

Overview

Regret quantifies the entire point of exploring: an algorithm with zero regret would need to know from the start. Two regret objectives recur: conditional (frequentist) regret , evaluated at a fixed true parameter, and Bayesian regret , integrated over the prior. No algorithm minimizes conditional regret at every simultaneously; TS is designed around the Bayesian objective, which is precisely what lets it exploit informative priors — the price is that worst-case (frequentist) guarantees require extra assumptions.

Main Content

Definitions

Cumulative and Bayesian regret

For the -action bandit, per-period regret is and cumulative regret over periods is

More generally, with expected reward and optimal action ,

where the outer expectation integrates over , the noise , and the algorithm’s randomization — this is the Bayesian regret.

Classical (Bernoulli) asymptotic optimality

Lai–Robbins asymptotic bound (Eq. 8.1)

For the Beta-Bernoulli bandit with a unique optimal action ,

where is the Bernoulli KL divergence. Lai & Robbins (1985) prove no algorithm can do asymptotically better than this rate; TS attains it (Chapelle & Li 2011, empirically; Agrawal & Goyal 2012/2013a, Kaufmann et al. 2012, proofs), and the result extends to Gaussian and general one-parameter exponential-family rewards (Honda & Takemura 2014).

This asymptotic () result focuses on the regime where the agent is already highly confident of the best action and explores only to become more confident still — so the bound is dominated by near-optimal actions and can be vacuous when many near-ties exist or actions are uncountable (an issue the information-theoretic bounds below fix).

Instance-independent (worst-case) regret bound (Eq. 8.3)

With a uniform prior, TS on the -action Bernoulli bandit satisfies, uniformly over ,

This is nearly order-optimal: some prior over instances forces expected regret for any algorithm (Bubeck & Cesa-Bianchi 2012).

Regret bounds via UCB (structured problems)

Because TS’s action-selection satisfies for any function measurable w.r.t. history (a consequence of being drawn from the posterior of ), the same pessimism/width decomposition used for UCB algorithms applies to TS with chosen to be any valid upper confidence bound — without ever appearing in the algorithm itself (Russo & Van Roy 2014b). This is the crucial advantage: a UCB algorithm’s regret depends on the specific, possibly hard-to-design it uses, while TS’s regret bound only requires that some good exists.

Linear-bandit regret bound (Eq. 8.5)

If for with sub-Gaussian reward noise, existing UCB analyses (Dani et al. 2008; Rusmevichientong & Tsitsiklis 2010; Abbasi-Yadkori et al. 2011) translate to

for TS, for any prior over a compact parameter set — depending on the model’s dimension , not the number of actions (which may be infinite).

General eluder-dimension bound (Eq. 8.6)

Across a broad class of reward-function families , both TS and well-designed UCB algorithms satisfy

where is the covering number of at resolution (a supervised-learning-style complexity measure) and is the eluder dimension — a new complexity measure (Russo & Van Roy 2013, 2014b) capturing how effectively unobserved actions’ values can be inferred from observed ones. Classical measures like VC dimension are insufficient for bounding online-decision regret; the eluder dimension is what plays that role here. Specialized to the linear model, and , recovering .

Regret bounds via information theory

Information ratio (Eq. 8.7)

For any model and algorithm,

the squared expected per-period regret divided by the mutual information between the optimal action and the impending observation. It is interpreted as the expected cost, in regret, per bit of information acquired about .

Information-theoretic regret bound (Eq. 8.8; Russo & Van Roy 2016)

For any model and algorithm, with ,

where is the Shannon entropy of the prior over the optimal action. Proof sketch: (Cauchy–Schwarz/Jensen, then the chain rule for mutual information: cumulative information gained about cannot exceed its prior entropy).

This bound’s dependence on (rather than ) is precisely what lets it stay meaningful when the number of actions is exponential (or infinite) but the prior over the optimum is informative or the feedback is rich. Concretely, on the online shortest-path problem with edges: bounded feedback (only the total path cost observed) gives and ; full edge-level feedback (every traversed edge’s time observed) gives , i.e. ; and partial per-edge feedback bounded by path length gives . The bound scales with edges, not the (exponentially larger) number of paths, and shrinks whenever the prior already favors the true shortest path (lower ) — formalizing why informative priors on edge lengths accelerate learning (cf. Example 4.1 in Bernoulli Bandit and Thompson Sampling Algorithm).

Why TS randomizes, and when it fails

Randomization is necessary (Example 8.1)

A deterministic stationary strategy (action a fixed function of the current posterior alone) can incur linear regret: with two actions, one known Bernoulli and the other Bernoulli or depending on unknown , any deterministic stationary rule locks onto one action forever for some prior , since the uninformative reward from the fixed action never updates beliefs. Sub-linear Bayesian regret requires either randomization (TS) or non-stationary determinism (typical UCB algorithms use a time-varying ).

Section 8.2 catalogs four regimes where the information ratio reveals TS leaves value on the table (see Multi-Armed Bandits and Thompson Sampling - Overview for the summary): problems needing no active exploration (greedy is fine, e.g. backtestable trading, contextual bandits with informative random contexts); pure-exploration/best-arm-identification (“ranking and selection”), where TS’s tendency to exploit once confident makes it converge too slowly on refining near-ties (a pure-exploration variant of TS fixes this, Russo 2016); time-sensitive learning, where TS over-invests in eventually-negligible gains (the many-armed deterministic-bandit example: TS samples a new action nearly every period even though trying actions in a fixed order finds an -optimal one in steps, independent of ); and problems needing careful information-gain assessment — a “revealing action” that’s known to never pay off but would immediately resolve all uncertainty is never played by TS, and diversified/combinatorial assortments can accelerate learning by a factor of (the assortment size) over TS’s one-type-at-a-time exploration. Information-directed sampling (Russo & Van Roy 2014a, 2018a) — which explicitly minimizes rather than sampling from the posterior — addresses all four at increased computational cost.

Connections

  • The information ratio’s numerator/denominator structure is a direct discrete-decision analog of the EIG’s mutual-information objective in Bayesian experimental design — both score “regret/utility per bit,” but BED has no reward term to trade off against information.
  • The UCB→TS translation formalizes the qualitative UCB/TS parallel drawn in UCB and Greedy Algorithms for Bandits.
  • The eluder-dimension and linear-bandit bounds are the regret-theoretic counterpart to the linear/GLM reward models introduced in Contextual and Linear Bandits.

See Also