ArticleslgStudy

computer science

Algorithm IMED

Algorithm IMED is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Algorithm IMED rather than just read about it. In short: 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].

Algorithm IMED — main illustration
Algorithm IMED — illustration

Key takeaways

  • Algorithm IMED belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Algorithm IMED to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Algorithm IMED from memory before moving on to harder problems.

Reference excerpt

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,μ∗))ln⁡T−ΩT→+∞(ln⁡ln⁡T). This bound is asymptotic (as T→+∞) and gives a first-order lower bound of order ln⁡T with the optimal constant in front of it and the second order in −Ω(ln⁡ln⁡T).

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,μ∗))ln⁡T+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,μ∗))ln⁡T−Cln⁡ln⁡T

Computation time The algorithm only requiere to compute the Kinf for suboptimal arms who are pulled O(ln⁡T) 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

Illustrations

Algorithm IMED: A run of IMED with 3 Beta arms. The arm 1 is the optimal arm
A run of IMED with 3 Beta arms. The arm 1 is the optimal arm

Worked examples

Example 1 — a first encounter with Algorithm IMED

Start with the simplest possible case. Write down what Algorithm IMED claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Algorithm IMED before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Algorithm IMED ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Algorithm IMED

In research
Algorithm IMED appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Algorithm IMED in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Algorithm IMED is common in secondary-school and first-year university syllabi. It links to neighbouring topics Algorithms, Decision theory, Optimization algorithms and methods, so understanding it makes those chapters shorter.
In everyday life
Look for Algorithm IMED outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Algorithm IMED” →

How to study Algorithm IMED in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Algorithm IMED means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Algorithm IMED out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Algorithm IMED in simple terms?

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].

Why does Algorithm IMED matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Algorithm IMED?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Algorithm IMED.

Tags

  • Algorithms
  • Decision theory
  • Optimization algorithms and methods
  • Sequential methods
  • Stochastic optimization

Keep exploring