Docsity

1 Overview 2 Steepest Descent, Lecture notes of Convex Optimization

Toggle sidebar
bg1
AM 221: Advanced Optimization Spring 2016
Prof. Yaron Singer Lecture 10 — February 29th
1 Overview
In the previous lecture we introduced the gradient descent algorithm, and mentioned that it falls
under a broader category of methods. In this lecture we describe this general approach called steepest
descent. We will explain how gradient descent is an example of this method, and also introduce
the coordinate descent algorithm which is another example of the steepest descent method. Lastly,
we will present Newton’s method. Newton’s method is a general approach for solving systems of
non-linear equations. Newton’s method can conceptually be seen as a steepest descent method, and
we will show how it can be applied for convex optimization.
2 Steepest Descent
As discussed in the previous lecture, one can consider a search for a stationary point as an iterative
procedure of generating a point x(k+1) which takes steps of certain length tkat direction ∆x(k)from
the previous point x(k). The direction ∆x(k)decides which direction we search next, and the step
size determines how far we go in that particular direction. We can write this update rule as:
x(k+1) =x(k)+tk∆x(k)
Asteepest descent algorithm would be an algorithm which follows the above update rule, where
at each iteration, the direction ∆x(k)is the steepest direction we can take. That is, the algorithm
continues its search in the direction which will minimize the value of function, given the current
point. Or in other words, given a particular point x, we would like to find the direction ds.t.
f(x+d)is minimized.
Finding the steepest direction. In order to find the steepest direction, we can approximate
the function via a first-order Taylor expansion:
f(x+d)≈f(x) + ∇f(x)|d
The direction dthat minimizes the function implies the following optimization problem1:
min
d:kvk=1 ∇f(x)|d
In general, one may consider various norms for the minimization problem. As we will now see, the
interpretation of steepest descent with different norms leads to different algorithms.
1Recall that a direction is a vector of unit length.
1
pf3
pf4
pf5

Partial preview of the text

Download 1 Overview 2 Steepest Descent and more Lecture notes Convex Optimization in PDF only on Docsity!

AM 221: Advanced Optimization Spring 2016

Prof. Yaron Singer Lecture 10 — February 29th

1 Overview

In the previous lecture we introduced the gradient descent algorithm, and mentioned that it falls under a broader category of methods. In this lecture we describe this general approach called steepest descent. We will explain how gradient descent is an example of this method, and also introduce the coordinate descent algorithm which is another example of the steepest descent method. Lastly, we will present Newton’s method. Newton’s method is a general approach for solving systems of non-linear equations. Newton’s method can conceptually be seen as a steepest descent method, and we will show how it can be applied for convex optimization.

2 Steepest Descent

As discussed in the previous lecture, one can consider a search for a stationary point as an iterative procedure of generating a point x(k+1)^ which takes steps of certain length tk at direction ∆x(k)^ from the previous point x(k). The direction ∆x(k)^ decides which direction we search next, and the step size determines how far we go in that particular direction. We can write this update rule as:

x(k+1)^ = x(k)^ + tk∆x(k)

A steepest descent algorithm would be an algorithm which follows the above update rule, where at each iteration, the direction ∆x(k)^ is the steepest direction we can take. That is, the algorithm continues its search in the direction which will minimize the value of function, given the current point. Or in other words, given a particular point x, we would like to find the direction d s.t. f (x + d) is minimized.

Finding the steepest direction. In order to find the steepest direction, we can approximate the function via a first-order Taylor expansion:

f (x + d) ≈ f (x) + ∇f (x)ᵀd

The direction d that minimizes the function implies the following optimization problem^1 :

min d:‖v‖=

∇f (x)ᵀd

In general, one may consider various norms for the minimization problem. As we will now see, the interpretation of steepest descent with different norms leads to different algorithms.

(^1) Recall that a direction is a vector of unit length.

2.1 Steepest descent in ` 2 : gradient descent

In the case of the ` 2 norm, let us first find d?^ ∈ arg max‖d‖ 2 =1 ∇f (x)ᵀd. From the Cauchy-Schwarz inequality we know that ∇f (x)ᵀd ≤ ‖∇f (x)‖‖d‖ with equality when d = λ∇f (x), λ ∈ R. Since ‖d‖ = 1 this implies:

d?^ = ∇f (x) ‖∇f (x)‖

