Docsity

Subgradient Methods-Convex Optimization-Lecture Slides, Slides of Convex Optimization

Partial preview of the text

Download Subgradient Methods-Convex Optimization-Lecture Slides and more Slides Convex Optimization 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

Prof. S. Boyd, EE364b, Stanford University

Subgradient method

subgradient method

is simple algorithm to minimize nondifferentiable convex function

f (kx

+1)^ (k)^ =^ x−^

(k)αgk

(k)^ • xis the^ kth iterate (k)^ • gis^ any subgradient of

(k) f at x

-^ α>^0 is thek^

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

(k) f =^ minbest^ i=1,...,k

(i)f (x)

Prof. S. Boyd, EE364b, Stanford University

Assumptions

⋆^ • f = inffx^ (x)^ >^ −∞, with

⋆⋆ f (x) =^ f^

  • ‖g‖≤^ G^ for all^2

g^ ∈^ ∂f^ (equivalent to Lipschitz condition on

f^ )

(1)^ ⋆ • ‖x−^ x‖

≤^ R 2

these assumptions are stronger than needed, just to simplify proofs Prof. S. Boyd, EE364b, Stanford University

Convergence results

¯ define f^ = lim

(k)f (^) k→∞ best

-^ constant step size:

⋆^ ¯ f − f ≤^ G 2 α/^2 ,^ i.e., converges to

(^2) Gα/^2 -suboptimal (converges to

⋆^ f if^ f^ differentiable,

α^ small enough)

-^ constant step length:

⋆^ ¯ f − f ≤^ Gγ/ 2 ,^ i.e., converges to

Gγ/^2 -suboptimal

-^ diminishing step size rule:

⋆¯ f = f ,^ i.e. ,^ converges

Prof. S. Boyd, EE364b, Stanford University

apply recursively to get(k+1)^ ⋆ ‖x−^ x

2 (1)‖≤^ ‖x 2 ⋆^2 −^ x‖−^22

k∑(i)^ α(f^ (x)^ i i=

k∑⋆− f ) +^ α i= 2 (i)^2 ‖g‖ i^2 k∑ (^2) ≤ R− 2 i= (i) α(f (x)^ −^ i

k∑⋆ (^2) f ) + G i= (^2) α i

now we use

k∑(i)^ α(f^ (x)^ i i=

(k⋆− f ) ≥ (f (^ k∑)⋆− f )best i= ) αi

to get

(k)⋆^ f −^ f^ ≤^ best^

∑k (^2 2) R+ Gi= (^2) α i^ .∑k 2 αii=

Prof. S. Boyd, EE364b, Stanford University

constant step size:

for^ α=^ α^ we getk^ (k)^ f^ −^ f^ best^

2 2 R+^ G⋆ ≤

(^2) kα 2 kα

righthand side converges to

(^2) Gα/^2 as^ k^

constant step length:

for^ α=^ γ/k^

(k)‖g‖we get^2 (k)⋆^ f −^ f^ ≤^ best^

∑k (^2) R+ αi=^ 2 (i)^2 ‖g‖R i^2 ≤^ ∑k 2 αii=

2 2 +^ γk, 2 γk/G

righthand side converges to

Gγ/^2 as^ k^ → ∞ Prof. S. Boyd, EE364b, Stanford University

Stopping criterion

-^ terminating when

∑k (^2 2) R+ Gi (^2) α i=1 ≤^ ǫ^ is really, really, slow∑k 2 αii=

-^ optimal choice of

αto achievei^

∑k (^2 2) R+ Gi (^2) α i=1 ≤^ ǫ^ for smallest∑k 2 αii=

k:

α= (R/G)/i^

√k,^ i^ = 1,... , k number of steps required:

k^ = (RG/ǫ)

2

-^ the truth: there really isn’t a good stopping criterion for the subgradientmethod... Prof. S. Boyd, EE364b, Stanford University

Example: Piecewise linear minimization^ minimize

f^ (x) = max

T(ax^ i=1,...,mi^ +^ b)i

to find a subgradient of

f^ : find index

j^ for which T ax^ +^ b=^ j^ j^

Tmax(ax^ +i^ i=1,...,m b)i

and take^ g^ =

aj subgradient method:

(k+1)^ (k x=^ x )^ −^ αakj Prof. S. Boyd, EE364b, Stanford University

(k)⋆f −^ f^ , constant step lengthbest^

γ^ = 0.^05 ,^0.^01

,^0.^005

500 1000

1500 2000

2500 3000 010 −1 10 −2 10 −3 10

k ⋆^ f^ −^ )k(^ bestf

γ^ =^.^05 γ^ =^.^01 γ^ =^.^005

Prof. S. Boyd, EE364b, Stanford University

diminishing step rule

√ α= 0. 1 /kk and square summable step size rule α= 1/kk^

0 500 1000

1500 2000

2500 3000 110 010 −1 10 −2 10 −3 10

k ⋆^ f^ −^ )k(^ bestf

√ α=. 1 /kk (^) α= 1/kk

Prof. S. Boyd, EE364b, Stanford University

-^ yields

(k+1)^ ⋆ ‖x−^ x‖ 2 (k)^ ≤ ‖x−^ x 2

(k)(f (x⋆ (^2) ‖− (^2) ⋆^2 ) − f ) (^2) (k) ‖g‖ 2

(in particular,

(k)^ ⋆ ‖x−^ x‖^2 decreases at each step)

-^ applying recursively,

k(i)∑^ (f^ (x)^ − i=

⋆^2 f )^2 ≤^ R (^2) (i) ‖g‖ 2

and so^

k∑(i)^ (f^ (x)^ −^ i=

⋆^2 22 f )≤^ RG which proves^

(k)⋆f (x)^ →^ f^ Prof. S. Boyd, EE364b, Stanford University

PWL example with Polyak’s step size,

√ α= 0. 1 /kk ,^ α= 1/kk^ 0 500 1000

1500 2000

2500 3000 110 010 −1 10 −2 10 −3 10

k ⋆^ f^ −^ )k(^ bestf

Polyak√ α=^.^1 /kk^ α= 1/kk^

Prof. S. Boyd, EE364b, Stanford University

subgradient update with optimal step size:

(k+1)^ x=^ x (k)^ (k)−^ αgk (k)^ (k) = x−^ f^ (x)^

(k)^ x−^ P(xCj^ (k)) (k)^ ‖x−^ P(xCj^ (k))‖^2 (k) = P(x)Cj

-^ a version of the famous

alternating projections

algorithm

-^ at each step, project the current point onto the farthest set •^ for^ m^ = 2^

sets, projections alternate onto one set, then the other

-^ convergence:

(k) dist(x, C )^ →^0 as^ k^ → ∞ Prof. S. Boyd, EE364b, Stanford University

Alternating projections

first few iterations:

C^1

C^2

(1) x (3)(2) x x(4) ∗ xx (k)^... xeventually converges to a point

∗^ x∈^ C∩^ C^1 2

Prof. S. Boyd, EE364b, Stanford University