In multi-armed bandit problems, IMED (for Indexed Minimum Empirical Divergence) is an algorithm developed in 2015 by Junya Honda and Akimichi Takemura. It is the first algorithm proved to be asymptotically optimal respect to the problem-dependant Lai–Robbins lower bound for distributions in (−∞,1].
Multi-armed bandit problem The Multi-armed bandit problem is a sequential game where one player has to choose at each turn between K actions (arms). Behind every arm a there is an unknown distribution νa that lies in a set 𝒟 known by the player (for example, 𝒟 can be the set of Gaussian distributions or Bernoulli distributions). At each turn t the player chooses (pulls) an arm at, he then gets an observation Xt of the distribution νat.
Regret minimization The goal is to minimize the regret at time T that is defined as
RT:=∑a=1KΔa𝔼[Na(T)] where
μa:=𝔼[νa] is the mean of arm a μ∗:=maxaμa is the highest mean Δa:=μ∗−μa Na(t) is the number of pulls of arm a up to turn t The player has to find an algorithm that chooses at each turn t which arm to pull based on the previous actions and observations (as,Xs)s<t to minimize the regret RT. This is a trade-off problem between exploration to find the best arm (the arm with the highest mean) and exploitation to play as much as possible the arm that we think is the best arm.
Applications Multi-armed bandit algorithms are used in a variety of fields; for example, they have applications in clinical trials, recommender systems, telecommunications, and agriculture.
Algorithm IMED The algorithm compute an index at each turn for each arm. Then it pull the arm with the smallest index. The index is the sum of two terms. The first is the cost of to transport the empirical distribution to a distribution such that the arm is optimal. The second is the cost of behind pulled to much. Formally, the index Ia(t) of an arm a at turn t is defined as follow:
Ia(t):=Na(t)Kinf(ν̂a(t),μ̂∗(t))+ln(Na(t)) where
𝒦inf(ν,μ,𝒟):=inf{KL(ν,ν~) | ν~∈𝒫([−∞,1]), 𝔼[ν~]>μ} KL is the Kullback–Leibler divergence 𝒫([−∞,1]) is the set of distribution in [−∞,1] ν̂a(t) is the empirical distribution of arm a at turn t μ̂∗(t) is the highest empirical mean of turn t Remark : For arms a that verify μ̂a(t)=μ̂∗(t) we have Kinf(ν̂a(t),μ̂∗(t))=0. Then there index is equal to ln(Na(t))
Pseudocode for each arm i do: n[i] ← 1; nu[i] ← None; mu[i] ← None for t from 1 to K do: select arm t observe reward r n[t] ← n[t] + 1 nu[t] ← update empirical distribution mu[t] ← update empirical mean for t from K+1 to T do: mu* ← highest mu for each arm i do: scoreK[i] ← n[i] K_inf(nu[i],mu*) scoreN[i] ← ln(n[i]) index[i] ← scoreK[i] + scoreN[i] select arm a with smallest index[a] observe reward r n[a] ← n[a] + 1 nu[a] ← update empirical distribution mu[a] ← update empirical mean
Theoretical results In the multi-armed bandit problem we have the asymptotic Lai–Robbins lower bound asymptotic lower bound on regret. The algorithm IMED is the first algorithm that matches this lower bound for distribution in (−∞,1] in the first order. If the distribution are also bounded then it also match the second order. It is the first algorithm that match the second under of this lower bound.
Lai–Robbins lower bound In 1985 Lai and Robbins proved an asymptotic, problem-dependent lower bound on regret. In 2018, Aurelien Garivier, Pierre Menard and Gilles Stoltz proved a refined lower bound that gives the second order It states that for every consistent algorithm on the set 𝒫([−∞,1]) — that is, an algorithm for which, for every (ν1,…,νK)∈𝒫([−∞,1])K, the regret RT is subpolynomial (i.e. RT=oT→+∞(Tα) for all α>0) — we have:
RT≥(∑a:μa<μ∗Δa𝒦inf(νa,μ∗))lnT−ΩT→+∞(lnlnT). This bound is asymptotic (as T→+∞) and gives a first-order lower bound of order lnT with the optimal constant in front of it and the second order in −Ω(lnlnT).
Regret bound for IMED If the distribution of every arm a is (−∞,1] ( i.e. νa∈𝒫([−∞,1])) then the regret of the algorithm IMED verify
RT≤(∑a:μa<μ∗Δa𝒦inf(νa,μ∗))lnT+O(1) If all the distribution νa are bounded then it exists a constant C>0 such that for T large enough the regret of IMED is upper bounded by
RT≤(∑a:μa<μ∗Δa𝒦inf(νa,μ∗))lnT−ClnlnT
Computation time The algorithm only requiere to compute the Kinf for suboptimal arms who are pulled O(lnT) times, which make it a lot faster than KL-UCB. A faster version of IMED was developed in 2023 to make it even faster, using a Taylor development of the Kinf in the first order.
See also Multi-armed bandit Kullback–Leibler Upper Confidence Bound Confidence interval
References

