Post · 10 min read· pp. 145–148

Guest post by Dan Garber and Elad Hazan: The Conditional Gradient Method, A Linear Convergent Algorithm – Part II/II

The goal of this post is to develop a Conditional Gradient method that converges exponentially fast while basically solving only a linear minimization problem over the domain X\mathcal{X} on each iteration.

To this end we consider the following relaxation of the problem min⁡y∈X∩Brt(xt)∇f(xt)⊤y\min_{y\in\mathcal{X}\cap\mathbb{B}_{r_t}(x_t)}\nabla{}f(x_t)^{\top}y which we term a Local Linear Oracle (LLO).

Definition 1: A LLO with parameter ρ\rho for the convex domain X\mathcal{X} is a procedure that given a point x∈Xx\in\mathcal{X}, a scalar r>0r>0 and a linear objective c∈Rnc\in\mathbb{R}^n returns a point y∈Xy\in\mathcal{X} that satisfies:

  1. ∀z∈X∩Br(x): c⊤y≤c⊤z\forall{z\in\mathcal{X}\cap\mathbb{B}_{r}(x)}:\, c^{\top}y \leq c^{\top}z

  2. ∥x−y∥2≤ρ⋅r\Vert{x - y}\Vert_2 \leq \rho\cdot{}r

Clearly by taking yty_t to be the output of such a an LLO and choosing γt\gamma_t appropriately we would get exponentially fast convergence of the form exp⁡(−O(tQρ2))\exp\left({-O\left({\frac{t}{Q\rho^2}}\right)}\right) (see Part I for more details).

In the following we show that a procedure for a LLO could be constructed for any polytope such that each call to the LLO amounts to a single linear minimization step over the domain X\mathcal{X} and we specify the parameter ρ\rho.

As a simple easy case, let us consider the very specific case in which X=Δn\mathcal{X} = \Delta_n, that is the domain is just the nn-dimensional simplex. A LLO in this case could be constructed by solving the following optimization problem,

\begin{eqnarray*} &&\min_{y\in\Delta_n}y^{\top}c \ && \textrm{s.t. } \Vert{x-y}\Vert_1 \leq \sqrt{n}r \end{eqnarray*}

where ∥x−y∥1=∑i=1n∣x(i)−y(i)∣\Vert{x-y}\Vert_1 = \sum_{i=1}^n\vert{x(i)-y(i)}\vert.

Denote by y∗y^* the optimal solution to the above problem. One can verify that since ∥x−y∗∥1≤nr\Vert{x-y^*}\Vert_1 \leq \sqrt{n}r it follows that c⊤y∗≤c⊤zc^{\top}y^* \leq c^{\top}z ∀z∈Δn∩Br(x)\forall{}z\in\Delta_n\cap\mathbb{B}_r(x). Moreover it holds that ∥y∗−x∥2≤∥y∗−x∥1≤nr\Vert{y^*-x}\Vert_2 \leq \Vert{y^*-x}\Vert_1 \leq \sqrt{n}r. Thus solving the above ℓ1\ell_1-constrained linear problem yields a LLO for the simplex with parameter ρ=n\rho = \sqrt{n}. Most importantly, the above ℓ1\ell_1-constrained problem is solvable using only a single linear minimization step over Δn\Delta_n and additional computation that is polynomial in the number of non-zeros in the input point xx. To see this observe that y∗y^* is just the outcome of taking weight of nr/2\sqrt{n}r/2 from the non-zero entries of xx that correspond to the largest (singed) entries in the vector cc and moving it entirely to a single entry that corresponds to the smallest (signed) entry in cc. This just requires to check for each non-zero entry in xx the value of the corresponding entry in cc, sorting these values and reducing weights until a total weight of nr/2\sqrt{n}r/2 has been reduced. Finding the smallest entry in cc, although a trivial operation, is just a linear minimization problem over the simplex.

What about the general case in which X\mathcal{X} is some arbitrary polytope? We would like to generalize the construction for the simplex to arbitrary polytopes.

