Post · 7 min read· pp. 95–97

ORF523: Mirror Descent, part I/II

In this post we are interested in minimizing a convex function ff over a compact convex set X⊂Rn\mathcal{X} \subset \mathbb{R}^n under the assumption that ff is LL-Lipschitz on X\mathcal{X} with respect to some arbitrary norm ∥⋅∥\|\cdot\| (precisely we assume that ∀x∈X,g∈∂f(x),∥g∥∗≤L\forall x \in \mathcal{X}, g \in \partial f(x), \|g\|_* \leq L). As we have seen in this post, using the correct norm to measure the variation of a function can make an enormous difference. We describe now a method invented by Nemirovski and Yudin to deal with this situation.

Let us for a moment abstract the situation a little bit and forget that we are trying to do optimization in finite dimension. We already observed that Projected Subgradient Descent works in an arbitrary Hilbert space H\mathcal{H} (think of H=ℓ2\mathcal{H} = \ell_2). However we are now interested in the more general situation where we are optimizing the function in some Banach space B\mathcal{B} (for example B=ℓ1\mathcal{B} = \ell_1). In that case the Gradient Descent strategy does not even make sense: indeed the gradients (more formally the Fréchet derivative) ∇f(x)\nabla f(x) are elements of the dual space B∗\mathcal{B}^* and thus one cannot perform the computation x−η∇f(x)x - \eta \nabla f(x) (it simply does not make sense). We did not have this problem for optimization in an Hilbert space H\mathcal{H} since by Riesz representation theorem H∗\mathcal{H}^* is isometric to H\mathcal{H}. The great insight of Nemirovski and Yudin is that one can still do a gradient descent by first mapping the point x∈Bx \in \mathcal{B} into the dual space B∗\mathcal{B}^*, then performing the gradient update in the dual space, and finally mapping back the resulting point to the primal space B\mathcal{B}. Of course the new point in the primal space might lie outside of the constraint set X⊂B\mathcal{X} \subset \mathcal{B} and thus we need a way to project back the point on the constraint set X\mathcal{X}. The rest of this lecture will make this idea more precise.

Preliminaries

We consider a non-empty convex open set D⊂Rn\mathcal{D} \subset \mathbb{R}^n such that the constraint set X\mathcal{X} is included in its closure, that is X⊂D‾\mathcal{X} \subset \overline{\mathcal{D}}, and such that X∩D≠∅\mathcal{X} \cap \mathcal{D} \neq \emptyset.

Now we consider a continuously differentiable and strictly convex function Φ\Phi defined on D\mathcal{D}. This function Φ\Phi will play the role of the mirror map between the primal and dual space. Precisely a point x∈X∩Dx \in \mathcal{X} \cap \mathcal{D} in the primal is mapped to ∇Φ(x)\nabla \Phi(x) in the ‘dual’ (note that here all points lie in Rn\mathbb{R}^n and the notions of ‘primal’ and ‘dual’ space only have an intuitive meaning). In other words the gradient update of Mirror Descent with the mirror map Φ\Phi will take the form ∇Φ(x)−η∇f(x)\nabla \Phi(x) - \eta \nabla f(x). Next this dual point needs to be mapped back to the primal space, which is always possible under the condition that ∇Φ(D)=Rn\nabla \Phi(\mathcal{D}) = \mathbb{R}^n (weaker assumptions are possible but we will not need them), that is one can find y∈Dy \in \mathcal{D} such that

∇Φ(y)=∇Φ(x)−η∇f(x).\nabla \Phi(y) = \nabla \Phi(x) - \eta \nabla f(x) .

Now this point yy might lie outside of the constraint set X\mathcal{X}. To project back on the set of constraint we use the Bregman divergence associated to Φ\Phi defined by

DΦ(x,y)=Φ(x)−Φ(y)−∇Φ(y)⊤(x−y).D_{\Phi}(x,y) = \Phi(x) - \Phi(y) - \nabla \Phi(y)^{\top} (x - y) .

The projection of y∈Dy \in \mathcal{D} onto X\mathcal{X} then takes the following form:

argminx∈X∩DDΦ(x,y).\mathrm{argmin}_{x \in \mathcal{X} \cap \mathcal{D}} D_{\Phi}(x,y) .

To ensure the existence of this projection we assume now that Φ\Phi satisfies

lim⁡x→∂D∥∇Φ(x)∥=+∞.\lim_{x \rightarrow \partial \mathcal{D}} \|\nabla \Phi(x)\| = + \infty .

With this assumption x↦DΦ(x,y)x \mapsto D_{\Phi}(x,y) is locally increasing on the boundary of D\mathcal{D}, which together with the fact that X\mathcal{X} is compact, and x↦DΦ(x,y)x \mapsto D_{\Phi}(x,y) is stricly convex implies the existence and uniqueness of the projection defined above.

We say that Φ:D→R\Phi : \mathcal{D} \rightarrow \mathbb{R} is a mirror map if it satisfies all the above assumptions.

Mirror Descent

We can now describe the Mirror Descent strategy based on a mirror map Φ\Phi. Let x1∈argminx∈X∩DΦ(x)x_1 \in \mathrm{argmin}_{x \in \mathcal{X} \cap \mathcal{D}} \Phi(x). Then for t≥1t \geq 1, let yt+1∈Dy_{t+1} \in \mathcal{D} such that

∇Φ(yt+1)=∇Φ(xt)−ηgt, where gt∈∂f(xt),\nabla \Phi(y_{t+1}) = \nabla \Phi(x_{t}) - \eta g_t, \ \text{where} \ g_t \in \partial f(x_t) ,

and