Since we aim to minimize the function, we seek dˆ ∈ argmin‖d‖ 2 =1 ∇f (x)ᵀd which is simply −d?. So the iterations of steepest descent in ` 2 norm are:

x(k+1)^ = x(k)^ − tk∇f (x(k))

where tk is some step size (think about this as some term multiplied by ‖∇f (x)‖−^1 ). Notice that this is the gradient descent algorithm.

2.2 Steepest descent in ` 1 : coordinate descent

In the case of the ` 1 norm, the steepest direction is:

d ∈ argmind:∑ i |di|=1 ∇f (x) ᵀ d

This requires solving a linear program over d where ∇f (x) is a fixed vector:

min ∇f (x)ᵀd

s.t.

∑^ n

i=

|di| = 1

We discussed these special cases in lecture 5 when we proved the minimax theorem: in this case the optimal solution is to find the index i ∈ [n] for which the absolute value ∂f (x)/∂xi is largest, and the optimal solution is then sign(ei), where sign attributes a negative sign to ei if ∂f (x)/∂xi is positive, and a negative sign otherwise, and ei is the standard basis vector with 1 in index i and 0 s in all other indices). So the steepest direction is the direction d which respects:

d = sign(ei) , i ∈ argmaxi∈[n]

∂f (x) ∂xi

Algorithm 1 Coordinate Descent

1: Guess x(0), set k ← 0 2: while ||∇f (x(k))|| ≥  do 3: i ← argmaxi∈[n]

∣ ∂f ∂x^ (xi)

4: x(k+1)^ = x(k)^ + tk · sign(ei) 5: k ← k + 1 6: end while 7: return x(k)

This gives us a very simple algorithm called coordinate descent: we start with an arbitrary point, and at every stage we iterate over all the coordinates of ∇f (x), find the one with largest absolute value, and descent in that direction.

like to find the solution x for which ∇f (x) = 0. Note that the Jacobian of ∇f is in fact the Hessian, and we therefore have that for ∇f (x) Newton’s method iterates are:

x(k+1)^ = x(k)^ − ∇f (x(k))Hf (x(k))−^1

We get the following method for minimizing a convex function.

Algorithm 3 Newton’s method for minimizing a convex function

1: Guess x^0 , set k = 1 2: while ||∇f (x(k))|| ≥  do 3: x(k+1)^ ← x(k)^ − ∇f (x(k))Hf (x(k))−^1 4: k ← k + 1 5: end while 6: return x(k)

Example. Consider the problem of minimizing x^4 + 2x^2 y^2 + y^4 using Newton’s method. Let’s first write the gradient and the Hessian:

∇f (x, y) =

( (^) ∂f (x,y) ∂f ∂x(x,y) ∂y

4 x^3 + 4xy^2 4 x^2 y + 4y^3

Hf (x, y) =

12 x^2 + 4y^2 8 xy 8 xy 4 x^2 + 12y^2

Let’s assume we start from a guess (x, y) = (a, a) for some a ∈ R. An equivalent way to write our condition for the next iteration is:

∇f (x) = Hf (x(k))(x(k+1)^ − x(k))

Thus the next point x(1)^ = (x, y) is the one where the values are x, y respect:

( − 8 a^3 − 8 a^3

16 a^2 8 a^2 8 a^2 16 a^2

x − a y − a

One can check that this system is solved by (x, y) = 2/3(a, a). In general the kth iteration will be:

( 2 3

)k ·

a a

which converges to zero exponentially fast in k.

3.2 Convergence of Newton’s method

It is important to note that Newton’s method will not always converge. For the (non-convex) function f (x) = x^3 − 2 x + 2 for example, if we start at x(0)^ = 0, the points will oscillate between 0 and 1 and will not converge to the root. That is, for all t ∈ N, x(k)^ = 1 for all k = 2t + 1 and

x(k)^ = 0 for all k = 2t. For the function f (x) = 23 · |x|^3 /^2 one can check that Newton’s method will oscillate as well. So when can we at least guarantee that Newton’s method does not oscillate?

Definition. A vector ∈ Rn^ is called a descending direction for f : Rn^ → R if for all x ∈ Rn we have that ∇f (x)T^ d < 0.

Proposition 1. For a given function f , if its Hessian Hf is positive definite then d = −Hf (xk)−^1 ∇f (xk) is a descent direction. That is, Newton’s method decreases the function value at every iteration.

Proof. Since Hf is positive definite this implies that its inverse is also positive definite. Thus:

∇f (x(k))T^ d = −∇f (x(k))T^ − Hf (x(k))−^1 ∇f (x(k)) < 0.

4 Further Reading

For further reading on steepest descent and Newton’s method see Chapter 9 of the Convex Opti- mization book by Boyd and Vandenberghe.