Alright before we start, I’m gonna call the Conditional Gradient Algorithm as Frank-Wolfe Algorithm (FW), attributing to the authors of the first ever paper on these methods viz., Marguerite Frank and Philip Wolfe in 1956! The simplex method (one of the top 10 algorithms of the 20th century, I’d say that simplex gets the first place for me) was introduced by Dantzig (I strongly encourage to read the history in the wiki page, it’s amazing!) in 1947 for solving linear optimization (LO) problems. A LO algorithm solves the following question: Let’s say we are given with the following two types of data viz., 1. A linear function in say ; 2. Legal set: A (sub)set of points that can described just using linear equations or inequalities. Now how can I pick the point in the legal set where achieves the minimum value **(or maximum value, it doesn’t matter in this case only, in general this is not true)**.

We will refer to the legal set as the “feasible” set since that’s the convention. It’s very important to assume that can be encoded only using linear equations or inequalities, such a set can be equivalently called as a polyhedron (or convex polyhedron). For example, in two dimensions, regular polygons are cool whereas these guys are not cool! To summarize the simplex algorithm in one line: Dantzig observed and proved that the point we are looking for is always one of the vertices of the polyhedron, to be precise, one of the vertices optimizes or in other words, optimal solution can be assumed to be at one of the vertices. The last line is not completely true, consider the problem of or in other words, find the maximum nonnegative number. The main problem with this example is that the feasible set, in this case, the set of nonnegative numbers is unbounded. The cool fact about the simplex method is that, when it finishes (believe me that this happens in finite time), it will either give us the point we are looking for or inform us that the problem is unbounded, that is, it can keep going in a direction and get better and better values (pretty cool or no?). Anyway, in this post we will assume that the feasible set is bounded so the answer to the LO can be found at a vertex, also known as an extreme point of the feasible set. So in principle, if you have a list of extreme points, we are done. Simplex algorithm basically computes those for us. Simplex is (and probably will be) the choice to solve LO’s even after 60 years!

To the theory folks: Simplex algorithm is not a polynomial time algorithm in the worst case, see here for an example. In fact, many (read all) attempts to fix it were in vain. But thankfully, many smart people were able to show that LO’s can be solved in polynomial time with different algorithms, eg: Karmarkar’s algorithm, Ellipsoid algorithm. But these were so inefficient to solve practical instances, so simplex was always preferred for mysterious reasons. Recently, Daniel Spielman (and coauthors) came up with a new concept called Smoothed analysis which successfully explained the performance of the Simplex algorithm. This post is not about the Simplex algorithm but I felt like these are needed to appreciate FW method and it sets up the stage very nicely. Practically, let’s say you have purchased a commercially available LO solver eg: CPLEX, Gurobi etc., then can I use it to solve say convex optimization problems? The answer is a resounding yes provided you’re 1. smart, 2. Patient, 3. give up few things. This is similar to using a laptop (internet) to watch TV shows. Smart: know to use an internet browser, a web search engine; Patient: TV cables can transmit huge amount of data much much faster than internet as of now; 3. Give up: can’t watch all the shows (obviously, right?) but can watch the popular/important shows.

FW algorithm solves the following question: Let’s say we are given with the following two types of data viz., Here is the given data: 1. a differentiable convex function ; 2. a feasible set that is convex and compact .Now how can I pick the point in where achieves the minimum value. Few comments are in order: 1. the class of optimizable functions is much bigger (a linear function is convex and differentiable); 2. is much bigger in some sense, bounded (so compact) polyhedrons (so convex) are cool, but we do **require** to be bounded and for the uninitiated, think of compact being bounded and that inequalities are always of the form or and not strict or . You can only have equations that are linear (or affine) because: is convex if and only if is affine (exercise!). Alright, here is the algorithm:

- Pick a point .
- Repeat this:
- Compute the gradient
- Compute
- Set

Picking is not actually required, since step 2. will anyway make the next iterate to be in so that’s cool. That leads us to the following amazing observation: assuming that we can compute reasonably well, we have essentially converted a nonlinear (but convex) optimization into a series of optimization problems with linear function that provably converges! If is a polyhedron, then we solve a LO at each iteration. Secondly, we will see how to choose the step sizes when we see the proof. So basically the algorithm at a very high level is impressive if step 2. can be done fast, it turns out that this is true for many problems in machine learning (I’ll post some references later).

Convergence: We will just discuss the most basic convergence proof. I should mention that lot of work has gone into making the algorithm faster and the proof more tighter in general and in specific cases. Intuitively, if is linear, then we are done in one iteration by setting , surprise yay! This suggests that we need a measure of the linearity of the function, let’s call it , the curvature constant of .

Definition:

Basically it measure how about the linear approximation is for a given function on the feasible set .

Definition: The Wolfe dual is defined as where .

Weak Duality: for all .

Proof: Take any . By the minimization in the definition of , we have that,

where the second inequality is due to the convexity of .

Denote the primal-dual gap at by defined as,

So, by weak duality we have that, . With these we prove a step wise improvement in the value of the objective function.

Stepwise improvement: For any with arbitrary step size , we have that,

Proof: Let . From the definition of ,

Rewriting the above inequality and using the definition of we have that,

.

Main convergence:

Proof: Define . Use the stepwise improvement lemma and use induction. For the induction step use the step sizes . TODO: Finish the proof with the details. .

Remarks: 1. No need to use a step size strategy as in many other algorithms because of the predetermined stepsizes; 2. convergence is pretty slow in general since it is sublinear; 3. proof goes through if you choose to use line search strategies(for example, wolfe conditions) as well; 4. Need to be small or at least bounded for the convergence to work. Next time we will see some examples.