Bayesian Optimization
Part III: Bayesian Optimization
中文

Regret, Bandits, and Guarantees

Chapter 12 left us with a shelf of acquisition functions, each a reasonable answer to the question of where to evaluate next. Choosing among them, or proposing a new one, needs a way to say that one optimizer is better than another. The everyday answer is a benchmark plot: the best value found against the number of evaluations, on a handful of test functions. Later chapters use such plots. This chapter asks for something sturdier: a score that is defined for every problem, and statements about that score that hold for every problem in a stated class.

The score is called regret, and its theory grew up around a problem simpler than Bayesian optimization: the multi-armed bandit, in which a gambler chooses again and again among a few slot machines with unknown payout rates. The bandit strips the exploration and exploitation trade-off of Section 11.3 down to its bones. In that setting we can count how much exploring an algorithm does, show that the best algorithms explore only logarithmically often, and prove that no algorithm can explore less. We then carry the analysis back to functions, where a Gaussian process turns infinitely many correlated arms into a problem with a measurable complexity, and the GP-UCB algorithm comes with a bound in terms of it.

The last section is the one to read even if you skip the proofs. A regret bound is a precise statement about a stylized problem. It says some useful things about practice and is silent about others, and the figures in this chapter let you see how far apart a bound and an algorithm's behavior can be.

13.1 Scoring an optimizer #

Picture two optimizers working on the running objective of Chapter 11. The first spends most of its evaluations near the taller peak. The second wanders over the whole domain for most of its budget and, at the end, recommends the same peak. Which one did better? It depends on whether the evaluations along the way cost something beyond their price: whether we care about the journey or only the destination. Two kinds of regret make the two answers precise.

We maximize an unknown function ff over a domain X\X. Write f⋆=max⁡x∈Xf(x)f^\star = \max_{\vx \in \X} f(\vx) for the best value and x⋆\vx^\star for an input that attains it, as in Equation (11.1). An optimizer evaluates ff at x1,x2,…\vx_1, \vx_2, \dots, possibly with noise, and after TT evaluations it recommends an input x^T\hat\vx_T, usually the best one observed or the maximizer of the posterior mean.

Definition 13.1 Regret

The instantaneous regret of the tt-th evaluation is the shortfall of the input chosen,

rt=f⋆−f(xt)  ≥  0.r_t = f^\star - f(\vx_t) \;\ge\; 0.

The cumulative regret after TT evaluations adds up the shortfalls along the way, and the simple regret scores only the recommendation:

RT=∑t=1Trt,sT=f⋆−f(x^T).R_T = \sum_{t=1}^{T} r_t, \qquad s_T = f^\star - f(\hat\vx_T).
(13.1)

Regret is measured with the true ff at the chosen inputs, not with the noisy observations, and the optimizer can never compute it, because it does not know f⋆f^\star. Regret is the analyst's score: computable on a benchmark whose maximum is known, and the quantity that theorems bound.

Example 13.1 Same destination, different journeys

Let f⋆=1f^\star = 1. Optimizer A evaluates three inputs with values 0.20.2, 0.70.7, and 0.90.9. Its instantaneous regrets are 0.80.8, 0.30.3, and 0.10.1, so R3=1.2R_3 = 1.2, and if it recommends its best input, s3=0.1s_3 = 0.1. Optimizer B evaluates three inputs worth 0.90.9 each. It has the same simple regret, s3=0.1s_3 = 0.1, and a quarter of the cumulative regret, R3=0.3R_3 = 0.3.

Since every rtr_t is at most the range of ff, cumulative regret can grow at most linearly in TT. An optimizer that never learns, such as one that queries uniformly at random forever, does grow linearly: each evaluation costs the same amount on average. An optimizer is called no-regret when its cumulative regret grows sublinearly, more slowly than any straight line, so that the average regret RT/TR_T / T tends to zero. A bound of the form RT≤CTR_T \le C\sqrt{T} says the average regret falls like 1/T1/\sqrt{T}; a bound of the form RT≤Clog⁡TR_T \le C \log T says almost all late evaluations are spent at nearly optimal inputs.

A bound on cumulative regret also bounds the simple regret of the best input visited. The smallest of TT numbers is at most their average, so

f⋆−max⁡t≤Tf(xt)  =  min⁡t≤Trt  ≤  RTT.f^\star - \max_{t \le T} f(\vx_t) \;=\; \min_{t \le T} r_t \;\le\; \frac{R_T}{T}.
(13.2)

This is how cumulative regret bounds become convergence rates for optimization (Srinivas et al., 2010). Two caveats come with it. With noisy observations, the optimizer does not know which of its inputs had the largest ff, so the best input visited is not the same as the best input it can identify; choosing what to report is a practical problem of its own (Section 14.2). And the converse fails: an optimizer that explores evenly can have small simple regret and linear cumulative regret. In the bandit problems of the next section the gap is sharp. On a fixed problem, the simple regret of uniform exploration falls exponentially with the budget, while algorithms that keep cumulative regret low have simple regret that falls only polynomially, because they stop sampling the near-best competitors as soon as they can (Bubeck et al., 2009; Lattimore and Szepesvári, 2020, ch. 33).

Which score to use depends on who pays for the evaluations. When tuning the hyperparameters of a model, or searching for a material, only the final recommendation is used; the evaluations along the way are a cost measured in compute or lab time, and simple regret is the right score. In an online experiment, every evaluation is a product variant shown to real users, and in a preference study, every option is something a person has to look at, wear, or listen to; there the path matters and cumulative regret is the right score. Section 19.6 describes a preference method with the better final answer and more than 2.5 times the cumulative regret of its competitor (Xu et al., 2024b).

A last distinction concerns what a bound quantifies over. A frequentist bound holds for every function in a stated class, such as all functions of a given smoothness. A Bayesian bound holds on average, or with high probability, over functions drawn from a prior. Both kinds appear in Section 13.4.

Key idea The destination and the journey

Simple regret scores the final recommendation; cumulative regret scores every evaluation along the way. Low cumulative regret implies low simple regret for the best input visited, but not the other way around.

Sources cited in Section 13.1 4
  1. Srinivas et al. (2010) Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design
  2. Bubeck et al. (2009) Pure Exploration in Multi-armed Bandits Problems
  3. Lattimore and Szepesvári (2020) Bandit Algorithms
  4. Xu et al. (2024b) Principled Preferential Bayesian Optimization

13.2 Multi-armed bandits #

Counting exploration requires a setting simple enough to count in. The multi-armed bandit is that setting. There are KK actions, called arms after the lever of a slot machine. Pulling arm ii returns a random reward whose distribution is fixed but unknown, with mean θi\theta_i. A player pulls one arm per round for TT rounds and wants the largest total reward. The earliest rule for such a problem is Thompson's, from 1933 (Thompson, 1933); Robbins stated the problem formally in 1952, as a question in the sequential design of experiments, and introduced the notion of regret (Robbins, 1952; Lattimore and Szepesvári, 2020, ch. 4).

A bandit is Bayesian optimization with two simplifications. The domain is a finite set of KK inputs, and the inputs are unrelated: pulling arm 3 says nothing about arm 4. Everything else carries over, including the noise, the budget, and the tension between trying the arm that looks best and checking the ones that might be better.

In this section each reward is a coin flip: a pull of arm ii pays 1 with probability θi\theta_i and 0 otherwise. Write θ∗=max⁡iθi\theta^* = \max_i \theta_i for the best arm's mean and Δi=θ∗−θi\Delta_i = \theta^* - \theta_i for the gap of arm ii, how much is lost on average each time it is pulled instead of the best arm. (In this section θi\theta_i is an arm's mean reward; the symbol μ\mu stays reserved for the posterior mean of a Gaussian process.)

The regret of a bandit algorithm is cumulative regret with the arm means in the role of ff: RT=∑t(θ∗−θat)R_T = \sum_{t} (\theta^* - \theta_{a_t}), where ata_t is the arm pulled in round tt. Because it uses the means rather than the coin flips that happened, it is sometimes called the pseudo-regret. Let Ni(T)N_i(T) count the pulls of arm ii in the first TT rounds. Grouping the sum by arm gives

E[RT]=∑i=1KΔi E[Ni(T)].\E[R_T] = \sum_{i=1}^{K} \Delta_i \, \E[N_i(T)].
(13.3)

The decomposition turns the problem into bookkeeping. Regret is the number of times each worse arm is pulled, weighted by how much worse it is. An algorithm keeps regret low by pulling bad arms rarely, but it can only learn that an arm is bad by pulling it. The whole subject is the question of how many pulls are enough.

Before reading about algorithms, try it yourself. The figure below hides the payout rates of five arms; you have 50 pulls.

youε-greedyUCB1Thompsonmean θPull 0 of 50 · total reward 0Arm 1?0 pulls · 0 wonArm 2?0 pulls · 0 wonArm 3?0 pulls · 0 wonArm 4?0 pulls · 0 wonArm 5?0 pulls · 0 won0246810cumulative regret01020304050round tyour regret appears when the arms are revealed
youε-greedyUCB1Thompsonmean θPull 0 of 50 · total reward 0Arm 1?0 pulls · 0 wonArm 2?0 pulls · 0 wonArm 3?0 pulls · 0 wonArm 4?0 pulls · 0 wonArm 5?0 pulls · 0 won024681001020304050round tcumulative regretyour regret appears when the arms are revealed
Figure 13.1 Pull the arms yourself. Each pull pays 1 (a filled square) or 0 (an empty square) with the arm's hidden probability. The regret curve stays hidden until you reveal the arms or spend all 50 pulls, because its slope would give the best arm away. Your single run is then compared with the average of 20 runs of the algorithms of the next sections, which faced the same sequence of payouts as you did in their first run. New arms draws a new set of arms.

You probably formed a favorite after two or three pulls per arm. Did you go back to an arm that started with two losses? With payout rates between 0.15 and 0.6, two losses in a row happen for the best arm 16% of the time, so abandoning an arm that early is a gamble. Each algorithm below is a rule for that decision.

13.2.1 Greedy and epsilon-greedy #

The simplest rule is greedy: pull every arm once, then always pull the arm with the highest average reward so far. It fails in an instructive way. If the best arm happens to pay 0 on its first pull, its average is 0, some worse arm's average is positive, and greedy may never pull the best arm again. That happens with a fixed positive probability, and when it does the regret grows linearly forever.

Epsilon-greedy repairs this by forcing exploration: in each round, with probability ε\varepsilon pull an arm chosen uniformly at random, and otherwise pull the greedy arm. Every arm is now pulled infinitely often, so every average converges to its mean. But the repair has a price that never stops being paid. With constant ε\varepsilon, every round spends probability ε\varepsilon on a uniformly random arm, which costs εK∑iΔi\frac{\varepsilon}{K} \sum_i \Delta_i in expected regret per round, so regret grows linearly with slope at least that (Exercise 13.1). Auer, Cesa-Bianchi, and Fischer showed that letting ε\varepsilon decay as εn=min⁡{1,cK/(Δ02n)}\varepsilon_n = \min\{1, cK/(\Delta_0^2 n)\} in round nn gives logarithmic regret, but only if Δ0\Delta_0 (written dd in their paper) is a lower bound on the gap between the best and the second-best arm, which a player does not know. In their experiments no value of cc worked well for all the reward distributions they tried (Auer et al., 2002).

13.2.2 Where confidence bounds come from #

Forcing exploration at a fixed rate keeps pulling arms that are already known to be bad. A better rule explores an arm only while the evidence about it is still weak, and for that it needs a number: after nn pulls, how far from the arm's mean can its average plausibly be? The answer comes from concentration inequalities, bounds on the probability that an average strays from its mean by more than a given distance. Every upper bound on regret in this chapter rests on one, and the choice of inequality decides the constants and the logarithms in the algorithms built on it.

Fix one arm with mean θ\theta, and let Y1,…,YnY_1, \dots, Y_n be nn of its rewards, independent and each in [0,1][0, 1], with average θ^n=1n∑s=1nYs\hat\theta_n = \frac1n \sum_{s=1}^{n} Y_s. The question is how large the tail probability P(θ^n≥θ+a)\Prob(\hat\theta_n \ge \theta + a) can be for a deviation a>0a > 0. The lower tail, P(θ^n≤θ−a)\Prob(\hat\theta_n \le \theta - a), works the same way, so we treat only the upper one.

Markov's inequality. A quantity that is never negative and has a small mean cannot often be large: if it were at least cc more than a fraction E[Z]/c\E[Z]/c of the time, those occasions alone would push its mean above E[Z]\E[Z]. For Z≥0Z \ge 0 and c>0c > 0,

P(Z≥c)≤E[Z]c.\Prob(Z \ge c) \le \frac{\E[Z]}{c}.
(13.4)

