More Adaptive Algorithms for Adversarial Bandits
Chen-Yu Wei, Haipeng Luo
Introduction
There are several existing works on deriving more adaptive bandit algorithms, replacing the dependence on in the regret bound by some data-dependent quantity that is in the worst-case but could be potentially much smaller in benign environments. Examples of such data-dependent quantities include the loss of the best arm (Allenberg et al., 2006; Foster et al., 2016) or the empirical variance of all arms (Hazan and Kale, 2011a; Bubeck et al., 2017). Extensions to more general settings such as semi-bandit, two-point bandit, and graph bandit have also been studied (Neu, 2015; Chiang et al., 2013; Lykouris et al., 2017). These adaptive algorithms not only enjoy better performance guarantees, but also have important applications for other areas such as game theory (Foster et al., 2016).
These bounds are incomparable in general. All of them have known counterparts in the full information setting (see for example (Steinhardt and Liang, 2014) and (De Rooij et al., 2014)), but are novel in the bandit setting to the best of our knowledge. Note that for the first two results that depend on some quantities of only the best arm, we require tuning a learning rate parameter in terms of these (unknown) quantities. Obtaining the same results with parameter-free algorithms remains open, even for the full information setting. However, for the other results, we indeed provide parameter-free algorithms based on a variant of the doubling trick.
Our general algorithm falls into the Online Mirror Descent (OMD) framework (see for example (Hazan et al., 2016)) with the “log-barrier” as the regularizer, originally proposed in (Foster et al., 2016). However, to obtain our results, two extra crucial ingredients are needed:
First, we adopt the ideas of optimism and adaptivity from (Steinhardt and Liang, 2014), which roughly speaking amounts to incorporating a correction term as well as an optimistic prediction into the loss vectors. In (Steinhardt and Liang, 2014), this technique was developed in the Follow-the-Regularized-Leader (FTRL) framework,Although it was confusingly referred as OMD in (Steinhardt and Liang, 2014). but it is in fact crucial here to re-derive it in the OMD framework (due to the next ingredient). The challenges here are to come up with the right correction terms and optimistic predictions.
Second, we apply an individual and increasing learning rate schedule for one of the path-length results. Such increasing learning rate schedule was originally proposed in (Bubeck et al., 2016) and also recently used in (Agarwal et al., 2017), but for different purposes.
Although most algorithmic techniques we use in this work have been studied before, combining all of them, in the general semi-bandit setting, requires novel and non-trivial analysis. The use of log-barrier in the semi-bandit setting is also new as far as we know.
There is a rich literature in deriving adaptive algorithms and regret bounds for online learning with full information feedback (see recent work (Luo and Schapire, 2015; Koolen and Van Erven, 2015; van Erven and Koolen, 2016; Orabona and Pál, 2016; Cutkosky and Boahen, 2017) and references therein), as well as the stochastic bandit setting (such as (Garivier and Cappé, 2011; Lattimore, 2015; Degenne and Perchet, 2016)). Similar results for the adversarial bandit setting, however, are relatively sparse and have been mentioned above. While obtaining regret bounds that depend on the quality of the best action is common in the full information setting, it is in fact much more challenging in the bandit setting, and the only existing result of this kind is the “small-loss” bound (Allenberg et al., 2006; Foster et al., 2016). We hope that our work opens up more possibilities in obtaining these results, despite some recent negative results discovered by Gerchinovitz and Lattimore (2016).
Chiang et al. (2013) proposed bandit algorithms with second-order path-length bounds, but their work requires stronger two-point feedback. The implication of path-length regret bounds on faster convergence rate for computing equilibriums was studied in (Syrgkanis et al., 2015). Other examples of adaptive online learning leading to faster convergence in game theory include (Rakhlin and Sridharan, 2013b; Daskalakis et al., 2015; Foster et al., 2016).
There exist several bandit algorithms that achieve almost optimal regret in both the adversarial setting () and the i.i.d. setting ( where is the gap between the expected loss of arm and the one of the optimal arm) (Bubeck and Slivkins, 2012; Seldin and Slivkins, 2014; Auer and Chiang, 2016; Seldin and Lugosi, 2017). Our results in Section 4.2 have slightly weaker guarantee for the i.i.d. setting (at most times worse specifically) since it essentially replaces all by . On the other hand, however, our results have several advantages compared to previous work. First, our guarantee for the adversarial setting is stronger since it replaces the dependence on by the loss of the best arm. Second, our logarithmic regret result applies to not just the simple i.i.d. setting, but the more general setting mentioned above where neither independence nor identical distributions is required. Our dependence on is also better than previous works, resolving an open problem raised by Seldin and Lugosi (2017). Finally, our algorithm and analysis are also arguably much simpler, without performing any stationarity detection or gap estimation. Indeed, the result is in some sense algorithm-independent and solely through a new adaptive regret bound Eq. (9), similar to the results in the full-information setting such as (Gaillard et al., 2014).
Using a self-concordant barrier as regularizer was proposed in the seminal work of (Abernethy et al., 2008) for general linear bandit problems. The log-barrier is technically not a barrier for the decision set of the semi-bandit problem, but still it exhibits many similar properties as shown in our proofs. Optimistic FTRL/OMD was developed in (Chiang et al., 2012; Rakhlin and Sridharan, 2013a). As pointed out in (Steinhardt and Liang, 2014), incorporating correction terms in the loss vectors can also be viewed as using adaptive regularizers, which was studied in several previous works, mostly for the full information setting (see (McMahan, 2017) for a survey).
Problem Setup and Algorithm Overview
The learner’s goal is to minimize the regret, which is the gap between her accumulated loss and that of the best fixed action . Formally the regret is defined as
For a convex function defined on a convex set , the Bregman divergence of two points with respect to is defined as . The log-barrier used in this work is of the form for some learning rates and , the convex hull of . With , the Bregman divergence with respect to the log-barrier is:
The all-zero and all-one vector are denoted by and respectively. represents the ()-dimensional simplex. For a binary vector we write if . Denote by the maximum number of arms an action in can pick. Note that for MAB, is simply .
1 Algorithm Overview
When , this is studied in (Rakhlin and Sridharan, 2013a) under the name optimistic OMD. When , the closest algorithm to this variant of OMD is its FTRL version studied by Steinhardt and Liang (2014). However, while is fixed for all in (Steinhardt and Liang, 2014),Steinhardt and Liang (2014) also uses the notation , but it corresponds to putting into a fixed regularizer. some of our results crucially rely on using time-varying (which corresponds to time-varying learning rate) and also the OMD update form instead of FTRL.
The sampling step can be done efficiently as long as can be described by a polynomial number of constraints. The optimization problems in the update rules of and are convex and can be solved by general optimization methods. For many special cases, however, these two computational bottlenecks have simple solutions. Take MAB as an example, directly specifies the probability of picking each arm, and the optimization problems can be solved via a simple binary search (Agarwal et al., 2017).
Broad-OMD with Option I
For the update rules (1) and (2), if the following condition holds:
where .
The important part of bound (4) is the term , which allows us to derive regret bounds that depend on only the comparator . The key is now how to configure the algorithm such that condition (3) holds, while leading to a reasonable bound (4) at the same time.
Note that with a smaller , condition (3) becomes more stringent. The entropy regularizer used in (Steinhardt and Liang, 2014) no longer suffices to maintain such a condition. Instead, it turns out that the log-barrier regularizer used by Broad-OMD addresses the issue, as shown below.
The three conditions of the theorem are usually trivially satisfied as we will show. Note that is always non-negative. Therefore, if the sequence is non-decreasing for all ,One might notice that is not defined here. Indeed this term is artificially added only to make the analysis of Section 3.2 more concise, and can be any positive number. In Algorithm 2 we give it a concrete definition. the term in bound (5) is non-positive. For some results we can simply discard this term, while for others, this term becomes critical. On the other hand, the term appears to be infinity if we want to compare with the best fixed action (where for some ). However, this can be simply resolved by comparing with some close neighbor of the best action in instead, similar to (Foster et al., 2016; Agarwal et al., 2017).
One can see that the expected regret in Corollary 1 only depends on the squared estimation error of for the actions that chooses! This is exactly the counterpart of results in (Steinhardt and Liang, 2014), but for the more challenging combinatorial semi-bandit problem. Note that our dependence on is also optimal (Audibert et al., 2013).
2 Path-length Bound
Therefore, the term is close to the first-order path-length but with an extra factor . To cancel this potentially large factor, we adopt the increasing learning rate schedule recently used in (Agarwal et al., 2017). The idea is that the term h\big{(}\frac{u_{i}}{w_{t+1,i}^{\prime}}\big{)} in Eq. (5) is close to if is close to . If we increase the learning rate whenever we encounter a large , then \Big{(}\frac{1}{\eta_{t+1,i}}-\frac{1}{\eta_{t,i}}\Big{)}h\Big{(}\frac{u_{i}}{w_{t+1,i}^{\prime}}\Big{)} becomes a large negative term in terms of , which exactly compensates the term .
To avoid the learning rates increased by too much, similarly to (Agarwal et al., 2017) we use some individual threshold () to decide when to increase the learning rate and update these thresholds in some doubling manner. Also, we mix with a small amount of uniform exploration to further ensure that it cannot be too small. The final algorithm, call Broad-OMD+, is presented in Algorithm 2 (only for the MAB setting for simplicity). We prove the following theorem.
Broad-OMD with Option II
For the update rules (1) and (2) with , we have for all ,
where .
For MAB, the last term can further be lower bounded by .
If conditions (ii) and (iii) in Theorem 4.2 hold, then Algorithm 3 guarantees
Unlike Eq. (6), this is bounded even without the help of negative regret, but the price is that now the regret depends on the sum of all arms’ path-length. With this calculation, we obtain the following corollary.
This new path-length bound could be times better than the one in Section 3.2 in some cases, but times larger in others. The extra advantage, however, is the negative term in the regret,In fact, similar negative term, coming from the term in Lemma 3.1, also exists (but is omitted) in the bound of Theorem 3.4. However, it is not clear to us how to utilize it in the same way as in Section 4.1.1 if we also want to exploit the other negative term coming from increasing learning rates. explicitly spelled out in Corollary 2, which we discuss next.
It is well-known that in a repeated two-player zero-sum game, if both players play according to some no-regret algorithms, then their average strategies converge to a Nash equilibrium (Freund and Schapire, 1999). Similar results for general multi-player games have also been discovered. The convergence rate of these results is governed by the regret bounds of the learning algorithms, and several recent works (such as those mentioned in the introduction) have developed adaptive algorithms with regret much smaller than the worst case by exploiting the special structure in this setup, which translates to convergence rates faster than in computing equilibriums.
One way to obtain such fast rates is exactly via path-length regret bounds as shown in (Rakhlin and Sridharan, 2013b; Syrgkanis et al., 2015). In these works, the convergence rate is achieved when the players have full-information feedback. We generalize their results to the bandit setting, and show that convergence rate of can be obtained. Though faster than , it is still slower than compared to the full-information setting, which is due to the fact that in bandit we only have first-order instead of second-order path-length bound. We detail the proofs and the remaining open problems in Appendix I.
2 Adapting to Stochastic Bandits
Conclusions and Discussions
In this work we develop and analyze a general bandit algorithm using techniques such as optimistic mirror descent, log-barrier regularizer, increasing learning rate, and so on. We show various applications of this general framework, obtaining several more adaptive algorithms that improve previous works. Future directions include 1) improving the dependence on for the path-length results; 2) obtaining second-order path-length bounds; 3) generalizing the results to the linear bandit problem.
CYW is grateful for the support of NSF Grant #1755781. The authors would like to thank Chi-Jen Lu for posing the problem of bandit path-length, and to thank Chi-Jen Lu and Yi-Te Hong for helpful discussions in this direction.
References
Appendix A Proof of Lemma 3.1
This is by the first-order optimality condition of and direct calculations. Applying this to update rule (2) we have
while applying it to update rule (1) and picking we have
Now we bound the instantaneous regret as follows:
Appendix B Lemmas for Log-barrier OMD
In this section we establish some useful lemmas for update rules (1) and (2) with log-barrier regularizer, which are used in the proofs of other theorems. We start with some definitions.
implies . Thus for every , we have , implying . Therefore, . Similarly, we have .
Indeed, using Taylor’s theorem, for any , there is an on the line segment between and such that (let )
Define and to be the same as in Lemma B.4. Then we have
On the other hand, for some on the line segment between and , we have by Taylor’s theorem and the optimality of ,
Since the condition in Lemma B.4 holds, , and thus . Using again Lemma B.2, we have
If the three conditions in Theorem 3.2 hold, Broad-OMD (with either Option I or II) satisfies .
This is a direct application of Lemmas B.8, B.4, and B.2.
For the MAB problem, if the three conditions in Theorem 3.2 hold, Broad-OMD (with either Option I or II) satisfies .
It suffices to prove by Lemma B.2. Since we assume that the three conditions in Theorem 3.2 hold and , we have . This implies by a similar arguments as in the proof of Lemma B.4 (one only needs to replace there by and note that ).
Appendix C Proof of Theorem 3.2 and Corollary 1
of Theorem 3.2. We first prove Eq. (3) holds: by Lemmas B.8 and B.6, we have
where the last two inequalities are by the same calculations done in the proof of Lemma B.8.
Since Eq. (3) holds, using Lemma 3.1 we have (ignoring non-positive terms ’s),
In the last inequality, we add a term artificially. As mentioned, , defined in terms of , never appears in the Broad-OMD algorithm. We can simply pick any for all here. This is just to simplify some analysis later.
The first term in (16) can be bounded by the optimality of :
Plugging the above two terms into (16) finishes the proof.
As mentioned, if we let , then becomes infinity for those . Instead, we let . With this choice of , we have . Plugging into the above inequality and rearranging, we get
Appendix D Proof of Theorem 3.3
of Theorem 3.3. As in Hazan and Kale (2011a), for the rounds we perform uniform sampling we do not update . Let be the set of rounds of uniform sampling. Then for the other rounds we can apply Corollary 1 to arrive at
The second term can be bounded as follows:
For any , .
Appendix E Proof of Theorem 3.4
Let be such that , i.e., the number of times the learning rate of arm changes in Broad-OMD+. Then , and for all .
Let be the rounds the learning rate for arm changes (i.e., for ). By the algorithm, we have
Therefore, . And we have .
where the last inequality is by Lemma E.1 and the fact . Now we bound the second and the third term in (20) separately.
For the second term, by Lemma B.10 and we have
Noting that is an increasing function when , we thus have
Combining Eq. (21) and Eq. (22) and using the fact , we continue from Eq. (20) to arrive at
We are almost done here, but note that the left-hand side of (23) is not the desired regret. What we would like to bound is
Appendix F Proofs of Lemma 4.1 and Theorem 4.2
of Lemma 4.1. By the same arguments as in the proof of Lemma 3.1, we have
Therefore, by expanding the instantaneous regret, we have
of Theorem 4.2. Applying Lemma 4.1, we have
Finally we lower bound for the MAB case. Note for . By Lemma B.10 and B.12, and both belong to . Therefore,
Appendix G Doubling Trick
We include the version of our algorithm with the doubling trick in Algorithm 3. For simplicity we still assume the time horizon is known; the extension to unknown horizon is straightforward.
of Theorem 4.3. Let so that . At some epoch , by Theorem 4.2, the break condition, and condition (iii) we have with ,
Suppose that at time , the algorithm is at epoch . Then we have
Appendix H Proofs of Corollary 2 and Theorem I.1
Appendix I Omitted Details in Section 4.1.1
Although the generalization to multi-player games is straightforward, for simplicity we only consider two-player zero-sum games.
We first describe the protocol of the game. The game is defined by an unknown matrix where entry specifies the loss (or reward) for Player 1 (or Player 2) if Player 1 picks row while Player 2 picks column . The players play the game repeatedly for rounds. At round , Player 1 randomly picks a row for some while Player 2 randomly picks a column for some . In (Syrgkanis et al., 2015), the feedbacks they receive are the vectors and respectively. As a natural extension to the bandit setting, we consider a setting where the feedbacks are the scalar values and respectively, that is, the expected loss/reward for the players’ own realized actions (over the opponent’s randomness).
It is clear that each player is essentially facing an MAB problem and thus can employ an MAB algorithm. Specifically, if both players apply Exp3 for example, their expected average strategies converge to a Nash equilibrium at rate . However, if instead Player 1 applies Broad-OMD configured as in Corollary 2, then her regret has a path-length term that can be bounded as follows:
which is closely related to the negative regret term in Corollary 2 for Player 2 if she also employs the same Broad-OMD. The cancellation of these terms then lead to faster convergence rate.
where and .
due to the assumption . Therefore, by Corollary 2, Player 1’s (pseudo) regret is
Summing up the above two bounds, and using the following fact (by the inequality ):
As shown by the theorem, we obtain convergence rate faster than , but still slower than the rate compared to the full-information setup of (Rakhlin and Sridharan, 2013b; Syrgkanis et al., 2015), due to the fact that we only have first-order instead of second-order path-length bound.
Note that Rakhlin and Sridharan (2013b) also studies two-player zero-sum games with bandit feedback but with an unnatural restriction that in each round the players play the same strategy for four times. Foster et al. (2016) greatly weakened the restriction, but their algorithm only converges to some approximation of Val. For further comparisons, the readers are referred to the comparisons to (Syrgkanis et al., 2015) in (Foster et al., 2016). We also point out that the question raised in (Rakhlin and Sridharan, 2013b) remains open: if the players only receive the realized loss/reward as feedback (a more natural setup), can the convergence rate to Val be faster than ?
Appendix J Proof of Theorem 4.4
Therefore, the first term on the right-hand side of (27) can be upper bounded by
which implies . Therefore, the expected regret is upper bounded by
For the adversarial setting, we continue from an intermediate step of (29):