Explore-then-commit algorithm

From HandWiki
Short description: Algorithm for the multi-armed bandit problem

Explore Then Commit (ETC) is an algorithm for the multi-armed bandit problem foc,used on finding the best trade-off between exploration and exploitation.

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 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, they then get 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 (finding the arm with the highest mean) and exploitation (playing the arm which is perceived to be the best as much as possible).[1]

Algorithm

File:ETCdoublerun.gif
Two runs of ETC with the same M = 10. On the first run it does manage to find the best arm after the exploration while it does not on the second run

The algorithm explores each arm M times. For the rest of the game the algorithm exploits its discoveries by playing the arm with the highest mean. If the horizon T is known, then the number of explorations M can depend on T.

Adaptations of the algorithm exist[2] and can be found in the literature for other settings.[3]

Pseudocode

The player chooses M
 for each arm i do:
    select arm i M times
    update empirical mean mu[i]
for t from MK+1 to T do:
    select arm a with highest empirical mean mu[a]

Theoretical results

File:ETCregret.png
Trade of between exploration (large M) and exploitation (small M) for ETC

When all arms are 1-sub gaussian, by choosing to explore each arm M times, the regret at time T verify

RTMi=1KΔi+(TMK)i=1KΔiexp(MΔi24)[1]

the first term is considered the cost of the exploration

Mi=1KΔi.

The second term is the cost of not having explored enough, leading to a probability of not having an optimal arm as the arm with the highest empirical mean.

(TMK)i=1KΔiexp(MΔi24)

Increasing M increases the first term while decreasing the second term. The best possible M must depend on the (Δi)i which is unknown by the player.

For two arms with Gaussian distribution of variance 1, it was proved that ETC cannot achieve the asymptotic optimal regret of the Equation of Lai-Robbins.[4]

See also

References

  1. 1.0 1.1 Lattimore, Tor; Szepesvári, Csaba (2020). Bandit Algorithms. Cambridge University Press. doi:10.1017/9781108571401. 
  2. Jin, Tianyuan; Xu, Pan; Xiao, Xiaokui; Gu, Quanquan (2021). "Double Explore-then-Commit: Asymptotic Optimality and Beyond". Proceedings of Machine Learning Research. pp. 2584–2633. 
  3. Nie, Guanyu; Agarwal, Mridul; Umrawal, Abhishek Kumar; Aggarwal, Vaneet; Quinn, Christopher John (2022). "An Explore-then-Commit Algorithm for Submodular Maximization under Full-Bandit Feedback". Proceedings of Machine Learning Research. pp. 1541–1551. 
  4. Garivier, Aurélien; Kaufmann, Emilie; Lattimore, Tor (2016). "On Explore-Then-Commit Strategies".