A Linearly Convergent Conditional Gradient Algorithm with Applications to Online and Stochastic Optimization
Dan Garber, Elad Hazan
Introduction
First-order optimization methods, such as (sub)gradient-descent methods and conditional-gradient methods , are often the method of choice for coping with very large scale optimization tasks. While theoretically attaining inferior convergence rate compared to other efficient optimization algorithms (e.g. interior point methods ), modern optimization problems are often so large that using second-order information or other super-linear operations becomes practically infeasible.
The computational bottleneck of (sub)gradient descent methods in many settings is the computation of orthogonal projections onto the convex domain. This is also the case with proximal methods . Computing such projections is very efficient for simple domains such as the euclidean ball, the hypercube and the simplex but much more involved for more complicated domains, making these methods impractical for such problems in high-dimensional settings.
On the other hand, for many convex sets of interest, optimizing a linear objective over the domain could be done by a very efficient and simple combinatorial algorithm. Prominent examples for this phenomena are the matroid polytope for which there is a simple greedy algorithm for linear optimization, and the flow polytope (convex hull of all paths in a directed acyclic graph) for which linear optimization amounts to finding a minimum-weight path . Other important examples include the set of rotations for which linear optimization is very efficient using Wahba’s algorithm , and the bounded cone of positive semidefinite matrices, for which linear optimization amounts to a leading eigenvector computation whereas projections require cimputing the singular value decomposition.
This phenomena motivates the study of optimization algorithms that require only linear optimization steps over the domain and their linear oracle complexity - that is, the number of linear objectives that the algorithm needs to minimize over the domain in order to achieve a desired accuracy with respect to the optimization objective.
The main contribution of this work is a conditional gradient (aka Frank-Wolfe) algorithm for oflline smooth and strongly convex optimization over polyhedral sets that requires only a single linear optimization step over the domain on each iteration and enjoys a linear convergence rate, an exponential improvement over previous results in this setting.
We also consider the setting of online convex optimization . In this setting, a decision maker is iteratively required to choose a point in a fixed convex decision set. After choosing his point, an adversary chooses some convex function and the decision maker incurs a loss that is equal to the function evaluated at the point chosen. In this adversarial setting there is no hope to play as well as an optimal offline algorithm that has the benefit of hindsight. Instead the standard benchmark is an optimal naive offline algorithm that has the benefit of hindsight but must play the same fixed point on each round. The difference between the cumulative loss of the decision maker and that of of this offline benchmark is known as regret. Based on our new linearly converging conditional gradient algorithm, we give algorithms for online convex optimization over polyhedral sets that perform only a single linear optimization step over the domain on each iteration while enjoying optimal regret guarantees in terms of the game length, answering an open question of Kalai and Vempala , and Hazan and Kale . Using existing techniques we give an extension of this algorithm to the partial information setting which obtains the best known regret bound for this setting.
Finally, our online algorithms also imply conditional gradient-like algorithms for offline non-smooth convex optimization and stochastic convex optimization that enjoys the same convergence rates as projected (sub)gradient methods in terms of the accuracy parameter (albeit different dependency on constants and the dimension), but replacing the projection step of (sub)gradient methods with a single linear optimization step, again improving over the previous state of the art in these settings.
Conditional gradient methods for offline minimization of convex and smooth functions date back to the work of Frank and Wolfe which presented a method for smooth convex optimization over polyhedral sets whose iteration complexity amounts to a single linear optimization step over the convex domain. More recent works of Clarkson , Hazan and Jaggi consider the conditional gradient method for the cases of smooth convex optimization over the simplex, semidefinite cone and arbitrary convex and compact sets respectively. Despite its relatively slow convergence rate - additive error of the order after iterations, the benefit of the method is twofold: i) its computational simplicity - each iteration is comprised of optimizing a linear objective over the set and ii) it is known to produce sparse solutions (for the simplex this means only a few non zeros entries, for the semidefinite cone this means that the solution has low rank). Due to these two properties, conditional gradient methods have attracted much attention in the machine learning community in recent years, see .
It is known that in general the convergence rate is also optimal for this method without further assumptions, as shown in . In case the objective function is both smooth and strongly convex, there exist extensions of the basic method which achieve faster rates under various assumptions. One such extension of the conditional-gradient algorithm with linear convergence rate was presented by Migdalas , however the algorithm requires to solve a regularized linear problem on each iteration which is computationally equivalent to computing projections. This is also the case with the algorithm for smooth and strongly convex optimization in the recent work of Lan . In case the convex set is a polytope, GuéLat and Marcotte has shown that the algorithm of Frank and Wolfe converges in linear rate assuming that the optimal point in the polytope is bounded away from the boundary. The convergence rate is proportional to a quadratic of the distance of the optimal point from the boundary. We note that in case the optimum lies in the interior of the convex domain, then the problem is in fact an unconstrained convex optimization problem and solvable via much more efficient methods. GuéLat and Marcotte also gave an improved algorithm based on the concept of “away steps” with a linear convergence rate that holds under weaker conditions, however this linear rate still depends on the location of the optimum with respect to the boundary of the set which may result in an arbitrarily bad convergence rate. We note that the suggestion of using “away steps” to accelerate the convergence of the FW algorithm for strongly convex objectives was already made by Wolfe himself in . Beck and Taboule gave a linearly converging conditional gradient algorithm for solving convex linear systems, but as in , their convergence rate depends on the distance of the optimum from the boundary of the set. Here we emphasize that in this work we do not make any assumptions on the location of the optimum in the convex domain and our convergence rates are independent of it.
Ahipasaoglu, Sun and Todd gave a variant of the conditional gradient algorithm with away steps that achieves a linear convergence rate for the specific case in which the convex domain is the unit simplex. Their work also does not specify the precise dependency of the convergence rate on parameters of the problem such as the dimension, which is of great importance. In this work we derive, as an illustrating example, a linearly converging algorithm for the unit simplex. Our generalization to arbitrary polytopes is highly non-trivial and is indeed the technical heart of this work. We also provide convergence rates with detailed dependencies on natural parameters of the problem.
After our work first appeared , Jaggi and Lacoste-Julien presented a refined analysis of a variant of the conditional gradient algorithm with away steps from that achieves a linear convergence rate without the assumption on the location of the optimum as in the original work of . Their algorithm is also shown to be affine invariant. Their convergence rate however is not given explicitly and its dependency on the dimension or other natural parameters of the problem is not clear.
The two closest works to ours are those of Kalai and Vempala and Hazan and Kale , both present projection-free algorithms for online convex optimization in which the only optimization carried out by the algorithms on each iteration is the minimization of a single linear objective over the decision set. gives a random algorithm for the online setting in the special case in which all loss functions are linear, also known as online linear optimization. In this setting their algorithm achieves regret of which is optimal . On iteration their algorithm plays a point in the decision set that minimizes the cumulative loss on all previous iterations plus a vector whose entries are independent random variables. The work of introduces algorithms for stochastic and online optimization which are based on ideas similar to ours - using the conditional gradient update step to approximate the steps a meta-algorithm for online convex optimization known as Regularized Follow the Leader (RFTL) . For stochastic optimization, in case that all loss functions are smooth they achieve an optimal convergence rate of , however for non-smooth stochastic optimization they only get convergence rate of and for the full adversarial setting of online convex optimization they get suboptimal regret that scales like .
In a recent work, Lan showed how to apply the conditional gradient algorithm to offline non-smooth optimization via a well known smoothing technique (also employed in ). His analysis shows that an additive error is guaranteed after a total of linear optimization steps over the domain and calls to the subgradient oracle of the objective. Our algorithm for the non-smooth setting guarantees an additive error after linear optimization steps over the domain and calls to the subgradient oracle.
Also relevant to our work is the very recent work of Harchaoui, Juditsky and Nemirovski who give methods for i) minimizing a norm over the intersection of a cone and the level set of a convex smooth function and ii) minimizing the sum of a convex smooth function and a multiple of a norm over a cone. Their algorithms are extensions of the conditional gradient method that assume the availability of a stronger oracle that can minimize a linear objective over the intersection of the cone and a unit ball induced by the norm of interest. They present several problems of interest for which such an oracle could be implemented very efficiently, however in general such an oracle could be computationally much less efficient than the linear oracle required by standard conditional gradient methods.
2 Paper Structure
The rest of the paper is organized as follows. In section 2 we give preliminaries, including notation and definitions that will be used throughout this work, overview of the conditional gradient method and describe the settings of online convex optimization and stochastic optimization. In section 3 we give an informal statement of the results presented in this work. In section 4 we present our main result - a new linearly convergent conditional gradient algorithm for offline smooth and strongly convex optimization over polyhedral sets. In section 5 we present and analyse our main new algorithmic machinery which we refer to as a local linear optimization oracle. In section 6 we present and analyze our algorithms for online and stochastic optimization, and finally in section 7 we discuss a lower bound for the problem of minimizing a smooth and strongly convex function using only linear optimization steps - showing that the oracle complexity of our new algorithm presented in section 4 is nearly optimal.
Preliminaries
The above definition together with first order optimality conditions imply that for a -strongly convex , if is the unique minimizer of over , then for all it holds that
Note that a sufficient condition for a twice-differential function to be -smooth and -strongly convex over a domain is that
Let be a polytope described by linear equations and inequalities, i.e.,
The conditional gradient method is a simple algorithm for minimizing a smooth and convex function over a convex set - which in this work we assume to be a polytope. The appeal of the method is that it is a first order feasible point method, i.e., the iterates always lie inside the convex set and thus no projections are needed. Further more, the update step on each iteration simply requires to minimize a linear objective over the set. The basic algorithm is given below.
Let denote the unique minimizer of over that is, . The convergence of algorithm 1 is due to the following simple observations.
Thus for an appropriate choice for the sequence of step sizes , the approximation error strictly decreases on each iteration. This leads to the following theorem (for a proof see for instance the modern survey of ).
There is an explicit choice for the sequence of step sizes such that for every , the iterate of Algorithm 1 satisfies that .
The relatively slow convergence of the conditional gradient algorithm is due to the term in Eq. (2), that may remain as large as the diameter of while the term keeps on shrinking, that forces choosing values of that decrease like in order to guarantee convergence .
In this case the term in Eq. (2) will be of the same magnitude as (or even smaller) and as observable in Eq. (2), a linear convergence rate will follow.
However, solving Problem (3) is potentially much more difficult than solving the original linear problem , and is not straight-forward solvable using the linear optimization oracle of .
The local linear optimization oracle (LLOO) relaxes Problem (3) by solving the linear problem on a larger set, but one that still has a diameter that is not much larger than . Our main contribution is in showing that for a polytope , a LLOO can be constructed such that the parameter depends only on the dimension and the quantity . Moreover, the algorithmic construction requires only a single call to the original linear optimization oracle . Hence, the complexity per iteration, in terms of the number of calls to the linear optimization oracle , remains the same as the original conditional gradient algorithm (Algorithm 1).
2 Online convex optimization and its application to stochastic and offline optimization
The problem of online convex optimization (OCO) takes the form of the following repeated game. A decision maker is required on each iteration of the game to choose a point , where is a fixed convex set. After choosing the point , a convex loss function is reveled, and the decision maker incurs loss . The emphasis in this model is that the loss function on time may be chosen completely arbitrarily and even in an adversarial manner given the current and past decisions of the decision maker. In the full information setting, after making his decision on time , the decision maker gets full knowledge of the function . In the partial information setting (bandit) the decision maker only learns the value and does not gain any other knowledge about .
The standard goal in this setting is to have overall loss which is not much larger than that of the best fixed point in , in hindsight. Formally the goal is to minimize a quantity known has regret which is given by
In certain cases, such as in the bandit setting, the decision maker must use randomness in order to make his decisions. In this case we consider the expected regret, where the expectation is taken over the randomness in the algorithm of the decision maker.
In the full information setting and for general convex losses the optimal regret bound attainable scales like where is the length of the game. In the case that all loss functions are strongly convex, the optimal regret bound attainable scales like .
A simple algorithm that attains optimal regret of for general convex losses is known as the Regularized Follows The Leader algorithm (RFTL) . On time the algorithm predicts according to the following rule.
Where is a parameter known as the learning rate and is a strongly convex function known as the regularization. From an offline optimization point of view, achieving low regret is thus equivalent to minimizing a single strongly-convex objective over the feasible set per iteration. In fact, with the popular choice , we get that Problem (4) is just the minimization of a function that is both smooth and strongly-convex over the feasible domain , and is in fact equivalent to computing an Euclidean projection onto .
In case of strongly-convex losses a slight variant of Eq. (4), which also takes the form of minimizing a smooth and strongly convex function when choosing , guarantees optimal regret.
In the partial information setting the RFTL rule (4) with the algorithmic conversion of the bandit problem to that of the full information problem established in , yields an algorithm with regret , which is the best to date.
Our algorithms for online optimization are based on iteratively approximating the RFTL objective in Eq. (4) using our new linearly convergent CG algorithm for smooth and strongly convex optimization, thus replacing the projection step in (4) (in case ) with a single linear optimization step over the domain.
We note that while the update rule in Eq. (4) uses the gradients of the loss functions which are denoted by , it is in fact not required to assume that the loss functions are differentiable everywhere in the domain. It suffices to assume that the loss functions only have a sub-gradient everywhere in the domain, making the algorithm suitable also for non-smooth settings. Throughout this work we do not differentiate between these two cases and the notation should be understood as a gradient of at the point in case is differentiable and as a sub-gradient of in case only has a sub-gradient in this point.
2.2 Stochastic optimization
In stochastic optimization the goal is to minimize a convex function given by
where is a fixed, yet unknown distribution over convex functions. In this setting we don’t have direct access to the function , instead we assume to have a stochastic oracle for that when queried, returns a function sampled from , independently of previous samples.
The general setting of online convex optimization is harder than stochastic optimization in the sense that an algorithm for OCO could be directly applied to stochastic optimization as follows. We simulate an online game of rounds for the OCO algorithm, where on each iteration the loss function is generated by a query to the stochastic oracle of . Let us denote by an upper bound on the regret of the online algorithm with respect to any sample of functions from the distribution . Thus, given such a sample - , it holds that
Denoting we thus in particular have that
Denoting we have by convexity of that
Thus the same regret rates that are attainable for online convex optimization hold as convergence rates, or sample complexity, for stochastic convex optimization. We note that using standard concentration results for martingales, one can also derive error bounds that hold with high probability and not only in expectation, but these are beyond the scope of this paper. We refer the interested reader to for more details.
2.3 Non-smooth optimization
As in stochastic optimization (see previous subsection), an algorithm for OCO also implies an algorithm for offline convex optimization. Thus a conditional gradient-like algorithm for OCO implies a conditional gradient-like algorithm for non-smooth convex optimization. This is in contrast to the original conditional gradient method which is suitable for smooth optimization only.
Applying an OCO algorithm to the minimization of a, potentially non-smooth, convex function over a feasible convex set , is as follows. As in the previous subsection, we simulate a game of length for the OCO algorithm in which the loss function on each round is just the function to minimize . As in the stochastic case, denoting , i.e., the average of iterates returned by the online algorithm, we have that
where the first inequality follows from convexity of . Hence the regret bound immediately translates to a convergence rate for offline optimization problem.
Our Results
Given a -smooth, -strongly convex function we present an iterative algorithm that after iterations returns a point such that
where and satisfies that . Each iteration is comprised of a single call to the linear optimization oracle of and a single evaluation of a gradient vector of .
As we show in section 7, the above convergence rate is nearly tight in certain settings for a conditional gradient-like method.
An algorithm for OCO with arbitrary convex loss functions whose sequence of predictions - satisfies that
An algorithm for OCO with -strongly convex loss functions whose sequence of predictions - satisfies that
This bound is also optimal in terms of .
A randomized algorithm for the partial information setting whose sequence of predictions - satisfies that
Here we assume for simplicity that is full-dimensional and we denote by the size of the largest Euclidean ball enclosed in it. This bound matches the current state-of-the-art in this setting in terms of .
If is a distribution over arbitrary convex functions then
If is a distribution over -strongly convex functions then
As described in Subsection 2.2.3, the above rates (without the expectation) hold also for non-smooth convex and strongly convex optimization.
A Linearly Convergent Conditional Gradient Algorithm for Smooth and Strongly Convex Optimization over Polyhedral Sets
In this section we consider the following offline optimization problem.
where we assume that is -smooth and -strongly convex, and is a polytope. We further assume that we have a LLOO oracle for - , as defined in Subsection 2.1 . In section 5 we show that given an oracle for linear minimization over , such a LLOO oracle could be efficiently constructed.
Algorithm 2, instanciated with the LLOO implementation given in Algorithm 4 (for which , see Section 5), satisfies that for each , the iterate is feasible () and
where . Furthermore, after iterations the algorithm has made a total of calls to the linear optimization oracle of and gradient vector evaluations of .
The theorem is a consequence of the following Lemma 2 and Lemma 8 (see Section 5). Lemma 2 proves the convergence rate of the algorithm given a black-box access to a LLOO with some arbitrary parameter . Lemma 8 then gives an explicit construction of a LLOO with parameter that requires only a single call to the linear optimization oracle per invocation.
We now turn to analyze the convergence rate of Algorithm 2. The following lemma is of general interest and will be also used in the section on online optimization.
Assume that is -smooth and let . Assume that on iteration it holds that , and let , where is the output of a LLOO with parameter with respect to the input , and let . Then it holds that
By the -smoothness of and the definition of we have that
Since , by the definition of the oracle it holds that i) and ii) . Thus we have that
Using the convexity of and subtracting from both sides we have,
[Convergence of Algorithm 2] Denote . Then for all it holds that
The proof is by a simple induction. For we have by definition that .
Now assume that the lemma holds for . This implies via the the strong convexity of (see Eq. 1) that
where the second inequality follows from the induction hypothesis.
By plugging the value of from Algorithm 2 and using we have that
Construction of a Local Linear Optimization Oracle
In this section we present an efficient construction of a Local Linear Optimization Oracle for a polytope , given only an oracle for minimizing a linear objective over .
for some . Let us denote by an optimal solution to Problem (3) when we set . Then is the output of a LLOO with parameter for . That is,
Problem (3) with parameter is solved optimally by the following simple algorithm.
The algorithm basically modifies the input point by moving the largest amount of mass which will not violate the constraint from the entries that correspond to the largest (signed) entries in the objective to the single entry that corresponds to the smallest (signed) entry in the objective .
In Algorithm 3, we fix the value of to to correspond to Lemma 3. However, as the following lemma shows, the algorithm finds an optimal solution to Problem (3) for any .
Fix . Algorithm 3 finds an optimal solution to Problem (3) with parameter .
Fix an optimal solution to Problem (3). We can write in the following way:
It is now a simple observation that the vectors computed in Algorithm 3 are exactly solutions to the optimization problems
Two important observations regarding the implementation of Algorithm 3 are that i) the running time of the algorithm does not explicitly depends on the dimension but rather on the number of non-zero entries in and the time to compute the index and ii) computing the index is equivalent to finding a vertex of that minimizes the dot product with the objective , and hence is equivalent to a single call to the linear optimization oracle of .
2 Construction of a Local Linear Optimization Oracle for an Arbitrary Polytope
Thus, following our approach for the probabilistic simplex, it is tempting to consider as the output of a LLOO for , the point , where is an optimal solution to the following optimization problem:
where is a mapping of the LLOO input point - to and is a positive scalar. Note that since , the solution is always a feasible point of the polytope .
The main question is whether we can find a value of such that a solution to Problem (5.2) indeed corresponds to the output of a LLOO for with a reasonable parameter , as in the case of the simplex.
Our implementation of a LLOO for an arbitrary polytope based on solving Problem (5.2) and outputting the corresponding point in is given below (Algorithm 4). The algorithm is a clear extension of Algorithm 3 for the simplex, and basically moves mass from vertices in the support of the input point (that is, vertices with non-zero weight in the convex decomposition of ) which have large (signed) product with the linear objective , to a single vertex (possibly not in the support of the input point ) which minimizes the dot product with . The latter is just the result of calling the linear optimization oracle of the polytope with respect to the linear objective .
Note that the algorithm assumes that the input point is given in the form of a convex combination of vertices of the polytope. Later on we show that maintaining such a decomposition of the input point is straightforward and efficient when the LLOO is used with any of the optimization algorithms considered in this work. Note also that in the algorithm we implicitly fix the value in Problem (5.2) to (recall that are geometric quantities of the polytope at hand, defined formally in Section 2), which is justified by our analysis.
It is important to note that, as in the case of Algorithm 3 for the simplex, the running time of Algorithm 4 does not explicitly depends on the number of vertices , but only on the number of non-zeros in the vector (the mapping of the input point to ), the natural dimension of - and the time to complete a single call to the linear optimization oracle of the polytope - . In particular, observe that in the computations in lines 3-10 of the algorithm, one needs to consider only the vertices for which .
We turn to prove that there is indeed a choice for the parameter in Problem (5.2) (the one used to set in Algorithm 4) such that Algorithm 4 is indeed a LLOO for . Towards this end, the main step is to show that there exists a constant , such that given a query point in the form where , and a point , there exists a mapping of to , i.e., a point satisfying , such that
This fact is a consequence of Lemmas 5, 7. Lemma 5 considers a certain way to map a point to which has useful properties. Lemma 7 then builds on these properties to give a consequence in the spirit of Eq. (17) by considering the projection of the vector onto a certain set of constraints defining the polytope .
Let and such that , and let . Write for values and , such that the sum is minimized. Then, for all for which , there exists an index such that and .
By way of contradiction, suppose the lemma is false and let such that and it holds that if then . Fixing some we consider two cases. If then we have that
On the other hand, if , then by the assumption we have that . Denote
and note that and .
Combining Eq. (18), (19) for all , we have that
Since are both feasible, it also holds that and thus we arrive at the conclusion that
In Lemma 7 we are going to examine the projection of a vector onto a set of constraints of satisfied by a certain feasible point . However, we would like that this set will not be too large. The following simple lemma shows that it suffices to consider a basis for the set of constraints satisfied by .
Let and denote and let be such that the set is a basis for the set . Then given a point , if there exists such that , then there exists such that .
Fix and let be as in the lemma. Assume by way of contradiction that there exists and such that and for any it holds that . Since is a linear combination of vectors from , there exists scalars , not all zeros, such that . From our assumption on it follows that
However, since for all it holds that , we have that
Thus we arrive at a contradiction and the lemma follows. ∎
Let and such that , and let . Write , where and , such that the sum is minimized (as in Lemma 5). Then it holds that
As a consequence, could be mapped to a point such that
Combining Lemma 5 and Lemma 6, we have that for all such that there exists such that . Hence,
Thus we conclude that . ∎
The following lemma establishes that Algorithm 4 is indeed a local linear optimization oracle for with parameter ( is a geometric parameter of that was formally defined in Section 2).
Let be the point returned by algorithm 4 when called with the input , , . Then the following conditions hold:
Condition 1. holds since is clearly given as a convex combination of points in . For conditions 2,3, note that we can write the returned point as , where is as in Algorithm 4, for all , and . Thus we have that
Algorithm 4 assumes that the input point is given by its convex decomposition into vertices. All optimization algorithms in this work use Algorithm 4 in the following way: they give as input to Algrotihm 4 the current feasible iterate , and then given the output of Algorithm 4, denoted in all algorithms by , they produce the next iterate by taking a convex combination , for some parameter . Note that Algorithm 4 implicitly produces the convex decomposition of the returned point and thus, given the convex decomposition of , updating it to the convex decomposition of is straightforward.
Moreover, denoting the set of vertices that forms the convex decomposition of (i.e. the vertices with non-zero weight in the decomposition), it is clear from Algorithm 4 and the discussion above that , since at most a single vertex ( in Algorithm 4) is added to the decomposition.
Algorithm 4 admits an implementation such that each invocation of the algorithm requires a single call to the oracle and additional time, where is the overall number of calls to the algorithm.
Note that we can get rid of the linear dependence on in the bound in lemma 9 by decomposing the iterate into a convex sum of fewer vertices in case the number of vertices in the current decomposition - becomes too large. From Carathéodory’s theorem we know that we can find such a decomposition with at most vertices. Moreover, for many polytopes of interest (such as the flow polytope), there is an even more efficient algorithm for computing such a decomposition (however these are beyond the scope of this paper). It follows from previous discussions that we will need to invoke such a decomposition procedure only every iterations which will keep the amortized iteration complexity low.
Assume that on every invocation of the LLOO algorithm, the input to the LLOO is lower-bounded by some . Then there exists an implementation for a LLOO with parameter , such that the amortized linear optimization oracle complexity per iteration is 2, and the additional amortized complexity per iteration is .
The proof follows the same lines as that of Lemma 9.
We note that in our online algorithms the lower bound in Lemma 10 will always satisfy: , where is the overall length of the game, and thus the running time per iteration will depend only logarithmically on .
It is also worth mentioning that we can significantly accelerate Algorithm 4 by using parallel computations. Note that all dot product computations in line 3 of the algorithm (recall again that in practice we need to carry out these computations only for vertices for which ) are independent of each other and could be computed in parallel.
Online and Stochastic Convex Optimization
In this section we present algorithms for the general setting of online convex optimization that are suitable when the decision set is a polytope. We present regret bounds for both general convex losses and for strongly convex losses. These regret bounds imply convergence rates for stochastic convex optimization and non-smooth convex optimization over polyhedral sets as described in subsections 2.2.2, 2.2.3. In the sequel we also present an algorithm for the bandit setting.
Our algorithm for online convex optimization in the full information setting is given below (Algorithm 5) . The algorithm is based on the ideas presented in Subsection 2.2.1, i.e., iteratively approximating the steps of a regret-optimal algorithm known as Regularize Follow the Leader using the update step of our Algorithm 2, which amounts to a single call a local linear optimization oracle (which in turn, given the construction presented in Section 5, amounts to a single call to the linear optimization oracle of the polytope).
For ease of presentation, we use a standard assumption that the algorithm has knowledge on several parameters of the problem including the length of the game - , an upper bound on the magnitude of the gradients of the observed loss functions - , and a lower bound on the strong convexity of the observed functions - (which may also be zero) in case one of these bounds is unknown, one can use standard techniques such as the well known “doubling trick”, which increases the overall regret only by a log factor. .
We prove the following two main theorems.
Denote and recall that we have a construction for a local linear optimization oracle with parameter for the decision set .
In case Algorithm 5 is instanciated with the LLOO described in Section 5 (Algorithm 4), then for arbitrary convex loss fundtions, the regret of the algorithm is .
In case Algorithm 5 is instanciated with the LLOO described in Section 5 (Algorithm 4), then for -strongly convex loss functions, the regret of the algorithm is .
Applying the above two theorems with the reduction of stochastic optimization to online optimization described in Subsection 2.2.2, yields the following two corollaries.
In the following two subsections we prove Theorems 3, 4.
In this subsection we analyze the regret of Algorithm 5 in case the observed loss functions are all convex but not necessarily strongly convex, that is, .
Consider the sequence of points such that for all , , where for all , is as defined in Algorithm 5 (for and for we define . The regret analysis is comprised of two parts. Part 1 shows that on any time , the point played by Algorithm 5 is close to the corresponding point . Thus by a Lipschitz argument, the cumulative loss of the sequence is close to that of . Part 2 then follows the analysis of an algorithm known as Regularized Follow the Leader (see ) to claim that the sequence of points achieves low regret with respect to the sequence of observed loss functions.
Then, the sequence of points produced by Algorithm 5 satisfies that for all , .
Observe that on any time it holds that the function is -strongly convex and -smooth.
We prove by induction that for all it holds that . By the strong-convexity of (Eq. 1) this yields that .
The proof is by induction on . For it holds that and thus the claim holds. Assume now that for time it holds that . By the strong-convexity of and the induction hypothesis we have that
By the definition of and the optimality of we have that
and thus again by the strong convexity of we have that
Using again the induction hypothesis, we have that
Setting , we can apply Lemma 1 with respect to and get,
Setting we get that
Finally, plugging gives
We also need the following lemma, originally proved in , that states that playing on each time the point in that minimizes the loss up to time (including), yields zero regret. A proof is given in the appendix for completeness.
Let be a sequence of loss functions and let be a sequence of points such that for all , . Then it holds that
Rearranging and using we have that
Fix . Since is -strongly convex, using Eq. (1) we have that
where the last inequality follows from the optimality of with respect to and the Cauchy-Schwartz inequality.
Combining Eq. (26) and Eq. (27) for all via the Cauchy-Schwartz inequality we have that
Rearranging and using the Cauchy-Schwartz inequality again we have that
Fix . Applying Lemma 11 with respect to our choice of and setting accordingly (and recalling that ), we have that
where the first inequality follows from convexity of each . The theorem now follows since according to our results from Section 5 we can assume that .
2 Analysis for strongly convex losses
Here we analyze the regret of Algorithm 5 in case all loss function are at least -strongly convex for some . The analysis goes along the same lines as the analysis for the non-strongly convex case, but requires a few modifications.
As in the previous subsection we define the sequence such that , where for is defined as in Algorithm 5 (for ) and in addition we define .
where the last inequality uses the triangle inequality and the upper bounds for and respectively. Since the above inequality is symmetric in , the lemma follows. ∎
The following Lemma is analogues to Lemma 11 for the non-strongly convex case.
Let , and . Let be a sequence of positive reals such that . Let
Then, for any it holds that .
The proof is similar to that of Lemma 11. Observe that on any time it holds that the function is -strongly convex and -smooth.
We prove that for any time it holds that , which by the strong convexity of (see Eq. (1)) implies that .
Clearly for time the claim holds since . Assume that on time it holds that . By the strong convexity of we again have that
where the first inequality follows from the optimality of with respect to and the second inequality follows from Lemma 13.
By the strong convexity of we thus have that
Combining Eq. (28), (29) via the triangle inequality we have that
where the second inequality holds since .
Using the induction hypothesis we have that
where the inequality follows from Eq. (30) and Lemma 13.
Setting to equal the RHS of Eq. (30), and applying Lemma 1 with respect to we have that
where the second inequality follows from Eq. (31), the value of , and using to upper bound . The rest of the inequalities follows from simple algebraic manipulations.
Setting we have that
Plugging in our choice we have that
Finally, setting we have that
Using the upper bound and plugging the value of in Algorithm 5 we have that
where the first inequality follows from the optimality of with respect to , and the second inequality follows from Lemma 13 and using . Since is -strongly convex, this implies via Eq. (1) that
Applying Lemma 14 with the triangle inequality we have that
where the equality follows since and by definition .
Plugging the above for all into Eq. (32) we have that
The theorem now follows from the observation that since for all , is -strongly convex it holds that
3 Bandit Algorithm
In this section we give an online algorithm for the partial information setting (bandits). The derivation is basically straightforward using our algorithm for the full information setting (Algorithm 5) and the technique of .
We assume that the loss function chosen by the adversary on time is chosen with knowledge of the history of the game but without any knowledge of possible randomization used by the decision maker on time to produce his prediction. We further assume without loss of generality that for each function it holds that .
Note that since we assume that the gradients of each are bounded in magnitude by , it holds that is -Lipschitz. This follows since,
Also, since and we have that
The regret analysis of Algorithm 6 closely follows the analysis in , but instead of using Zinkevich’s algorithm for the reduction from bandit feedback to full feedback, we use our Algorithm 5.
For a proof of the following Lemma see Lemma 2.1 in .
In order to derive the regret bound for Algorithm 6 we need the following technical lemma.
For all , let be as in Lemma 15. It holds that
Using the Cauchy-Schwartz inequality and the bound we have that
where the last equality follows since according to Lemma 15, the inner expectation is zero.
Plugging Eq. (37) into Eq. (36) for all we have that
where we have used Eq. (34) in the last inequality.
Plugging Eq. (38) into Eq. (35) we finally have that
For it holds that the sequence of points produced by Algorithm 6 is feasible and satisfies
where the expectation is with respect to the randomness in choosing the vectors .
For , denote . Since , it holds that
Plugging in Lemma 16 and taking expectation we have that
Note that since is a convex function, so is and thus we have that
Fix . Note that since is -Lipschitz (see Eq. (33)), for all it holds that
Plugging Eq. (41) for all into Eq. (40) we have that
Since for all , , using the Lipschits property of we have that
Using again Eq. (33), (34) and the fact that , , we have that for all and , . Thus we have that
Now, setting as in Algorithm 6, and recalling that , we have that
Finally, setting we have that
Lower bound
In this section we revisit our main result from Section 4, that is, our linearly converging algorithm for smooth and strongly convex optimization over polytopes. We show that in certain settings our convergence rate (i.e., number of calls to the linear optimization oracle to reach a certain approximation error) is in fact nearly tight and cannot be improved beyond constants and logarithmic terms for conditional gradient-like algorithms, i.e., algorithms that can request a vertex of the polytope that minimizes the dot product with a certain linear objective and take linear combinations of these vertices. Similar arguments appear in .
Towards this end, consider the following optimization problem:
It thus follows that in order for a conditional gradient-like method to solve Problem (42) up to an error of at most , it requires calls to the linear optimization oracle of .
Acknowledgments.
The authors would like to thank Arkadi Nemirovski for numerous helpful comments on an earlier draft of this paper.
References
Appendix A Proof of Lemma 12
For clarity, we first restate the lemma and then prove it.
Let be a sequence of loss functions and let be a sequence of points such that for all , . Then it holds that
We prove by induction that for any it holds that
For the base case the claim clearly holds since . Assume now that the claim holds for some . On time it holds that
where the first inequality follows from the induction hypothesis and the third one from the optimality of . ∎