
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Introduction Line Search Methods
Lecture Notes #3 — Convergence; Line Search Methods
Peter Blomgren, 〈[email protected]〉 Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research Center San Diego State University San Diego, CA 92182- http://terminus.sdsu.edu/
Fall 2009
Introduction Line Search Methods
Outline
(^1) Introduction Recap Fundamentals: Rate of Convergence
(^2) Line Search Methods Search Direction: Steepest Descent, Newton, or Other?!? Step Length Selection — 1D Minimization Step Length Selection — The Wolfe Conditions
Introduction Line Search Methods Recap Fundamentals: Rate of Convergence
Key Concepts Rate of Convergence
Definition (Rate of Convergence, Sequences) Suppose the sequence β = {βn}∞ n=1 converges to zero, and ˜x = {˜xn}∞ n=1 converges to a point ˜x∗. If ∃K > 0: ‖˜xn − ˜x∗‖ < K βn, for n > N (i.e. for n large enough), then we say that {˜xn}∞ n=1 converges to ˜x∗^ with a Rate of Convergence O(βn) (“Big Oh of βn”). We write ˜xn = ˜x∗^ + O(βn)
Note: The sequence β = {βn}∞ n=1 is usually chosen to be
βn =
np^ , for some value of p.
Introduction Line Search Methods Recap Fundamentals: Rate of Convergence
Rates of Convergence
Let ˜x = {˜xn}∞ n=1 be a sequence converging to ˜x∗, the convergence rate is said to be Q-linear (quotient-linear) if ∃r ∈ (0, 1) and K ∈ Z such that
‖˜xk+1 − ˜x∗‖ ‖˜xk − ˜x∗‖ ≤ r , ∀k ≥ K
Q-superlinear if lim k→∞
‖˜xk+1 − ˜x∗‖ ‖˜xk − ˜x∗‖
Q-quadratic if ∃r ∈ R+^ and K ∈ Z such that ‖˜xk+1 − ˜x∗‖ ‖˜xk − ˜x∗‖^2 ≤ r , ∀k ≥ K
Introduction Line Search Methods Step Length Selection — 1D MinimizationStep Length Selection — The Wolfe Conditions
Steepest Descent Direction Line Search
The intuitive choice for ˜pk is to move in the direction of steepest descent, i.e. in the negative gradient direction.
Going back to the Taylor expansion
f (˜x + α˜p) = f (˜x) + α˜pT^ ∇f (˜x)
we immediately see that the direction of most rapid decrease gives
min ‖p‖=
˜pT^ ∇f (˜x) = min θ∈[0, 2 π]
cos θ ‖∇f (˜x)‖ = −‖∇f (˜x)‖
which is achieved when θ = π ⇔ ˜p = −∇f (˜x)/‖∇f (˜x)‖
Recall: ˜vT^ w˜ = cos θ ‖˜v‖ · ‖ w˜‖, where θ is the angle between the vectors ˜v and w˜.
Introduction Line Search Methods Step Length Selection — 1D MinimizationStep Length Selection — The Wolfe Conditions
Steepest Descent Direction Line Search
Figure: The steepest descent direction ˜pk is perpendicular to the contour lines of the objective. w
θ v
Figure: ˜vT^ w˜ = cos θ ‖˜v‖ · ‖ w˜‖.
Introduction Line Search Methods Step Length Selection — 1D MinimizationStep Length Selection — The Wolfe Conditions
Newton Direction Line Search
As long as the Hessian is positive definite, ˜pN^ is a descent-direction:
˜pN^ ∇f (˜x) = −∇f (˜x)T
∇^2 f (˜x)
Pos. Def.
∇f (˜x) < 0
Note: Clearly, the Newton direction is more “expensive” than the steepest descent direction — we must compute the Hessian matrix ∇^2 f (˜x), and invert it (i.e. solve an n × n linear system).
Note: The convergence rate for steepest descent methods is linear and for Newton methods it is quadratic, hence there is a lot to gain by finding the Newton direction.
Introduction Line Search Methods Step Length Selection — 1D MinimizationStep Length Selection — The Wolfe Conditions
Example: NW1st-2.2, p 30. 1 of 3
Problem: Show that the function f (x) = 8x +12y +x^2 − 2 y 2 has only one stationary point, and that it is neither a max- imum nor a minimum, but a saddle point. Sketch the contours for f. Solution: The gradient of f is
∇f =
» (^) 8 + 2x 12 − 4 y
which has the stationary point (x, y ) = (− 4 , 3). Since the Hessian ∇^2 f =
» 2 0 0 − 4
has both positive and negative eigenvalues, the stationary point must be a saddle point.
−2 −10 −5 0 5 − 01
2 34
5 67
8
Figure: The contour lines for f (x).
−10^ −
0 5 (^20) −
(^864) −
0
50
100
Figure: The function f (x) around the stationary point.
Introduction Line Search Methods Step Length Selection — 1D MinimizationStep Length Selection — The Wolfe Conditions
Example: NW1st-2.2, p 30. 3 of 3
−2 −10 −5 0 5
−
0
1
2
3
4
5
6
7
8
Newton
Steepest Descent
Figure: The Newton and Steepest Descent directions starting in (0, 0). Note that the Newton method is heading to the saddle point, but the Steepest descent method will, in general, not converge to a non-minimumstationary point.
Introduction Line Search Methods Step Length Selection — 1D MinimizationStep Length Selection — The Wolfe Conditions
Line Search Methods — Directions
Method Search Direction Convergence Steepest Descent pk = −∇f (˜xk )/‖∇f (˜xk )‖ Linear Quasi-Newton pk = −H k− 1 ∇f (˜xk ) Super-Linear Newton pk = −[∇^2 f (˜xk )]−^1 ∇f (˜xk ) Quadratic Table: Summary of search directions for different schemes. In Quasi- Newton schemes we do not explicitly compute the Hessian ∇^2 f (˜xk ) in each iteration, instead we use an approximation Hk ≈ ∇^2 f (˜xk ) which is updated in some clever way [to be explored in great detail later].
We will return to the selection of ˜pk , but let’s consider the computation of the step length αk ...
Introduction Line Search Methods Step Length Selection — 1D Minimization Step Length Selection — The Wolfe Conditions
What is “adequate reduction?”
−1^0 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
1
−1^0 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
1
Figure: Consider the objective f (x) = √ x^2 + 10−^8 , if we let xk = { 1 , − 0. 8 , 0. 7 , − 0. 65 , 0. 625 , − 0. 6125 , 0. 60625 ,... }, then the descent directions are given by pk = {− 1 , 1 , − 1 , 1 , − 1 , 1 , − 1 ,... }, so this generates a decreasing se- quence f (xk + αk pk ) < f (xk ). However, with the current choice of αk = {− 1. 8 , 1. 5 , − 1. 35 , 1. 275 , − 1. 2375 , 1. 21875 ,... } the convergence rate is less than spectacular. Clearly, we need a stronger condition than f (xk + αk pk ) < f (xk ).
Introduction Line Search Methods Step Length Selection — 1D Minimization Step Length Selection — The Wolfe Conditions
The Wolfe Conditions
There are many ways to enforce reduction in the objective. The Armijo Condition
f (˜xk + α˜pk ) ≤ f (˜xk ) + c 1 α˜pTk ∇f (˜x), c 1 ∈ (0, 1)
requires the reduction to be proportional to the step length α, as well as the directional derivative. In practice c 1 is usually set to be quite small, e.g. ∼ 10 −^4. To rule out unacceptable short steps, the curvature condition
p˜Tk ∇f (˜xk + α˜pk ) ≥ c 2 ˜pTk ∇f (˜xk ), c 2 ∈ (c 1 , 1)
is enforced; — it prevents us from stopping when more progress can be made by moving further (increasing α). Together these two conditions are known as the Wolfe conditions.
Introduction Line Search Methods Step Length Selection — 1D Minimization Step Length Selection — The Wolfe Conditions
The Wolfe Conditions: Part II — The Curvature Condition
To rule out unacceptable short steps, the curvature condition ˜pTk ∇f (˜xk + α˜pk ) ≥ c 2 ˜pTk ∇f (˜xk ), c 2 ∈ (c 1 , 1) — it prevents us from stopping when more progress can be made by moving further (increasing α).
Curvature OK Curvature OK
The Curvature Condition
Introduction Line Search Methods Step Length Selection — 1D Minimization Step Length Selection — The Wolfe Conditions
The Wolfe Conditions: Part I+II — Acceptable Step 1/
Together, the Armijo and Curvature conditions constitute the Wolfe Conditions.
The "Armijo" Line
Armijo OK Armijo OK Curvature OK Curvature OK
The Curvature Condition