#import "../meta/gabri_notes_bk.typ": * #show: gabri_notes.with( instructor: [Prof. Constantinos Daskalakis (costis\@mit.edu)], lec_num: 6, date: [Thu, Oct 1, 2026], title: "Bandit feedback", ) #let va = $a$ #let vb = $b$ #let vx = $x$ #let vy = $y$ #let vg = $g$ #let vr = $r$ #let cX = $X$ #let cY = $Y$ #let cR = $R$ #let xhat = $hat(vx)$ #let yhat = $hat(vy)$ #let mU = $upright(U)_1$ The mathematical abstraction of a sequential decision-maker we considered in previous lectures assumes that the learner receives enough information from the environment that she can compute her utility not only on the strategy she selected to play at each round of the interaction but also any counter-factual strategy that she could have played at that round. That is, we assume _full-information_ feedback. This is a strong assumption, and in many cases, the decision-maker only receives partial feedback. In this lecture, we consider the case where the decision maker receives feedback only on the strategy they played. This is known as _bandit feedback_. = Setup and general considerations Like in our prior lectures, we will study _linear_ settings, where our sequential decision-maker chooses a strategy $x^((t)) in X$ in some strategy set satisfying $X subset.eq RR^n$. In the full-information setting that we have already studied, the feedback that our decision maker receives, at every round $t$, is a utility function $u^((t)): x |-> ip(g^((t)),x)$, from which they can compute their realized utility, $w^((t)) := ip(g^((t)),x^((t)))$, for the strategy they played as well as the counterfactual utility they would have received from any strategy they could have played. In the _bandit_ setting, the decision-maker only receives as feedback their realized utility $w^((t))$ as opposed to their complete utility function $u^((t))$. As a general principle, algorithms for the _bandit_ setting are constructed from regret minimizers for the full-information setting. Indeed, the key idea is to construct an _estimator_ $tilde(g)^((t))$ of the (unobserved) utility gradient $g^((t))$, and feed that into a full-information regret minimizer. The estimator is constructed from the observed utility $w^((t))$ and the chosen strategy $x^((t))$. The utility function can still be picked adversarially by the environment. However, to get guarantees, it is necessary to reduce the power of the environment by letting the utility $u^((t))$ only depend on $x^((1)), ..., x^((t-1))$ but _not_ on $x^((t))$. In other words, the environment can pick the utility adaptively, but must decide the utility _before_ the learner picks the strategy, and not after. This restriction still allows convergence to equilibria if bandit algorithms are used by players to iteratively update their strategies in games. Typically, the construction of bandit algorithms follows the template shown in @fig-bandit. #figure(caption: [General template for bandit learning algorithms. $X$ is the space of strategies of the learner. The output of the "strategy sampler" is a strategy from a restricted set of strategies. The name "strategy sampler" is generally a misnomer, but it is fitting in the widely-studied setting where $X=Delta(A)$ for some finite set of actions $A$. In this case, a common instantiation of the strategy sampler is to take as input a distribution $p^((t)) in Delta(A)$ and sample an action $a^((t)) ~ p^((t))$. In this case, $x^((t))$ would be a single-atom distribution with an atom at $a^((t))$. But, in general, we allow for more general $X$'s and more general samplers.])[ #image("../assets/L07-bandit.svg", width: 100%, alt: "Bandit algorithm template: observed utility enters a gradient estimator, then a full-information regret minimizer, exploration mixture, and strategy sampler.") ] The exploration term can be ignored if regret bounds _in expectation_ are sought. Its role becomes important when _high-probability guarantees_ are sought instead. We explain the difference next. #paragraph-marker() *Stochastic regret guarantees.*~~ Because online learning algorithms benefit from randomization, as is crucially the case in bandit settings, the regret of a bandit algorithm is a random variable. This adds a layer of complexity when approaching the analysis of bandit algorithms. As a rule of thumb, three "flavors" of guarantees are typically considered in the literature. We list them from the weakest (and easiest to obtain) to the strongest (and hardest to obtain): - Guarantees on the _pseudoregret_, namely guarantees of the following form: $ "PseudoReg"^((T)) := max_(xhat in cX) EE[sum_(t=1)^T ip(g^((t)), xhat) - sum_(t=1)^T ip(g^((t)), x^((t)))] = o(T). $ - Guarantees on the _expected regret_, namely guarantees of the following form: $ #h(.5cm)EE["Reg"^((T))] := EE[max_(xhat in cX) sum_(t=1)^T ip(g^((t)), xhat) - sum_(t=1)^T ip(g^((t)), x^((t)))] = o(T). $ Note the change of order between the expectation and the maximum compared with the pseudoregret introduced in the previous bullet point. - _High-probability regret guarantees_, namely guarantees of the following form: $ PP[ max_(xhat in cX) sum_(t=1)^T ip(g^((t)), xhat) - sum_(t=1)^T ip(g^((t)), x^((t))) <= o(T) sqrt(log 1/delta) ] >= 1-delta $ for any $delta > 0$ small enough. To make sense of the measures with respect to which the expectations and probabilities are computed in the above definitions, consider a randomized algorithm for the learner that takes as input the history, $(x^((tau)),w^((tau)))_(tau), applies the multiplicative weights update (MWU) algorithm on the importance sampling estimator. No exploration term is added, so that the deterministic strategy $x^((t))$ is sampled from the $y^((t))$ output by MWU directly (see also @fig-bandit). It is important to note that the analysis of MWU we did in Lecture 5 does not apply well to analyze the regret incurred by the full-information regret minimizer. The issue is that the estimated utilities potentially have a large range due to the division by the probabilities $p^((t))_a$. However, a better analysis of MWU in this case is possible. #theorem[ If the regret minimizer is set to MWU with learning rate $eta = sqrt(log |A|\/ (T|A|))$, the Exp3 algorithm guarantees pseudoregret $ "PseudoReg"^((T)) = O(sqrt(T|A| log |A|)). $ ] == Tsallis entropy It can be shown that, information theoretically, no bandit learning algorithm for a finite set of actions $|A|$ can achieve better than $Omega(sqrt(T |A|))$ expected regret in general. The regret guaranteed by the Exp3 algorithm is therefore optimal only up to a logarithmic factor. It remained open for a long time whether this logarithmic factor could be removed. A positive answer was given recently by #citet(), who proposed the idea of replacing the MWU algorithm with the FTRL algorithm instantiated with the negative $(1\/2)$-Tsallis entropy regularizer $ psi(x) = 2 - 2 sum_(a in A) sqrt(x_a). $ #theorem[ If the regret minimizer is set to FTRL algorithm with (1/2)-Tsallis entropy and learning rate $eta = sqrt(1 \/ T)$, the resulting bandit algorithm guarantees pseudoregret $ "PseudoReg"^((T)) = O(sqrt(T|A|)), $ which is the optimal bound for bandit learning on finite probability distributions. ] A simplified analysis can also be found in #citep(). == The Exp3.P algorithm The Exp3.P algorithm, introduced by #citet(), is a variant of the Exp3 algorithm to achieve high-probability regret guarantees. Intuitively, the difficulty with getting high-probabilty bounds for the regret in Exp3 is due to the importance sampling: the gradient estimator has entries of magnitude inversely proportional to the probabilities output by MWU. This makes the variance of the estimator large, and the concentration of the regret around its expectation difficult. To sidestep the issue, the Exp3.P algorithm uses the idea of superimposing a _uniform exploration term_ to the output $y^((t))$ of MWU. More specifically, the input to the strategy sampler is set to $ p^((t)) := (1 - gamma) y^((t)) + gamma bold(1) / (|A|) in Delta(A), $ where $gamma in [0, 1]$ is a parameter. The exploration term increases the exploration of the algorithm, reducing the variance of the estimator. However, it is important to observe that this correction incurs a regret penalty due to the fact that MWU recommended $y^((t))$, and yet the decision maker sampled from $p^((t))$. The effect of such misalignment grows with the exploration parameter $gamma$. Nonetheless, the following can be shown. #theorem[#citep()][ Consider the Exp3.P algorithm with exploration parameter $gamma = sqrt(|A|\/T)$ and learning rate $eta = sqrt(log |A|\/(T|A|))$. Then, for any $delta in (0,1)$, $ PP["Reg"^((T)) <= O(sqrt(T|A| log (|A|)/delta))] >= 1 - delta. $ ] = Adversarial bandit learning on general convex domains Today, we know that bandit optimization is possible well past probability simplexes. In fact, we can construct bandit algorithms for any convex and compact domain $cX subset.eq RR^d$. In particular, we mention the general general result by #citet(), who showed that the a bandit algorithm can be constructed starting from a full-information regret miminizer built using the FTRL algorithm with a self-concordant distance-generating function. #lec_bibliography("../meta/refs.bib")