Given the input point to the LLO x∈Xx\in\mathcal{X} let us write xx as a convex combination of vertices of the polytope, that is x=∑iλivix = \sum_i\lambda_iv_i where λi>0\lambda_i > 0, ∑iλi=1\sum_i\lambda_i=1 and each viv_i is a vertex of X\mathcal{X}. Suppose now that there exists a constant μ=μ(X)\mu = \mu(\mathcal{X}) such that given a point z∈Xz\in\mathcal{X} which satisfies ∥x−z∥2≤r\Vert{x-z}\Vert_2 \leq r, zz could be written also as a convex combination of vertices of the polytope, z=∑iγiviz=\sum_i\gamma_iv_i such that ∥λ−γ∥1≤μ⋅r\Vert{\lambda - \gamma}\Vert_1 \leq \mu\cdot{}r. Denote by mm the number of vertices of X\mathcal{X} and by {vi}i=1m\lbrace{v_i}\rbrace_{i=1}^m the set of these vertices. Consider the following optimization problem,

\begin{eqnarray*} &&\min_{\gamma\in\Delta_m}\sum_{i=1}^m\gamma_iv_i^{\top}c \ && \textrm{s.t. } \Vert{\lambda-\gamma}\Vert_1 \leq \mu\cdot{}r \end{eqnarray*}

Since the above problem is again a linear ℓ1\ell_1-constrained optimization problem over the simplex we know that it is solvable using only a single call to the linear oracle of X\mathcal{X} plus time that is polynomial in the number of non-zeros in λ\lambda (which is at most t+1t+1 after tt iterations of the algorithm and in particular does not depend on mm which may be exponential in nn). Let γ∗\gamma^* be an optimal solution to the above problem and let y∗=∑i=1mγi∗viy^* = \sum_{i=1}^m\gamma^*_iv_i. Then clearly from our definition of μ\mu we have that ∀z∈X∩Br(x)\forall{z}\in\mathcal{X}\cap\mathbb{B}_r(x) it holds that c⊤y∗≤c⊤zc^{\top}y^* \leq c^{\top}z. Also it is not hard to show that ∥x−y∗∥2≤μDr\Vert{x-y^*}\Vert_2 \leq \mu{}Dr. Thus if indeed such a constant μ\mu exists then we have a construction of a LLO with parameter ρ=μD\rho = \mu{}D that requires only a single call to a linear optimization oracle of X\mathcal{X}.

The following theorem states the convergence rate of the proposed method .

Theorem 1: Given a polytope X\mathcal{X} with parameter μ\mu as defined above, there exists an algorithm that after tt linear minimization steps over the domain X\mathcal{X} produces a point xt∈Xx_t\in\mathcal{X} such that

\begin{eqnarray*} f(x_t) - f(x^) \leq \left({f(x_0)-f(x^)}\right)e^{-\frac{1}{4Q\mu^2D^2}t} \end{eqnarray*}

The following theorem states that indeed a constant μ\mu as suggested above exists for any polyhedral set and gives its dependence on geometric proprieties of the polytope.

Theorem 2: Let X\mathcal{X} be a polytope defined as X={x∈Rn ∣ A1x=b1 A2x≤b2}\mathcal{X} = \lbrace{x\in\mathbb{R}^n \, | \, A_1x = b_1 \, A_2x \leq b_2}\rbrace such that A2∈Rm2×nA_2\in\mathbb{R}^{m_2\times{n}}. Assume that there exists parameters ψ>0,ξ>0\psi >0,\xi >0 such that:

1. for any matrix MM which consists of at most nn linearly independent rows of A2A_2 it holds that ∥M∥2≤ψ\Vert{M}\Vert_2 \leq \psi (here ∥M∥2\Vert{M}\Vert_2 denotes the spectral norm of MM).

  1. For every vertex vv of X\mathcal{X} and every row A2(i)A_2(i) of A2A_2 it holds that either A2(i)⊤v=b2(i)A_2(i)^{\top}v = b_2(i) or A2(i)⊤v≤b2(i)−ξA_2(i)^{\top}v \leq b_2(i) - \xi (that is, given a vertex and an inequality constraint, the vertex either satisfies the constraint with equality or is far from satisfying it with an equality).

Then μ≤nψξ\mu \leq \frac{\sqrt{n}\psi}{\xi}.

We now turn to point out several examples of polyhedral sets for which tailored combinatorial algorithms for linear optimization exist and for which the bound on μ\mu given in Theorem 2 is reasonable.

The simplex

The nn-dimensional simplex can be written in the form of linear constraints as Δn={x ∣ −Ix≤0⃗, 1⃗⋅x=1}\Delta_n = \lbrace{x \, | \, -\textbf{I}x \leq \vec{0}, \, \vec{1}\cdot{}x = 1}\rbrace. Its not hard to see that for the simplex it holds that ψ=ξ=1\psi = \xi = 1 and thus by Theorem 2 μ≤n\mu \leq \sqrt{n}. In particular we get that when applying the proposed algorithm to the problem min⁡x∈Δn∥x∥22\min_{x\in\Delta_n}\Vert{x}\Vert_2^2 an error ϵ\epsilon is achieved after O(nlog⁡(1/ϵ))O(n\log(1/\epsilon)) iterations which as stated here, is nearly optimal.

