Talk for Uppsala University
Alexander Terenin
Definition. An episodic decision problem is defined by the following:
stochastic variant
Bayesian variant
adversarial variant: not covered today
Example. An episodic decision problem is called black-box optimization if:
space of continuous functions
Bayesian optimization: black-box optimization using Bayesian algorithms
Automatic explore-exploit tradeoff
An algorithm is a function $p : \htmlClass{anchor-1}{\f{Seq}(A \x \Sigma)} \to \htmlClass{anchor-2}{\c{M}_1(A)}$.
actions andobservationsseen so far
probabilitydistribution overnext action
A Bayesian algorithm is a pair consisting of:
specified by a prior $p_r$and likelihood $p_{\sigma_t\given r,a_t}$
what thelearner knows
what thelearner does
What does it mean for an algorithm to perform well?
Stochastic variant: $$ R_T(p, r) = \E_{a_t\~p} \htmlClass{anchor-1}{\sup_{a\in A} \sum_{t=1}^{\smash{T}} r(a)} - \htmlClass{anchor-2}{\sum_{t=1}^{\smash{T}} r(a_t)} $$
reward under optimal action
total reward of learner's actions
Difference between rewards obtained, and what would have been obtained if there were no uncertainty
Other problem variants: slightly different notion of regret
example: Bayesian variant
average over $r\~q$
Random search
$$ \smash{a_t \~ \f{U}(A)} $$
Regret: $\smash{\Theta(T)}$
Same point over and over
$$ \smash{a_t = a_0} $$
Linear regret
Maximum expected value
$$ \scriptsize \mathclap{\smash{a_t = \argmax_{a\in A} \E(r(a) \given a_{1:t-1}, \sigma_{1:t-1})}} $$
Usually also linear regret
gap between averageand best point, nolearning, over-explores
can equal the worstpossible regret, nolearning or exploration
learns correctly but explorestoo little and can get stuckin suboptimal actions
What's missing from these? Balance between explore and exploit
We don't know $r$, just that $r\in\c{R}$. What regret is even possible?
many strong algorithms:very different-lookingdesign principles
$R_T(p,r) \leadsto R_T(p,q)$
Lemma. Suppose there is a $q\in\c{M}_1(\c{R})$ such that, for any $p\in\c{P}$, we have $C \leq \E_{r\~q} R_T(p,r)$. Then for every $p\in\c{P}$ there is an $r_p\in\c{R}$ for which $C \leq R_T(p,r_p)$.
Hard distribution implies existence of hard instance
How do we find hard distributions?
in a balanced manner so thelearner can't predict from $q$ alone
actions good for onereward are bad for others
hard to tell differentreward functions apart
Proposition. Consider a stochastic multi-armed bandit, with bounded rewards $\c{R} = \{r : A \to [0,1]\}$ and standard Gaussian noise. Define the reward distribution $q$ according to $$ \htmlData{class=fragment,fragment-index=14}{ r(a) } \htmlData{class=fragment,fragment-index=15}{ = } \htmlData{class=fragment,fragment-index=16}{ \begin{cases} \htmlData{class=fragment,fragment-index=17}{ \Delta } & \htmlData{class=fragment,fragment-index=18}{ a=\alpha } \\ \htmlData{class=fragment,fragment-index=19}{ 0 } & \htmlData{class=fragment,fragment-index=20}{ a\neq\alpha } \end{cases} } \qquad\qquad\qquad \htmlData{class=fragment,fragment-index=21}{ \alpha \~ \f{U}(A) . } $$ Under this distribution, if $K = |A| \geq 2$ and $T \geq \frac{K}{4}$, and $\Delta = \frac{1}{2}\sqrt{\frac{K}{T}}$, then we have $\frac{1}{8}\sqrt{KT} \leq R_T(\., q)$.
Many possible design principles:
Each approach: resolves uncertainty provided by the model differently
Same model, different decisions, similar performance
LLMs can solve episodic decision problems defined in token space
some form of Thompson sampling?
Works in practice, even under partial feedback
the problem: Thompson sampling never pickslow-reward-but-informative points
My view: promising direction for understanding how LLMs work