xt+1∈argminx∈X∩DDΦ(x,yt+1).x_{t+1} \in \mathrm{argmin}_{x \in \mathcal{X} \cap \mathcal{D}} D_{\Phi}(x,y_{t+1}) .

TheoremLet Φ\Phi be a mirror map. Assume also that Φ\Phi is strongly convex on X∩D\mathcal{X} \cap \mathcal{D} with respect to ∥⋅∥\|\cdot\|, that is

∀x,y∈X∩D,Φ(x)−Φ(y)≤∇Φ(x)⊤(x−y)−α2∥x−y∥2.\forall x, y \in \mathcal{X} \cap \mathcal{D}, \Phi(x) - \Phi(y) \leq \nabla \Phi(x)^{\top}(x-y) - \frac{\alpha}{2} \|x-y\|^2.

Let R2=sup⁡x∈X∩DΦ(x)−Φ(x1)R^2 = \sup_{x \in \mathcal{X} \cap \mathcal{D}} \Phi(x) - \Phi(x_1) and ff be convex and LL-Lipschitz w.r.t. ∥⋅∥\|\cdot\|, then Mirror Descent with η=RL2αt\eta = \frac{R}{L} \sqrt{\frac{2 \alpha}{t}} satisfies

f(1t∑s=1txs)−min⁡x∈Xf(x)≤RL2αt.f\bigg(\frac{1}{t} \sum_{s=1}^t x_s \bigg) - \min_{x \in \mathcal{X}} f(x) \leq RL \sqrt{\frac{2}{\alpha t}} .

*Proof:*Let x∈X∩Dx \in \mathcal{X} \cap \mathcal{D}. The claimed bounded will be obtained by taking a limit x→x∗x \rightarrow x^*. Now by convexity of ff, the definition of the Mirror Descent, and the definition of the Bregman divergence one has

\begin{eqnarray*} f(x_s) - f(x) & \leq & g_s^{\top} (x_s - x) \ & = & \frac{1}{\eta} (\nabla \Phi(x_s) - \nabla \Phi(y_{s+1})^{\top} (x_s - x) \ & = & \frac{1}{\eta} \bigg( D_{\Phi}(x, x_s) + D_{\Phi}(x_s, y_{s+1}) - D_{\Phi}(x, y_{s+1}) \bigg). \end{eqnarray*}

Now the key observation is that by writing down the first order optimality condition for xs+1x_{s+1} one obtains

(∇Φ(xs+1)−∇Φ(ys+1))⊤(xs+1−x)≤0,(\nabla \Phi(x_{s+1}) - \nabla \Phi(y_{s+1}))^{\top} (x_{s+1} - x) \leq 0 ,

which can be written equivalently as

DΦ(x,ys+1)≥DΦ(x,xs+1)+DΦ(xs+1,ys+1).D_{\Phi}(x, y_{s+1}) \geq D_{\Phi}(x, x_{s+1}) + D_{\Phi}(x_{s+1}, y_{s+1}) .

Thus the term DΦ(x,xs)−DΦ(x,xs+1)D_{\Phi}(x, x_s) - D_{\Phi}(x, x_{s+1}) will lead to a telescopic sum when summing over s=1s=1 to s=ts=t, and it remains to bound the other term as follows:

\begin{align*} & D_{\Phi}(x_s, y_{s+1}) - D_{\Phi}(x_{s+1}, y_{s+1}) \ & = \Phi(x_s) - \Phi(x_{s+1}) - \nabla \Phi(y_{s+1})^{\top} (x_{s} - x_{s+1}) \ & \leq (\nabla \Phi(x_s) - \nabla \Phi(y_{s+1}))^{\top} (x_{s} - x_{s+1}) - \frac{\alpha}{2} |x_s - x_{s+1}|^2 \ & = \eta g_s^{\top} (x_{s} - x_{s+1}) - \frac{\alpha}{2} |x_s - x_{s+1}|^2 \ & \leq \eta L |x_{s+1} - x_s| - \frac{\alpha}{2} |x_s - x_{s+1}|^2 \ & \leq \frac{(\eta L)^2}{2 \alpha}. \end{align*}

We proved

∑s=1t(f(xs)−f(x))≤DΦ(x,x1)η+ηL2t2α,\sum_{s=1}^t \bigg(f(x_s) - f(x)\bigg) \leq \frac{D_{\Phi}(x,x_1)}{\eta} + \eta \frac{L^2 t}{2 \alpha},

which concludes the proof up to trivial computation.

□\Box

Mirror Descent as a proximal method

One can rewrite Mirror Descent as follows:

\begin{eqnarray*} x_{t+1} & = & \mathrm{argmin}{x \in \mathcal{X} \cap \mathcal{D}} \ D{\Phi}(x,y_{t+1}) \ & = & \mathrm{argmin}{x \in \mathcal{X} \cap \mathcal{D}} \ \Phi(x) - \nabla \Phi(y{t+1})^{\top} x \ & = & \mathrm{argmin}{x \in \mathcal{X} \cap \mathcal{D}} \ \Phi(x) - (\nabla \Phi(x{t}) - \eta g_t)^{\top} x \ & = & \mathrm{argmin}{x \in \mathcal{X} \cap \mathcal{D}} \ \eta g_t^{\top} x + D{\Phi}(x,x_t) . \ \end{eqnarray*}

Nowadays this last expression is usually taken as the definition of Mirror Descent (see this paper by Beck and Teboulle). It gives a proximal point of view on Mirror Descent: the algorithm is trying to minimize the local linearization of the function while not moving too far away from the previous point (with distances measured via the Bregman divergence of the mirror map).

Next time we will see some of the ‘standard setups’ for Mirror Descent, that is pairs of (constraint set, mirror map) that ‘go well together’.