Docsity

Truncated Newton Method-Software and Convex Optimization-Lecture Slides, Slides of Convex Optimization

Partial preview of the text

Download Truncated Newton Method-Software and Convex Optimization-Lecture Slides and more Slides Convex Optimization in PDF only on Docsity!

Truncated Newton Method

approximate Newton methods

truncated Newton methods

truncated Newton interior-point methods

Prof. S. Boyd, EE364b, Stanford University

docsity.com

Newton’s method

minimize convex

f

R

n

R

Newton step

x

nt

found from (SPD) Newton system

2

f

x

x

nt

f

x

using Cholesky factorization

backtracking line search on function value

f

x

or norm of gradient

f

x

stopping criterion based on Newton decrement

λ

2

f

x

T

x

nt

or norm of gradient

f

x

1 docsity.com

Truncated Newton methods

approximately solve Newton system using CG or PCG, terminating(sometimes way) early

also called

Newton-iterative methods

; related to limited memory

Newton (or BFGS)

total effort is measured by cumulative sum of CG steps done

for good performance, need to tune CG stopping criterion, to use justenough steps to get a good enough search direction

less reliable than Newton’s method, but (with good tuning, goodpreconditioner, fast

z

2

f

x

z

method, and some luck) can handle

very large problems

3 docsity.com

Truncated Newton method

backtracking line search on

f

x

typical CG termination rule: stop after

N

max

steps or

η

2

f

x

x

f

x

f

x

ǫ

pcg

with simple rules,

N

max

ǫ

pcg

are constant

more sophisticated rules adapt

N

max

or

ǫ

pcg

as algorithm proceeds

(based on,

e.g.

, value of

f

x

, or progress in reducing

f

x

η

= min(

f

x

1

/

2

guarantees (with large

N

max

) superlinear

convergence

4 docsity.com

simple scheme: if

x

prev

is a descent direction (

x

T prev

f

x

start CG from

x

x

T prev

f

x

x

T prev

2

f

x

x

prev

x

prev

otherwise start CG from

x

6 docsity.com

Example

2

-regularized logistic regression

minimize

f

w

/m

mi

=

log

1 + exp(

b

i

x

Ti

w

n i

=

λ

i

w

2 i

variable is

w

R

n

problem data are

x

i

R

n

b

i

i

,... , m

, and

regularization parameter

λ

R

n +

n

is number of features;

m

is number of samples/observations

Prof. S. Boyd, EE364b, Stanford University

7 docsity.com

Problem instance

n

features,

m

samples (

each with

b

i

x

i

have random sparsity pattern, with around

nonzero entries

nonzero entries in

x

i

drawn from

N

b

i

λ

i

−

8

around

nonzeros in

2

f

, and

M nonzeros in Cholesky factor

9 docsity.com

Methods

Newton (using Cholesky factorization of

2

f

w

truncated Newton with

ǫ

cg

−

4

N

max

truncated Newton with

ǫ

cg

−

4

N

max

truncated Newton with

ǫ

cg

−

4

N

max

10 docsity.com

Convergence versus cumulative CG steps

0

200

400

600

800

1000

1200

1400

1600

1800

10

−

10

−

10

−

10

−

10

−

10

−

10

−

10

−

cg

10

cg

50

cg

250

‖ f ‖∇

cumulative CG iterations

12 docsity.com

convergence of exact Newton, and truncated Newton methods with N

max

and

essentially the same, in terms of iterations

in terms elapsed time (and memory!), truncated Newton methods farbetter than Newton

truncated Newton with

N

max

seems to jam near

f

w

−

6

times (on AMD270 2GHz, 12GB, Linux) in sec:

method

f

w

−

5

f

w

−

8

Newton

cg 10

cg 50

cg 250

13 docsity.com

diagonal preconditioning allows

N

max

to achieve high accuracy;

speeds up other truncated Newton methods

times:

method

f

w

−

5

f

w

−

8

Newton

cg 10

cg 50

cg 250

pcg 10

pcg 50

pcg 250

speedups of

are not bad

(and we really didn’t do much tuning... )

15 docsity.com

Extensions

can extend to (infeasible start) Newton’s method with equalityconstraints

since we don’t use exact Newton step, equality constraints notguaranteed to hold after finite number of steps (but

r

p

can use for barrier, primal-dual methods

16 docsity.com

Network rate control

rate control problem

minimize

U

f

n j

=

log

f

j

subject to

Rf

c

with variable

f

f

R

n ++

is vector of flow rates

U

f

n j

=

log

f

j

is flow utility

R

R

m

×

n

is route matrix (

R

ij

c

R

m

is vector of link capacities

Prof. S. Boyd, EE364b, Stanford University

18 docsity.com

Dual rate control problem

dual problem

maximize

g

λ

n

c

T

λ

mi

=

log(

r

Ti

λ

subject to

λ

with variable

λ

R

m

duality gap

η

U

f

g

λ

n

∑^ j

=

log

f

j

n

c

T

λ

m ∑^ i

=

log(

r

Ti

λ

Prof. S. Boyd, EE364b, Stanford University

19 docsity.com