The flow polytope

Given a directed acyclic graph with mm edges, a source node marked ss and a target node marked tt, every path from ss to tt in the graph can be represented by its identifying vector, that is a vector in {0,1}m\lbrace{0,1}\rbrace^m in which the entries that are set to 1 correspond to edges of the path. The flow polytope of the graph is the convex-hull of all such identifying vectors of the simple paths from ss to tt. This polytope is also exactly the set of all unit s−ts-t flows in the graph if we assume that each edge has a unit flow capacity (a flow is represented here as a vector in Rm\mathbb{R}^m in which each entry is the amount of flow through the corresponding edge). For this polytope also it is not hard to see that ψ=ξ=1\psi = \xi = 1 and thus μ≤n\mu \leq \sqrt{n}. Since the flow polytope is just the convex-hull of s−ts-t paths in the graph, minimizing a linear objective over it amounts to finding a minimum weight path given weights for the edges.

The doubly-stochastic matrices polytope

Doubly-stochastic matrices are squared real-valued matrices with non-negative entries in which the sum of entries of each row and each column amounts to 1. Writing down the linear inequalities and equalities that define this polytope yields that here also μ≤n\mu \leq \sqrt{n}.

The Birkhoff Von Neumann theorem states the this polytope is the convex hull of exactly all n×nn\times{n} permutation matrices. Since a permutation matrix corresponds to a perfect matching in a fully connected bipartite graph, linear minimization over this polytope corresponds to finding a minimum weight perfect matching in a bipartite graph.

Matroid polytopes

A matroid is pair (E,I)(E,I) where EE is a set of elements and II is a set of subsets of EE called the independent sets which satisfy various interesting proprieties that resemble the concept of linear independence in vector spaces.

Matroids have been studied extensively in combinatorial optimization and a key example of a matroid is the graphical matroid in which the set EE is the set of edges of a given graph and the set II is the set of all subsets of EE which are cycle-free. In particular II in this case contains all the spanning trees of the graph. A subset S∈IS\in{I} could be represented by its identifying vector which lies in {0,1}∣E∣\lbrace{0,1}\rbrace^{\vert{E}\vert} which also gives rise to the matroid polytope which is just the convex hull of all identifying vectors of sets in II. It can be shown that the matroid polytope can be defined by exponentially many linear inequalities (exponential in ∣E∣\vert{E}\vert) which makes optimization over it a non-trivial issue since the \textit{ellipsoid method} needs to be used which is highly impractical. Moreover a separation oracle for this polytope which runs in polynomial time in ∣E∣\vert{E}\vert exits however it is also fairly complicated. On the contrary, linear optimization over matroid polytopes is very easy using a simple greedy procedure which runs in nearly linear time. It can be shown that for the matroid polytope it holds that ξ=1\xi =1 and ψ<n3/2\psi < n^{3/2} where n=∣E∣n = \vert{E}\vert. Thus μ<n3/2\mu < n^{3/2}.

An interesting application of the above method presented here, which was also our initial motivation for studying this problem, is for the setting of online convex optimization (sometimes termed online learning). Combining the above algorithm with the analysis of an online Frank-Wolfe method presented in this paper by Hazan and Kale from ICML 2012 results in an algorithm for online convex optimization with an iteration complexity that amounts to a single linear optimization step over the domain instead of projection computation which can be much more involved. This algorithm has optimal regret in terms of the game length which answers an open question by Kalai and Vempala posed in this paper from COLT 2003 and by Hazan and Kale from ICML 2012. Further applications of the method include Frank-Wolfe like algorithms for stochastic and non-smooth optimization.

We end this post with some further research questions.

The method presented in this post clearly holds only for “nicely shaped” polytopes because of the dependency of the constant μ\mu on ψ,ξ\psi, \xi. In particular if we take X\mathcal{X} to be the euclidean unit ball which could be defined by infinitely-many linear inequalities we will have that ξ=0\xi = 0 and the analysis breaks down. So, an interesting open question is

Question 3: Is there a CG method with a linear convergence rate for smooth and strongly-convex optimization over arbitrary convex sets? In particular is the rate suggested in Question 2 (see Part I) attainable?