Smoothness and strong convexity in gradient descent

Definition (smoothness, strongly convexity) open_in_new

Let $f: \R^n \to \R$ be twice differentiable and $\alpha,\beta>0$.

  • $f$ is said to be $\alpha$-strongly convex if $\nabla^2 f(x)$ $\succeq$ $\alpha I$ for all $x\in\R^n$.

  • $f$ is said to be $\beta$-smooth if $\nabla^2 f(x)$ $\preceq$ $\beta I$ for all $x\in\R^n$.

A $\alpha$-strongly convex function cannot change too slowly, and a $\beta$-smooth function cannot change too quickly. This is illustrated in the following theorem:

Theorem (bounds on smooth and strongly convex functions) open_in_new

Let $\v x,\v y\in\R^n$. If $f$ is $\beta$-smooth, then $$ \begin{align*} f(\v y) \leq f(\v x) + \nabla f(\v x)^T (\v y - \v x) + \frac{\beta}{2}|\v x-\v y|^2. \end{align*} $$ If $f$ is $\alpha$-strongly convex, then $$ \begin{align*} f(\v y) \geq f(\v x) + \nabla f(\v x)^T (\v y - \v x) + \frac{\alpha}{2}|\v x - \v y|^2. \end{align*} $$

Proof

Corollary (gradient descent step of smooth function) open_in_new

If $f$ is $\beta$-smooth, then $$ \begin{align*} f\Big(\v x - \frac{1}{\beta}\nabla f(\v x)\Big) \leq f(\v x) - \frac{1}{2\beta}|\nabla f(\v x)|^2 \end{align*} $$

Proof: plug in $\v y = \v x - \frac{1}{\beta}\nabla f(\v x)$ to the previous theorem.

This shows that we are guaranteed to reduce the objective function value going from $\v x$ to $\v x - \frac{1}{\beta} \nabla f(\v x)$, e.g. we do not overshoot.

Theorem (lower bound for minimum value in strongly convex functions) open_in_new

Let $f$ be $\alpha$-strongly convex. Let $p^\ast = \inf_\v x f(\v x)$ be the optimal value.

For any $\v x\in\R^n$, $$ \begin{align*} p^\ast \geq f(\v x) - \frac{1}{2\alpha} |\nabla f(\v x)|^2. \end{align*} $$

Proof

This shows that if $\nabla f(\v x)$ is close to zero (say $|\nabla f(\v x)| < \sqrt{2\alpha\epsilon}$), then $f(\v x)$ is close to optimal ($f(\v x) \leq p^\ast + \epsilon$).

Theorem (convergence of gradient descent for strongly convex and smooth functions) open_in_new

If $f$ is $\alpha$-strongly convex and $\beta$-smooth that is minimised at $x^\ast$, then the gradient descent with constant step size $1/\beta$, i.e. $$ \begin{align*} \v x_{t+1} = \v x_t - \frac{1}{\beta}\nabla f(\v x) \end{align*} $$ satisfies $$ \begin{align*} f(\v x_t) - f(x^\ast) \leq \left(1-\frac{\alpha}{\beta}\right)^t (f(\v x_0) - f(\v x^\ast)). \end{align*} $$ A more common but looser bound is $$ \begin{align*} f(\v x_t) - f(x^\ast) \leq e^{-(\alpha/\beta)t}(f(\v x_0) - f(\v x^\ast)). \end{align*} $$

Proof

To ensure $f(\v x_t) - f(\v x^\ast) \leq \epsilon$, we need $t = (\beta/\alpha)\log((f(\v x_0) - f(\v x^\ast))/\epsilon)$.