To see it, note that ZZ is at least cc times the indicator of the event Z≥cZ \ge c (1 when the event happens, 0 when not), and take expectations of both sides. The average θ^n\hat\theta_n is never negative and has mean θ\theta, so P(θ^n≥θ+a)≤θ/(θ+a)\Prob(\hat\theta_n \ge \theta + a) \le \theta/(\theta + a). For a fair coin and a=0.1a = 0.1 that is 0.830.83, and it stays 0.830.83 however many rewards are averaged. Markov's inequality knows only the mean, and the mean of an average does not change with nn.

Chebyshev's inequality. The cure is to apply Markov's inequality to something that does shrink with nn. The squared deviation (θ^n−θ)2(\hat\theta_n - \theta)^2 has mean Var⁡[θ^n]=Var⁡[Y]/n\Var[\hat\theta_n] = \Var[Y]/n, because the variance of a sum of independent terms is the sum of their variances (Section 2.7) and dividing a sum by nn divides its variance by n2n^2. The event θ^n≥θ+a\hat\theta_n \ge \theta + a implies (θ^n−θ)2≥a2(\hat\theta_n - \theta)^2 \ge a^2, so

P(θ^n≥θ+a)≤Var⁡[Y]na2.\Prob(\hat\theta_n \ge \theta + a) \le \frac{\Var[Y]}{n a^2}.
(13.5)

