Docsity

Subgradient Methods for Convex Optimization, Summaries of Engineering

Partial preview of the text

Download Subgradient Methods for Convex Optimization and more Summaries Engineering in PDF only on Docsity!

Subgradient Methods

subgradient method and stepsize rules

convergence results and proof

optimal step size and alternating projections

speeding up subgradient methods

EE364b, Stanford University

Subgradient method

subgradient method

is simple algorithm to minimize nondifferentiable

convex function

f

x

(

k

+1)

x

(

k

)

α

k

g

(

k

)

x

(

k

)

is the

k

th iterate

g

(

k

)

is

any

subgradient of

f

at

x

(

k

)

α

k

is the

k

th step size

not a descent method, so we keep track of best point so far

f

(

k

)

best

min

i

=

,...,k

f

x

(

i

)

EE364b, Stanford University

Assumptions

f

⋆

= inf

x

f

x

, with

f

x

⋆

f

⋆

g

2

G

for all

g

∂f

(equivalent to Lipschitz condition on

f

x

(1)

x

⋆

2

R

these assumptions are stronger than needed, just to simplify proofs EE364b, Stanford University

Convergence results

define

f

= lim

k

→∞

f

(

k

)

best

constant step size:

f

f

⋆

G

2

α/

i.e.

converges to

G

2

α/

-suboptimal

(converges to

f

⋆

if

f

differentiable,

α

small enough)

constant step length:

f

f

⋆

Gγ/

i.e.

converges to

Gγ/

-suboptimal

diminishing step size rule:

f

f

⋆

i.e.

converges

EE364b, Stanford University

apply recursively to get ‖

x

(

k

+1)

x

⋆

22

x

(1)

x

⋆

22

k

i

=

α

i

f

x

(

i

)

f

⋆

k

∑^ i

=

α

2 i

g

(

i

)

22

R

2

k

i

=

α

i

f

x

(

i

)

f

⋆

G

2

k

∑^ i

=

α

2 i

now we use

k

∑^ i

=

α

i

f

x

(

i

)

f

⋆

f

(

k

)

best

f

⋆

k

i

=

α

i

to get

f

(

k

)

best

f

⋆

R

2

G

2

k i

=

α

2 i

k i

=

α

i

EE364b, Stanford University

constant step size:

for

α

k

α

we get

f

(

k

)

best

f

⋆

R

2

G

2

kα

2

kα

righthand side converges to

G

2

α/

as

k

constant step length:

for

α

k

γ/

g

(

k

)

2

we get

f

(

k

)

best

f

⋆

R

2

k i

=

α

2 i

g

(

i

)

22

k i

=

α

i

R

2

γ

2

k

γk/G

righthand side converges to

Gγ/

as

k

EE364b, Stanford University

Stopping criterion

terminating when

R

2

G

2

k i

=

α

2 i

k i

=

α

i

ǫ

is really, really, slow

optimal choice of

α

i

to achieve

R

2

G

2

k i

=

α

2 i

k i

=

α

i

ǫ

for smallest

k

α

i

R/G

k,

i

,... , k

number of steps required:

k

RG/ǫ

2

the truth: there really isn’t a good stopping criterion for the subgradientmethod...

EE364b, Stanford University

Example: Piecewise linear minimization

minimize

f

x

) = max

i

=

,...,m

a

Ti

x

b

i

to find a subgradient of

f

: find index

j

for which

a

Tj

x

b

j

max

i

=

,...,m

a

Ti

x

b

i

and take

g

a

j

subgradient method:

x

(

k

+1)

x

(

k

)

α

k

a

j

EE364b, Stanford University

diminishing step rules

α

k

k

and

α

k

k

, square summable

step size rules

α

k

/k

and

α

k

/k

0

500

1000

1500

2000

2500

3000

10

−

10

−

10

−

10

0

10

1

0.1/sqrt(k) value 1/sqrt(k) value 1/k value 10/k value

k

f

)k(

best

f −

⋆

EE364b, Stanford University

Optimal step size when

f

⋆

is known

choice due to Polyak:

α

k

f

x

(

k

)

f

⋆

g

(

k

)

22

(can also use when optimal value is estimated)

motivation: start with basic inequality

x

(

k

+1)

x

⋆

22

x

(

k

)

x

⋆

22

α

k

f

x

(

k

)

f

⋆

α

(^2) k

g

(

k

)

22

and choose

α

k

to minimize righthand side

EE364b, Stanford University

PWL example with Polyak’s step size,

α

k

k

α

k

/k

0

500

1000

1500

2000

2500

3000

10

−

10

−

10

−

10

0

10

1

k

f

)k(

best

f −

⋆

Polyak α

k

= 0

.

1

/

√

k

α

k

= 1

/k

EE364b, Stanford University

Finding a point in the intersection of convex sets

C

C

1

C

m

is nonempty,

C

1

,... , C

m

R

n

closed and convex

find a point in

C

by minimizing

f

x

) = max

dist

x, C

1

dist

x, C

m

with

dist

x, C

j

f

x

, a subgradient of

f

is

g

dist

x, C

j

x

P

C

j

x

x

P

C

j

x

2

EE364b, Stanford University

Alternating projections

first few iterations:

x

(1)

x

(2)

x

(3)

x

(4)

x

⋆

C

1

C

2

x

(

k

)

eventually converges to a point

x

⋆

C

1

C

2

EE364b, Stanford University

Example: Positive semidefinite matrix completion

some entries of matrix in

S

n

fixed; find values for others so completed

matrix is PSD

C

1

S

n +

C

2

is (affine) set in

S

n

with specified fixed entries

projection onto

C

1

by eigenvalue decomposition, truncation: for

X

n i

=

λ

i

q

i

q

Ti

P

C

1

X

n

i

=

max

, λ

i

q

i

q

Ti

projection of

X

onto

C

2

by re-setting specified entries to fixed values

EE364b, Stanford University