The Multi-Arm Bandit Framework

Size: px
Start display at page:

Download "The Multi-Arm Bandit Framework"

Transcription

1 The Multi-Arm Bandit Framework A. LAZARIC (SequeL ENS Cachan - Master 2 MVA SequeL INRIA Lille MVA-RL Course

2 In This Lecture A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

3 In This Lecture Question: which route should we take? Problem: each day we obtain a limited feedback: traveling time of the chosen route Results: if we do not repeatedly try different options we cannot learn. Solution: trade off between optimization and learning. A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

4 Mathematical Tools Outline Mathematical Tools The General Multi-arm Bandit Problem The Stochastic Multi-arm Bandit Problem The Non-Stochastic Multi-arm Bandit Problem Connections to Game Theory Other Stochastic Multi-arm Bandit Problems A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

5 Mathematical Tools Concentration Inequalities Proposition (Chernoff-Hoeffding Inequality) Let X i [a i, b i ] be n independent r.v. with mean µ i = EX i. Then [ n ( ) ] P Xi µ i ɛ i=1 ( 2 exp 2ɛ 2 n i=1 (b i a i ) 2 ). A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

6 Mathematical Tools Concentration Inequalities Proof. ( n ) P X i µ i ɛ i=1 = P(e s n i=1 Xi µi e sɛ ) e sɛ E[e s n i=1 Xi µi ], Markov inequality = n e sɛ E[e s(xi µi ) ], independent random variables i=1 n e sɛ e s2 (b i a i ) 2 /8, i=1 = e sɛ+s2 n i=1 (bi ai )2 /8 Hoeffding inequality If we choose s = 4ɛ/ n i=1 (b i a i ) 2, the result follows. Similar arguments hold for P ( n i=1 X i µ i ɛ ). A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

7 Mathematical Tools Concentration Inequalities Finite sample guarantee: [ 1 n P X t E[X 1 ] n t=1 }{{} deviation > ɛ }{{} accuracy ] ( 2 exp 2nɛ2 ) (b a) }{{ 2 } confidence A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

8 Mathematical Tools Concentration Inequalities Finite sample guarantee: [ 1 n ] log 2/δ P X t E[X 1 ] > (b a) δ n 2n t=1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

9 Mathematical Tools Concentration Inequalities Finite sample guarantee: [ ] 1 n P X t E[X 1 ] > ɛ δ n if n (b a)2 log 2/δ 2ɛ 2. t=1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

10 The General Multi-arm Bandit Problem Outline Mathematical Tools The General Multi-arm Bandit Problem The Stochastic Multi-arm Bandit Problem The Non-Stochastic Multi-arm Bandit Problem Connections to Game Theory Other Stochastic Multi-arm Bandit Problems A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

11 The General Multi-arm Bandit Problem The Multi armed Bandit Game The learner has i = 1,..., N arms (options, experts,...) At each round t = 1,..., n At the same time The environment chooses a vector of rewards {Xi,t } N i=1 The learner chooses an arm It The learner receives a reward X It,t The environment does not reveal the rewards of the other arms A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

12 The General Multi-arm Bandit Problem The Multi armed Bandit Game (cont d) The regret [ n ] [ n R n (A) = max E X i,t E i=1,...,n t=1 t=1 X It,t The expectation summarizes any possible source of randomness (either in X or in the algorithm) ] A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

13 The General Multi-arm Bandit Problem The Exploration Exploitation Lemma Problem 1: The environment does not reveal the rewards of the arms not pulled by the learner the learner should gain information by repeatedly pulling all the arms exploration Problem 2: Whenever the learner pulls a bad arm, it suffers some regret the learner should reduce the regret by repeatedly pulling the best arm exploitation Challenge: The learner should solve two opposite problems! Challenge: The learner should solve the exploration-exploitation dilemma! A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

14 The General Multi-arm Bandit Problem The Multi armed Bandit Game (cont d) Examples Packet routing Clinical trials Web advertising Computer games Resource mining... A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

15 The Stochastic Multi-arm Bandit Problem Outline Mathematical Tools The General Multi-arm Bandit Problem The Stochastic Multi-arm Bandit Problem The Non-Stochastic Multi-arm Bandit Problem Connections to Game Theory Other Stochastic Multi-arm Bandit Problems A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

16 The Stochastic Multi-arm Bandit Problem The Stochastic Multi armed Bandit Problem Definition The environment is stochastic Each arm has a distribution ν i bounded in [0, 1] and characterized by an expected value µ i The rewards are i.i.d. X i,t ν i A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

17 The Stochastic Multi-arm Bandit Problem The Stochastic Multi armed Bandit Problem (cont d) Notation Number of times arm i has been pulled after n rounds n T i,n = I{I t = i} Regret t=1 [ n ] [ n R n (A) = max E X i,t E i=1,...,n R n (A) = R n (A) = t=1 [ n max (nµ i) E i=1,...,n max (nµ i) i=1,...,n R n (A) = nµ i t=1 t=1 X It,t X It,t ] N E[T i,n ]µ i i=1 N E[T i,n ]µ i A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94 i=1 ]

18 The Stochastic Multi-arm Bandit Problem The Stochastic Multi armed Bandit Problem (cont d) R n (A) = i i E[T i,n ] i we only need to study the expected number of pulls of the suboptimal arms A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

19 The Stochastic Multi-arm Bandit Problem The Stochastic Multi armed Bandit Problem (cont d) Optimism in Face of Uncertainty Learning (OFUL) Whenever we are uncertain about the outcome of an arm, we consider the best possible world and choose the best arm. Why it works: If the best possible world is correct no regret If the best possible world is wrong the reduction in the uncertainty is maximized A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

20 The Stochastic Multi-arm Bandit Problem The Stochastic Multi armed Bandit Problem (cont d) Rewards Rewards pulls = 100 pulls = Rewards Rewards pulls = 50 pulls = 20 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

21 The Stochastic Multi-arm Bandit Problem The Stochastic Multi armed Bandit Problem (cont d) Optimism in face of uncertainty Rewards Rewards Rewards Rewards A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

22 The Stochastic Multi-arm Bandit Problem The Upper Confidence Bound (UCB) Algorithm The idea Reward (10) 2 (73) 3 (3) 4 (23) Arms A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

23 The Stochastic Multi-arm Bandit Problem The Upper Confidence Bound (UCB) Algorithm Show time! A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

24 The Stochastic Multi-arm Bandit Problem The Upper Confidence Bound (UCB) Algorithm (cont d) At each round t = 1,..., n Compute the score of each arm i B i = (optimistic score of arm i) Pull arm I t = arg max i=1,...,n B i,s,t Update the number of pulls T It,t = T It,t A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

25 The Stochastic Multi-arm Bandit Problem The Upper Confidence Bound (UCB) Algorithm (cont d) The score (with parameters ρ and δ) B i = (optimistic score of arm i) B i,s,t = (optimistic score of arm i if pulled s times up to round t) B i,s,t = knowledge }{{} + optimism uncertainty log 1/δ B i,s,t = ˆµ i,s + ρ 2s Optimism in face of uncertainty: Current knowledge: average rewards ˆµ i,s Current uncertainty: number of pulls s A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

26 The Stochastic Multi-arm Bandit Problem The Upper Confidence Bound (UCB) Algorithm (cont d) Do you remember Chernoff-Hoeffding? Theorem Let X 1,..., X n be i.i.d. samples from a distribution bounded in [a, b], then for any δ (0, 1) [ 1 n ] log 2/δ P X t E[X 1 ] > (b a) δ n 2n t=1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

27 The Stochastic Multi-arm Bandit Problem The Upper Confidence Bound (UCB) Algorithm (cont d) After s pulls, arm i [ P E[X i ] 1 ] s log 1/δ X i,t + 1 δ s 2s t=1 [ ] log 1/δ P µ i ˆµ i,s + 1 δ 2s UCB uses an upper confidence bound on the expectation A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

28 The Stochastic Multi-arm Bandit Problem The Upper Confidence Bound (UCB) Algorithm (cont d) Theorem For any set of N arms with distributions bounded in [0, b], if δ = 1/t, then UCB(ρ) with ρ > 1, achieves a regret R n (A) [ ( )] 4b 2 3 ρ log(n) + i i i i (ρ 1) A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

29 The Stochastic Multi-arm Bandit Problem The Upper Confidence Bound (UCB) Algorithm (cont d) Let N = 2 with i = 1 ( ) 1 R n (A) O ρ log(n) Remark 1: the cumulative regret slowly increases as log(n) Remark 2: the smaller the gap the bigger the regret... why? A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

30 The Stochastic Multi-arm Bandit Problem The Upper Confidence Bound (UCB) Algorithm (cont d) Show time (again)! A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

31 The Stochastic Multi-arm Bandit Problem The Worst case Performance Remark: the regret bound is distribution dependent ( ) 1 R n (A; ) O ρ log(n) Meaning: the algorithm is able to adapt to the specific problem at hand! Worst case performance: what is the distribution which leads to the worst possible performance of UCB? what is the distribution free performance of UCB? R n (A) = sup R n (A; ) A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

32 The Stochastic Multi-arm Bandit Problem The Worst case Performance Problem: it seems like if 0 then the regret tends to infinity nosense because the regret is defined as R n (A; ) = E[T 2,n ] then if i is small, the regret is also small... In fact { ( ) } 1 R n (A; ) = min O ρ log(n), E[T 2,n ] A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

33 The Stochastic Multi-arm Bandit Problem The Worst case Performance Then R n (A) = sup for = 1/n R n (A; ) = sup min { ( ) } 1 O ρ log(n), n n A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

34 The Stochastic Multi-arm Bandit Problem Tuning the confidence δ of UCB Remark: UCB is an anytime algorithm (δ = 1/t) log t B i,s,t = ˆµ i,s + ρ 2s Remark: If the time horizon n is known then the optimal choice is δ = 1/n log n B i,s,t = ˆµ i,s + ρ 2s A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

35 The Stochastic Multi-arm Bandit Problem Tuning the confidence δ of UCB (cont d) Intuition: UCB should pull the suboptimal arms Enough: so as to understand which arm is the best Not too much: so as to keep the regret as small as possible The confidence 1 δ has the following impact (similar for ρ) Big 1 δ: high level of exploration Small 1 δ: high level of exploitation Solution: depending on the time horizon, we can tune how to trade-off between exploration and exploitation A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

36 The Stochastic Multi-arm Bandit Problem Tuning the confidence δ of UCB (cont d) Let s dig into the (1 page and half!!) proof. Define the (high-probability) event [statistics] { } log 1/δ E = i, s ˆµ i,s µ i 2s By Chernoff-Hoeffding P[E] 1 nnδ. At time t we pull arm i [algorithm] B i,ti,t 1 B i,t i,t 1 log 1/δ log 1/δ ˆµ i,ti,t 1 + ˆµ i 2T,T i,t 1 + i,t 1 2T i,t 1 On the event E we have [math] log 1/δ µ i + 2 µ i 2T i,t 1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

37 The Stochastic Multi-arm Bandit Problem Tuning the confidence δ of UCB (cont d) Assume t is the last time i is pulled, then T i,n = T i,t 1 + 1, thus log 1/δ µ i + 2 2(T i,n 1) µ i Reordering [math] log 1/δ T i,n i under event E and thus with probability 1 nnδ. Moving to the expectation [statistics] E[T i,n ] = E[T i,n IE] + E[T i,n IE C ] log 1/δ E[T i,n ] n(nnδ) i Trading-off the two terms δ = 1/n 2, we obtain 2 log n ˆµ i,ti,t 1 + 2T i,t 1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

38 The Stochastic Multi-arm Bandit Problem Tuning the confidence δ of UCB (cont d) Trading-off the two terms δ = 1/n 2, we obtain 2 log n ˆµ i,ti,t 1 + 2T i,t 1 and E[T i,n ] log n 2 i N A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

39 The Stochastic Multi-arm Bandit Problem Tuning the confidence δ of UCB (cont d) Multi armed Bandit: the same for δ = 1/t and δ = 1/n almost (i.e., in expectation) A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

40 The Stochastic Multi-arm Bandit Problem Tuning the confidence δ of UCB (cont d) The value at risk of the regret for UCB-anytime A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

41 The Stochastic Multi-arm Bandit Problem Tuning the ρ of UCB (cont d) UCB values (for the δ = 1/n algorithm) log n B i,s = ˆµ i,s + ρ Theory ρ < 0.5, polynomial regret w.r.t. n 2s ρ > 0.5, logarithmic regret w.r.t. n Practice: ρ = 0.2 is often the best choice A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

42 The Stochastic Multi-arm Bandit Problem Improvements over UCB: UCB-V Idea: use Bernstein bounds with empirical variance Algorithm: B i,s,t = ˆµ i,s + log t 2s Bi,s,t V 2ˆσ i,s 2 = ˆµ i,s + log t s + 8 log t 3s ( 1 ) R n O log n ( σ 2 ) R n O log n A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

43 The Stochastic Multi-arm Bandit Problem Improvements over UCB: KL-UCB Idea: use Kullback Leibler bounds which are tighter than other bounds Algorithm: the algorithm is still index based but a bit more complicated ( 1 ) R n O log n ( 1 ) R n O KL(ν, ν i ) log n A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

44 The Stochastic Multi-arm Bandit Problem Improvements over UCB: Thompson strategy Idea: Keep a distribution over the possible values of µ i Algorithm: Bayesian approach. Compute the posterior distributions given the samples. A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

45 The Stochastic Multi-arm Bandit Problem Back to UCB: the Lower Bound Theorem For any stochastic bandit {ν i }, any algorithm A has a regret lim n R n log n i inf ν KL(ν i, ν) Problem: this is just asymptotic Open Question: what is the finite-time lower bound? A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

46 The Non-Stochastic Multi-arm Bandit Problem Outline Mathematical Tools The General Multi-arm Bandit Problem The Stochastic Multi-arm Bandit Problem The Non-Stochastic Multi-arm Bandit Problem Connections to Game Theory Other Stochastic Multi-arm Bandit Problems A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

47 The Non-Stochastic Multi-arm Bandit Problem The Non Stochastic Multi armed Bandit Problem Definition The environment is adversarial Arms have no fixed distribution The rewards X i,t are arbitrarily chosen by the environment A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

48 The Non-Stochastic Multi-arm Bandit Problem The Non Stochastic Multi armed Bandit Problem (cont d) The (non stochastic bandit) regret [ n ] [ n R n (A) = max E X i,t E i=1,...,n R n (A) = max i=1,...,n t=1 t=1 n [ n X i,t E t=1 t=1 X It,t X It,t ] ] A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

49 The Non-Stochastic Multi-arm Bandit Problem The Exponentially Weighted Average Forecaster Initialize the weights w i,0 = 1 Compute (W t 1 = N i=1 w i,t 1) Choose the arm at random ˆp i,t = w i,t 1 W t 1 Observe the rewards {X i,t } Receive a reward X It,t I t ˆp t Update w i,t = w i,t 1 exp ( ) + ηx it,t A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

50 The Non-Stochastic Multi-arm Bandit Problem The Non Stochastic Multi armed Bandit Problem (cont d) Problem: we only observe the reward of the specific arm chosen at time t!! (i.e., only X It,t is observed) A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

51 The Non-Stochastic Multi-arm Bandit Problem The Exponentially Weighted Average Forecaster Initialize the weights w i,0 = 1 Compute (W t 1 = N i=1 w i,t 1) Choose the arm at random ˆp i,t = w i,t 1 W t 1 I t ˆp t Observe the rewards {X i,t } Receive a reward X It,t Update w i,t = w i,t 1 exp ( ηx it,t) this update is not possible A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

52 The Non-Stochastic Multi-arm Bandit Problem The Non Stochastic Multi armed Bandit Problem (cont d) We use the importance weight trick Why it is a good idea: ˆX i,t = { Xi,t ˆp i,t if i = I t 0 otherwise E [ ˆX i,t ] = X i,t ˆp i,t ˆp i,t + 0(1 ˆp i,t ) = X i,t ˆX i,t is an unbiased estimator of X i,t A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

53 The Non-Stochastic Multi-arm Bandit Problem The Exp3 Algorithm Exp3: Exponential-weight algorithm for Exploration and Exploitation Initialize the weights w i,0 = 1 Compute (W t 1 = N i=1 w i,t 1) Choose the arm at random ˆp i,t = w i,t 1 W t 1 I t ˆp t Receive a reward X It,t Update w i,t = w i,t 1 exp ( ) η ˆX it,t A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

54 The Non-Stochastic Multi-arm Bandit Problem The Exp3 Algorithm Question: is this enough? is this algorithm actually exploring enough? Answer: more or less... Exp3 has a small regret in expectation Exp3 might have large deviations with high probability (ie, from time to time it may concentrate ˆp t on the wrong arm for too long and then incur a large regret) A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

55 The Non-Stochastic Multi-arm Bandit Problem The Exp3 Algorithm Fix: add some extra uniform exploration Initialize the weights w i,0 = 1 Compute (W t 1 = N i=1 w i,t 1) Choose the arm at random ˆp i,t = (1 γ) w i,t 1 W t 1 + γ K I t ˆp t Receive a reward X It,t Update w i,t = w i,t 1 exp ( ) η ˆX it,t A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

56 The Non-Stochastic Multi-arm Bandit Problem The Exp3 Algorithm Theorem If Exp3 is run with γ = η, then it achieves a regret R n (A) = max i=1,...,n n [ n X i,t E t=1 t=1 with G max = max i=1,...,n n t=1 X i,t. X It,t ] (e 1)γG max + N log N γ A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

57 The Non-Stochastic Multi-arm Bandit Problem The Exp3 Algorithm Theorem If Exp3 is run with N log N γ = η = (e 1)n then it achieves a regret R n (A) O( nn log N) A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

58 The Non-Stochastic Multi-arm Bandit Problem The Exp3 Algorithm Comparison with online learning R n (Exp3) O( nn log N) R n (EWA) O( n log N) Intuition: in online learning at each round we obtain N feedbacks, while in bandits we receive 1 feedback. A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

59 The Non-Stochastic Multi-arm Bandit Problem The Improved-Exp3 Algorithm Initialize the weights w i,0 = 1 Compute (W t 1 = N i=1 w i,t 1) Choose the arm at random ˆp i,t = (1 γ) w i,t 1 W t 1 + γ K I t ˆp t Receive a reward X It,t Compute Update X i,t = ˆX i,t + β ˆp i,t w i,t = w i,t 1 exp ( η X ) it,t A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

60 The Non-Stochastic Multi-arm Bandit Problem The Improved-Exp3 Algorithm Theorem If Improved-Exp3 is run with parameters in the ranges γ 1 2 ; then it achieves a regret 0 η γ 2N ; 1 nn log N δ β 1 Rn HP (A) n ( γ + η(1 + β)n ) + log N + 2nNβ η with probability at least 1 δ. A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

61 The Non-Stochastic Multi-arm Bandit Problem The Improved-Exp3 Algorithm Theorem If Improved-Exp3 is run with parameters in the ranges β = 1 nn log N δ ; γ = 4Nβ 3 + β ; η = γ 2N then it achieves a regret n (A) 11 log N nn log(n/δ) R HP with probability at least 1 δ. A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

62 Connections to Game Theory Outline Mathematical Tools The General Multi-arm Bandit Problem The Stochastic Multi-arm Bandit Problem The Non-Stochastic Multi-arm Bandit Problem Connections to Game Theory Other Stochastic Multi-arm Bandit Problems A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

63 Connections to Game Theory Repeated Two Player Zero Sum Games A two player zero sum game A B C 1 30, , 10 20, , , 20-20, 20 Nash equilibrium: A set of strategies is a Nash equilibrium if no player can do better by unilaterally changing his strategy. Red: take action 1 with prob. 4/7 and action 2 with prob. 3/7 Blue: take action A with prob. 0, action B with prob. 4/7, and action C with prob. 3/7 Value of the game: V = 20/7 (reward of Red at the equilibrium) A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

64 Connections to Game Theory Repeated Two Player Zero Sum Games At each round t Row player computes a mixed strategy ˆp t = (ˆp 1,t,..., ˆp N,t ) Column player computes a mixed strategy ˆq t = (ˆq 1,t,..., ˆq M,t ) Row player selects action I t {1,..., N} Column player selects action J t {1,..., M} Row player suffers l(i t, J t ) Column player suffers l(i t, J t ) Value of the game with V = max min l(p, q) q p l(p, q) = N i=1 j=1 M p i q j l(i, j) A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

65 Connections to Game Theory Repeated Two Player Zero Sum Games Question: what if the two players are both bandit algorithms (e.g., Exp3)? Row player: a bandit algorithm is able to minimize R n (row) = n l It,Jt t=1 n min l i,jt i=1,...,n t=1 Col player: a bandit algorithm is able to minimize R n (col) = n l It,Jt t=1 n min l It,j j=1,...,m t=1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

66 Connections to Game Theory Repeated Two Player Zero Sum Games Theorem If both the row and column players play according to an Hannan-consistent strategy, then 1 lim sup n n n l(i t, J t ) = V t=1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

67 Connections to Game Theory Repeated Two Player Zero Sum Games Theorem The empirical distribution of plays ˆp i,n = 1 n n I{I t = i} t=1 ˆq j,n = 1 n n I{J t = j} induces a product distribution ˆp n ˆq n which converges to the set of Nash equilibria p q. t=1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

68 Connections to Game Theory Repeated Two Player Zero Sum Games Proof idea. Since l(p, J t ) is linear, over the simplex, the minimum is at one of the corners [math] min i=1,...,n 1 N n t=1 1 l(i, J t ) = min p n n l(p, J t ) We consider the empirical probability of the row player [def] ˆq j,n = 1 n IJ t = j n t=1 t=1 Elaborating on it [math] 1 n min l(p, J t ) = min p n p t=1 M ˆq j,n l(p, j) j=1 = min p l(p, ˆqn ) max q min l(p, q) = V p A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

69 Connections to Game Theory Repeated Two Player Zero Sum Games Proof idea. By definition of Hannan s consistent strategy [def] Then 1 lim sup n n n 1 l(i t, J t ) = min i=1,...,n n t=1 1 lim sup n n n l(i t, J t ) V t=1 n l(i, J t ) t=1 If we do the same for the other player [zero sum game] 1 lim sup n n n l(i t, J t ) V t=1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

70 Connections to Game Theory Repeated Two Player Zero Sum Games Question: how fast do they converge to the Nash equilibrium? Answer: it depends on the specific algorithm. For EWA(η), we now that n l(i t, J t ) t=1 min n i=1,...,n t=1 l(i, J t ) log N η + nη n log 1 δ A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

71 Connections to Game Theory Repeated Two Player Zero Sum Games Generality of the results Players do not know the payoff matrix Players do not observe the loss of the other player Players do not even observe the action of the other player A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

72 Connections to Game Theory Internal Regret and Correlated Equilibria External (expected) regret R n = n l(ˆp t, y t ) t=1 = max i=1,...,n Internal (expected) regret n t=1 j=1 min i=1,...,n t=1 n l(i, y t ) N ( ˆp j,t l(j, yt ) l(i, y t ) ) R I n = max i,j=1,...,n n ( ˆp j,t l(i, yt ) l(j, y t ) ) t=1 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

73 Connections to Game Theory Internal Regret and Correlated Equilibria Internal (expected) regret R I n = max i,j=1,...,n n ( ˆp j,t l(i, yt ) l(j, y t ) ) t=1 Intuition: an algorithm has small internal regret if, for each pair of experts (i, j), the learner does not regret of not having followed expert j each time it followed expert i. A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

74 Connections to Game Theory Internal Regret and Correlated Equilibria Theorem Given a K person game with a set of correlated equilibria C. If all the players are internal regret minimizers, then the distance between the empirical distribution of plays and the set of correlated equilibria C converges to 0. A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

75 Connections to Game Theory Nash Equilibria in Extensive Form Games A powerful model for sequential games Checkers / Chess / Go Poker Bargaining Monitoring Patrolling... A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

76 Connections to Game Theory Nash Equilibria in Extensive Form Games A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

77 Connections to Game Theory Nash Equilibria in Extensive Form Games A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

78 Connections to Game Theory Nash Equilibria in Extensive Form Games No details about the algorithm... but... Theorem If player k selects actions according to the counterfactual regret minimization algorithm, then it achieves a regret # actions R k,t # states T Theorem In a two player zero sum extensive form game, counterfactual regret minimization algorithms achieves an 2ɛ-Nash equilibrium, with # actions ɛ # states T A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

79 Other Stochastic Multi-arm Bandit Problems Outline Mathematical Tools The General Multi-arm Bandit Problem The Stochastic Multi-arm Bandit Problem The Non-Stochastic Multi-arm Bandit Problem Connections to Game Theory Other Stochastic Multi-arm Bandit Problems A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

80 Other Stochastic Multi-arm Bandit Problems The Best Arm Identification Problem Motivating Examples Find the best shortest path in a limited number of days Maximize the confidence about the best treatment after a finite number of patients Discover the best advertisements after a training phase... A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

81 Other Stochastic Multi-arm Bandit Problems The Best Arm Identification Problem Objective: given a fixed budget n, return the best arm i = arg max i µ i at the end of the experiment Measure of performance: the probability of error P[J n i ] P[J n i ] N exp ( T i,n 2 ) i Algorithm idea: mimic the behavior of the optimal strategy T i,n = i=1 1 2 i N n j=1 1 2 j A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

82 Other Stochastic Multi-arm Bandit Problems The Best Arm Identification Problem The Successive Reject Algorithm Divide the budget in N 1 phases. Define (log(n) = N i=2 1/i) n k = 1 n N logk N + 1 k Set of active arms A k at phase k (A 1 = {1,..., N}) For each phase k = 1,..., N 1 For each arm i Ak, pull arm i for n k n k 1 rounds Remove the worst arm A k+1 = A k \ arg min i A k ˆµ i,nk Return the only remaining arm J n = A N A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

83 Other Stochastic Multi-arm Bandit Problems The Best Arm Identification Problem The Successive Reject Algorithm Theorem The successive reject algorithm have a probability of doing a mistake of P[J n i ] with H 2 = max i=1,...,n i 2 (i). K(K 1) 2 ( exp n N ) lognh 2 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

84 Other Stochastic Multi-arm Bandit Problems The Best Arm Identification Problem The UCB-E Algorithm Define an exploration parameter a Compute B i,s = ˆµ i,s + a s Select I t = arg max B i,s At the end return J n = arg max i ˆµ i,ti,n A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

85 Other Stochastic Multi-arm Bandit Problems The Best Arm Identification Problem The UCB-E Algorithm Theorem The UCB-E algorithm with a = mistake of with H 1 = N i=1 1/ 2 i. n N H 1 ( P[J n i ] 2nN exp has a probability of doing a 2a ) 25 A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

86 Other Stochastic Multi-arm Bandit Problems The Best Arm Identification Problem A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

87 Other Stochastic Multi-arm Bandit Problems The Active Bandit Problem Motivating Examples N production lines The test of the performance of a line is expensive We want an accurate estimation of the performance of each production line A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

88 Other Stochastic Multi-arm Bandit Problems The Active Bandit Problem Objective: given a fixed budget n, return the an estimate of the means ˆµ i,t which is as accurate as possible for all the arms Notice: Given an arm has a mean µ i and a variance σi 2, if it is pulled T i,n times, then L i,n = E [ (ˆµ i,ti,n µ i ) 2] = σ2 i T i,n L n = max L i,n i A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

89 Other Stochastic Multi-arm Bandit Problems The Active Bandit Problem Problem: what are the number of pulls (T 1,n,..., T N,n ) (such that T i,n = n) which minimizes the loss? Answer (T1,n,..., TN,n ) = arg min L n (T 1,n,...,T N,n ) T i,n = σi 2 N n j=1 σ2 j L n = N i=1 σ2 i n = Σ n A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

90 Other Stochastic Multi-arm Bandit Problems The Active Bandit Problem Objective: given a fixed budget n, return the an estimate of the means ˆµ i,t which is as accurate as possible for all the arms Measure of performance: the regret on the quadratic error N i=1 R n (A) = max L n (A) σ2 i i n Algorithm idea: mimic the behavior of the optimal strategy T i,n = σi 2 N n = λ i n j=1 σ2 j A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

91 Other Stochastic Multi-arm Bandit Problems The Active Bandit Problem An UCB based strategy At each time step t = 1,..., n Estimate ˆσ i,t 2 i,t 1 = 1 T i,t 1 Xs,i 2 ˆµ 2 i,t T i,t 1 i,t 1 s=1 Compute B i,t = 1 ( ˆσ 2 log 1/δ ) i,t T i,t i,t 1 2T i,t 1 Pull arm I t = arg max B i,t A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

92 Other Stochastic Multi-arm Bandit Problems The Active Bandit Problem Theorem The UCB based algorithm achieves a regret ( ) 98 log(n) log n R n (A) n 3/2 λ 5/2 + O n 2 min A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

93 Other Stochastic Multi-arm Bandit Problems Bibliography I A. LAZARIC Reinforcement Learning Algorithms Oct 29th, /94

94 Other Stochastic Multi-arm Bandit Problems Reinforcement Learning Alessandro Lazaric sequel.lille.inria.fr

Introduction to Bandit Algorithms. Introduction to Bandit Algorithms

Introduction to Bandit Algorithms. Introduction to Bandit Algorithms Stochastic K-Arm Bandit Problem Formulation Consider K arms (actions) each correspond to an unknown distribution {ν k } K k=1 with values bounded in [0, 1]. At each time t, the agent pulls an arm I t {1,...,

More information

Bandit models: a tutorial

Bandit models: a tutorial Gdt COS, December 3rd, 2015 Multi-Armed Bandit model: general setting K arms: for a {1,..., K}, (X a,t ) t N is a stochastic process. (unknown distributions) Bandit game: a each round t, an agent chooses

More information

Advanced Machine Learning

Advanced Machine Learning Advanced Machine Learning Bandit Problems MEHRYAR MOHRI MOHRI@ COURANT INSTITUTE & GOOGLE RESEARCH. Multi-Armed Bandit Problem Problem: which arm of a K-slot machine should a gambler pull to maximize his

More information

Multi-armed bandit models: a tutorial

Multi-armed bandit models: a tutorial Multi-armed bandit models: a tutorial CERMICS seminar, March 30th, 2016 Multi-Armed Bandit model: general setting K arms: for a {1,..., K}, (X a,t ) t N is a stochastic process. (unknown distributions)

More information

Two optimization problems in a stochastic bandit model

Two optimization problems in a stochastic bandit model Two optimization problems in a stochastic bandit model Emilie Kaufmann joint work with Olivier Cappé, Aurélien Garivier and Shivaram Kalyanakrishnan Journées MAS 204, Toulouse Outline From stochastic optimization

More information

The Multi-Armed Bandit Problem

The Multi-Armed Bandit Problem The Multi-Armed Bandit Problem Electrical and Computer Engineering December 7, 2013 Outline 1 2 Mathematical 3 Algorithm Upper Confidence Bound Algorithm A/B Testing Exploration vs. Exploitation Scientist

More information

Stochastic bandits: Explore-First and UCB

Stochastic bandits: Explore-First and UCB CSE599s, Spring 2014, Online Learning Lecture 15-2/19/2014 Stochastic bandits: Explore-First and UCB Lecturer: Brendan McMahan or Ofer Dekel Scribe: Javad Hosseini In this lecture, we like to answer this

More information

On the Complexity of Best Arm Identification with Fixed Confidence

On the Complexity of Best Arm Identification with Fixed Confidence On the Complexity of Best Arm Identification with Fixed Confidence Discrete Optimization with Noise Aurélien Garivier, Emilie Kaufmann COLT, June 23 th 2016, New York Institut de Mathématiques de Toulouse

More information

Lecture 19: UCB Algorithm and Adversarial Bandit Problem. Announcements Review on stochastic multi-armed bandit problem

Lecture 19: UCB Algorithm and Adversarial Bandit Problem. Announcements Review on stochastic multi-armed bandit problem Lecture 9: UCB Algorithm and Adversarial Bandit Problem EECS598: Prediction and Learning: It s Only a Game Fall 03 Lecture 9: UCB Algorithm and Adversarial Bandit Problem Prof. Jacob Abernethy Scribe:

More information

Online Learning and Sequential Decision Making

Online Learning and Sequential Decision Making Online Learning and Sequential Decision Making Emilie Kaufmann CNRS & CRIStAL, Inria SequeL, emilie.kaufmann@univ-lille.fr Research School, ENS Lyon, Novembre 12-13th 2018 Emilie Kaufmann Sequential Decision

More information

Bandit Algorithms. Tor Lattimore & Csaba Szepesvári

Bandit Algorithms. Tor Lattimore & Csaba Szepesvári Bandit Algorithms Tor Lattimore & Csaba Szepesvári Bandits Time 1 2 3 4 5 6 7 8 9 10 11 12 Left arm $1 $0 $1 $1 $0 Right arm $1 $0 Five rounds to go. Which arm would you play next? Overview What are bandits,

More information

COS 402 Machine Learning and Artificial Intelligence Fall Lecture 22. Exploration & Exploitation in Reinforcement Learning: MAB, UCB, Exp3

COS 402 Machine Learning and Artificial Intelligence Fall Lecture 22. Exploration & Exploitation in Reinforcement Learning: MAB, UCB, Exp3 COS 402 Machine Learning and Artificial Intelligence Fall 2016 Lecture 22 Exploration & Exploitation in Reinforcement Learning: MAB, UCB, Exp3 How to balance exploration and exploitation in reinforcement

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Lecture 5: Bandit optimisation Alexandre Proutiere, Sadegh Talebi, Jungseul Ok KTH, The Royal Institute of Technology Objectives of this lecture Introduce bandit optimisation: the

More information

The information complexity of sequential resource allocation

The information complexity of sequential resource allocation The information complexity of sequential resource allocation Emilie Kaufmann, joint work with Olivier Cappé, Aurélien Garivier and Shivaram Kalyanakrishan SMILE Seminar, ENS, June 8th, 205 Sequential allocation

More information

Stratégies bayésiennes et fréquentistes dans un modèle de bandit

Stratégies bayésiennes et fréquentistes dans un modèle de bandit Stratégies bayésiennes et fréquentistes dans un modèle de bandit thèse effectuée à Telecom ParisTech, co-dirigée par Olivier Cappé, Aurélien Garivier et Rémi Munos Journées MAS, Grenoble, 30 août 2016

More information

Prediction and Playing Games

Prediction and Playing Games Prediction and Playing Games Vineel Pratap vineel@eng.ucsd.edu February 20, 204 Chapter 7 : Prediction, Learning and Games - Cesa Binachi & Lugosi K-Person Normal Form Games Each player k (k =,..., K)

More information

Pure Exploration in Finitely Armed and Continuous Armed Bandits

Pure Exploration in Finitely Armed and Continuous Armed Bandits Pure Exploration in Finitely Armed and Continuous Armed Bandits Sébastien Bubeck INRIA Lille Nord Europe, SequeL project, 40 avenue Halley, 59650 Villeneuve d Ascq, France Rémi Munos INRIA Lille Nord Europe,

More information

Bandits : optimality in exponential families

Bandits : optimality in exponential families Bandits : optimality in exponential families Odalric-Ambrym Maillard IHES, January 2016 Odalric-Ambrym Maillard Bandits 1 / 40 Introduction 1 Stochastic multi-armed bandits 2 Boundary crossing probabilities

More information

The information complexity of best-arm identification

The information complexity of best-arm identification The information complexity of best-arm identification Emilie Kaufmann, joint work with Olivier Cappé and Aurélien Garivier MAB workshop, Lancaster, January th, 206 Context: the multi-armed bandit model

More information

On the Complexity of Best Arm Identification in Multi-Armed Bandit Models

On the Complexity of Best Arm Identification in Multi-Armed Bandit Models On the Complexity of Best Arm Identification in Multi-Armed Bandit Models Aurélien Garivier Institut de Mathématiques de Toulouse Information Theory, Learning and Big Data Simons Institute, Berkeley, March

More information

Alireza Shafaei. Machine Learning Reading Group The University of British Columbia Summer 2017

Alireza Shafaei. Machine Learning Reading Group The University of British Columbia Summer 2017 s s Machine Learning Reading Group The University of British Columbia Summer 2017 (OCO) Convex 1/29 Outline (OCO) Convex Stochastic Bernoulli s (OCO) Convex 2/29 At each iteration t, the player chooses

More information

Bandit View on Continuous Stochastic Optimization

Bandit View on Continuous Stochastic Optimization Bandit View on Continuous Stochastic Optimization Sébastien Bubeck 1 joint work with Rémi Munos 1 & Gilles Stoltz 2 & Csaba Szepesvari 3 1 INRIA Lille, SequeL team 2 CNRS/ENS/HEC 3 University of Alberta

More information

Applications of on-line prediction. in telecommunication problems

Applications of on-line prediction. in telecommunication problems Applications of on-line prediction in telecommunication problems Gábor Lugosi Pompeu Fabra University, Barcelona based on joint work with András György and Tamás Linder 1 Outline On-line prediction; Some

More information

Bayesian and Frequentist Methods in Bandit Models

Bayesian and Frequentist Methods in Bandit Models Bayesian and Frequentist Methods in Bandit Models Emilie Kaufmann, Telecom ParisTech Bayes In Paris, ENSAE, October 24th, 2013 Emilie Kaufmann (Telecom ParisTech) Bayesian and Frequentist Bandits BIP,

More information

Bandit Algorithms. Zhifeng Wang ... Department of Statistics Florida State University

Bandit Algorithms. Zhifeng Wang ... Department of Statistics Florida State University Bandit Algorithms Zhifeng Wang Department of Statistics Florida State University Outline Multi-Armed Bandits (MAB) Exploration-First Epsilon-Greedy Softmax UCB Thompson Sampling Adversarial Bandits Exp3

More information

Revisiting the Exploration-Exploitation Tradeoff in Bandit Models

Revisiting the Exploration-Exploitation Tradeoff in Bandit Models Revisiting the Exploration-Exploitation Tradeoff in Bandit Models joint work with Aurélien Garivier (IMT, Toulouse) and Tor Lattimore (University of Alberta) Workshop on Optimization and Decision-Making

More information

On Bayesian bandit algorithms

On Bayesian bandit algorithms On Bayesian bandit algorithms Emilie Kaufmann joint work with Olivier Cappé, Aurélien Garivier, Nathaniel Korda and Rémi Munos July 1st, 2012 Emilie Kaufmann (Telecom ParisTech) On Bayesian bandit algorithms

More information

Stat 260/CS Learning in Sequential Decision Problems. Peter Bartlett

Stat 260/CS Learning in Sequential Decision Problems. Peter Bartlett Stat 260/CS 294-102. Learning in Sequential Decision Problems. Peter Bartlett 1. Thompson sampling Bernoulli strategy Regret bounds Extensions the flexibility of Bayesian strategies 1 Bayesian bandit strategies

More information

Full-information Online Learning

Full-information Online Learning Introduction Expert Advice OCO LM A DA NANJING UNIVERSITY Full-information Lijun Zhang Nanjing University, China June 2, 2017 Outline Introduction Expert Advice OCO 1 Introduction Definitions Regret 2

More information

Best Arm Identification in Multi-Armed Bandits

Best Arm Identification in Multi-Armed Bandits Best Arm Identification in Multi-Armed Bandits Jean-Yves Audibert Imagine, Université Paris Est & Willow, CNRS/ENS/INRIA, Paris, France audibert@certisenpcfr Sébastien Bubeck, Rémi Munos SequeL Project,

More information

Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems, Part I. Sébastien Bubeck Theory Group

Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems, Part I. Sébastien Bubeck Theory Group Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems, Part I Sébastien Bubeck Theory Group i.i.d. multi-armed bandit, Robbins [1952] i.i.d. multi-armed bandit, Robbins [1952] Known

More information

Upper-Confidence-Bound Algorithms for Active Learning in Multi-Armed Bandits

Upper-Confidence-Bound Algorithms for Active Learning in Multi-Armed Bandits Upper-Confidence-Bound Algorithms for Active Learning in Multi-Armed Bandits Alexandra Carpentier 1, Alessandro Lazaric 1, Mohammad Ghavamzadeh 1, Rémi Munos 1, and Peter Auer 2 1 INRIA Lille - Nord Europe,

More information

Approximate Dynamic Programming

Approximate Dynamic Programming Approximate Dynamic Programming A. LAZARIC (SequeL Team @INRIA-Lille) Ecole Centrale - Option DAD SequeL INRIA Lille EC-RL Course Value Iteration: the Idea 1. Let V 0 be any vector in R N A. LAZARIC Reinforcement

More information

Stat 260/CS Learning in Sequential Decision Problems. Peter Bartlett

Stat 260/CS Learning in Sequential Decision Problems. Peter Bartlett Stat 260/CS 294-102. Learning in Sequential Decision Problems. Peter Bartlett 1. Multi-armed bandit algorithms. Concentration inequalities. P(X ǫ) exp( ψ (ǫ))). Cumulant generating function bounds. Hoeffding

More information

Online Learning with Experts & Multiplicative Weights Algorithms

Online Learning with Experts & Multiplicative Weights Algorithms Online Learning with Experts & Multiplicative Weights Algorithms CS 159 lecture #2 Stephan Zheng April 1, 2016 Caltech Table of contents 1. Online Learning with Experts With a perfect expert Without perfect

More information

Approximate Dynamic Programming

Approximate Dynamic Programming Approximate Dynamic Programming A. LAZARIC (SequeL Team @INRIA-Lille) ENS Cachan - Master 2 MVA SequeL INRIA Lille MVA-RL Course Approximate Dynamic Programming (a.k.a. Batch Reinforcement Learning) A.

More information

Multiple Identifications in Multi-Armed Bandits

Multiple Identifications in Multi-Armed Bandits Multiple Identifications in Multi-Armed Bandits arxiv:05.38v [cs.lg] 4 May 0 Sébastien Bubeck Department of Operations Research and Financial Engineering, Princeton University sbubeck@princeton.edu Tengyao

More information

Multi-Armed Bandits. Credit: David Silver. Google DeepMind. Presenter: Tianlu Wang

Multi-Armed Bandits. Credit: David Silver. Google DeepMind. Presenter: Tianlu Wang Multi-Armed Bandits Credit: David Silver Google DeepMind Presenter: Tianlu Wang Credit: David Silver (DeepMind) Multi-Armed Bandits Presenter: Tianlu Wang 1 / 27 Outline 1 Introduction Exploration vs.

More information

Bandits and Exploration: How do we (optimally) gather information? Sham M. Kakade

Bandits and Exploration: How do we (optimally) gather information? Sham M. Kakade Bandits and Exploration: How do we (optimally) gather information? Sham M. Kakade Machine Learning for Big Data CSE547/STAT548 University of Washington S. M. Kakade (UW) Optimization for Big data 1 / 22

More information

Multi-Armed Bandit Formulations for Identification and Control

Multi-Armed Bandit Formulations for Identification and Control Multi-Armed Bandit Formulations for Identification and Control Cristian R. Rojas Joint work with Matías I. Müller and Alexandre Proutiere KTH Royal Institute of Technology, Sweden ERNSI, September 24-27,

More information

EASINESS IN BANDITS. Gergely Neu. Pompeu Fabra University

EASINESS IN BANDITS. Gergely Neu. Pompeu Fabra University EASINESS IN BANDITS Gergely Neu Pompeu Fabra University EASINESS IN BANDITS Gergely Neu Pompeu Fabra University THE BANDIT PROBLEM Play for T rounds attempting to maximize rewards THE BANDIT PROBLEM Play

More information

Stat 260/CS Learning in Sequential Decision Problems. Peter Bartlett

Stat 260/CS Learning in Sequential Decision Problems. Peter Bartlett Stat 260/CS 294-102. Learning in Sequential Decision Problems. Peter Bartlett 1. Adversarial bandits Definition: sequential game. Lower bounds on regret from the stochastic case. Exp3: exponential weights

More information

Two generic principles in modern bandits: the optimistic principle and Thompson sampling

Two generic principles in modern bandits: the optimistic principle and Thompson sampling Two generic principles in modern bandits: the optimistic principle and Thompson sampling Rémi Munos INRIA Lille, France CSML Lunch Seminars, September 12, 2014 Outline Two principles: The optimistic principle

More information

Csaba Szepesvári 1. University of Alberta. Machine Learning Summer School, Ile de Re, France, 2008

Csaba Szepesvári 1. University of Alberta. Machine Learning Summer School, Ile de Re, France, 2008 LEARNING THEORY OF OPTIMAL DECISION MAKING PART I: ON-LINE LEARNING IN STOCHASTIC ENVIRONMENTS Csaba Szepesvári 1 1 Department of Computing Science University of Alberta Machine Learning Summer School,

More information

Learning, Games, and Networks

Learning, Games, and Networks Learning, Games, and Networks Abhishek Sinha Laboratory for Information and Decision Systems MIT ML Talk Series @CNRG December 12, 2016 1 / 44 Outline 1 Prediction With Experts Advice 2 Application to

More information

Introduction to Reinforcement Learning Part 3: Exploration for decision making, Application to games, optimization, and planning

Introduction to Reinforcement Learning Part 3: Exploration for decision making, Application to games, optimization, and planning Introduction to Reinforcement Learning Part 3: Exploration for decision making, Application to games, optimization, and planning Rémi Munos SequeL project: Sequential Learning http://researchers.lille.inria.fr/

More information

Online Learning: Bandit Setting

Online Learning: Bandit Setting Online Learning: Bandit Setting Daniel asabi Summer 04 Last Update: October 0, 06 Introduction [TODO Bandits. Stocastic setting Suppose tere exists unknown distributions ν,..., ν, suc tat te loss at eac

More information

CS261: A Second Course in Algorithms Lecture #11: Online Learning and the Multiplicative Weights Algorithm

CS261: A Second Course in Algorithms Lecture #11: Online Learning and the Multiplicative Weights Algorithm CS61: A Second Course in Algorithms Lecture #11: Online Learning and the Multiplicative Weights Algorithm Tim Roughgarden February 9, 016 1 Online Algorithms This lecture begins the third module of the

More information

Lecture 5: Regret Bounds for Thompson Sampling

Lecture 5: Regret Bounds for Thompson Sampling CMSC 858G: Bandits, Experts and Games 09/2/6 Lecture 5: Regret Bounds for Thompson Sampling Instructor: Alex Slivkins Scribed by: Yancy Liao Regret Bounds for Thompson Sampling For each round t, we defined

More information

An Estimation Based Allocation Rule with Super-linear Regret and Finite Lock-on Time for Time-dependent Multi-armed Bandit Processes

An Estimation Based Allocation Rule with Super-linear Regret and Finite Lock-on Time for Time-dependent Multi-armed Bandit Processes An Estimation Based Allocation Rule with Super-linear Regret and Finite Lock-on Time for Time-dependent Multi-armed Bandit Processes Prokopis C. Prokopiou, Peter E. Caines, and Aditya Mahajan McGill University

More information

Administration. CSCI567 Machine Learning (Fall 2018) Outline. Outline. HW5 is available, due on 11/18. Practice final will also be available soon.

Administration. CSCI567 Machine Learning (Fall 2018) Outline. Outline. HW5 is available, due on 11/18. Practice final will also be available soon. Administration CSCI567 Machine Learning Fall 2018 Prof. Haipeng Luo U of Southern California Nov 7, 2018 HW5 is available, due on 11/18. Practice final will also be available soon. Remaining weeks: 11/14,

More information

On the Complexity of Best Arm Identification with Fixed Confidence

On the Complexity of Best Arm Identification with Fixed Confidence On the Complexity of Best Arm Identification with Fixed Confidence Discrete Optimization with Noise Aurélien Garivier, joint work with Emilie Kaufmann CNRS, CRIStAL) to be presented at COLT 16, New York

More information

Active Learning and Optimized Information Gathering

Active Learning and Optimized Information Gathering Active Learning and Optimized Information Gathering Lecture 7 Learning Theory CS 101.2 Andreas Krause Announcements Project proposal: Due tomorrow 1/27 Homework 1: Due Thursday 1/29 Any time is ok. Office

More information

Yevgeny Seldin. University of Copenhagen

Yevgeny Seldin. University of Copenhagen Yevgeny Seldin University of Copenhagen Classical (Batch) Machine Learning Collect Data Data Assumption The samples are independent identically distributed (i.i.d.) Machine Learning Prediction rule New

More information

Exploration and exploitation of scratch games

Exploration and exploitation of scratch games Mach Learn (2013) 92:377 401 DOI 10.1007/s10994-013-5359-2 Exploration and exploitation of scratch games Raphaël Féraud Tanguy Urvoy Received: 10 January 2013 / Accepted: 12 April 2013 / Published online:

More information

Hybrid Machine Learning Algorithms

Hybrid Machine Learning Algorithms Hybrid Machine Learning Algorithms Umar Syed Princeton University Includes joint work with: Rob Schapire (Princeton) Nina Mishra, Alex Slivkins (Microsoft) Common Approaches to Machine Learning!! Supervised

More information

arxiv: v1 [cs.gt] 1 Sep 2015

arxiv: v1 [cs.gt] 1 Sep 2015 HC selection for MCTS in Simultaneous Move Games Analysis of Hannan Consistent Selection for Monte Carlo Tree Search in Simultaneous Move Games arxiv:1509.00149v1 [cs.gt] 1 Sep 2015 Vojtěch Kovařík vojta.kovarik@gmail.com

More information

Lecture 16: Perceptron and Exponential Weights Algorithm

Lecture 16: Perceptron and Exponential Weights Algorithm EECS 598-005: Theoretical Foundations of Machine Learning Fall 2015 Lecture 16: Perceptron and Exponential Weights Algorithm Lecturer: Jacob Abernethy Scribes: Yue Wang, Editors: Weiqing Yu and Andrew

More information

Basics of reinforcement learning

Basics of reinforcement learning Basics of reinforcement learning Lucian Buşoniu TMLSS, 20 July 2018 Main idea of reinforcement learning (RL) Learn a sequential decision policy to optimize the cumulative performance of an unknown system

More information

Upper-Confidence-Bound Algorithms for Active Learning in Multi-armed Bandits

Upper-Confidence-Bound Algorithms for Active Learning in Multi-armed Bandits Upper-Confidence-Bound Algorithms for Active Learning in Multi-armed Bandits Alexandra Carpentier 1, Alessandro Lazaric 1, Mohammad Ghavamzadeh 1, Rémi Munos 1, and Peter Auer 2 1 INRIA Lille - Nord Europe,

More information

Stochastic Contextual Bandits with Known. Reward Functions

Stochastic Contextual Bandits with Known. Reward Functions Stochastic Contextual Bandits with nown 1 Reward Functions Pranav Sakulkar and Bhaskar rishnamachari Ming Hsieh Department of Electrical Engineering Viterbi School of Engineering University of Southern

More information

Lecture 4 January 23

Lecture 4 January 23 STAT 263/363: Experimental Design Winter 2016/17 Lecture 4 January 23 Lecturer: Art B. Owen Scribe: Zachary del Rosario 4.1 Bandits Bandits are a form of online (adaptive) experiments; i.e. samples are

More information

Introduction to Reinforcement Learning Part 3: Exploration for sequential decision making

Introduction to Reinforcement Learning Part 3: Exploration for sequential decision making Introduction to Reinforcement Learning Part 3: Exploration for sequential decision making Rémi Munos SequeL project: Sequential Learning http://researchers.lille.inria.fr/ munos/ INRIA Lille - Nord Europe

More information

ONLINE ADVERTISEMENTS AND MULTI-ARMED BANDITS CHONG JIANG DISSERTATION

ONLINE ADVERTISEMENTS AND MULTI-ARMED BANDITS CHONG JIANG DISSERTATION c 2015 Chong Jiang ONLINE ADVERTISEMENTS AND MULTI-ARMED BANDITS BY CHONG JIANG DISSERTATION Submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Electrical and

More information

Tsinghua Machine Learning Guest Lecture, June 9,

Tsinghua Machine Learning Guest Lecture, June 9, Tsinghua Machine Learning Guest Lecture, June 9, 2015 1 Lecture Outline Introduction: motivations and definitions for online learning Multi-armed bandit: canonical example of online learning Combinatorial

More information

Introduction to Reinforcement Learning and multi-armed bandits

Introduction to Reinforcement Learning and multi-armed bandits Introduction to Reinforcement Learning and multi-armed bandits Rémi Munos INRIA Lille - Nord Europe Currently on leave at MSR-NE http://researchers.lille.inria.fr/ munos/ NETADIS Summer School 2013, Hillerod,

More information

THE first formalization of the multi-armed bandit problem

THE first formalization of the multi-armed bandit problem EDIC RESEARCH PROPOSAL 1 Multi-armed Bandits in a Network Farnood Salehi I&C, EPFL Abstract The multi-armed bandit problem is a sequential decision problem in which we have several options (arms). We can

More information

Subsampling, Concentration and Multi-armed bandits

Subsampling, Concentration and Multi-armed bandits Subsampling, Concentration and Multi-armed bandits Odalric-Ambrym Maillard, R. Bardenet, S. Mannor, A. Baransi, N. Galichet, J. Pineau, A. Durand Toulouse, November 09, 2015 O-A. Maillard Subsampling and

More information

Online learning CMPUT 654. October 20, 2011

Online learning CMPUT 654. October 20, 2011 Online learning CMPUT 654 Gábor Bartók Dávid Pál Csaba Szepesvári István Szita October 20, 2011 Contents 1 Shooting Game 4 1.1 Exercises...................................... 6 2 Weighted Majority Algorithm

More information

Stat 260/CS Learning in Sequential Decision Problems.

Stat 260/CS Learning in Sequential Decision Problems. Stat 260/CS 294-102. Learning in Sequential Decision Problems. Peter Bartlett 1. Multi-armed bandit algorithms. Exponential families. Cumulant generating function. KL-divergence. KL-UCB for an exponential

More information

Online Learning Class 12, 20 March 2006 Andrea Caponnetto, Sanmay Das

Online Learning Class 12, 20 March 2006 Andrea Caponnetto, Sanmay Das Online Learning 9.520 Class 12, 20 March 2006 Andrea Caponnetto, Sanmay Das About this class Goal To introduce the general setting of online learning. To describe an online version of the RLS algorithm

More information

Minimax strategy for Stratified Sampling for Monte Carlo

Minimax strategy for Stratified Sampling for Monte Carlo Journal of Machine Learning Research 1 2000 1-48 Submitted 4/00; Published 10/00 Minimax strategy for Stratified Sampling for Monte Carlo Alexandra Carpentier INRIA Lille - Nord Europe 40, avenue Halley

More information

1 MDP Value Iteration Algorithm

1 MDP Value Iteration Algorithm CS 0. - Active Learning Problem Set Handed out: 4 Jan 009 Due: 9 Jan 009 MDP Value Iteration Algorithm. Implement the value iteration algorithm given in the lecture. That is, solve Bellman s equation using

More information

The multi armed-bandit problem

The multi armed-bandit problem The multi armed-bandit problem (with covariates if we have time) Vianney Perchet & Philippe Rigollet LPMA Université Paris Diderot ORFE Princeton University Algorithms and Dynamics for Games and Optimization

More information

Thompson Sampling for the non-stationary Corrupt Multi-Armed Bandit

Thompson Sampling for the non-stationary Corrupt Multi-Armed Bandit European Worshop on Reinforcement Learning 14 (2018 October 2018, Lille, France. Thompson Sampling for the non-stationary Corrupt Multi-Armed Bandit Réda Alami Orange Labs 2 Avenue Pierre Marzin 22300,

More information

Sparse Linear Contextual Bandits via Relevance Vector Machines

Sparse Linear Contextual Bandits via Relevance Vector Machines Sparse Linear Contextual Bandits via Relevance Vector Machines Davis Gilton and Rebecca Willett Electrical and Computer Engineering University of Wisconsin-Madison Madison, WI 53706 Email: gilton@wisc.edu,

More information

THE WEIGHTED MAJORITY ALGORITHM

THE WEIGHTED MAJORITY ALGORITHM THE WEIGHTED MAJORITY ALGORITHM Csaba Szepesvári University of Alberta CMPUT 654 E-mail: szepesva@ualberta.ca UofA, October 3, 2006 OUTLINE 1 PREDICTION WITH EXPERT ADVICE 2 HALVING: FIND THE PERFECT EXPERT!

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Markov decision process & Dynamic programming Evaluative feedback, value function, Bellman equation, optimality, Markov property, Markov decision process, dynamic programming, value

More information

Markov Decision Processes and Dynamic Programming

Markov Decision Processes and Dynamic Programming Markov Decision Processes and Dynamic Programming A. LAZARIC (SequeL Team @INRIA-Lille) Ecole Centrale - Option DAD SequeL INRIA Lille EC-RL Course In This Lecture A. LAZARIC Markov Decision Processes

More information

Online Learning Schemes for Power Allocation in Energy Harvesting Communications

Online Learning Schemes for Power Allocation in Energy Harvesting Communications Online Learning Schemes for Power Allocation in Energy Harvesting Communications Pranav Sakulkar and Bhaskar Krishnamachari Ming Hsieh Department of Electrical Engineering Viterbi School of Engineering

More information

Gambling in a rigged casino: The adversarial multi-armed bandit problem

Gambling in a rigged casino: The adversarial multi-armed bandit problem Gambling in a rigged casino: The adversarial multi-armed bandit problem Peter Auer Institute for Theoretical Computer Science University of Technology Graz A-8010 Graz (Austria) pauer@igi.tu-graz.ac.at

More information

Monte-Carlo Tree Search by. MCTS by Best Arm Identification

Monte-Carlo Tree Search by. MCTS by Best Arm Identification Monte-Carlo Tree Search by Best Arm Identification and Wouter M. Koolen Inria Lille SequeL team CWI Machine Learning Group Inria-CWI workshop Amsterdam, September 20th, 2017 Part of...... a new Associate

More information

Analysis of Classification-based Policy Iteration Algorithms

Analysis of Classification-based Policy Iteration Algorithms Journal of Machine Learning Research 17 (2016) 1-30 Submitted 12/10; Revised 9/14; Published 4/16 Analysis of Classification-based Policy Iteration Algorithms Alessandro Lazaric 1 Mohammad Ghavamzadeh

More information

U Logo Use Guidelines

U Logo Use Guidelines Information Theory Lecture 3: Applications to Machine Learning U Logo Use Guidelines Mark Reid logo is a contemporary n of our heritage. presents our name, d and our motto: arn the nature of things. authenticity

More information

Improved Algorithms for Linear Stochastic Bandits

Improved Algorithms for Linear Stochastic Bandits Improved Algorithms for Linear Stochastic Bandits Yasin Abbasi-Yadkori abbasiya@ualberta.ca Dept. of Computing Science University of Alberta Dávid Pál dpal@google.com Dept. of Computing Science University

More information

Grundlagen der Künstlichen Intelligenz

Grundlagen der Künstlichen Intelligenz Grundlagen der Künstlichen Intelligenz Uncertainty & Probabilities & Bandits Daniel Hennes 16.11.2017 (WS 2017/18) University Stuttgart - IPVS - Machine Learning & Robotics 1 Today Uncertainty Probability

More information

Online Learning with Gaussian Payoffs and Side Observations

Online Learning with Gaussian Payoffs and Side Observations Online Learning with Gaussian Payoffs and Side Observations Yifan Wu 1 András György 2 Csaba Szepesvári 1 1 Department of Computing Science University of Alberta 2 Department of Electrical and Electronic

More information

Online Learning under Full and Bandit Information

Online Learning under Full and Bandit Information Online Learning under Full and Bandit Information Artem Sokolov Computerlinguistik Universität Heidelberg 1 Motivation 2 Adversarial Online Learning Hedge EXP3 3 Stochastic Bandits ε-greedy UCB Real world

More information

Complexity of stochastic branch and bound methods for belief tree search in Bayesian reinforcement learning

Complexity of stochastic branch and bound methods for belief tree search in Bayesian reinforcement learning Complexity of stochastic branch and bound methods for belief tree search in Bayesian reinforcement learning Christos Dimitrakakis Informatics Institute, University of Amsterdam, Amsterdam, The Netherlands

More information

Theory and Applications of A Repeated Game Playing Algorithm. Rob Schapire Princeton University [currently visiting Yahoo!

Theory and Applications of A Repeated Game Playing Algorithm. Rob Schapire Princeton University [currently visiting Yahoo! Theory and Applications of A Repeated Game Playing Algorithm Rob Schapire Princeton University [currently visiting Yahoo! Research] Learning Is (Often) Just a Game some learning problems: learn from training

More information

From Bandits to Experts: A Tale of Domination and Independence

From Bandits to Experts: A Tale of Domination and Independence From Bandits to Experts: A Tale of Domination and Independence Nicolò Cesa-Bianchi Università degli Studi di Milano N. Cesa-Bianchi (UNIMI) Domination and Independence 1 / 1 From Bandits to Experts: A

More information

Exponential Moving Average Based Multiagent Reinforcement Learning Algorithms

Exponential Moving Average Based Multiagent Reinforcement Learning Algorithms Exponential Moving Average Based Multiagent Reinforcement Learning Algorithms Mostafa D. Awheda Department of Systems and Computer Engineering Carleton University Ottawa, Canada KS 5B6 Email: mawheda@sce.carleton.ca

More information

Lecture 2: Learning from Evaluative Feedback. or Bandit Problems

Lecture 2: Learning from Evaluative Feedback. or Bandit Problems Lecture 2: Learning from Evaluative Feedback or Bandit Problems 1 Edward L. Thorndike (1874-1949) Puzzle Box 2 Learning by Trial-and-Error Law of Effect: Of several responses to the same situation, those

More information

Ordinal optimization - Empirical large deviations rate estimators, and multi-armed bandit methods

Ordinal optimization - Empirical large deviations rate estimators, and multi-armed bandit methods Ordinal optimization - Empirical large deviations rate estimators, and multi-armed bandit methods Sandeep Juneja Tata Institute of Fundamental Research Mumbai, India joint work with Peter Glynn Applied

More information

Lecture 4: Lower Bounds (ending); Thompson Sampling

Lecture 4: Lower Bounds (ending); Thompson Sampling CMSC 858G: Bandits, Experts and Games 09/12/16 Lecture 4: Lower Bounds (ending); Thompson Sampling Instructor: Alex Slivkins Scribed by: Guowei Sun,Cheng Jie 1 Lower bounds on regret (ending) Recap from

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning Model-Based Reinforcement Learning Model-based, PAC-MDP, sample complexity, exploration/exploitation, RMAX, E3, Bayes-optimal, Bayesian RL, model learning Vien Ngo MLR, University

More information

Adaptive Learning with Unknown Information Flows

Adaptive Learning with Unknown Information Flows Adaptive Learning with Unknown Information Flows Yonatan Gur Stanford University Ahmadreza Momeni Stanford University June 8, 018 Abstract An agent facing sequential decisions that are characterized by

More information

Dynamic resource allocation: Bandit problems and extensions

Dynamic resource allocation: Bandit problems and extensions Dynamic resource allocation: Bandit problems and extensions Aurélien Garivier Institut de Mathématiques de Toulouse MAD Seminar, Université Toulouse 1 October 3rd, 2014 The Bandit Model Roadmap 1 The Bandit

More information

Online Learning with Feedback Graphs

Online Learning with Feedback Graphs Online Learning with Feedback Graphs Claudio Gentile INRIA and Google NY clagentile@gmailcom NYC March 6th, 2018 1 Content of this lecture Regret analysis of sequential prediction problems lying between

More information

Efficient learning by implicit exploration in bandit problems with side observations

Efficient learning by implicit exploration in bandit problems with side observations Efficient learning by implicit exploration in bandit problems with side observations Tomáš Kocák, Gergely Neu, Michal Valko, Rémi Munos SequeL team, INRIA Lille - Nord Europe, France SequeL INRIA Lille

More information