(Chebyshev's inequality bounds both tails together, and so each one.) For a coin, Var⁡[Y]=θ(1−θ)\Var[Y] = \theta(1 - \theta), at most 14\tfrac14 (Section 2.6.2). The bound now falls like 1/n1/n, but turned around it is expensive. Setting the right side to a target failure probability δ\delta gives the width a=Var⁡[Y]/(nδ)a = \sqrt{\Var[Y]/(n\delta)}, which grows like 1/δ1/\sqrt{\delta}. Bandit algorithms need very small failure probabilities, as small as t−4t^{-4} in round tt for the algorithm of the next subsection, and a width that grows like t2t^2 would keep every arm in play forever. The truth is much better. By the central limit theorem an average of many independent terms is close to Gaussian (Section 4.1.2), and a Gaussian's tail falls like e−c2/2e^{-c^2/2} in the number cc of standard deviations, not like 1/c21/c^2.

The Chernoff method. Markov's inequality applied to an exponential captures that behavior (Lattimore and Szepesvári, 2020, ch. 5). For any λ>0\lambda > 0, the event θ^n−θ≥a\hat\theta_n - \theta \ge a is the same as the event eλn(θ^n−θ)≥eλnae^{\lambda n(\hat\theta_n - \theta)} \ge e^{\lambda n a}, and the exponential turns the sum inside the average into a product, eλn(θ^n−θ)=∏s=1neλ(Ys−θ)e^{\lambda n(\hat\theta_n - \theta)} = \prod_{s=1}^{n} e^{\lambda(Y_s - \theta)}. The expectation of a product of independent factors is the product of their expectations, because their joint distribution factorizes (Definition 2.8). What remains is a bound on one factor, and the condition that supplies it has a name.

Definition 13.2 Sub-Gaussian

A random variable ZZ with mean zero is RR-sub-Gaussian if, for every real λ\lambda,

E[eλZ]≤eλ2R2/2.\E\big[e^{\lambda Z}\big] \le e^{\lambda^2 R^2 / 2}.

A Gaussian with mean zero and standard deviation RR satisfies this with equality, so the condition says that the tails of ZZ are no heavier than that Gaussian's. Bounded variables qualify too. By Hoeffding's lemma, a variable with mean zero that always lies in an interval [l,u][l, u] is 12(u−l)\tfrac12(u - l)-sub-Gaussian (Lattimore and Szepesvári, 2020, ch. 5). A reward in [0,1][0, 1] minus its mean is therefore 12\tfrac12-sub-Gaussian, and noise with mean zero that is never larger than σ\sigma in absolute value is σ\sigma-sub-Gaussian. (The letter RR follows the papers cited below; it is not the regret RTR_T.)

With this condition the Chernoff method gives Hoeffding's inequality, which Hoeffding proved for sums of bounded random variables (Hoeffding, 1963): for rewards in [0,1][0, 1],

P(θ^n≥θ+a)≤e−2na2.\Prob(\hat\theta_n \ge \theta + a) \le e^{-2 n a^2}.
(13.6)
Derivation Hoeffding's inequality by the Chernoff method
  1. By Equation (13.4) applied to eλn(θ^n−θ)e^{\lambda n(\hat\theta_n - \theta)} with c=eλnac = e^{\lambda n a}, and the product above, P(θ^n−θ≥a)≤e−λna∏s=1nE[eλ(Ys−θ)]\Prob(\hat\theta_n - \theta \ge a) \le e^{-\lambda n a} \prod_{s=1}^{n} \E\big[e^{\lambda(Y_s - \theta)}\big] for every λ>0\lambda > 0.
  2. Each Ys−θY_s - \theta is RR-sub-Gaussian, so each factor is at most eλ2R2/2e^{\lambda^2 R^2/2}, and the bound becomes exp⁡(−λna+nλ2R2/2)\exp(-\lambda n a + n \lambda^2 R^2/2).
  3. The exponent is a parabola in λ\lambda, smallest at λ=a/R2\lambda = a/R^2, where it equals −na2/(2R2)-n a^2/(2R^2). Step 1 holds for every λ\lambda, so it holds for this one: P(θ^n−θ≥a)≤e−na2/(2R2)\Prob(\hat\theta_n - \theta \ge a) \le e^{-n a^2/(2R^2)}.
  4. Rewards in [0,1][0, 1] have R=12R = \tfrac12, which gives Equation (13.6).

Turned around, Hoeffding's inequality says that with probability at least 1−δ1 - \delta, the average is below θ+ln⁡(1/δ)/(2n)\theta + \sqrt{\ln(1/\delta)/(2n)}. The failure probability now enters through its logarithm. Shrinking δ\delta from 0.05 to 10−610^{-6} widens a Hoeffding interval by a factor of 2.1 and a Chebyshev interval by a factor of 224. Applied to a Gaussian ZZ with standard deviation 1, the same method gives P(Z≥c)≤e−c2/2\Prob(Z \ge c) \le e^{-c^2/2}, and a direct calculation halves this (Srinivas et al., 2010, Lemma 5.1), so both tails together have probability at most e−c2/2e^{-c^2/2}. That is the Gaussian bound in step 1 of the GP-UCB proof in Section 13.4.3.

The union bound. An algorithm does not use one interval. It uses one per arm in every round, and its analysis needs them all to hold, or at least needs to count how often one fails. The tool is elementary: the probability that at least one of several events happens is at most the sum of their probabilities,

P(A1 or A2 or ⋯ or Am)≤∑j=1mP(Aj),\Prob(A_1 \text{ or } A_2 \text{ or } \cdots \text{ or } A_m) \le \sum_{j=1}^{m} \Prob(A_j),
(13.7)

because an outcome in which any of the events happens is counted at least once on the right. This union bound asks nothing about how the events depend on one another. To make mm intervals hold together with probability at least 1−δ1 - \delta, give each the failure probability δ/m\delta/m. With Hoeffding's inequality the width becomes

a=ln⁡(m/δ)2n=ln⁡m+ln⁡(1/δ)2n,a = \sqrt{\frac{\ln(m/\delta)}{2n}} = \sqrt{\frac{\ln m + \ln(1/\delta)}{2n}},
(13.8)

so the number of intervals enters as an additive ln⁡m\ln m under the square root. With Chebyshev's inequality the width would grow like m\sqrt{m}. An exponential tail is what makes many simultaneous intervals affordable.

This is where the logarithms in bandit algorithms come from. An interval that must hold in every round up to a horizon TT needs m=Tm = T and pays ln⁡T\ln T; one for each of KK arms in every round pays ln⁡(KT)\ln(KT). When the horizon is not known in advance, the budget δ\delta can be spread unevenly instead, giving round tt the share 6δ/(π2t2)6\delta/(\pi^2 t^2). The shares add up to δ\delta because ∑t≥11/t2=π2/6\sum_{t \ge 1} 1/t^2 = \pi^2/6, and the width in round tt has ln⁡(π2t2/(6δ))\ln(\pi^2 t^2/(6\delta)) in place of ln⁡(m/δ)\ln(m/\delta), so it grows like ln⁡t\sqrt{\ln t}. GP-UCB's βt\beta_t is this construction with one more union, over the ∣X∣|\X| inputs (Section 13.4.3). UCB1, in the next subsection, sets the failure probability of each interval to t−4t^{-4} in round tt. Solving e−2na2=t−4e^{-2na^2} = t^{-4} for aa gives a=2ln⁡t/na = \sqrt{2\ln t / n}, the bonus of Equation (13.9). The exponent 4 pays for a union of its own: in round tt two arms being compared can have been pulled any numbers of times up to tt, about t2t^2 combinations of counts, and t2⋅t−4=t−2t^2 \cdot t^{-4} = t^{-2} still adds up to a finite total over all rounds.

When the data choose the sample size. Hoeffding's inequality is about an average of nn rewards with nn fixed before the rewards are seen. A bandit algorithm decides how often to pull an arm from the rewards it has seen, and an arm that starts badly is pulled less. A reader may wonder whether that matters, since each reward is still an honest draw. It does. Flip a fair coin and stop as soon as heads lead tails. The average at the moment of stopping is always above one half, and stopping is likely: it happens within 100 flips with probability 0.92, and within 1000 flips with probability 0.97. For every fixed nn, Hoeffding's inequality still holds for the average of the first nn flips; it says nothing about the average at an nn chosen by looking at the flips.

The bandit analyses repair this with the union bound. Picture each arm's rewards as a list drawn before play begins, with the algorithm choosing only how far down each list to read; this model gives the same probabilities to everything the algorithm sees (Lattimore and Szepesvári, 2020, sec. 4.6). For each fixed nn, the first nn entries of a list are nn independent rewards, so Hoeffding's inequality applies to every nn separately, and a union over n=1,…,tn = 1, \dots, t covers whichever count the algorithm reaches. That union is the t2t^2 above. It is not a formality. If the single-round width ln⁡(1/δ)/(2n)\sqrt{\ln(1/\delta)/(2n)} is used at every count, the interval of a fair coin with δ=0.05\delta = 0.05 fails at least once within 1000 pulls with probability 0.11, more than twice δ\delta, and within 10,000 pulls with probability 0.15, because the largest swings of a running average shrink slightly more slowly than 1/n1/\sqrt{n} (see Lattimore and Szepesvári, 2020, ex. 20.9). With the width of the uneven split above, the same probability within 1000 pulls is 8.5×10−68.5 \times 10^{-6}: the union bound is safe, and here very cautious. (These probabilities, like those for the fair coin above, are computed exactly, by tracking the distribution of the number of heads flip by flip.) A Gaussian process is harder still, because each evaluation changes the estimate everywhere, with weights that depend on where the algorithm chose to look; Section 13.4.5 gives the tool for that case.

The figure puts the three inequalities side by side for a coin.

exactMarkovChebyshevHoeffding10⁻⁶10⁻⁵10⁻⁴10⁻³0.010.11probability (log scale)1101001000number of flips n (log scale)0.05n = 100: exact 0.028 · Markov 0.83 · Chebyshev 0.25 · Hoeffding 0.14below 0.05 from n = 76 (exact), 500 (Chebyshev), 150 (Hoeffding); Markov never
exactMarkovChebyshevHoeffding10⁻⁶10⁻⁵10⁻⁴10⁻³0.010.111101001000number of flips n (log scale)probability (log scale)0.05n = 100: exact 0.028 · Markov 0.83Chebyshev 0.25 · Hoeffding 0.14below 0.05 from n = 76 (exact),500 (Chebyshev), 150 (Hoeffding)
Figure 13.2 The probability that the average of nn flips of a coin with mean θ\theta is at least θ+a\theta + a (solid, computed exactly from the binomial distribution), against the bounds of Markov's inequality, θ/(θ+a)\theta/(\theta + a), which ignores nn; Chebyshev's inequality with the coin's variance, θ(1−θ)/(na2)\theta(1 - \theta)/(na^2); and Hoeffding's inequality, Equation (13.6). Both axes are logarithmic, and the dotted line marks 0.05. The readout gives each value at the marked nn and the nn from which each curve stays below 0.05. With the union set above 1, every curve is for TT averages that must all stay below θ+a\theta + a, such as one per round or one per arm: each bound is multiplied by TT (Equation (13.7)), and the exact curve becomes the probability that at least one of TT independent averages exceeds the line. The exact probability zigzags with nn because the number of heads is a whole number; where several values of nn share a pixel, the curve shows the largest.

Some things to try.

Read the default. For a fair coin and a=0.1a = 0.1, the chance that 100 flips average 0.6 or more is 0.028. Hoeffding's inequality bounds it by 0.14, Chebyshev's by 0.25, and Markov's by 0.83. The readout gives the number of flips from which each curve stays below 0.05: 76 for the exact probability, 150 for Hoeffding's bound, 500 for Chebyshev's, and never for Markov's.

Move the marker to n=1000n = 1000. The exact probability is 1.4×10−101.4 \times 10^{-10} and Hoeffding's bound 2.1×10−92.1 \times 10^{-9}, while Chebyshev's is still 0.025. The exact curve and Hoeffding's fall at nearly the same exponential rate, and the gap between them grows only slowly, from a factor of about 5 at n=100n = 100 to 15 at n=1000n = 1000; Chebyshev's is a straight line on these axes, falling only like 1/n1/n.

Set the union to 1000. Every bound is multiplied by 1000. Hoeffding's now stays below 0.05 from 496 flips instead of 150, an extra ln⁡1000/(2a2)≈345\ln 1000/(2a^2) \approx 345; Chebyshev's from 500,000 instead of 500, a thousand times as many. The exact probability for 1000 independent averages needs 381 flips. This is the ln⁡m\ln m of Equation (13.8), seen from the side of the sample size.

Move the mean to 0.1, with the union back at 1. A coin that rarely pays has variance 0.09 instead of 0.25, and its exact probability stays below 0.05 from 36 flips. Chebyshev's bound, which uses the variance, improves to 180 flips; Hoeffding's, which knows only that rewards lie in [0,1][0, 1], stays at 150, and at n=100n = 100 it gives 0.14 against an exact 0.002. Inequalities that use the variance as well, such as Bernstein's, recover much of this gap (Lattimore and Szepesvári, 2020, ex. 5.14).

Key idea Two prices in every confidence width

A confidence width pays for two things: how fast the tail of an average falls, which for bounded rewards Hoeffding's inequality bounds by e−2na2e^{-2na^2}, and how many intervals must hold at once, which the union bound charges as an additive logarithm. UCB1's bonus, 2ln⁡t/Ni\sqrt{2 \ln t / N_i}, is both prices together.

13.2.3 Optimism: UCB1 #

A better rule follows from the principle that Section 12.4 called optimism in the face of uncertainty. For each arm, compute the largest mean that is still plausible given its rewards so far, and pull the arm whose plausible best is largest. An arm pulled often has a tight interval, so its plausible best is close to its average. An arm pulled rarely has a wide interval and a generous plausible best, so it gets another look. A clearly bad arm stops being pulled once its interval has shrunk below the best arm's mean.

How wide should the interval be? For rewards in [0,1][0, 1], Hoeffding's inequality (Equation (13.6)) says that the average θ^i\hat\theta_{i} of nn independent rewards overestimates the mean by more than aa with probability at most e−2na2e^{-2na^2}, and likewise underestimates it. Choosing the width so that this probability is t−4t^{-4} in round tt, for the reason given in Section 13.2.2, gives the UCB1 rule of Auer et al. (2002): after pulling each arm once, pull

at=arg max⁡i(θ^i+2ln⁡tNi),a_t = \argmax_{i} \left( \hat\theta_i + \sqrt{\frac{2 \ln t}{N_i}} \right),
(13.9)

where NiN_i is the number of times arm ii has been pulled so far and θ^i\hat\theta_i is its average reward. The bonus shrinks like 1/Ni1/\sqrt{N_i} as an arm is pulled and grows like ln⁡t\sqrt{\ln t} for arms left alone, so no arm is abandoned for good, yet a bad arm is revisited only rarely.

Theorem 13.1 UCB1 (Auer, Cesa-Bianchi, and Fischer, 2002)

For any K>1K > 1 arms with reward distributions supported in [0,1][0, 1], the expected regret of UCB1 after any number TT of rounds is at most

8∑i: Δi>0ln⁡TΔi  +  (1+π23)∑j=1KΔj.8 \sum_{i:\,\Delta_i > 0} \frac{\ln T}{\Delta_i} \;+\; \left(1 + \frac{\pi^2}{3}\right) \sum_{j=1}^{K} \Delta_j .

The proof is worth seeing in outline, because the same three moves reappear in the Gaussian process bound of Section 13.4: a confidence interval that holds with high probability, an argument that optimism costs at most the width of the interval, and a count of how often intervals can be wide.

Derivation Why a bad arm is pulled about ln T / Δ² times

Fix a suboptimal arm ii and write a(n,t)=2ln⁡t/na(n, t) = \sqrt{2 \ln t / n} for the bonus of an arm pulled nn times by round tt. This is a sketch of the proof of Theorem 1 in Auer et al. (2002).

  1. By Hoeffding's inequality, an average of nn rewards misses its mean by more than a(n,t)a(n, t) in a given direction with probability at most e−2n⋅2ln⁡t/n=t−4e^{-2n \cdot 2\ln t / n} = t^{-4}.
  2. Suppose arm ii has already been pulled n≥8ln⁡T/Δi2n \ge 8 \ln T / \Delta_i^2 times. Then a(n,t)≤Δi/2a(n, t) \le \Delta_i / 2 for every t≤Tt \le T, by solving the inequality for nn.
  3. If neither interval fails, the best arm's index is at least θ∗\theta^*, and arm ii's index is at most θi+2a(n,t)≤θi+Δi=θ∗\theta_i + 2a(n, t) \le \theta_i + \Delta_i = \theta^*. So arm ii cannot win the comparison, and it is pulled only when one of the two intervals has failed.
  4. In round tt each arm can have been pulled any number of times up to tt. By the union bound (Equation (13.7)), adding the failure probability t−4t^{-4} of step 1 over both arms' possible counts gives at most 2t2⋅t−4=2t−22t^2 \cdot t^{-4} = 2t^{-2}, and summing over all rounds gives at most 2∑tt−2=π2/32\sum_t t^{-2} = \pi^2/3 extra pulls in expectation.
  5. Together, E[Ni(T)]≤8ln⁡T/Δi2+1+π2/3\E[N_i(T)] \le 8 \ln T/\Delta_i^2 + 1 + \pi^2/3. Multiplying by Δi\Delta_i and summing over arms, as Equation (13.3) says, gives the theorem.

The bound depends on the problem through the gaps. Arms that are much worse than the best are discarded quickly and contribute little; arms that are nearly as good contribute ln⁡T/Δi\ln T / \Delta_i each, which is large for small Δi\Delta_i. The upper confidence bound rule of Section 12.4 is the same idea with the posterior standard deviation of a Gaussian process in place of the Hoeffding width.

13.2.4 Thompson sampling #

The oldest rule is Bayesian. Treat each unknown mean θi\theta_i as a random quantity with a prior, keep its posterior up to date, and in each round pull each arm with the probability that it is the best one. Thompson's trick is that this probability never has to be computed: draw one plausible mean from each arm's posterior, and pull the arm whose draw is largest (Thompson, 1933).

For coin-flip rewards the posterior is a Beta distribution. Starting from a uniform prior, an arm with SiS_i wins and FiF_i losses has posterior Beta(1+Si,1+Fi)\mathrm{Beta}(1 + S_i, 1 + F_i), the conjugate update of Section 5.2. Its mean is close to the arm's average, and its spread shrinks as the arm is pulled.

Algorithm 13.1 Thompson sampling for Bernoulli arms

Input: KK arms, horizon TT.

  1. Set Si←0S_i \leftarrow 0 and Fi←0F_i \leftarrow 0 for every arm.
  2. In each round t=1,…,Tt = 1, \dots, T, draw θ~i∼Beta(1+Si,1+Fi)\tilde\theta_i \sim \mathrm{Beta}(1 + S_i, 1 + F_i) independently for each arm.
  3. Pull at=arg max⁡iθ~ia_t = \argmax_i \tilde\theta_i and observe the reward yt∈{0,1}y_t \in \{0, 1\}.
  4. If yt=1y_t = 1, increase SatS_{a_t} by one; otherwise increase FatF_{a_t} by one.

Exploration comes from the randomness of the draws. An arm with few pulls has a wide posterior and sometimes produces a high draw; an arm with many pulls and a low average almost never does. Thompson's rule was not widely circulated, and it became popular only after several groups rediscovered it around 2010 and found it strong in experiments, before any proof existed (Lattimore and Szepesvári, 2020, ch. 36). Agrawal and Goyal (2012) then gave the first proof that its expected regret grows logarithmically, and Kaufmann et al. (2012) and Agrawal and Goyal (2013) showed that for Bernoulli rewards its leading constant is the best possible, the constant of the lower bound in the next section. The Gaussian process version of the rule, which draws a whole function from the posterior and evaluates where the draw is largest, is the Thompson sampling of Section 12.5.

13.2.5 Watching them play #

The figure below runs the three algorithms on the same arms many times and plots the average cumulative regret of each, with a band covering the middle 80% of runs. All three start from the same payout sequences in each run, so the differences come from the rules and not from luck.

ε-greedyUCB1ThompsonLai-Robbins ratemean θshare of pullsArm 10.5034%23%16%Arm 20.6058%56%76%Arm 30.384%12%6%Arm 40.152%4%1%Arm 50.272%6%2%020406080100120cumulative regret02004006008001000round tat T = 1000:UCB1 85ε-greedy 60Thompson 38
ε-greedyUCB1ThompsonLai-Robbins ratemean θshare of pullsArm 10.5034%23%16%Arm 20.6058%56%76%Arm 30.384%12%6%Arm 40.152%4%1%Arm 50.272%6%2%02040608010012002004006008001000round tcumulative regretat T = 1000:UCB1 85ε-greedy 60Thompson 38
Figure 13.3 Cumulative regret of ε-greedy (constant ε), UCB1, and Thompson sampling on Bernoulli arms whose means are listed in the table, averaged over 20 runs, with bands from the 10th to the 90th percentile of runs. The table shows where each algorithm spent its pulls, as a share of all rounds. The dashed curve is the Lai-Robbins rate c∗ln⁡tc^* \ln t of Section 13.3, an asymptotic statement about growth, not a floor at every tt. The arm means are illustrative.

Some things to try.

Switch on the log time axis. On a logarithmic time axis, regret that grows like ln⁡t\ln t is a straight line, and regret that grows linearly curves sharply upward. Thompson sampling settles onto a straight line after a few hundred rounds, and ε-greedy turns upward. UCB1 is still in between at this horizon: with a gap of 0.1, its cautious bonus keeps the second-best arm in play for thousands of rounds, and its curve straightens only later.

Set ε to 0. This is the greedy rule. The band widens: most runs settle on the best arm, and a few lock onto a worse arm and stay there. Set the runs to 1 and press New arms a few times to see individual outcomes.

Compare UCB1 and ε-greedy at the default horizon. With these arms, ε-greedy with ε=0.1\varepsilon = 0.1 has lower regret than UCB1 after 1000 rounds: UCB1's bonus is conservative and buys its guarantee with extra exploration. Raise the gap to 0.3 and the horizon to 5000. The straight line of ε-greedy eventually overtakes the logarithm of UCB1.

Show the UCB1 guarantee. The scale stretches to hold it. At the default settings, the bound of Theorem 13.1 is about 1100 at T=1000T = 1000, more than twice the 450 that the worst possible play, always pulling the worst arm, would lose. The guarantee is true and, at this horizon, uninformative.

Watch Thompson sampling. It has the lowest regret here, and for most settings its curve sits below the dashed Lai-Robbins line. The next section explains why this is not a contradiction.

Sources cited in Section 13.2 9
  1. Thompson (1933) On the Likelihood that One Unknown Probability Exceeds Another in View of the Evidence of Two Samples
  2. Robbins (1952) Some Aspects of the Sequential Design of Experiments
  3. Lattimore and Szepesvári (2020) Bandit Algorithms
  4. Auer et al. (2002) Finite-time Analysis of the Multiarmed Bandit Problem
  5. Hoeffding (1963) Probability Inequalities for Sums of Bounded Random Variables
  6. Srinivas et al. (2010) Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design
  7. Agrawal and Goyal (2012) Analysis of Thompson Sampling for the Multi-armed Bandit Problem
  8. Kaufmann et al. (2012) Thompson Sampling: An Asymptotically Optimal Finite-Time Analysis
  9. Agrawal and Goyal (2013) Further Optimal Regret Bounds for Thompson Sampling

13.3 Lower bounds #

UCB1 and Thompson sampling both have regret that grows like ln⁡T\ln T. Could a cleverer algorithm do better, with regret bounded by a constant? Lai and Robbins (1985) answered no.

The intuition is about evidence. To stop pulling a worse arm, an algorithm must be confident that the arm is not secretly the best. Abandoning the best arm by mistake costs on the order of ΔT\Delta T over the remaining rounds, so the probability of that mistake must be of order 1/T1/T. The amount of evidence needed to rule out an alternative at that level grows like ln⁡T\ln T, and every pull of arm ii adds a fixed expected amount of evidence: the Kullback-Leibler divergence kl(θi,θ∗)\mathrm{kl}(\theta_i, \theta^*), the average log-likelihood ratio per pull between the hypothesis that the arm pays at rate θi\theta_i and the hypothesis that it pays at rate θ∗\theta^*. For coins,

kl(p,q)=pln⁡pq+(1−p)ln⁡1−p1−q,\mathrm{kl}(p, q) = p \ln\frac{p}{q} + (1 - p) \ln\frac{1 - p}{1 - q},

which is zero when p=qp = q and grows as the two coins become easier to tell apart (Section 6.2 treats the divergence in general). Dividing the evidence needed by the evidence per pull gives about ln⁡T/kl(θi,θ∗)\ln T / \mathrm{kl}(\theta_i, \theta^*) pulls of arm ii.

To make this a theorem, one has to exclude algorithms that are lucky on one problem by being terrible on others, such as the rule that always pulls arm 1, which has zero regret whenever arm 1 is best. An algorithm is consistent if on every bandit in the class its regret grows more slowly than every power of TT: E[RT]/Ta→0\E[R_T] / T^a \to 0 for every a>0a > 0.

Theorem 13.2 Lai and Robbins (1985), for Bernoulli arms

For every consistent algorithm and every Bernoulli bandit with θ∗<1\theta^* < 1,

lim inf⁡T→∞E[RT]ln⁡T  ≥  c∗  =  ∑i: Δi>0Δikl(θi,θ∗).\liminf_{T \to \infty} \frac{\E[R_T]}{\ln T} \;\ge\; c^* \;=\; \sum_{i:\,\Delta_i > 0} \frac{\Delta_i}{\mathrm{kl}(\theta_i, \theta^*)}.
(13.10)

This is the special case of a general result for reward distributions in a parametric family; Lattimore and Szepesvári state and prove the modern form (Lai and Robbins, 1985; Lattimore and Szepesvári, 2020, Thm. 16.2).

Three remarks connect the theorem to the algorithms above. First, UCB1 is logarithmic but not optimal. Pinsker's inequality gives kl(p,q)≥2(p−q)2\mathrm{kl}(p, q) \ge 2(p - q)^2, so each term of c∗c^* is at most 1/(2Δi)1/(2\Delta_i), while the corresponding term of Theorem 13.1 is 8/Δi8/\Delta_i, at least 16 times larger. Thompson sampling with Beta posteriors attains c∗c^* exactly, in the limit (Kaufmann et al., 2012; Agrawal and Goyal, 2013).

Second, the theorem is about the limit, and the lim inf⁡\liminf is doing real work. It says that the ratio of regret to ln⁡T\ln T cannot stay below c∗c^* forever. It does not say that E[RT]≥c∗ln⁡T\E[R_T] \ge c^* \ln T at every finite TT, and an algorithm whose lower-order terms are negative can sit below that curve for a long time. That is what Thompson sampling does in Figure 13.3. The comparison the theorem licenses is between slopes on a logarithmic time axis, as tt grows large.

Third, the bound depends on the instance through its gaps, and it blows up as a gap shrinks. That does not mean regret becomes large when arms are nearly equal, since each pull of a nearly equal arm costs little. The worst case over all instances is a different quantity: for any algorithm and any $T \ge K

  • 1$ there is a KK-armed bandit with Gaussian rewards on which its regret is at least 127(K−1)T\frac{1}{27}\sqrt{(K - 1)T} (Lattimore and Szepesvári, 2020, Thm. 15.2). The gap that does the damage shrinks with TT, like K/T\sqrt{K/T}: large enough to matter, small enough to be hard to detect. Instance-dependent bounds grow like ln⁡T\ln T with a problem-dependent constant; worst-case bounds grow like T\sqrt{T}. Both views return for functions.
Sources cited in Section 13.3 4
  1. Lai and Robbins (1985) Asymptotically Efficient Adaptive Allocation Rules
  2. Lattimore and Szepesvári (2020) Bandit Algorithms
  3. Kaufmann et al. (2012) Thompson Sampling: An Asymptotically Optimal Finite-Time Analysis
  4. Agrawal and Goyal (2013) Further Optimal Regret Bounds for Thompson Sampling

13.4 From arms to functions #

Bayesian optimization has an arm for every input, infinitely many on a continuous domain. The bandit bounds above grow with the number of arms, either through the sum over gaps or through the K\sqrt{K} of the worst case, and they say nothing when KK is infinite. What rescues the analysis is that the arms are no longer independent. A Gaussian process prior says that nearby inputs have similar values, so evaluating one input teaches about its neighbors. The number of arms has to be replaced by a measure of how many effectively different arms there are, and the maximum information gain is that measure.

13.4.1 The setting #

The analysis of Srinivas et al. (2010), which this section follows, takes the model of Section 8.3 at face value. The function is a draw from a Gaussian process, f∼GP(0,k)f \sim \GP(0, k), with k(x,x)≤1k(\vx, \vx) \le 1 so that the prior standard deviation is at most 1 everywhere. Each evaluation returns yt=f(xt)+εty_t = f(\vx_t) + \varepsilon_t with independent noise εt∼N(0,σn2)\varepsilon_t \sim \N(0, \sigma_n^2) of known variance. For now the domain X\X is finite, for instance a fine grid (the paper writes DD for this set); Section 13.4.4 relaxes this. A KK-armed bandit with Gaussian rewards is the special case of a kernel that is 1 on the diagonal and 0 elsewhere.

After t−1t - 1 evaluations, the posterior has mean μt−1(x)\mu_{t-1}(\vx) and standard deviation σt−1(x)\sigma_{t-1}(\vx), computed as in Equation (8.6). The GP-UCB rule is the optimism of UCB1 with the posterior in place of the Hoeffding interval:

xt=arg max⁡x∈X  μt−1(x)+βt1/2 σt−1(x).\vx_t = \argmax_{\vx \in \X} \; \mu_{t-1}(\vx) + \beta_t^{1/2}\, \sigma_{t-1}(\vx).
(13.11)

The posterior mean plays the part of the empirical average, the posterior standard deviation plays the part of the bonus, and βt\beta_t sets how many standard deviations of optimism to allow. This is the rule of Equation (11.3) with a weight that may change from round to round. As there and in Srinivas et al. (2010), βt\beta_t multiplies the variance, so its square root multiplies the standard deviation; some texts and libraries call the multiplier of the standard deviation itself β\beta.

13.4.2 Maximum information gain #

How much can TT noisy evaluations teach about ff? Section 6.5 answered this question, and the bound needs three facts from there. First, the mutual information between the observations yA\vy_A at a set of inputs AA and the function, the part of the observations' uncertainty that reflects ff and not the noise, is

I(yA;f)=12log⁡det⁡ ⁣(I+σn−2KA),I(\vy_A; f) = \tfrac12 \log\det\!\left(\mI + \sigma_n^{-2} \mK_A\right),
(13.12)

where KA\mK_A is the kernel matrix of AA (Equation (6.15)). It depends on where we evaluate, not on what we observe, because the posterior variance of a Gaussian process does not depend on the observed values (Section 8.1). Second, the most that any TT evaluations could teach is the largest value this quantity can take.

Definition 13.3 Maximum information gain

The maximum information gain after TT evaluations is

γT=max⁡A⊂X,  ∣A∣=T  12log⁡det⁡ ⁣(I+σn−2KA).\gamma_T = \max_{A \subset \X,\; |A| = T} \; \tfrac12 \log\det\!\left(\mI + \sigma_n^{-2} \mK_A\right).
(13.13)

γT\gamma_T is a property of the kernel, the domain, and the noise level, fixed before any data arrive.

Two extreme cases show its range. If all TT evaluations are made at the same input, they gain 12log⁡(1+T/σn2)\tfrac12 \log(1 + T/\sigma_n^2), which grows only logarithmically: repeating an evaluation teaches less and less, as Exercise 8.2 showed. If the kernel is diagonal, as in a KK-armed bandit, spreading the evaluations evenly over the arms is best, and γT\gamma_T grows like K2log⁡(1+T/(Kσn2))\tfrac{K}{2}\log(1 + T/(K\sigma_n^2)) (Exercise 13.3). A smooth kernel lies between these: observations at nearby inputs are largely redundant, so the information grows much more slowly than for TT independent arms. A short lengthscale, a rough kernel, a high dimension, or low noise each make more of the domain distinguishable and increase γT\gamma_T.

Third, although computing the maximum exactly is intractable, it is easy to approximate. A new evaluation at x\vx adds exactly 12log⁡(1+σn−2σt−12(x))\tfrac12 \log(1 + \sigma_n^{-2}\sigma_{t-1}^2(\vx)) to the information (Equation (6.16)), so the greedy rule of always evaluating where the posterior variance is largest (uncertainty sampling, Section 6.5.1) reaches at least a fraction 1−1/e≈0.631 - 1/e \approx 0.63 of γT\gamma_T (Srinivas et al., 2010). That is how the figure in Section 13.5 estimates γT\gamma_T.

13.4.3 The GP-UCB bound #

With γT\gamma_T in hand, the bound reads like a bandit bound with KK replaced.

Theorem 13.3 GP-UCB on a finite domain (Srinivas, Krause, Kakade, and Seeger, 2010)

Let X\X be finite, δ∈(0,1)\delta \in (0, 1), and

βt=2log⁡ ⁣(∣X∣ t2π26δ).\beta_t = 2 \log\!\left(\frac{|\X|\, t^2 \pi^2}{6\delta}\right).

If ff is a draw from GP(0,k)\GP(0, k) with k(x,x)≤1k(\vx, \vx) \le 1 and the noise is N(0,σn2)\N(0, \sigma_n^2), GP-UCB with this βt\beta_t satisfies, with probability at least 1−δ1 - \delta,

RT≤C1 T βT γTfor all T≥1,C1=8log⁡(1+σn−2).R_T \le \sqrt{C_1\, T\, \beta_T\, \gamma_T} \quad \text{for all } T \ge 1, \qquad C_1 = \frac{8}{\log(1 + \sigma_n^{-2})}.
(13.14)

The proof follows the same three moves as the UCB1 sketch, and every step is elementary.

Derivation Where the square root comes from

These are Lemmas 5.1 to 5.4 of the extended version of Srinivas et al. (2010).

  1. Confidence. Given the data, f(x)f(\vx) is Gaussian with mean μt−1(x)\mu_{t-1}(\vx) and standard deviation σt−1(x)\sigma_{t-1}(\vx), and a Gaussian lands more than β1/2\beta^{1/2} standard deviations from its mean with probability at most e−β/2e^{-\beta/2} (Section 13.2.2). A union bound over the ∣X∣|\X| inputs and over all rounds, with βt\beta_t as in the theorem, makes ∣f(x)−μt−1(x)∣≤βt1/2σt−1(x)|f(\vx) - \mu_{t-1}(\vx)| \le \beta_t^{1/2}\sigma_{t-1}(\vx) hold for every x\vx and tt at once, with probability at least 1−δ1 - \delta. The π2/6\pi^2/6 is ∑t1/t2\sum_t 1/t^2, which spreads δ\delta over the rounds.
  2. Optimism costs at most twice the width. On that event, since xt\vx_t maximizes the upper bound, μt−1(xt)+βt1/2σt−1(xt)≥μt−1(x⋆)+βt1/2σt−1(x⋆)≥f(x⋆)\mu_{t-1}(\vx_t) + \beta_t^{1/2}\sigma_{t-1}(\vx_t) \ge \mu_{t-1}(\vx^\star) + \beta_t^{1/2}\sigma_{t-1}(\vx^\star) \ge f(\vx^\star). Subtracting f(xt)≥μt−1(xt)−βt1/2σt−1(xt)f(\vx_t) \ge \mu_{t-1}(\vx_t) - \beta_t^{1/2}\sigma_{t-1}(\vx_t) gives rt≤2βt1/2σt−1(xt)r_t \le 2\beta_t^{1/2}\sigma_{t-1}(\vx_t).
  3. The run's information. By Equation (6.16), the information gained by the inputs GP-UCB actually chose is a sum over rounds, I(yT;f)=12∑tlog⁡ ⁣(1+σn−2σt−12(xt))I(\vy_T; f) = \tfrac12 \sum_{t} \log\!\left(1 + \sigma_n^{-2}\sigma_{t-1}^2(\vx_t)\right). This is at most γT\gamma_T, the best any TT inputs could do.
  4. Variance into information. Write s2=σn−2σt−12(xt)s^2 = \sigma_n^{-2}\sigma_{t-1}^2(\vx_t), which lies in [0,σn−2][0, \sigma_n^{-2}] because σt−12(xt)≤k(xt,xt)≤1\sigma_{t-1}^2(\vx_t) \le k(\vx_t, \vx_t) \le 1. On that interval the concave function log⁡(1+s2)\log(1 + s^2) lies above its chord, so s2≤C2log⁡(1+s2)s^2 \le C_2 \log(1 + s^2) with C2=σn−2/log⁡(1+σn−2)C_2 = \sigma_n^{-2}/\log(1 + \sigma_n^{-2}). Squaring step 2 and using βt≤βT\beta_t \le \beta_T, rt2≤4βTσn2s2≤C1βT⋅12log⁡(1+s2)r_t^2 \le 4\beta_T \sigma_n^2 s^2 \le C_1 \beta_T \cdot \tfrac12\log(1 + s^2), with C1=8σn2C2=8/log⁡(1+σn−2)C_1 = 8\sigma_n^2 C_2 = 8/\log(1 + \sigma_n^{-2}). Summing over rounds and using step 3, ∑trt2≤C1βTγT\sum_t r_t^2 \le C_1 \beta_T \gamma_T.
  5. Cauchy-Schwarz. RT2=(∑trt)2≤T∑trt2≤C1TβTγTR_T^2 = \left(\sum_t r_t\right)^2 \le T \sum_t r_t^2 \le C_1 T \beta_T \gamma_T. Taking square roots gives Equation (13.14).

Reading the result: βT\beta_T grows like log⁡T\log T (and log⁡∣X∣\log |\X|), and γT\gamma_T grows sublinearly for the kernels used in practice, so RTR_T grows like T\sqrt{T} times slowly growing factors. GP-UCB is therefore no-regret, and by Equation (13.2), with probability at least 1−δ1 - \delta, the best input it has evaluated is within C1βTγT/T\sqrt{C_1 \beta_T \gamma_T / T} of the maximum.

A finite domain is not only a mathematical convenience. In the experiments of Srinivas et al. (2010), the inputs were the 46 temperature sensors of a sensor network at Intel Research Berkeley, and in a second test the 357 traffic sensors along a stretch of the I-880 highway in California, where the goal was to find the most congested point. The kernel matrix was not a formula: it was the empirical covariance of the sensors' readings over the first two thirds of the recorded data, and the functions to optimize were snapshots from the remaining third. On the temperature data GP-UCB and expected improvement clearly outperformed the other heuristics, with no significant difference between the two; the authors summarize that GP-UCB performed at least on par with existing approaches that had no regret bounds. The bound also connects two traditions. Step 4 says that a GP-UCB step can be expensive only when it is informative, so an optimizer's regret is controlled by how much there is to learn about ff, which is the currency of experimental design (Section 6.4).

How fast γT\gamma_T grows decides how good the bound is. Table 13.1 collects the known rates for a domain in dd dimensions, which follow from how fast the eigenvalues of the kernel decay (Section 10.5); ν\nu is the smoothness parameter of the Matérn kernel (Section 9.1).

Table 13.1 How the maximum information gain grows with the number of evaluations T, on a closed and bounded (compact) domain in d dimensions
Kernel γT\gamma_T Source
Linear O(dlog⁡T)O(d \log T) Srinivas et al. (2010)
RBF (squared exponential) O((log⁡T)d+1)O\big((\log T)^{d+1}\big) Srinivas et al. (2010)
Matérn, ν>1\nu > 1 O(Td(d+1)/(2ν+d(d+1))log⁡T)O\big(T^{d(d+1)/(2\nu + d(d+1))} \log T\big) Srinivas et al. (2010)
Matérn, ν>1/2\nu > 1/2 O(Td/(2ν+d)(log⁡T)2ν/(2ν+d))O\big(T^{d/(2\nu + d)} (\log T)^{2\nu/(2\nu + d)}\big) Vakili et al. (2021a)

For the RBF kernel, the dimension appears only as the exponent of log⁡T\log T, so the bound grows like T(log⁡T)(d+2)/2\sqrt{T}(\log T)^{(d+2)/2} (a factor (log⁡T)(d+1)/2(\log T)^{(d+1)/2} from γT\gamma_T and one more (log⁡T)1/2(\log T)^{1/2} from βT\beta_T): very smooth functions are learned quickly even in several dimensions (Srinivas et al., 2010). For Matérn kernels the original rate was loose; the 2021 rate of Vakili et al. (2021a) matches the known lower bounds up to logarithmic factors.

13.4.4 Other settings #

The finite-domain theorem extends in three directions, each with its own assumptions. This subsection is a map of results for readers who will meet them in papers. It can be skipped on a first reading; the one idea used later, the reproducing kernel Hilbert space, is explained again in Section 21.3, and Chapter 10 treats it in depth.

Continuous domains. For a compact, convex domain in dd dimensions, such as a box, Srinivas et al. (2010) prove a bound of the same form, with βt\beta_t gaining a term of order dlog⁡td \log t and the bound gaining an additive constant. The proof discretizes the domain more finely as tt grows, which requires sample paths smooth enough that values at nearby grid points are close. The RBF kernel and Matérn kernels with ν>2\nu > 2 qualify. The rough Matérn 1/2 kernel violates the assumption, and the authors conjecture that no result of this form holds for it.

Fixed functions. The theorems above are Bayesian: they hold with high probability for functions drawn from the prior. A frequentist version asks for a guarantee for one fixed function from a class. The natural class is the reproducing kernel Hilbert space (RKHS) of the kernel, a space of functions built from sums of kernel bumps like Equation (8.4), whose norm ∥f∥k\lVert f \rVert_k measures how rough ff is relative to the kernel (Section 10.2 constructs the space and its norm). (Sample paths of the Gaussian process itself are rougher than this, with infinite norm, so neither setting contains the other.) If ∥f∥k2≤B\lVert f \rVert_k^2 \le B and the noise is bounded, GP-UCB with βt=2B+300γtlog⁡3(t/δ)\beta_t = 2B + 300\gamma_t \log^3(t/\delta) has regret of order T(BγT+γT)\sqrt{T}(\sqrt{B\gamma_T} + \gamma_T) up to logarithmic factors (Srinivas et al., 2010). Chowdhury and Gopalan (2017) sharpened this analysis and proved a regret bound for a Gaussian process version of Thompson sampling. Section 13.4.5 shows where widths of this kind come from.

Lower bounds. In the RKHS setting, Scarlett et al. (2017) proved that every algorithm has cumulative regret of at least order T(ν+d)/(2ν+d)T^{(\nu + d)/(2\nu + d)} on some function in the Matérn class. For the RBF kernel they showed that cumulative regret is at least of order T(log⁡T)d/2\sqrt{T(\log T)^{d/2}}, which matches the upper bounds up to replacing d/2d/2 by 2d+O(1)2d + O(1) in the exponent of log⁡T\log T under the square root. The lower bounds play the role of Lai and Robbins for functions: they say how much exploring the class forces on any algorithm.

The same machinery, with comparisons in place of evaluations, gives the kernelized dueling bandit bounds of Section 21.3 and the theory of Chapter 29, where some of the basic lower bounds are still missing (Section 29.7).

13.4.5 Confidence for a fixed function #

The confidence step of Theorem 13.3 used two tools from Section 13.2.2. A Gaussian lands more than β1/2\beta^{1/2} standard deviations from its mean with probability at most e−β/2e^{-\beta/2}, and a union bound over the ∣X∣|\X| inputs and over rounds, giving round tt the share 6δ/(π2t2)6\delta/(\pi^2 t^2) of δ\delta, asks for ∣X∣ e−βt/2=6δ/(π2t2)|\X|\, e^{-\beta_t/2} = 6\delta/(\pi^2 t^2). Solving for βt\beta_t gives the theorem's βt=2log⁡ ⁣(∣X∣ t2π2/(6δ))\beta_t = 2 \log\!\big(|\X|\, t^2 \pi^2/(6\delta)\big). The adaptive choice of inputs did no harm there: given the observations so far, the inputs chosen from them are fixed, and f(x)f(\vx) is Gaussian with mean μt−1(x)\mu_{t-1}(\vx) and standard deviation σt−1(x)\sigma_{t-1}(\vx) whatever rule chose them (Srinivas et al., 2010, Lemma 5.1).

The frequentist results of Section 13.4.4 remove that support. There ff is one fixed function with ∥f∥k2≤B\lVert f \rVert_k^2 \le B, and the only randomness is the noise. The error μt(x)−f(x)\mu_t(\vx) - f(\vx) is a bias, from the prior pulling the estimate toward zero, plus a weighted sum of the noise terms ε1,…,εt\varepsilon_1, \dots, \varepsilon_t, and the weights depend on where the algorithm chose to look, which depended on earlier noise. That is not a sum of independent terms with weights fixed in advance, so Hoeffding's inequality does not apply, and on a continuous domain there is no finite list of inputs to take a union over. This subsection shows the tool that replaces both and how it produces a width that grows with γt\gamma_t and log⁡(1/δ)\log(1/\delta). Like the map above, it can be skipped on a first reading.

Martingales. Consider a running sum Mt=∑s≤tgsεsM_t = \sum_{s \le t} g_s \varepsilon_s in which each weight gsg_s may depend on everything observed before round ss but is fixed before εs\varepsilon_s is drawn, and each εs\varepsilon_s has mean zero given everything before it. Such a sum is a martingale: the fortune of a gambler in a fair game who chooses each stake by looking at the history. The stakes are adaptive, and the game is still fair. The Chernoff method survives the adaptivity. Given the past, gtg_t is a fixed number and εt\varepsilon_t is RR-sub-Gaussian (Definition 13.2), so E[eλgtεt ∣ past]≤eλ2gt2R2/2\E\big[e^{\lambda g_t \varepsilon_t} \given \text{past}\big] \le e^{\lambda^2 g_t^2 R^2/2}. Peeling off one round at a time, starting from the last, shows that

Zt=exp⁡ ⁣(λMt−12λ2R2Vt),Vt=∑s≤tgs2,Z_t = \exp\!\Big(\lambda M_t - \tfrac12 \lambda^2 R^2 V_t\Big), \qquad V_t = \sum_{s \le t} g_s^2,

has expectation at most 1 for every tt. Where the derivation of Equation (13.6) factored an expectation over independent terms, this one factors it over rounds, each conditioned on the rounds before. More is true: ZtZ_t is never negative and does not drift upward on average from one round to the next, and for such a process Markov's inequality holds in a stronger form, the maximal inequality: the probability that ZtZ_t ever reaches 1/δ1/\delta is at most δ\delta (Lattimore and Szepesvári, 2020, Thm. 3.9). A bound for all rounds at once then needs no union over rounds.

Two problems remain. The best λ\lambda depends on VtV_t, which is random. And a Gaussian process estimate is not of the form MtM_t: its weight on the observation ysy_s depends on inputs chosen after round ss. The first problem is solved by averaging ZtZ_t over λ\lambda instead of choosing it, the method of mixtures.

Derivation The method of mixtures in one dimension
  1. For each fixed λ\lambda, ZtZ_t is never negative, starts at 1, and does not drift upward. An average of such processes over λ\lambda is another one (Lattimore and Szepesvári, 2020, Lemma 20.3).
  2. Average over λ∼N(0,1/(cR2))\lambda \sim \N\big(0, 1/(cR^2)\big) for a constant c>0c > 0. The density of λ\lambda is cR2/(2π) e−cR2λ2/2\sqrt{cR^2/(2\pi)}\,e^{-cR^2\lambda^2/2}, so Zˉt=cR2/(2π)∫exp⁡ ⁣(λMt−12λ2R2(Vt+c)) dλ\bar Z_t = \sqrt{cR^2/(2\pi)}\int \exp\!\big(\lambda M_t - \tfrac12\lambda^2R^2(V_t + c)\big)\,\dd\lambda. Completing the square in λ\lambda, as in Section 4.1, leaves exp⁡ ⁣(Mt2/(2R2(Vt+c)))\exp\!\big(M_t^2 / (2R^2(V_t + c))\big) times a Gaussian integral equal to 2π/(R2(Vt+c))\sqrt{2\pi/(R^2(V_t + c))}, so Zˉt=c/(Vt+c) exp⁡ ⁣(Mt2/(2R2(Vt+c)))\bar Z_t = \sqrt{c/(V_t + c)}\, \exp\!\big(M_t^2 / (2R^2(V_t + c))\big).
  3. By the maximal inequality, with probability at least 1−δ1 - \delta, Zˉt<1/δ\bar Z_t < 1/\delta for every tt. Taking logarithms and rearranging, Mt2<R2(Vt+c)(2log⁡(1/δ)+log⁡(1+Vt/c))M_t^2 < R^2 (V_t + c) \big(2 \log(1/\delta) + \log(1 + V_t/c)\big) for every tt.

The result reads as a statement in standard deviations. R2VtR^2 V_t plays the role of the variance of MtM_t, so the sum stays within about one standard deviation, RVt+cR\sqrt{V_t + c}, times 2log⁡(1/δ)+log⁡(1+Vt/c)\sqrt{2\log(1/\delta) + \log(1 + V_t/c)}. The 2log⁡(1/δ)2\log(1/\delta) is the price of confidence that every Chernoff bound pays. The log⁡(1+Vt/c)\log(1 + V_t/c) is the price of not knowing in advance how large the variance would be, and it grows only like the logarithm of the variance. A bound of this kind is called self-normalized: the sum is measured against its own accumulated variance.

The second problem is solved by working with vectors. Write the kernel through features, k(x,x′)=ϕ(x)⊤ϕ(x′)k(\vx, \vx') = \boldsymbol{\phi}(\vx)^\T\boldsymbol{\phi}(\vx'), the weight-space view of Section 5.4.2 with the prior covariance of the weights set to I\mI. Two quantities summarize the first tt rounds: the posterior precision of the weights, and the noise pushed along the features of the inputs that received it,

At=I+σn−2∑s≤tϕ(xs)ϕ(xs)⊤,st=∑s≤tεs ϕ(xs).\mA_t = \mI + \sigma_n^{-2} \sum_{s \le t} \boldsymbol{\phi}(\vx_s)\boldsymbol{\phi}(\vx_s)^\T, \qquad \mathbf{s}_t = \sum_{s \le t} \varepsilon_s\, \boldsymbol{\phi}(\vx_s).

Each term of st\mathbf{s}_t has its weight vector ϕ(xs)\boldsymbol{\phi}(\vx_s) fixed before its noise is drawn, so st\mathbf{s}_t is a martingale with vector values. Averaging over a Gaussian distribution of directions, in place of the Gaussian distribution of λ\lambda in the box above, gives the following bound.

Theorem 13.4 Self-normalized bound (Abbasi-Yadkori, Pál, and Szepesvári, 2011)

Let the features have finitely many entries. Suppose each input xs\vx_s is chosen from the observations before round ss, and each noise term εs\varepsilon_s, given everything before it, is RR-sub-Gaussian. Then for any δ∈(0,1)\delta \in (0, 1), with probability at least 1−δ1 - \delta,

st⊤At−1st≤σn2R2(log⁡det⁡At+2log⁡(1/δ))for all t≥0 at once.\mathbf{s}_t^\T \mA_t^{-1} \mathbf{s}_t \le \sigma_n^2 R^2 \big(\log\det\mA_t + 2\log(1/\delta)\big) \quad \text{for all } t \ge 0 \text{ at once.}
(13.15)

This is Theorem 1 of Abbasi-Yadkori et al. (2011) with their regularizer set to σn2\sigma_n^2, so that their matrix is σn2At\sigma_n^2 \mA_t. Lattimore and Szepesvári prove the case R=1R = 1, to which any RR reduces by rescaling the noise, with the method of mixtures (Lattimore and Szepesvári, 2020, Thm. 20.4). With a single feature the theorem is the box above with c=σn2c = \sigma_n^2.

The log-determinant is the information gain. By the matrix determinant lemma (Equation (B.7)), det⁡At=det⁡(I+σn−2Kt)\det \mA_t = \det(\mI + \sigma_n^{-2}\mK_t), where Kt\mK_t is the kernel matrix of the first tt inputs, so 12log⁡det⁡At\tfrac12 \log\det\mA_t is the information I(yt;f)I(\vy_t; f) of Equation (13.12) gathered by the inputs the algorithm chose, and at most γt\gamma_t. The union bound charged a logarithm per input; this bound charges per direction the data have measured.

On a finite domain, as in Theorem 13.3, features with finitely many entries always exist, and the theorem turns into a confidence bound for a fixed function.

Derivation A confidence bound for a fixed function

Take ϕ(x)\boldsymbol{\phi}(\vx) to be the column of KX1/2\mK_\X^{1/2} that belongs to x\vx, where KX\mK_\X is the kernel matrix of the whole domain. Then k(x,x′)=ϕ(x)⊤ϕ(x′)k(\vx, \vx') = \boldsymbol{\phi}(\vx)^\T\boldsymbol{\phi}(\vx'), and every function in the RKHS is f(x)=ϕ(x)⊤wf(\vx) = \boldsymbol{\phi}(\vx)^\T\vw with ∥w∥=∥f∥k≤B\lVert \vw \rVert = \lVert f \rVert_k \le \sqrt{B}. With Φt\boldsymbol{\Phi}_t the matrix whose rows are ϕ(x1)⊤,…,ϕ(xt)⊤\boldsymbol{\phi}(\vx_1)^\T, \dots, \boldsymbol{\phi}(\vx_t)^\T, the posterior of Equation (5.7) and Equation (5.9) is μt(x)=ϕ(x)⊤wˉt\mu_t(\vx) = \boldsymbol{\phi}(\vx)^\T\bar\vw_t with wˉt=σn−2At−1Φt⊤yt\bar\vw_t = \sigma_n^{-2}\mA_t^{-1}\boldsymbol{\Phi}_t^\T\vy_t, and σt2(x)=ϕ(x)⊤At−1ϕ(x)\sigma_t^2(\vx) = \boldsymbol{\phi}(\vx)^\T\mA_t^{-1}\boldsymbol{\phi}(\vx).

  1. Split the error. Substituting yt=Φtw+(ε1,…,εt)⊤\vy_t = \boldsymbol{\Phi}_t\vw + (\varepsilon_1, \dots, \varepsilon_t)^\T and Φt⊤Φt=σn2(At−I)\boldsymbol{\Phi}_t^\T\boldsymbol{\Phi}_t = \sigma_n^2(\mA_t - \mI) gives wˉt=w−At−1w+σn−2At−1st\bar\vw_t = \vw - \mA_t^{-1}\vw + \sigma_n^{-2}\mA_t^{-1}\mathbf{s}_t, so μt(x)−f(x)=−ϕ(x)⊤At−1w+σn−2ϕ(x)⊤At−1st\mu_t(\vx) - f(\vx) = -\boldsymbol{\phi}(\vx)^\T\mA_t^{-1}\vw + \sigma_n^{-2}\boldsymbol{\phi}(\vx)^\T\mA_t^{-1}\mathbf{s}_t.
  2. Separate the input from the rest. By the Cauchy-Schwarz inequality in the inner product u⊤At−1v\mathbf{u}^\T\mA_t^{-1}\mathbf{v}, for any vector v\mathbf{v}, ∣ϕ(x)⊤At−1v∣≤σt(x)v⊤At−1v|\boldsymbol{\phi}(\vx)^\T\mA_t^{-1}\mathbf{v}| \le \sigma_t(\vx)\sqrt{\mathbf{v}^\T\mA_t^{-1}\mathbf{v}}.
  3. Bias. At\mA_t is I\mI plus positive semidefinite terms, so w⊤At−1w≤∥w∥2≤B\vw^\T\mA_t^{-1}\vw \le \lVert\vw\rVert^2 \le B, and the first term of step 1 is at most B σt(x)\sqrt{B}\,\sigma_t(\vx).
  4. Noise. By Equation (13.15), the second term is at most σt(x) (R/σn)log⁡det⁡At+2log⁡(1/δ)\sigma_t(\vx)\,(R/\sigma_n)\sqrt{\log\det\mA_t + 2\log(1/\delta)}.
  5. Information. log⁡det⁡At=2I(yt;f)≤2γt\log\det\mA_t = 2I(\vy_t; f) \le 2\gamma_t.

Together, with probability at least 1−δ1 - \delta, for every input and every t≥0t \ge 0 at once,

∣f(x)−μt(x)∣≤(B+Rσn2(γt+log⁡(1/δ))) σt(x).|f(\vx) - \mu_t(\vx)| \le \Big(\sqrt{B} + \frac{R}{\sigma_n}\sqrt{2\big(\gamma_t + \log(1/\delta)\big)}\Big)\, \sigma_t(\vx).
(13.16)

GP-UCB in round tt uses the posterior after t−1t - 1 observations, so Equation (13.16) gives it a valid confidence bound with

βt1/2=B+Rσn2(γt−1+log⁡(1/δ)).\beta_t^{1/2} = \sqrt{B} + \frac{R}{\sigma_n}\sqrt{2\big(\gamma_{t-1} + \log(1/\delta)\big)}.
(13.17)

The first term is the bias: a function of large norm can sit far from what the prior expects, but by at most B\sqrt{B} posterior standard deviations. The second is the noise. It grows with γt−1\gamma_{t-1} because every direction the data have measured is a direction in which the noise could have pushed the estimate, and with log⁡(1/δ)\log(1/\delta) as every Chernoff bound does. The number of inputs ∣X∣|\X| does not appear: step 2 covers every input at once, where the Bayesian width took a union over them. That is why bounds of this kind carry over to continuous domains.

The width agrees with the frequentist statement of Section 13.4.4. There the noise is bounded by σn\sigma_n in absolute value and the model's noise variance is σn2\sigma_n^2 (Srinivas et al., 2010, Thm. 3), so R=σnR = \sigma_n, and squaring Equation (13.17) with (u+v)2≤2u2+2v2(u + v)^2 \le 2u^2 + 2v^2 gives βt≤2B+4(γt−1+log⁡(1/δ))\beta_t \le 2B + 4\big(\gamma_{t-1} + \log(1/\delta)\big). The schedule βt=2B+300γtlog⁡3(t/δ)\beta_t = 2B + 300\gamma_t \log^3(t/\delta) of Srinivas et al. (2010) has the same term 2B2B from the norm of ff, and the same information gain for the noise, multiplied by 300log⁡3(t/δ)300\log^3(t/\delta). Their proof applies Freedman's inequality, a martingale version of Bernstein's inequality that uses the conditional variances, and a union bound over rounds (Srinivas et al., 2010, app. B); the factor 300 and the cube of the logarithm come from that route (inference).

For a general domain the features can have infinitely many entries, and the argument of Abbasi-Yadkori et al. (2011) breaks down. Chowdhury and Gopalan (2017) proved a self-normalized bound that holds in that case. With ∥f∥k2≤B\lVert f \rVert_k^2 \le B and noise that is RR-sub-Gaussian given the past, their Theorem 2 states that with probability at least 1−δ1 - \delta,

∣μt−1(x)−f(x)∣≤(B+R2(γt−1+1+log⁡(1/δ))) σt−1(x)|\mu_{t-1}(\vx) - f(\vx)| \le \Big(\sqrt{B} + R\sqrt{2\big(\gamma_{t-1} + 1 + \log(1/\delta)\big)}\Big)\, \sigma_{t-1}(\vx)

for every input and every round up to the horizon TT, where the posterior and γt−1\gamma_{t-1} are computed with noise variance 1+2/T1 + 2/T in place of σn2\sigma_n^2. (They write BB for the norm itself, and their βt\beta_t is the multiplier of σt−1(x)\sigma_{t-1}(\vx), our βt1/2\beta_t^{1/2}.) The extra 1 pays for that slightly inflated noise variance, which adds tlog⁡(1+2/T)t\log(1 + 2/T), at most 2, to the log-determinant. Their algorithm, IGP-UCB, uses this width, which is narrower than that of GP-UCB by a factor that grows like log⁡3/2(t/δ)\log^{3/2}(t/\delta).

Steps 2 to 5 of the GP-UCB proof in Section 13.4.3 use nothing about ff except the confidence statement and k(x,x)≤1k(\vx, \vx) \le 1. With the width of Equation (13.17) on a finite domain, they give RT≤C1TβTγTR_T \le \sqrt{C_1 T \beta_T \gamma_T} again, now with probability at least 1−δ1 - \delta for every fixed ff with ∥f∥k2≤B\lVert f \rVert_k^2 \le B. Since βT≤2B+4(R/σn)2(γT+log⁡(1/δ))\beta_T \le 2B + 4(R/\sigma_n)^2\big(\gamma_T + \log(1/\delta)\big), the regret for a fixed δ\delta is of order T(BγT+γT)\sqrt{T}\big(\sqrt{B\gamma_T} + \gamma_T\big), the order stated in Section 13.4.4, now without hidden logarithmic factors. Chowdhury and Gopalan (2017) state their bound, in this notation, as RT=O(BTγT+TγT(γT+log⁡(1/δ)))R_T = O\big(\sqrt{BT\gamma_T} + \sqrt{T\gamma_T(\gamma_T + \log(1/\delta))}\big).

Key idea The information gain is the price of adaptivity

When the inputs are chosen from the noise that came before, a confidence bound for a fixed function must hold in every direction the data could have measured. The self-normalized bound pays for that with the log-determinant of the posterior precision, twice the information gain, so the width grows like γt+log⁡(1/δ)\sqrt{\gamma_t + \log(1/\delta)} instead of with the number of inputs.

Sources cited in Section 13.4 6
  1. Srinivas et al. (2010) Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design
  2. Vakili et al. (2021a) On Information Gain and Regret Bounds in Gaussian Process Bandits
  3. Chowdhury and Gopalan (2017) On Kernelized Multi-armed Bandits
  4. Scarlett et al. (2017) Lower Bounds on Regret for Noisy Gaussian Process Bandit Optimization
  5. Lattimore and Szepesvári (2020) Bandit Algorithms
  6. Abbasi-Yadkori et al. (2011) Improved Algorithms for Linear Stochastic Bandits

13.5 What bounds say about practice #

Theorem 13.3 gives a number. It is worth computing it on a problem where every assumption holds: a function drawn from the Gaussian process that GP-UCB uses, on a finite grid, with the noise level the algorithm is told. The figure below does that, and runs GP-UCB twice on the same function and noise, once with the theorem's βt\beta_t and once with a constant multiplier of the kind practitioners use.

f, drawn from the GPGP-UCB, theorem's βtGP-UCB, √β = 2.0random queries (expected)bound √(C1 t βt γt)−101f(x)βt√β=20.11101001000regret (log)020406080100120140160180200round tC1 = 1.73 · √βT = 6.1 · γT ≥ 42.5at T = 200: bound 738 · random queries 199regret 16.8 with the theorem's βt · 8.8 with √β = 2.0
f, drawn from the GPGP-UCB, theorem's βtGP-UCB, √β = 2.0random queries (expected)bound √(C1 t βt γt)−101βt2.0f(x)0.11101001000050100150200round tcumulative regret (log scale)C1 = 1.73 · √βT = 6.1 · γT ≥ 42.5at T = 200: bound 738 · random queries 199regret 16.8 (βt) · 8.8 (√β = 2.0)
Figure 13.4 GP-UCB on a function drawn from its own prior (top), on a finite domain of 160 inputs: a grid in one dimension, or a fixed Latin hypercube sample of the cube in three or six dimensions, where the top panel plots every input against its first coordinate. The ticks under the function mark where each run evaluated; taller ticks mean repeated evaluations. The bottom panel shows cumulative regret on a logarithmic scale: GP-UCB with the theorem's βt\beta_t (δ=0.1\delta = 0.1), GP-UCB with a constant multiplier β\sqrt\beta, the expected regret of uniformly random queries, and the bound of Theorem 13.3. The bound uses a greedy estimate of γT\gamma_T, which can only understate it, so the true bound is at least as high as drawn. Values are for one random function; press New function for another.

Some things to try.

Read the default. At the default settings and T=200T = 200, the bound is several hundred, larger than the regret that uniformly random queries would incur, while GP-UCB with the theorem's βt\beta_t has regret below 20 and GP-UCB with β=2\sqrt\beta = 2 about half of that. On this problem the theorem is true and, at this horizon, weaker than the trivial bound of doing nothing clever.

Drag the noise. As σn\sigma_n goes from 0.1 to 1, C1C_1 grows from 1.73 to 11.5, while γT\gamma_T falls, because noisy evaluations teach less. The bound moves much less than either constant. Both runs suffer more from noise than the bound does.

Switch the kernel to Matérn 1/2. Rough functions have many more distinguishable regions, γT\gamma_T grows several times faster, and both runs take longer to find the peak.

Set the practical multiplier to 0. This is pure exploitation: evaluate wherever the posterior mean is highest. Starting from a mean of zero everywhere, the rule keeps evaluating the first input whose value comes out above zero, because nothing else ever looks better. Unless that input happens to be the peak, its regret grows in a straight line, as it does for the default function. Press New function to see both cases. Notice also that the bound does not move when the function changes: it depends only on the kernel, the noise, and TT.

Switch to 3-D, then 6-D. The domain still has 160 inputs, but they are now scattered through a cube, and at lengthscale 0.1 almost no two of them are close enough to be correlated. Each input is effectively its own arm: γT\gamma_T jumps from about 42 to about 350 in three dimensions and 380 in six, close to the value for 160 independent arms, and both runs lose much more. Raise the lengthscale to 0.5 and the information gain falls again, because a longer lengthscale lets each evaluation speak for more of the cube. How to choose the lengthscale as the dimension grows is a practical question of its own (Section 14.6).

Compare the multipliers. The readout shows βT\sqrt{\beta_T}, about 6 at T=200T = 200 (Exercise 13.4). Six standard deviations of optimism is far more than the error of a well-specified posterior requires, which is why the theorem's run keeps exploring long after the practical run has settled.

13.5.1 What the bounds do say #

The bounds of this chapter establish that sublinear regret is possible for black-box optimization at all, under stated assumptions, and they identify what governs its rate. For bandits, it is the gaps and the number of arms; for Gaussian processes, it is the maximum information gain, a property of the prior and the noise rather than of any algorithm. The rates in Table 13.1 rank problems sensibly: smoother kernels are easier than rough ones, and dimension hurts most where smoothness is low.

The proofs also explain why particular design choices matter. Exploration must never switch off entirely: greedy and constant-ε rules fail for structural reasons, and the confidence parameter βt\beta_t grows, slowly, for the same reason that the UCB1 bonus contains ln⁡t\ln t. Optimism, posterior sampling, and information-seeking are the mechanisms with guarantees, and several of the acquisition functions of Chapter 12 are built from them.

13.5.2 What the bounds do not say #

The constants matter at practical horizons. Bounds are proved with whatever constants make the proof go through, and they are rarely tight. The authors of GP-UCB found, by cross-validation (trying each scaling on data held out from the fit), that their algorithm improved when βt\beta_t was scaled down by a factor of 5 from the theorem's value, and noted that they did not optimize the constants of their bounds (Srinivas et al., 2010). Auer and colleagues' variant UCB1-TUNED performed substantially better than UCB1 in essentially all their experiments, and they could not prove a regret bound for it (Auer et al., 2002). Figure 13.3 and Figure 13.4 both show bounds that are true and, at the horizons a practitioner has, larger than the regret of naive play.

The model is assumed correct. Theorem 13.3 assumes that the kernel, its hyperparameters, and the noise level are known, and that ff was drawn from exactly that prior; the RKHS version assumes a known bound BB on the norm. In practice hyperparameters are fitted to the data as they arrive (Section 9.4), and that changes the algorithm. Bull (2011) proved convergence rates for expected improvement with a fixed prior, and showed that with standard sequential estimates of the prior's parameters the procedure may never find the optimum; alternative estimators restore the rates. Berkenkamp et al. (2019) gave the first algorithm that is provably no-regret without knowing the hyperparameters, by slowly enlarging the function class it considers.

The score may not be yours. The GP-UCB bound is about cumulative regret. When only the final recommendation matters, Equation (13.2) turns it into a guarantee, but an algorithm tuned for cumulative regret can be needlessly cautious about exploring (Bubeck et al., 2009). Expected improvement, which Bull (2011) calls perhaps the most popular method for this problem, was analyzed there for simple regret with noise-free evaluations. Bounds proved in different settings and for different scores do not rank the acquisition functions of Section 12.8 against each other (inference).

The acquisition function is assumed maximized exactly. The theorems take xt\vx_t to be the exact maximizer of Equation (13.11). On a continuous domain that maximization is itself a hard, multimodal problem, solved approximately by the methods of Section 12.9 (Srinivas et al., 2010). No bound in this chapter accounts for the error.

Dimension enters through exponents. The three- and six-dimensional settings of Figure 13.4 show the effect at small scale. The RBF rate (log⁡T)d+1(\log T)^{d+1} is mild in TT but not in dd: for d=10d = 10 and T=1000T = 1000, (ln⁡T)11(\ln T)^{11} is about 1.7×1091.7 \times 10^9, so unless the constant hidden in the O(⋅)O(\cdot) is minute, a bound of order TγT\sqrt{T\gamma_T} exceeds the trivial bound, linear in TT, by orders of magnitude (inference). For Matérn kernels in the RKHS setting, combining the regret of order γTT\gamma_T\sqrt{T} for GP-UCB with the rate of Vakili et al. (2021a) gives an exponent of 12+d/(2ν+d)\tfrac12 + d/(2\nu + d), which reaches 1, and so says nothing at all, once d≥2νd \ge 2\nu (inference). How Bayesian optimization copes with many dimensions in practice is the subject of Section 14.6 and Chapter 30.

A bound is about a class, not about your function. A worst-case bound holds for every function in the class, and a Bayesian bound for most functions drawn from the prior. The function you face is one particular function, and neither kind of bound predicts how a method will rank on it. Benchmarks answer that question, with their own limits (Section 31.4).

The useful stance is to treat regret bounds as design principles and as sanity checks rather than as forecasts. An algorithm with a guarantee is built from mechanisms that cannot get permanently stuck; its constants are then tuned empirically, as the authors of the guarantees did themselves. The next chapter turns to those empirical decisions.

Sources cited in Section 13.5 6
  1. Srinivas et al. (2010) Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design
  2. Auer et al. (2002) Finite-time Analysis of the Multiarmed Bandit Problem
  3. Bull (2011) Convergence Rates of Efficient Global Optimization Algorithms
  4. Berkenkamp et al. (2019) No-Regret Bayesian Optimization with Unknown Hyperparameters
  5. Bubeck et al. (2009) Pure Exploration in Multi-armed Bandits Problems
  6. Vakili et al. (2021a) On Information Gain and Regret Bounds in Gaussian Process Bandits

13.6 Exercises #

Exercise 13.1

Show that ε-greedy with constant ε>0\varepsilon > 0 on KK arms has expected regret at least εTK∑iΔi\frac{\varepsilon T}{K} \sum_i \Delta_i after TT rounds (ignoring the initial round in which each arm is pulled once). Evaluate the slope for the default arms of Figure 13.3, whose means are 0.60.6, 0.50.5, 0.3830.383, 0.2670.267, and 0.150.15, with ε=0.1\varepsilon = 0.1, and compare it with the figure.

Solution

In each round, with probability ε\varepsilon the algorithm pulls an arm chosen uniformly, which has expected gap 1K∑iΔi\frac1K \sum_i \Delta_i; with probability 1−ε1 - \varepsilon it pulls the greedy arm, whose gap is at least 0. So the expected regret of every round is at least εK∑iΔi\frac{\varepsilon}{K}\sum_i \Delta_i, and summing over TT rounds gives the bound. For the default arms the gaps are 0,0.1,0.217,0.333,0.450, 0.1, 0.217, 0.333, 0.45, with sum 1.11.1, so the slope is at least 0.1×1.1/5=0.0220.1 \times 1.1 / 5 = 0.022 per round, or 22 over 1000 rounds. The figure shows ε-greedy at about 60 after 1000 rounds: the rest comes from rounds in which the greedy arm is not the best one, because the averages of rarely explored arms are still noisy.

Exercise 13.2

Two Bernoulli arms have means 0.60.6 and 0.50.5. Compute the Lai-Robbins constant c∗c^* of Equation (13.10) and the coefficient of ln⁡T\ln T in Theorem 13.1. What do the two numbers predict for the number of pulls of the worse arm after T=104T = 10^4 rounds?

Solution

kl(0.5,0.6)=0.5ln⁡(0.5/0.6)+0.5ln⁡(0.5/0.4)=0.5(−0.1823+0.2231)=0.0204\mathrm{kl}(0.5, 0.6) = 0.5\ln(0.5/0.6) + 0.5\ln(0.5/0.4) = 0.5(-0.1823 + 0.2231) = 0.0204. With Δ=0.1\Delta = 0.1, c∗=0.1/0.0204=4.90c^* = 0.1/0.0204 = 4.90, and the asymptotic number of pulls of the worse arm is ln⁡T/kl=9.21/0.0204≈450\ln T/\mathrm{kl} = 9.21/0.0204 \approx 450. UCB1's coefficient is 8/Δ=808/\Delta = 80, about 16 times c∗c^*, and its bound on the pulls of the worse arm is 8ln⁡T/Δ2+1+π2/3≈7,370+48\ln T/\Delta^2 + 1 + \pi^2/3 \approx 7{,}370 + 4, which says little when the budget is 10410^4 pulls in total. Pinsker's inequality, kl≥2Δ2=0.02\mathrm{kl} \ge 2\Delta^2 = 0.02, is nearly tight here, so the factor of 16 is close to the worst case.

Exercise 13.3

For a diagonal kernel on KK arms (each k(i,i)=1k(i, i) = 1, all other entries 0) and TT a multiple of KK, show that γT=K2log⁡ ⁣(1+TKσn2)\gamma_T = \frac{K}{2}\log\!\left(1 + \frac{T}{K\sigma_n^2}\right). What does Theorem 13.3 then say about the growth of RTR_T in KK and TT, and how does it compare with the worst-case lower bound of Section 13.3?

Solution

With independent arms, KA\mK_A is block diagonal: if arm ii is evaluated mim_i times, its block is an mi×mim_i \times m_i matrix of ones, 11⊤\mathbf{1}\mathbf{1}^\T. The corresponding block of I+σn−2KA\mI + \sigma_n^{-2}\mK_A is I+σn−211⊤\mI + \sigma_n^{-2}\mathbf{1}\mathbf{1}^\T, which has the eigenvalue 1+mi/σn21 + m_i/\sigma_n^2 (eigenvector 1\mathbf{1}) and all others equal to 1, so its determinant is 1+mi/σn21 + m_i/\sigma_n^2 (a case of the matrix determinant lemma, Equation (B.7)), and the information is 12∑ilog⁡(1+mi/σn2)\frac12\sum_i \log(1 + m_i/\sigma_n^2) subject to ∑imi=T\sum_i m_i = T. The logarithm is concave, so the sum is largest when the mim_i are equal, mi=T/Km_i = T/K, which gives the formula. Then C1TβTγT\sqrt{C_1 T \beta_T \gamma_T} grows like KT\sqrt{KT} times logarithmic factors in TT and KK. The worst-case lower bound is 127(K−1)T\frac{1}{27}\sqrt{(K-1)T}, so in this special case the GP-UCB bound is tight up to logarithmic factors, as Srinivas et al. (2010) note.

Exercise 13.4

Compute the theorem's βT\beta_T and βT\sqrt{\beta_T} for the setting of Figure 13.4: ∣X∣=160|\X| = 160, δ=0.1\delta = 0.1, T=200T = 200. How does βT\sqrt{\beta_T} change if the grid is refined to ∣X∣=16,000|\X| = 16{,}000 points, and what does that say about the role of ∣X∣|\X|?

Solution

∣X∣T2π2/(6δ)=160×40,000×9.8696/0.6≈1.053×108|\X| T^2 \pi^2/(6\delta) = 160 \times 40{,}000 \times 9.8696/0.6 \approx 1.053 \times 10^8, whose natural logarithm is 18.4718.47, so βT≈36.9\beta_T \approx 36.9 and βT≈6.08\sqrt{\beta_T} \approx 6.08. A grid 100 times finer adds 2ln⁡100≈9.22\ln 100 \approx 9.2 to βT\beta_T, giving βT≈46.1\beta_T \approx 46.1 and βT≈6.79\sqrt{\beta_T} \approx 6.79. The dependence on ∣X∣|\X| is logarithmic, but it never disappears on a finite grid, and it is why the continuous-domain version needs a separate argument: refining the grid without limit would make βt\beta_t infinite.

Exercise 13.5

Rewards lie in [0,1][0, 1]. How many pulls does an arm need before the probability that its average exceeds its mean by 0.1 or more is at most 0.05, according to Chebyshev's inequality (with the largest possible variance, 14\tfrac14) and according to Hoeffding's? Repeat for the probability 10−410^{-4}, and for an interval that must hold in each of 1000 rounds with total failure probability 0.05. Compare the last answers with Figure 13.2 with the union set to 1000.

Solution

Chebyshev's inequality, Equation (13.5), needs n≥Var⁡[Y]/(δa2)=0.25/(0.05×0.01)=500n \ge \Var[Y]/(\delta a^2) = 0.25/(0.05 \times 0.01) = 500. Hoeffding's, Equation (13.6), needs n≥ln⁡(1/δ)/(2a2)=ln⁡20/0.02=149.8n \ge \ln(1/\delta)/(2a^2) = \ln 20/0.02 = 149.8, so 150. For δ=10−4\delta = 10^{-4}, Chebyshev needs 250,000 pulls and Hoeffding ln⁡(104)/0.02=460.5\ln(10^4)/0.02 = 460.5, so 461. Shrinking δ\delta by a factor of 500 multiplies Chebyshev's answer by 500 and Hoeffding's by about 3.1. For 1000 rounds the union bound gives each round δ=5×10−5\delta = 5 \times 10^{-5}: Chebyshev needs 500,000 pulls and Hoeffding ln⁡(20,000)/0.02=495.2\ln(20{,}000)/0.02 = 495.2, so 496, the numbers in the figure's readout. The extra pulls Hoeffding needs, ln⁡1000/0.02≈345\ln 1000/0.02 \approx 345 (346 after rounding both answers up), come from the ln⁡1000\ln 1000 of Equation (13.8).

Exercise 13.6

For the linear kernel k(x,x′)=x⊤x′k(\vx, \vx') = \vx^\T\vx' in dd dimensions, with features ϕ(x)=x\boldsymbol{\phi}(\vx) = \vx and inputs of length at most 1, show that log⁡det⁡AT≤dlog⁡ ⁣(1+T/(dσn2))\log\det\mA_T \le d\log\!\big(1 + T/(d\sigma_n^2)\big) for any TT inputs, so that their information gain is at most d2log⁡ ⁣(1+T/(dσn2))\tfrac{d}{2}\log\!\big(1 + T/(d\sigma_n^2)\big). What does Equation (13.17) then say about how βT\beta_T grows, and what plays the role that log⁡∣X∣\log|\X| plays in Theorem 13.3? Evaluate the bound on the information gain for d=3d = 3, T=1000T = 1000, and σn=1\sigma_n = 1.

Solution

AT=I+σn−2∑sxsxs⊤\mA_T = \mI + \sigma_n^{-2}\sum_s \vx_s\vx_s^\T is a d×dd \times d matrix with positive eigenvalues κ1,…,κd\kappa_1, \dots, \kappa_d. Its determinant is their product, which by the inequality between the geometric and the arithmetic mean is at most (1d∑jκj)d=(tr⁡AT/d)d\big(\tfrac1d\sum_j \kappa_j\big)^d = (\tr\mA_T/d)^d. The trace is d+σn−2∑s∥xs∥2≤d+T/σn2d + \sigma_n^{-2}\sum_s \lVert\vx_s\rVert^2 \le d + T/\sigma_n^2, so log⁡det⁡AT≤dlog⁡ ⁣(1+T/(dσn2))\log\det\mA_T \le d\log\!\big(1 + T/(d\sigma_n^2)\big), and half of it bounds the information gain, as in step 5 of the derivation of Equation (13.16). This is the O(dlog⁡T)O(d\log T) of Table 13.1. The features have dd entries however many inputs the domain holds, so the self-normalized bound applies directly, and since 2γT−12\gamma_{T-1} obeys the same bound, Equation (13.17) gives βT1/2≤B+(R/σn)dlog⁡ ⁣(1+T/(dσn2))+2log⁡(1/δ)\beta_T^{1/2} \le \sqrt{B} + (R/\sigma_n)\sqrt{d\log\!\big(1 + T/(d\sigma_n^2)\big) + 2\log(1/\delta)}, which grows like dlog⁡T\sqrt{d\log T}: the dimension takes the place of log⁡∣X∣\log|\X|, and the domain may be infinite. For d=3d = 3, T=1000T = 1000, and σn=1\sigma_n = 1, the bound is 1.5log⁡(334.3)=8.721.5\log(334.3) = 8.72 nats, against the T⋅12log⁡2=346.6T \cdot \tfrac12\log 2 = 346.6 nats that 1000 evaluations at completely unrelated inputs would gather.

Sources cited in Section 13.6 1
  1. Srinivas et al. (2010) Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design

Further reading #

  • Lattimore and Szepesvári (2020) is the reference on bandit theory: concentration inequalities in chapter 5, UCB in chapters 7 and 8, self-normalized bounds and the method of mixtures in chapter 20, the lower bounds in chapters 15 and 16, simple regret and pure exploration in chapter 33, and Thompson sampling in chapter 36. The book is free online.
  • Auer et al. (2002) is short and readable, with the UCB1 proof sketched above, the decaying ε-greedy rule, and experiments that compare them.
  • Russo et al. (2018) is a practical tutorial on Thompson sampling, with many worked examples beyond Bernoulli arms.
  • Srinivas et al. (2010) introduced GP-UCB, the maximum information gain, and the regret bounds of Section 13.4; the extended arXiv version has the proofs.
  • Abbasi-Yadkori et al. (2011) prove the self-normalized bound of Theorem 13.4 for linear bandits, and Chowdhury and Gopalan (2017) extend it to kernels on general domains, with the confidence width and regret bound of Section 13.4.5.
  • Garnett (2023), chapter 10, surveys the theoretical analysis of Bayesian optimization, including results for expected improvement and information-based policies.
  • Lai and Robbins (1985) is the original lower bound; most readers will find the modern statement in Lattimore and Szepesvári (2020) easier to read first.

References

  1. Abbasi-Yadkori, Y., Pál, D., and Szepesvári, C. (2011). Improved Algorithms for Linear Stochastic Bandits. Advances in Neural Information Processing Systems. Cited in §13.4
  2. Agrawal, S., and Goyal, N. (2012). Analysis of Thompson Sampling for the Multi-armed Bandit Problem. Conference on Learning Theory. Cited in §13.2
  3. Agrawal, S., and Goyal, N. (2013). Further Optimal Regret Bounds for Thompson Sampling. International Conference on Artificial Intelligence and Statistics. Cited in §13.2 §13.3
  4. Auer, P., Cesa-Bianchi, N., and Fischer, P. (2002). Finite-time Analysis of the Multiarmed Bandit Problem. Machine Learning. Cited in §13.2 §13.5
  5. Berkenkamp, F., Schoellig, A. P., and Krause, A. (2019). No-Regret Bayesian Optimization with Unknown Hyperparameters. Journal of Machine Learning Research. Cited in §13.5
  6. Bubeck, S., Munos, R., and Stoltz, G. (2009). Pure Exploration in Multi-armed Bandits Problems. Algorithmic Learning Theory (ALT 2009). Cited in §13.1 §13.5
  7. Bull, A. D. (2011). Convergence Rates of Efficient Global Optimization Algorithms. Journal of Machine Learning Research. Cited in §13.5
  8. Chowdhury, S. R., and Gopalan, A. (2017). On Kernelized Multi-armed Bandits. International Conference on Machine Learning. Cited in §13.4
  9. Garnett, R. (2023). Bayesian Optimization. Cambridge University Press.
  10. Hoeffding, W. (1963). Probability Inequalities for Sums of Bounded Random Variables. Journal of the American Statistical Association. Cited in §13.2
  11. Kaufmann, E., Korda, N., and Munos, R. (2012). Thompson Sampling: An Asymptotically Optimal Finite-Time Analysis. Algorithmic Learning Theory (ALT 2012). Cited in §13.2 §13.3
  12. Lai, T. L., and Robbins, H. (1985). Asymptotically Efficient Adaptive Allocation Rules. Advances in Applied Mathematics. Cited in §13.3
  13. Lattimore, T., and Szepesvári, C. (2020). Bandit Algorithms. Cambridge University Press. doi:10.1017/9781108571401. Cited in §13.1 §13.2 §13.3 §13.4
  14. Robbins, H. (1952). Some Aspects of the Sequential Design of Experiments. Bulletin of the American Mathematical Society. Cited in §13.2
  15. Russo, D. J., Van Roy, B., Kazerouni, A., Osband, I., and Wen, Z. (2018). A Tutorial on Thompson Sampling. Foundations and Trends in Machine Learning.
  16. Scarlett, J., Bogunovic, I., and Cevher, V. (2017). Lower Bounds on Regret for Noisy Gaussian Process Bandit Optimization. Conference on Learning Theory. Cited in §13.4
  17. Srinivas, N., Krause, A., Kakade, S. M., and Seeger, M. (2010). Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design. ICML 2010. Cited in §13.1 §13.2 §13.4 §13.5 §13.6
  18. Thompson, W. R. (1933). On the Likelihood that One Unknown Probability Exceeds Another in View of the Evidence of Two Samples. Biometrika. Cited in §13.2
  19. Vakili, S., Khezeli, K., and Picheny, V. (2021a). On Information Gain and Regret Bounds in Gaussian Process Bandits. International Conference on Artificial Intelligence and Statistics. Cited in §13.4 §13.5
  20. Xu, W., Wang, W., Jiang, Y., Svetozarevic, B., and Jones, C. (2024b). Principled Preferential Bayesian Optimization. International Conference on Machine Learning. Cited in §13.1