Regret Minimisation in Multi-Armed Bandits Using Bounded Arm Memory
Arghya Roy Chaudhuri, Shivaram Kalyanakrishnan

TL;DR
This paper introduces a simple, efficient regret minimization algorithm for multi-armed bandits that operates with a constant amount of memory, suitable for both finite and infinite arm settings, and demonstrates its effectiveness through theoretical bounds and experiments.
Contribution
The paper presents a novel constant-memory algorithm for regret minimization in multi-armed bandits, applicable to finite and infinite cases, improving over prior methods that require extensive memory or restrictive assumptions.
Findings
Achieves a regret bound of O(KM + K^{1.5}√(T log(T/MK))/M) for finite bandits.
Extends to sub-linear quantile-regret.
Empirically demonstrates efficiency through experiments.
Abstract
In this paper, we propose a constant word (RAM model) algorithm for regret minimisation for both finite and infinite Stochastic Multi-Armed Bandit (MAB) instances. Most of the existing regret minimisation algorithms need to remember the statistics of all the arms they encounter. This may become a problem for the cases where the number of available words of memory is limited. Designing an efficient regret minimisation algorithm that uses a constant number of words has long been interesting to the community. Some early attempts consider the number of arms to be infinite, and require the reward distribution of the arms to belong to some particular family. Recently, for finitely many-armed bandits an explore-then-commit based algorithm~\citep{Liau+PSY:2018} seems to escape such assumption. However, due to the underlying PAC-based elimination their method incurs a high regret. We present a…
| Algorithms | M |
|
|
|
|
||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
1 | 3.58 0.4 | 1.11 0.2 | 1.64 0.2 | 0.79 0.1 | ||||||||
|
2 | 6.180.5 | 1.110.4 | 4.180.3 | 2.030.3 | ||||||||
|
2 | 6.320.4 | 0.690.3 | 4.380.2 | 2.150.3 | ||||||||
|
1 | 5.35 0.5 | 0.03 0.004 | 4.56 0.001 | 2.55 0.001 | ||||||||
| QUCB-M | 1.840.17 | 0.410.02 | 1.290.10 | 0.490.02 | |||||||||
| 1.980.16 | 0.590.02 | 1.490.09 | 0.630.01 | ||||||||||
| QUCB-M () | 2.000.20 | 0.320.05 | 1.410.10 | 0.690.04 | |||||||||
| 1.710.16 | 0.160.02 | 1.160.09 | 0.300.02 | ||||||||||
| QTS-M | 1.770.17 | 0.320.04 | 1.230.09 | 0.400.02 | |||||||||
| 1.910.16 | 0.180.03 | 1.140.10 | 0.300.02 | ||||||||||
| QMoss-M | 1.740.17 | 0.310.02 | 1.200.10 | 0.390.02 | |||||||||
| 1.690.15 | 0.250.02 | 1.130.09 | 0.300.010 |
| Algorithms | M |
|
|
|
|
||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
1 | 3.58 0.4 | 1.11 0.2 | 1.64 0.2 | 0.79 0.1 | ||||||||
|
2 | 6.180.5 | 1.110.4 | 4.180.3 | 2.030.3 | ||||||||
|
2 | 6.320.4 | 0.690.3 | 4.380.2 | 2.150.3 | ||||||||
|
1 | 5.35 0.5 | 0.03 0.004 | 4.56 0.001 | 2.55 0.001 | ||||||||
| QUCB-M | 3.690.34 | 0.740.11 | 2.270.21 | 0.510.07 | |||||||||
| 4.260.37 | 0.910.19 | 2.650.22 | 0.630.11 | ||||||||||
| QUCB-M | 3.670.35 | 0.720.12 | 2.210.21 | 0.550.08 | |||||||||
| 4.150.36 | 0.790.19 | 2.510.22 | 0.540.11 | ||||||||||
| QTS-M | 3.140.39 | 0.620.07 | 1.970.19 | 0.440.07 | |||||||||
| 3.880.35 | 0.670.13 | 2.490.23 | 0.450.06 | ||||||||||
| QMoss-M | 3.640.34 | 0.700.11 | 2.210.21 | 0.460.07 | |||||||||
| 4.160.36 | 0.800.19 | 2.530.22 | 0.520.11 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Regret Minimisation in Multi-Armed Bandits Using Bounded Arm Memory
Arghya Roy Chaudhuri
Shivaram Kalyanakrishnan
Abstract
In this paper, we propose a constant word (RAM model) algorithm for regret minimisation for both finite and infinite Stochastic Multi-Armed Bandit (MAB) instances. Most of the existing regret minimisation algorithms need to remember the statistics of all the arms they encounter. This may become a problem for the cases where the number of available words of memory is limited.
Designing an efficient regret minimisation algorithm that uses a constant number of words has long been interesting to the community. Some early attempts consider the number of arms to be infinite, and require the reward distribution of the arms to belong to some particular family. Recently, for finitely many-armed bandits an explore-then-commit based algorithm (Liau et al., 2018) seems to escape such assumption. However, due to the underlying PAC-based elimination their method incurs a high regret. We present a conceptually simple, and efficient algorithm that needs to remember statistics of at most arms, and for any -armed finite bandit instance it enjoys a upper-bound on regret. We extend it to achieve sub-linear quantile-regret (Roy Chaudhuri & Kalyanakrishnan, 2018) and empirically verify the efficiency of our algorithm via experiments.
1 Introduction
In this paper, we investigate the problem of regret minimisation in Multi-Armed Bandit (MAB) (Berry & Fristedt, 1985) using a bounded number of words. Each arm in a bandit instance represents a slot-machine with a fixed (but unknown) real-valued reward distribution associated with it. At each time step, the experimenter is supposed to select and pull an arm, and observe the reward. The goal of the experimenter is to maximise the expected total reward for a finite time horizon, thereby minimising the expected regret measured with respect to the mean of the optimal arm.
A range of real-world applications like drug testing (Armitage, 1960; Colton, 1963), crowd-sourcing (Tran-Thanh et al., 2014) etc. can be modelled using multi-armed bandits, where the number of arms is high. In such cases, due to budgetary constraints or some other practical considerations, it might viable to experiment only with a small number of arms instead of the whole pool. The problem is of particular interest because the experimenter gets to store statistics of a small but fixed number of arms. Therefore, it adds another layer of an exploration-exploitation dilemma for the task of regret minimisation. This particular set-up has been drawing attention since long ago (Cover, 1968); however, only a few investigations have been made in this direction.
In this paper, we present a regret minimisation algorithm that uses a bounded number of words, for both finite and infinite-armed bandits. Unlike the existing algorithms, our algorithm does not need any special assumption of reward distribution of arms but bypass the explicit PAC-based exploration for the sake of efficiency. Below, we formalise our problem followed by our specific contributions.
Background and Problem Setup.
A bandit-instance consists of a set of arms , and a set of sub-Gaussian cumulative distribution functions (CDF) . Each arm , when pulled, generates a i.i.d. reward from the corresponding CDF , defined over . The expected reward of arm is given by . We also assume that the experimenter has no information regarding . The only way for her to gather knowledge about is via generated rewards by sampling the arms. We define a set called history as , where, is the reward produced at -th step by pulling the arm .
Cumulative Regret Minimisation.
Assuming , and the given horizon of pulls as , the conventional cumulative regret incurred by a algorithm is defined as
[TABLE]
wherein is the arm pulled by the algorithm at time . The expectation is taken over random rewards and the possible randomisation introduced by the algorithm.
We briefly restate the definition of “quantile regret” introduced by (Roy Chaudhuri & Kalyanakrishnan, 2018) based on their previous contribution in a pure exploration setting (Roy Chaudhuri & Kalyanakrishnan, 2017). A problem instance consists of a bandit instance , and a sampling distribution for choosing arm from . Letting , the -th quantile of is defined as
[TABLE]
Then, for a given horizon of pulls as , quantile regret with respect to is defined as
[TABLE]
wherein, and bear the same interpretation.
RAM Model.
It should be noted that given any bandit instance , as we are not considering any special structure in or , putting a restriction on an algorithm to use a bounded number of words of space, either restricts the horizon of pulls, or restricts the algorithm to store statistics of only bounded number of arms simultaneously. In this paper, we consider the latter and assume to be that number. We adopt the word RAM model (Aho et al., 1974; Cormen et al., 2009), that considers a word as the unit of space. This model facilitates to consider that each of the input values and variables can be stored in word space. For finite bandit instances (), we consider a word to be consisted of bits. Therefore, our algorithm needs space-complexity of bits. For the infinite bandit instances (), for , if the experimenter needs to analyse the performance with respect to (the -th quantile), she must allow the algorithm to use bits.
We call this set of arm indices whose statistics are stored as arm memory and its cardinality as arm memory size. Hence, an algorithm with arm memory size can store the statistics of at most arms. Also, it should be noted that an algorithm is allowed to pull an arm only if it is stored in the memory. Hence, before pulling a new arm (which is not currently in the arm memory), the algorithm should replace an arm in its arm memory with this new arm. It is interesting to note that the algorithms that work with , can only keep the stat of the arm it is currently pulling. Therefore, switching to a new arm costs such an algorithm to lose all the experience gained by sampling the previous arm. However, for a finite bandit instance, as the algorithms are allowed to remember all the arm indices, such an algorithm can store the gained experience by storing a bounded number of arm indices for possible further special treatment. The scenario is widely different for infinite bandit instances, where an algorithm can pull a new arm only if it is chosen by the given sampling distribution . In such a scenario, once an algorithm discards an arm from the arm memory, it can encounter that arm only if it is sampled again in future by . Hence, the algorithm can not recall a discarded arm. In the existing literature (Herschkorn et al., 1996; Berry et al., 1997) on infinite bandit instances, such algorithms are termed as non-recalling algorithms. However, for (but bounded above), an algorithm enjoys the freedom of ensuring a previously encountered good arm to keep in the memory, irrespective of whether or not the bandit instance is finite or not. Our findings show that this is more beneficial than the non-recalling algorithms for infinite bandit instances.
Problem Definition.
Given a positive integer , below, we define the problem of conventional regret minimisation (CR-M) and extend the definition to quantile regret minimisation (QR-M).
- CR-M.
An algorithm is said to solve CR-M, if takes , and as the input and for a sufficiently large budget (not necessarily known beforehand) it will achieve ; using an arm memory size at most . It is assumed that for a finite bandit instance with , the algorithm is allowed to store bits of information.
- QR-M.
Suppose we are given a problem instance , and a positive integer . Let, . An algorithm is said to solve QR-M, if takes , , and as the input, and for every , given a sufficiently large budget it will achieve ; using an arm memory size at most . It is assumed that the algorithm is allowed to store bits of information.
In this paper we present algorithms solve CR-M on finite bandit instances, and QR-M, with . Following we brief our contribution in this paper.
Contributions.
We present algorithms for minimisation of conventional regret and quantile regret, using a bounded number of words of space. Following is the list of our specific contributions.
In Section 4.1 we present an algorithm UCB-M, which solves CR-M, and achieves over an unknown but finite horizon of pulls. The existing upper bound on regret is due to (Liau et al., 2018) and it involves problem specific quantities. Hence ours is the first problem independent finite time regret upper bound. Also, in Section 4.2 we empirically compare UCB-M and its variations with the existing algorithms those solve CR-M. 2. 2.
In Section 5.1 we present a meta-algorithm QUCB-M, that uses UCB-M as a subroutine to the algorithm QRM2 (Roy Chaudhuri & Kalyanakrishnan, 2018) to solve QR-M, and achieves . In Section 5.2 we experimentally demonstrate that QUCB-M (in terms of conventional regret ) is more efficient than the algorithms by (Herschkorn et al., 1996) and (Berry et al., 1997), on problem instances with Bernoulli arms.
We briefly review the existing literature, before we present the key intuitions in Section 3.
2 Related Work
Started by Robbins (1952) the predominant body of literature in stochastic multi-armed bandit is dedicated to the regret minimisation task on finite and infinite bandit instances. Later, a number of salient algorithms like UCB1 (Auer et al., 2002), Thompson Sampling (Chapelle & Li, 2011; Agrawal & Goyal, 2012), Moss (Audibert & Bubeck, 2009) has been shown to achieve the order optimal cumulative regret on the finite instances. When the number of arms is infinite, algorithms make special assumption is made on the reward function (Agrawal, 1995; Kleinberg, 2005) or on the sampling distribution (Wang et al., 2008) to guarantee a sub-linear regret. Despite a thorough study on the finite and the infinite instances, the number of investigations in the memory frugal algorithms is limited.
Finite memory hypothesis testing has been drawing the attention of researchers since long (Robbins, 1956; Isbell, 1959; Cover et al., 1976). However, in MAB setting Cover (1968) first presented a finite memory algorithm for two-armed Bernoulli instance, that achieves an average reward which converges to the optimal proportion in the limit, with probability 1. His approach consisted of a collection of interleaved test and trial blocks, where each test block is divided into several sub-blocks and the switching among these sub-blocks is governed by a finite state machine. However, he considered only two-armed Bernoulli instances, and the approach guarantees only an asymptotic convergence of the empirical average reward. Hence, this setup is not very interesting, as our objective is to present a finite-time analysis of regret for general bandit instances.
Herschkorn et al. (1996) presented the first non-recalling algorithm for infinite bandit instances with Bernoulli arms, that maximises the almost sure average reward over an infinite horizon. Berry et al. (1997) improved over them for the problem instances where the sampling distribution is uniform over the set expected rewards of the Bernoulli arms. Towards relaxing the assumption of Bernoulli reward distribution Peköz (2003) showed that a peculiarity that may arise if the reward distributions of the arms are not stochastically-ordered. Specifically, for some function , he proposed two policies—PolicyA and PolicyB parameterised by , where the latter is a non-stationary version of the former. Then he showed that for some choice of , there exist instances with a bounded positive reward on which in the limit, exactly for one of PolicyA and PolicyB, the average reward will converge to the supremum mean reward, while for the other, it will converge to the infimum mean reward. Most recently, Liau et al. (2018) have presented an explore-then-commit strategy based algorithm UCBConstantSpace that incurs sublinear finite-time regret on any finite bandit instance. However, their algorithm explicitly uses PAC-based arm elimination strategy that leads to a high regret. On the other hand, like the previous algorithms, their algorithm does not have the provision to take the advantage availability of larger arm memory. Next, we describe the key intuitions behind our approach.
3 Key Intuitions
One of our objectives is to solve CR-M for finite bandit instances (). The problem is interesting for ; otherwise, one can solve the problem by using any existing regret minimisation algorithm like UCB1 (Auer et al., 2002) etc. Intuitively, any algorithm that solves CR-M for finite bandit instances, must ensure that the probability of pulling the optimal arm is increased by progressively increasing at least one of the two probabilities—first, the probability of the optimal arm is in arm memory; second, if is in arm memory, the probability that it will be pulled more often than the other arms in arm memory. For any algorithm that achieves sub-linear regret we can write, for any horizon , . Now, imposing the arm memory constraint, and letting be the current arm memory at -th pull, we notice, . Therefore,
[TABLE]
Hence, the necessary and the sufficient condition for an algorithm that asymptotically solves CR-M is
[TABLE]
for , where .
Given a bandit instance, algorithm of Liau et al. (2018) first solves a pure exploration problem for a horizon (a function of the mean reward of the arms) to maximise the quantity in the R.H.S. of Equation (4). Once the number of pulls crosses , it chooses the arm with the highest empirical reward in as the contentious best arm, and assigns the rest of the horizon to that arm. Therefore, for , it switches to pure-exploitation mode, thus maximising the quantity . On the contrary, we adopt balanced exploration with an aim to simultaneously increase and . Therefore, our algorithm does not depend on such . It should be noted that, for the sake of sufficient exploration, an algorithm should not stick to the same arm memory for too long, however, while selecting new arms (not in the current arm memory), it must judiciously choose the in memory arms to replace. This trade-off relies on the notion of simple regret which we introduce next.
Simple Regret.
Whereas the cumulative regret minimisation problem is based on the trade-off between exploration and exploitation, there is a separate line of literature in pure exploration setting. One of the popular problems in pure exploration setting is to minimise “simple regret”. If is the arm recommended by the algorithm after the -th pull, then the simple regret of the algorithm at is defined as,
[TABLE]
Relation of Cumulative Regret Minimisation with the Minimisation of Simple Regret.
Bubeck et al. (2009) gave a general definition of a forecaster, depicted in Figure 1. Given a set of arms as as input, at each step , possibly depending on , it selects an arm by using a strategy called “allocation strategy”. On pulling the arm it receives a reward , and executes a “recommendation strategy” that takes as the input and outputs an arm . The forecaster continues to alternately execute allocation strategy and recommendation strategy until some stopping condition is met.
A careful look reveals that a forecaster that at each step, , recommends the arm, which is selected by allocation strategy in the same step (that is in Figure 1), then the cumulative regret (Equation 3) of that forecaster is identical to the sum of simple regret (Equation 5) over time steps . This tempts one to intuit that using an allocation strategy which incurs low cumulative regret will help in designing a forecaster that achieves a small simple regret and vice-versa. However, Bubeck et al. (2009) present a negative result on this trade-off. Further they (Bubeck et al., 2009) present a upper bound on for a number of forecasters (Bubeck et al., 2009, Table 1) one of which is defined below:
- UCB-MPA.
A forecaster, which at each step uses UCB1 (Auer et al., 2002) as the allocation strategy, and uses the recommendation strategy that outputs the most played arm (MPA), shall be called as UCB-MPA.
We quote their result (Bubeck et al., 2009, Theorem 3) in Theorem 3.1 which serves as the cornerstone of analysis of the algorithm UCB-M.
Theorem 3.1** (Distribution-free upper bound on Simple-Regret of UCB-MPA by Bubeck et al. (2009)).**
Given a -sized set of arms as input, if UCB-MPA runs for a horizon of pulls such that , then for some constant , it achieves the expected simple regret .
Although UCB1 was originally designed as a cumulative regret minimisation algorithm, empirically it performs reasonably well as an exploration strategy to give us a good balance between exploration and exploitation. We choose UCB-MPA over other forecasters as it is easy to comprehend and leads a simpler derivation. For the rest of the paper we shall use and to denote base 2 and natural logarithm respectively. Also, for any positive integer we shall denote the set by .
4 Algorithm for Finite Bandit Instances
We present the algorithm UCB-M and establish a problem-independent upper-bound on the cumulative regret. Then we empirically compare UCB-M and its variations with the algorithm by Liau et al. (2018). Algorithm 1 is based on UCB-MPA. However, one can the replace the underlying call to UCB1 with any other allocation strategy like Thompson sampling (Agrawal & Goyal, 2012), or Moss Audibert & Bubeck (2009), as we do in our experiments.
4.1 Algorithm and Regret-Analysis.
Algorithm 1 describes UCB-M that solves the problem CR-M for finite bandit instances. We improve upon the contribution of Liau et al. (2018) in three aspects—first, UCB-M is empirically much more efficient even if we allow (as opposed to for theirs) as it does not explicitly use pure exploration based elimination; second, it scales with the arm memory size; third, we present a distribution-free upper bound on the incurred regret of UCB-M for solving CR-M on finite bandit instances.
Given a finite set of arms (), and arm memory size () UCB-M approaches in phases. It breaks each phase into sub-phases. Inside any phase , at each sub-phase , it runs UCB-MPA on an -sized subset of arms (called arm memory), and assigns the recommended arm to , and forwards it to the next sub-phase. On the subsequent sub-phase (that might belong to the next phase), it chooses new arms from , along with the arm forwarded from the previous sub-phase, and repeat the previous steps. It is to be noted that the horizon spent on each sub-phase of a phase is the same and is given by . Also, for , the total horizon spent in phase is given by . To satisfy the assumption in Theorem-3 of Bubeck et al. (2009), at the first phase, for each of the sub-phases, UCB-M chooses a horizon of pulls. For the rest of the analysis of UCB-M, we shall denote, the number of phases executed by UCB-M as .
For , as the arm memory size is large enough, it is effectively removing the memory constraint. In such unconstrained scenarios it is preferable run UCB1 (Auer et al., 2002) on the whole instance, which will incur a lower regret. We adopt this into UCB-M, and hence, running UCB-M with is identical to run original UCB1.
Theorem 4.1**.**
Given a set of arms , with , an arm memory size such that , as input, then for a horizon of pulls, with , UCB-M will incur
We note that for a given bandit instance with arms, an arm memory size , and horizon , the number of sub-phases is , and the total number of phases is upper bounded by (Lemma A.2 in Appendix A). Now, we upper bound the maximum regret incurred in a sub-phase inside a given phase, and sum over all the sub-phases.
As UCB-M ensures inclusion of the optimal arm at least once in every phase, we note the following.
Corollary 4.2**.**
Let us denote, the sequence of sub-phase-wise arm memory as . Then, for , at least one of any consecutive elements of contains .
In any given phase, we need to upper-bound the difference of mean of the best in memory arm between two successive sub-phase. Considering as defined in Corollary 4.2, let be the arm recommended by the sub-phase to . It is important to note that . Therefore, in the interest of finding a upper bound on the regret, it is safe to consider as a pessimistic estimate of the best mean in . In any given sub-phase in phase , we let . Now, noticing that on each sub-phase in a phase UCB-M spends pulls we upper bound as follows.
Corollary 4.3**.**
Using Theorem 3.1, in phase , at the end of each sub-phase , the expected simple regret with respect to is upper-bounded as . The upper bound is independent of as the budget for each sub-phase in a given phase remains the same.
We notice, that the arm forwarded from each sub-phase to the next one, not necessarily to be the optimal arm. Hence, in the worst case, the expected difference between the mean of the optimal arm, and the highest mean reward in the current arm memory grows linearly with the number of sub-phase in a given phase. We upper bound it as follows.
Lemma 4.4**.**
Let, we are given a -sized set of arms , and an arm memory size . Also, let as defined in Corollary 4.3 at any phase , in the sub-phase , if is the maximum of the mean of the arms in the arm-memory, then
[TABLE]
The proof is presented in Appendix A. Next, we use Lemma 4.4 to upper bound the cumulative regret ().
Bifurcation of .
For any given phase , and a sub-phase , let , and be the incurred regret. Then,
[TABLE]
Where the expectation is taken over all possible sources of randomisation. Now, letting , and , we can write,
[TABLE]
Now, using Lemma 4.4 we upper bound as follows.
Lemma 4.5**.**
For , and for , and for some constant , .
For the detailed proof we refer to Appendix A. We note, that , can be upper-bounded using the problem independent upper-bound on the cumulative regret of UCB1 (Auer et al., 2002), as we restate below.
Lemma 4.6** (Distribution-Free Upper Bound on Cumulative Regret of UCB1 Auer et al. (2002)).**
Given a set of -arms as the input, for any horizon , the cumulative regret incurred by UCB1 . Further, if , then .
Next, using Lemma 4.6, we upper bound , with the proof given in Appendix A.
Lemma 4.7**.**
For , and , and for some constant , .
Proof of Theorem 4.1
Using Equation 6, and applying Lemma 4.5 and Lemma 4.7 we prove the theorem.
Next, we present an empirical comparison of UCB-M and some of its variations with the algorithm of Liau et al. (2018).
4.2 Experiment
The use of UCB1 (Auer et al., 2002) as a subroutine in Algorithm 1, can be replaced by any other allocation strategies, which in effect will give rise to a different upper bound. In the interest of studying the empirical behaviour, we consider Moss (Audibert & Bubeck, 2009) and Thompson Sampling (Agrawal & Goyal, 2013) in our experiments, and rename UCB-M to TS-M and Moss-M respectively. However, everything else (in Algorithm 1) including the recommendation strategy, is kept unchanged.
Bandit Instances.
We run the experiments on three different instances. Let, be the number of arms in the instance. Also, for convenience, let the arms indices be sorted in descending order of their mean, with . As we randomly permute the arm indices in all our experiments, this assumption does not affect the results. We write to denote an instance in which the mean of the arms are linearly spaced between and . The other two -armed instances which are analogous to the ones used by Jamieson et al. (2014). For , they are defined as , in which any sub-optimal arm , has the mean .
For , Figure 2 compares the cumulative regret incurred by algorithms UCB-M, TS-M, Moss-M for an arm memory size , with the algorithm of Liau et al. (2018) (UCBConstantSpace). A comparison of cumulative regret, and the number of pulls to the individual arms in the instances with is presented in Figure 4 in Appendix B. It is important to note that despite using larger arm-memory of , which is twice of the others, their algorithm incurs a significantly higher regret.
Intuitively, Liau et al.’s (2018) algorithm first solves a pure exploration problem to identify a near optimal arm, and then commits the rest of the horizon to that arm. Consequently, it spends a prohibitively large number of pulls on the sub-optimal arms leading to a high regret. In contrast, we just make sure that at any instant, the expected difference between the mean of the optimal arm and the best arm in the current arm memory is not too large. Apparently, this difference increases with the subsequent sub-phases. However, UCB-M ensures to choose the optimal arm in its arm memory at least once in any given phase leading to a “reset” to this difference. On the other hand, this difference progressively reduces due to doubling the budget in each phase. This explains why UCB-M, TS-M, and Moss-M incur significantly lower regret.
As UCB-M can take advantage of larger arm memory size, next we shall compare the incurred regret by varying it. Recalling the algorithm UCB1 (Auer et al., 2002), if an arm has been pulled times till the time step , and if is its empirical average reward, then the upper confidence bound of that arm is given by with . It can be experimentally validated that tuning can lead to achieving a smaller regret as claimed by the authors (Auer et al., 2002, Section 4). We present the regret incurred by UCB-M for , alongside the other algorithms.
Intuition suggests that increasing arm memory should help in achieving a low regret, as it increases the chance of pulling the optimal arm more frequently. Also, the upper bound given by Theorem 4.1 supports this intuition. However, in practice, we notice an interesting behaviour. On the instance , we compare the cumulative regret incurred by UCB-M, TS-M, and Moss-M in Figure 3 by varying . For a comparison on the other instances, the reader is referred to Figure 5 in Appendix B. As expected, UCB-M, TS-M and Moss-M always incur a higher regret than their unconstrained () counter parts. Also, for UCB-M with , TS-M and Moss-M increasing the arm memory size makes them achieve a lower regret. However, the behaviour of UCB-M () is significantly different from the other two. If , it incurs a relatively low regret for . Afterwards it increases with , followed by a slow decrease. We conclude that this peculiarity in its behaviour is due to the intrinsic looseness in the calculation of upper confidence bound. Also, that is the reason why UCB-M with , and the others not only incur a lower regret but behave consistently.
5 Algorithm for Infinite Bandit Instances
In this section, we provide a bounded arm-memory algorithm and its upper bound on the incurred quantile-regret. Also, on various problem instances we empirically compare its incurred conventional cumulative regret () with the existing algorithms.
5.1 Algorithm and Quantile-Regret Analysis
We solve the problem of QR-M by modifying the algorithm QRM2 (Roy Chaudhuri & Kalyanakrishnan, 2018) to make it use UCB-M as the sub-routine, and adjust the arm exploration rate accordingly to minimise the upper bound. We call it QUCB-M and describe in Algorithm 2.
Below, we present the upper bound on the quantile regret incurred by QUCB-M.
Theorem 5.1** (Sub-linear quantile-regret of QUCB-M).**
For and for sufficiently large , QUCB-M incurs
[TABLE]
Proof.
To prove the theorem we follow the steps of proof for Theorem 3.3 in Roy Chaudhuri & Kalyanakrishnan (2018). For any fixed , we break the analysis for upper bound on in cases—first, the algorithm never encounters an arm from ; second, it picks at least one arm from .
The key step in the analysis of the first part is showing that there exists such that for all , the set of arms is sufficiently large to contain an arm from with high probability. Defining is in as , and following the steps for the derivation of Equation (3) in the proof of Theorem 3.3 in Roy Chaudhuri & Kalyanakrishnan (2018) we arrive at
[TABLE]
The detailed derivation of Equation (7) is given in Lemma C.2 in Appendix C.
In the second part, we upper-bound the incurred regret for the case where QUCB-M encounters at least one arm from the in (the event . Using Theorem 4.1 and using the similar approach for deriving Equation (4) in the proof of Theorem 3.3 in Roy Chaudhuri & Kalyanakrishnan (2018) we arrive at
[TABLE]
for some constant . The intermediate steps to obtain (5.1) are presented in Lemma C.3 in Appendix C. Combining Equation (7), Equation (5.1) and substituting for , the upper bound on with respect to gets minimised for , thus proving the theorem. ∎
It is to be noted that inside QUCB-M one can use the algorithm by Liau et al. (2018) instead of UCB-M. However, as we have already shown in Section 4.2 that UCB-M is empirically superior than their algorithm, we do not consider this variation in our our experiment.
5.2 Experiment
Although QUCB-M is designed with the aim to minimise quantile-regret, we use conventional cumulative-regret as the evaluation metric. Similar to UCB-M, the algorithm QUCB-M can be altered to use TS-M or Moss-M as the subroutine instead, and we call them QTS-M and QMoss-M respectively. Algorithm 2 uses the value of that minimises the upper bound on regret in Theorem 5.1. However, for empirical efficiency, we keep the as used by the algorithm QRM2 (Roy Chaudhuri & Kalyanakrishnan, 2018). We compare incurred conventional regret by each of these algorithms against the algorithms by Herschkorn et al. (1996) and Berry et al. (1997), and present it in Table 1. We use the same four Bernoulli instances used by Roy Chaudhuri & Kalyanakrishnan (2018)—instances and have , and the probability distributions on induced by are given by , and respectively. Similarly, instances and have , and the probability distributions on induced by are given by scaled , and respectively. Each column of the tables is labelled by the corresponding probability density function of encountering the mean rewards. As Table 2 suggests, the existing algorithms incur a significantly higher regret in most of the cases. We put the comparison for at Table 2 in Appendix D.
It is interesting to note that, like the finite instances, increasing arm memory leads to a lower regret. Specifically, the scaled version of QUCB-M (using UCB-M with ) along with QTS-M and QMoss-M show an improvement with larger arm memory. However, with in the underlying UCB-M, QUCB-M fails to take the advantage of larger arm memory.
6 Conclusion
In this paper, we address the problem of regret minimisation using a bounded number of words of memory. This problem becomes interesting where the number of arms is too large to consider all of them simultaneously, for example, crowd-sourcing, drug testing etc. Some existing approaches (Herschkorn et al., 1996; Berry et al., 1997) considers only the infinite bandit instances consist of Bernoulli arms. Recently, Liau et al. (2018) present an explore-then-commit based algorithm for finite bandit instances, which escapes such assumptions, but very inefficient in practice.
We provide a UCB1 (Auer et al., 2002) based algorithm UCB-M for finite bandit instances, which is empirically far more efficient and enjoys a sub-linear upper bound on the cumulative regret, but uses a bounded number of words of memory. Also, unlike all the existing algorithms, UCB-M offers the flexibility of varying the arm memory size, facilitating the experimenter to use the available memory resource. Further, we extend the existing algorithm QRM2 (Roy Chaudhuri & Kalyanakrishnan, 2017) for quantile-regret minimisation to QUCB-M to achieve sub-linear quantile regret under the bounded arm memory constraint. We empirically verify that QUCB-M incurs a lower conventional cumulative regret on a various infinite bandit instances than the existing algorithms (Herschkorn et al., 1996; Berry et al., 1997), which needs memory.
We find that providing a lower bound on the cumulative regret under the bounded arm memory constraint is an interesting question, and we leave that for future investigation.
Appendix A Proofs from Section 4.1
Lemma A.1**.**
For a given -sized set of arms , and an arm memory size , the number of sub-phases required to ensure that each arm in has been chosen into arm memory at least once is not more than .
Proof.
We notice that at the beginning of each sub-phase there are exactly arms except the arm recommended from the previous step. Let, be the maximum number of sub-phases possible in a phase. We realise that each phase ends as soon as for every arm , there exists a sub-phase , such that . Therefore, h=\min\{y:\mathcal{A}\subseteq\cup_{j=1}^{y}S^{w,j}\}=\Big{\lceil}\frac{K-1}{M-1}\Big{\rceil}=h_{0}. ∎
Lemma A.2**.**
For a given -sized set of arms , and an arm memory size , the number of phases UCB-M executes is upper bounded by x_{0}\stackrel{{\scriptstyle\mathclap{\mbox{\tiny{def}}}}}{{=}}\Big{\lceil}\log\frac{2T}{MK}\Big{\rceil}.
Proof.
Let be the total number of phases executed by UCB-M. It should be noted that the value of , , and might be such that the total horizon () runs out before finishing the last phase. Now, for any given phase (), the horizon spent on each sub-phase is the same, that is . Therefore, we can write
[TABLE]
∎
See 4.4
Proof.
Letting, . We break the proof into two steps. Step 1 upper bounds , which is an upper bound on , for all ; while Step 2 upper bounds . Both the steps are based on Corollary 4.2, that ensures at least one of the consecutive sub-phases (not necessarily from the same phase) must contain the optimal arm in the arm-memory.
Step 1.
Let, be the first sub-phase in phase , to have in the arm-memory. Therefore, , and hence, by definition, . Therefore, for any subsequent sub-phase in phase , . As there are sub-phases in any phase, hence, for all , .
Step 2.
Let, be a sub-phase in phase , such that . From Step 1, . Now, considering sub-phase in phase , we realise that if , then there exists a sub-phase such that . Now, for ,
[TABLE]
Together, Step 1 and Step 2 prove the lemma. ∎
See 4.5
Proof.
[TABLE]
wherein, are appropriate constants. ∎
See 4.7
Proof.
We notice that at any sub-phase of any phase , due to Lemma 4.6, there exists a constant , such that . Therefore,
[TABLE]
wherein, are appropriate constants. ∎
Appendix B Additional Experimental Results from Section 4.2
Appendix C Proofs from Section 5.1
In this appendix we provide the materials to complete the proof of Theorem 5.1.
Lemma C.1**.**
Let, r^{*}=\Big{\lceil}\frac{1}{\alpha}\log\left(\frac{1}{\rho}\log\frac{1}{\rho}\right)-\log B\Big{\rceil}. Then, for every phase , the size of can be lower bounded as n_{r}=\Big{\lceil}t_{r}^{\alpha}\Big{\rceil}\geq\Big{\lceil}\frac{\alpha\log\mathrm{e}}{(1+\gamma)\rho}\cdot\ln t_{r}\Big{\rceil}, wherein, .
Proof.
We notice, for every, , t_{r}\geq\Big{\lceil}\left(\frac{1}{\rho}\log\frac{1}{\rho}\right)^{\frac{1}{\alpha}}\Big{\rceil}. Then, for each , we can lower bound the size of the set as follows. As, |\mathcal{K}_{r}|=n_{r}=\Big{\lceil}t_{r}^{\alpha}\Big{\rceil} is an integer, to ease the calculation let us define , where , and therefore, does not need to be an integer. Now, letting , we get
[TABLE]
As, grows with faster than , therefore,
[TABLE]
Therefore, recalling that is an integer, for all values of , the statement of the lemma follows. ∎
Lemma C.2**.**
The expected regret due to not encountering any arm from the set is during running of the algorithm, is in .
Proof.
We define an event that no arm from is in as , and note . Now, for some that shall be tuned later, let . Therefore, in the round , the number of pulls is given by . Now, for , the number of arms in is given by , wherein, ().
Therefore, .
Using Lemma C.1, below we present the detailed steps for obtaining (7) in the proof of Theorem 5.1.
[TABLE]
∎
Lemma C.3**.**
For defined in Lemma C.1, given that for all , algorithm QUCB-M has encountered at least one arm from , the incurred regret beyond the round is not more than ; for some constant .
[TABLE]
for some constants and .
Appendix D Additional Experimental Results from Section 5.2
For the algorithms explore very small number of arms, that causes incorporating a good arm very unlikely leading to a high regret.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Agrawal (1995) Agrawal, R. The continuum-armed bandit problem. SIAM J. Control Optim. , 33(6):1926–1951, 1995.
- 2Agrawal & Goyal (2012) Agrawal, S. and Goyal, N. Analysis of Thompson sampling for the multi-armed bandit problem. In Proc. of the 25th Annual Conf. on Learning Theory , volume 23, pp. 39.1–39.26, Edinburgh, Scotland, 2012. PMLR.
- 3Agrawal & Goyal (2013) Agrawal, S. and Goyal, N. Further optimal regret bounds for thompson sampling. In Proc. AISTATS 2013 , volume 31, pp. 99–107. PMLR, 2013.
- 4Aho et al. (1974) Aho, A. V., Hopcroft, J. E., and Ullman, J. D. The Design and Analysis of Computer Algorithms . Addison-Wesley, 1974.
- 5Armitage (1960) Armitage, P. Sequential Medical Trials. Blackwell Scientific Publications, 1960.
- 6Audibert & Bubeck (2009) Audibert, J.-Y. and Bubeck, S. Minimax policies for adversarial and stochastic bandits. In Proc. COLT 2009 , pp. 217–226, 2009.
- 7Auer et al. (2002) Auer, P., Cesa-Bianchi, N., and Fischer, P. Finite-time analysis of the multiarmed bandit problem. Machine Learning , 47(2-3):235–256, 2002.
- 8Berry & Fristedt (1985) Berry, D. and Fristedt, B. Bandit Problems: Sequential Allocation of Experiments . Chapman & Hall, 1985.
