Local, Unconstrained Function Optimization
COMPSCI 527 — Computer Vision
COMPSCI 527 — Computer Vision Local, Unconstrained Function Optimization 1 / 27
Local, Unconstrained Function Optimization COMPSCI 527 Computer - - PowerPoint PPT Presentation
Local, Unconstrained Function Optimization COMPSCI 527 Computer Vision COMPSCI 527 Computer Vision Local, Unconstrained Function Optimization 1 / 27 Outline 1 Gradient, Hessian, and Convexity 2 A Local, Unconstrained Optimization
Local, Unconstrained Function Optimization
COMPSCI 527 — Computer Vision
COMPSCI 527 — Computer Vision Local, Unconstrained Function Optimization 1 / 27Outline
1 Gradient, Hessian, and Convexity 2 A Local, Unconstrained Optimization Template 3 Steepest Descent 4 Termination 5 Convergence Speed of Steepest Descent 6 Convergence Speed of Newton’s Method 7 Newton’s Method 8 Counting Steps versus Clocking
COMPSCI 527 — Computer Vision Local, Unconstrained Function Optimization 2 / 27Motivation and Scope
N
PN
n=1 `(yn, h(xn ; v)) : Rm ! R
ˆ v = arg minv2R
m LT(v)I = ⇡(C, S) where I are the images, C are the camera positions and orientations, S is scene shape
C, ˆ S = arg minC,S kI ⇡(C, S)k
ˆ z = arg minz kE(z)k
COMPSCI 527 — Computer Vision Local, Unconstrained Function Optimization 3 / 27METERS
SCENE
C s
t
00
ft
EEhFE
T RAG T
Only Local Minimization
ˆ z = arg minz2? f(z)
f(zk+1) < f(zk)
2 C IRM
Gradient
rf(z) = ∂f
∂z =
2 6 4
∂f ∂z1
. . .
∂f ∂zm
3 7 5
rf(z) = 0 is necessary and sufficient for a stationary point (max, min, or saddle)
fC
g
k
q
2
forksomeday
First Order Taylor Expansion
f(z) ⇡ g1(z) = f(z0) + [rf(z0)]T(z z0) approximates f(z) near z0 with a (hyper)plane through z0
z1 z2 f(z) z0rf(z0) points to direction of steepest increase of f at z0
rf(z0) seems promising
ZER2
FE
Hessian
H(z) = 2 6 6 4
∂2f ∂z2
1. . .
∂2f ∂z1∂zm
. . . . . .
∂2f ∂zm∂z1
. . .
∂2f ∂z2
m3 7 7 5
∂2f ∂zi∂zj = ∂2f ∂zj∂zi
dz2 for f : R ! R
COMPSCI 527 — Computer Vision Local, Unconstrained Function Optimization 7 / 27Convexity
z z' u z + (1-u) z' f(u z + (1-u) z') u f(z) + (1-u) f(z') f(z') f(z)For all z, z0 in the (open) domain of f and for all u 2 [0, 1] f(uz + (1 u)z0) uf(z) + (1 u)f(z0)
O
Convexity and Hessian
minimum iff H(z) < 0
zTHz 0 for all z 2 Rm
dz2 0 for f : R ! R
COMPSCI 527 — Computer Vision Local, Unconstrained Function Optimization 9 / 27Of E
Second Order Taylor Expansion
f ⇡ g2(z) = f(z0) + [rz0]T(z z0) + (z z0)TH(z0)(z z0) approximates f(z) near z0 with a quadratic equation through z0
bottom of the bowl seems promising
O
A Template
k = 0 while zk is not a minimum compute step direction pk with kpkk > 0 compute step size αk > 0 zk+1 = zk + αkpk k = k + 1 end.
COMPSCI 527 — Computer Vision Local, Unconstrained Function Optimization 11 / 27GIVEN Eo
ITERATION COUNT
e
I
I
Design Decisions
with very different behaviors and computational costs
COMPSCI 527 — Computer Vision Local, Unconstrained Function Optimization 12 / 27