Towards minimax policies for online linear optimization with bandit feedback
Sébastien Bubeck, Nicolò Cesa-Bianchi, Sham M. Kakade
Introduction
In this paper we are interested in the dual setting, where the adversary plays on a dual action set, i.e., and are such that .
In the full information case, the online optimization setting (for convex losses) was introduced by Zinkevich 2003. The specific online linear optimization problem with bandit feedback was first studied by McMahan and Blum 2004 and Awerbuch and Kleinberg 2004. Our first contribution to this problem is to complete the research program started by Dani et al. 2008 and Cesa-Bianchi and Lugosi 2011. In these papers the authors studied the exp2 (Expanded Exp) algorithm, also called Geometric Hedge, Expanded Hedge, or ComBand. This strategy applies to a finite set of actions; it assigns an exponential weight to each action, and then draws an action at random from the corresponding probability distribution. Using a basic estimation procedure (first used by Auer et al. 2002 for the basic multi-armed bandit problem), one can estimate the loss vector . However, to control the range of the estimates, one has to mix the probability given by exp2 with an ”exploration distribution”. Dani et al. 2008 chose this distribution to be uniform over a barycentric spanner for the action set, while in (Cesa-Bianchi and Lugosi 2011) the distribution was uniform over all actions. Using ideas from convex geometry, we propose a new distribution that allows us to derive a minimax optimal regret bound. More precisely, we show that for any finite action set, exp2 with the exploration distribution given by John’s Theorem (see Theorem 3) attains a regret of order for any set of actions. This improves by a factor over previous works. Moreover this rate is optimal: there exists action sets (such as the hypercube) where the minimax rate is of order —see (Dani et al. 2008). Surprisingly, this result also shows that Exp2 with John’s exploration can be used for linear bandits with experts to obtain a regret of order , which is no worse than the minimax regret for the basic -armed bandit with experts problem.
While these results show that, without further assumption on the set of action, the regret of exp2 is optimal, they do not say anything about optimality for a specific set of actions. In fact, it was proven by Audibert et al. 2011 that for some pair the exponential weights is a provably suboptimal strategy (with a gap of order ). To address this issue, another class of algorithms has been studied for online optimization: the Mirror Descent style algorithms of Nemirovski and Yudin 1983 —this class of algorithms was rediscovered in the learning community, see for example Kivinen and Warmuth 2001. In recent years the number of papers using Mirror Descent to solve problems in online optimization has been growing very rapidly. In the full information setting (when one observes ), we have a very good understanding of how to use Mirror Descent to obtain optimal regret bounds that adapt to the geometry of the problem —see (Rakhlin 2009; Hazan 2011; Bubeck 2011). In particular, a recent paper suggests that in this basic setting Mirror Descent is ”universal”, see (Srebro et al. 2011). On the other hand, in the limited feedback scenario the picture is much more scattered. In the particular cases of semi-bandit feedback —see (Audibert et al. 2011)— and two-points bandit feedback —see (Agarwal et al. 2010), we know how to use Mirror Descent to obtain optimal regret bounds. However, in both scenarios the feedback is much stronger than in the more fundamental bandit problem. In this latter case, there is only one paper that successfully applies Mirror Descent, namely the seminal work of Abernethy et al. 2008 —see also the follow-up paper Abernethy and Rakhlin 2009. Unfortunately, for a convex and compact set , this approach (which combines Mirror Descent with a self-concordant barrier for the action set) leads to a regret bound of order for any such that admits a -self concordant barrier. For example, in the case of the hypercube the best we know is , which results in the suboptimal regret (compared to for exp2 with John’s ellipsoid). However, note that in this particular case it is not known if exp2 can be implemented efficiently, while Mirror Descent is polynomial time.
Our second main contribution is to propose an efficient algorithm based on Mirror Descent, with an optimal regret bound for two canonical pairs . Namely, the (hypercube, cross-polytope) pair, which corresponds to an type of constraints, and the (Euclidean ball, Euclidean ball) pair, which corresponds to an constraint. In the former case this results in the first computationally efficient algorithm with a regret of order , while in the latter case it is the first efficient algorithm with a regret of order . Indeed, the approach of Abernethy et al. 2008 only gives for the pair (Euclidean ball, Euclidean ball) since there exists a -self concordant barrier for the Euclidean ball. Note also that this specific example was studied in Abernethy and Rakhlin 2009, we discuss their result in Section 5.
2 Outline of the paper
The paper is organized as follows. In Section 2 we introduce the two algorithms discussed in the paper: Expanded Exp (exp2) and Online Stochastic Mirror Descent (osmd). In both cases we state a general regret bound. In Section 3 we detail our exploration strategy for exp2, and show the corresponding regret bound. We also discuss briefly the extension to linear bandits with expert advice. Then in Section 4 (respectively Section 5) we show how to use osmd to obtain a computationally efficient strategy with optimal regret for the hypercube (respectively for the Euclidean ball, up to a logarithmic factor).
Algorithms
We briefly describe here the two algorithmic templates that we shall use in this paper. First, exp2 is described in Figure 1. The general regret bound for this algorithm is the following. The proof of this result follows a standard argument, see for example [Chapter 7, Bubeck 2011].
Let be a finite set of actions. For the exp2 strategy, provided that one has
Figure 2 describes osmd in the bandit setting. Note that step (c) can be written in several equivalent ways, such as a Follow The Regularized Leader equation, or a mirror gradient descent step if is a Legendre function. When written as a gradient descent step, one usually has to project back on (using the Bregman divergence associated to ). Here the projection is implicit in the evaluation of . The following theorem states a general regret bound for osmd. Recall that the Bregman divergence with respect to is defined as , and the Legendre-Fenchel dual of is defined as . In the following, we write to denote .
Proof The proof is adapted from Kakade et al. 2010. Using Young’s inequality, one obtains
since . This shows that:
Taking into account the randomness induced by and is then an easy exercise, see for example (Bubeck 2011, Chapter 7). This theorem proves to be particularly useful when applied with a Legendre function —see (Cesa-Bianchi and Lugosi 2006, Chapter 11) for the definition of a Legendre function. Indeed, in that case is differentiable if is differentiable, and moreover the corresponding gradient mappings are inverse of each other, which gives a simple way to do computations with the Bregman divergence .
exp2 with John’s exploration
We propose here a new exploration distribution for the exp2 strategy, that allows us to derive the first regret bound for online linear optimization with bandit feedback. We use the following result from convex geometry, see (Ball 1997) for a proof.
To use this theorem, we need to perform a preprocessing of the action set as follows:
We can now assume that we are playing on , and the loss of playing when the adversary plays is . Indeed: . Moreover, note that John’s ellipsoid for is the unit ball for the inner product because .
Find the contact points and that satisfy Theorem 3 for . Note that the contact points are in , thus they are valid points to play. We say that is John’s exploration distribution.
In the following we drop the prime on . More precisely. we play on a set such that John’s ellipsoid for is the unit ball for some inner product , and the loss is given by . Thus, we also need to slightly change the algorithm to account for the fact that the loss is now an arbitrary scalar product. Step (c) in Figure 1 is modified as:
Note that this matrix is invertible, since is of full rank and , . The estimate for is given by:
Note that this is a valid estimate since and are observed quantities. Moreover, it is also clearly an unbiased estimate. We can now prove the following result.
exp2 with John’s exploration and estimate (1) satisfies, for ,
In particular with and we have that
Now we use a spectral decomposition of in an orthonormal basis for and write In particular, we have and thus:
where the last inequality follows from the fact that for any , since is included in the unit ball. Now to conclude the proof we need to lower bound the smallest eigenvalue of . Using Theorem 3, one can see that , and thus concluding the proof. Using the discretization argument of Dani et al. 2008, exp2 with John’s exploration can be used to obtain a regret of order for any compact set of action .
If is given by a finite set of points, then Grötschel et al. 1993 give a polynomial time algorithm for computing a constant factor approximation to the John’s ellipsoid (and this approximate basis will provide the same order of regret). However, if is specified by the intersection of half spaces, then Nemirovski 2007 shows that obtaining such a constant factor approximation to this ellipsoid is NP-hard in general. Here, it is possible to efficiently compute an ellipsoid where the factor of in Theorem 3 is replaced by —see (Grötschel et al. 1993), which leads to a slightly worse dependence on in the regret bound.
In special cases, we conjecture that the John’s ellipsoid may be computed efficiently, as for certain problems, there are efficient implementations of GeometricHedge that lead to optimal rates (such as shortest path problems and other settings where dynamic programming solutions exists).
2 Application to bandits with experts
One can use exp2 with John’s exploration to obtain a regret of order for this problem. Indeed, it suffices at every turn to do the preprocessing step on and to build the corresponding John’s exploration , the straightforward details are omitted.
Computationally efficient strategy for the hypercube
together with the following perturbation of a point in the interior of :
With probability , play uniformly at random from the canonical basis (with random sign). With probability , play where is drawn from a Rademacher with parameter .
It is easy to check that this perturbation is almost unbiased, indeed one has:
In particular, with and ,
Remark that the regularizer (2) used here is in the class of Legendre functions with exchangeable Hessian. More precisely, following Audibert et al. 2011, (2) can be written (up to a numerical constant) as
This type of regularizer was first studied (implicitely) by Audibert and Bubeck 2009 and Audibert and Bubeck 2010.
For the first term it is easy to see that . For the term involving the Bregman divergence, using elementary computations one obtains
To prove (4) we need to show that . In fact, we prove that this inequality is true as soon as . The fact that the property is satisfied for the pair under consideration is established at the very end of the proof.
Using a basic hyperbolic identity, and the elementary inequalities and , one obtains
which concludes the proof of (4). Now for the proof of (5) we first compute the matrix :
To conclude the proof it remains now to show that First note that the smallest eigenvalue of is larger than , and thus:
where the penultimate inequality follows from and the last inequality follows from the assumption on and .
Improved regret for the Euclidean ball
Let be a Bernoulli of parameter , let be drawn uniformly at random in , and let be Rademacher with parameter . If , then play , else play .
Note that the problem studied in this section was also specifically considered in Abernethy and Rakhlin 2009, with an emphasis on high probability bounds. In this paper the authors used the self-concordant barrier with a similar perturbation scheme to the one proposed above. They obtain suboptimal rates, but a more careful analysis (precisely slightly modifying Section V.B., step (E)) can actually yield the same rate than the one we obtain. The strength of our approach is that it is in a sense more elementary (e.g., we do not require any results from the Interior Point Methods literature), but on the other hand the result of Abernethy and Rakhlin 2009 holds with high probability (though it is not clear if it possible to get the rate with high probability).
In particular, with and ,
Proof First, it is clear that by playing on instead of , one incurs an extra regret. Second, note that is stricly convex (it is the composition of a convex and nondecreasing function with the euclidean norm), differentiable, and
The first term is clearly bounded by (we use the fact that ). For the second term we need to do a few computations (the first one follows from (9) and the fact that is Legendre):
Let such that . First note that
Thus, in order to prove (7) it remains to show that , for . In fact we shall prove that this inequality holds true as soon as This is the case for the pair under consideration, since by the triangle inequality, equations (6) and (10), and the assumption on :
Now using that , , we obtain that for such that ,
which concludes the proof of (7). Now for the proof of (8) it suffices to note that:
The first author would like to thank Csaba Szepesvári for bringing to his attention the problem of optimal regret on the Euclidean ball, as well as Alexander Rakhlin for illuminating discussions regarding sampling schemes. He also thank Ramon Van Handel, Vianney Perchet and Philippe Rigollet for stimulating discussions on this topic.