Post · 4 min read· pp. 70–72

ORF523: Nesterov’s Accelerated Gradient Descent

In this lecture we consider the same setting than in the previous post (that is we want to minimize a smooth convex function over Rn\mathbb{R}^n). Previously we saw that the plain Gradient Descent algorithm has a rate of convergence of order 1/t1/t after tt steps, while the lower bound that we proved is of order 1/t21/t^2.

We present now a beautiful algorithm due to Nesterov, called Nesterov’s Accelerated Gradient Descent, which attains a rate of order 1/t21/t^2. First we define the following sequences:

λ0=0, λs=1+1+4λs−122, and γs=1−λsλs+1.\lambda_0 = 0, \ \lambda_{s} = \frac{1 + \sqrt{1+ 4 \lambda_{s-1}^2}}{2}, \ \text{and} \ \gamma_s = \frac{1 - \lambda_s}{\lambda_{s+1}}.

(Note that γs≤0\gamma_s \leq 0.) Now the algorithm is simply defined by the following equations, with an arbitrary initial point x1=y1x_1 = y_1,

\begin{eqnarray*} y_{s+1} & = & x_s - \frac{1}{\beta} \nabla f(x_s) , \ x_{s+1} & = & (1 - \gamma_s) y_{s+1} + \gamma_s y_s . \end{eqnarray*}

In other words, Nesterov’s Accelerated Gradient Descent performs a simple step of gradient descent to go from xsx_s to ys+1y_{s+1}, and then it ‘slides’ a little bit further than ys+1y_{s+1} in the direction given by the previous point ysy_s.

The intuition behind the algorithm is quite difficult to grasp, and unfortunately the analysis will not be very enlightening either. Nonetheless Nesterov’s Accelerated Gradient is an optimal method (in terms of oracle complexity) for smooth convex optimization, as shown by the following theorem. [Added in September 2015: we now have a simple geometric explanation of the phenomenon of acceleration, see this post.]

Theorem (Nesterov 1983) Let ff be a convex and β\beta-smooth function, then Nesterov’s Accelerated Gradient Descent satisfies

f(yt)−f(x∗)≤2β∥x1−x∗∥2t2.f(y_t) - f(x^*) \leq \frac{2 \beta \|x_1 - x^*\|^2}{t^2} .

We follow here the proof by Beck and Teboulle from the paper ‘A fast iterative shrinkage-thresholding algorithm for linear inverse problems‘.

Proof: We start with the following observation, that makes use of Lemma 1 and Lemma 2 from the previous lecture: let x,y∈Rnx, y \in \R^n, then

\begin{align*} & f\left(x - \frac{1}{\beta} \nabla f(x) \right) - f(y) \ & \leq f\left(x - \frac{1}{\beta} \nabla f(x) \right) - f(x) + \nabla f(x)^{\top} (x-y) \ & \leq \nabla f(x)^{\top} \left(x - \frac{1}{\beta} \nabla f(x) - x \right) + \frac{\beta}{2} \left|x - \frac{1}{\beta} \nabla f(x) - x \right|^2 + \nabla f(x)^{\top} (x-y) \ & = - \frac{1}{2 \beta} | \nabla f(x) |^2 + \nabla f(x)^{\top} (x-y) . \end{align*}

Now let us apply this inequality to x=xsx = x_{s} and y=ysy= y_s, which gives

(1) \begin{eqnarray*} f(y_{s+1}) - f(y_s) & = & f\left(x_s - \frac{1}{\beta} \nabla f(x_s) \right) - f(y_s) \notag \ & \leq & - \frac{1}{2 \beta} | \nabla f(x_s) |^2 + \nabla f(x_s)^{\top} (x_s-y_s) \notag \ & = & - \frac{\beta}{2} | y_{s+1} - x_s |^2 - \beta (y_{s+1} - x_s)^{\top} (x_s-y_s) . \end{eqnarray*}

Similarly we apply it to x=xsx=x_s and y=x∗y=x^* which gives

(2) \begin{equation*} f(y_{s+1}) - f(x^) \leq - \frac{\beta}{2} | y_{s+1} - x_s |^2 - \beta (y_{s+1} - x_s)^{\top} (x_s-x^) . \end{equation*}

Now multiplying (1) by (λs−1)(\lambda_{s}-1) and adding the result to (2), one obtains with δs=f(ys)−f(x∗)\delta_s = f(y_s) - f(x^*),

λsδs+1−(λs−1)δs≤−β2λs∥ys+1−xs∥2−β(ys+1−xs)⊤(λsxs−(λs−1)ys−x∗).\lambda_{s} \delta_{s+1} - (\lambda_{s} - 1) \delta_s \leq - \frac{\beta}{2} \lambda_{s} \| y_{s+1} - x_s \|^2 - \beta (y_{s+1} - x_s)^{\top} (\lambda_{s} x_{s} - (\lambda_{s} - 1) y_s-x^*) .

Multiplying this inequality by λs\lambda_{s} and using that by definition λs−12=λs2−λs\lambda_{s-1}^2 = \lambda_{s}^2 - \lambda_{s} one obtains

(3) \begin{align*} & \lambda_{s}^2 \delta_{s+1} - \lambda_{s-1}^2 \delta_s \notag \ & \leq - \frac{\beta}{2} \bigg( |\lambda_{s}( y_{s+1} - x_s )|^2 + 2 \lambda_{s} (y_{s+1} - x_s)^{\top} (\lambda_{s} x_{s} - (\lambda_{s} - 1) y_s-x^) \bigg). \end{align}

Now one can verify that

(4) \begin{align*} & |\lambda_{s}( y_{s+1} - x_s )|^2 + 2 \lambda_{s} (y_{s+1} - x_s)^{\top} (\lambda_{s} x_{s} - (\lambda_{s} - 1) y_s-x^)\notag \ & = | \lambda_{s} y_{s+1} - (\lambda_{s} - 1) y_{s}-x^ |^2 - | \lambda_{s} x_{s} - (\lambda_{s} - 1) y_{s}-x^* |^2 . \end{align*}

Next remark that, by definition, one has

(5) \begin{align*} & x_{s+1} = y_{s+1} + \gamma_s (y_s - y_{s+1}) \notag \ & \Leftrightarrow \lambda_{s+1} x_{s+1} = \lambda_{s+1} y_{s+1} + (1-\lambda_{s})(y_s - y_{s+1}) \notag \ & \Leftrightarrow \lambda_{s+1} x_{s+1} - (\lambda_{s+1} - 1) y_{s+1}= \lambda_{s} y_{s+1} - (\lambda_{s}-1) y_{s} . \end{align*}

Putting together (3), (4) and (5) one gets with us=λsxs−(λs−1)ys−x∗u_s = \lambda_{s} x_{s} - (\lambda_{s} - 1) y_{s} - x^*,

λs2δs+1−λs−12δs2≤β2(∥us∥2−∥us+1∥2).\lambda_{s}^2 \delta_{s+1} - \lambda_{s-1}^2 \delta_s^2 \leq \frac{\beta}{2} \bigg(\|u_s\|^2 - \|u_{s+1}\|^2 \bigg) .

Summing these inequalities from s=1s=1 to s=t−1s=t-1 one obtains:

δt≤β2λt−12∥u1∥2.\delta_t \leq \frac{\beta}{2 \lambda_{t-1}^2} \|u_1\|^2.

By induction it is easy to see that λt−1≥t2\lambda_{t-1} \geq \frac{t}{2} which concludes the proof.

□\Box