



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!




Department of Mathematics and Statistics^ Dynamical Systems GroupComputational Sciences Research Center^ San Diego State UniversitySan Diego, CA 92182-7720^ http://terminus.sdsu.edu/
Fall 2009 Peter Blomgren,^ 〈
〉^ Line Search Methods: Step Length Selection
— (1/24)
Line Search MethodsStep Length Selection
Outline^1 Line Search Methods^ Recap^ Step Length Selection^2 Step Length Selection^ Interpolation^ The Initial Step^ LS — Strong Wolfe Conditions^ Peter Blomgren,
〉^ Line Search Methods: Step Length Selection
— (2/24)
Line Search MethodsStep Length Selection
RecapStep Length Selection
Quick Recap: Last Time^ Rates of convergence for our different optimization strategies.We showed that for a simple quadratic model^ f^ (˜x) =^
1 T^ ˜˜xQ˜x^ −^ b 2
T^ ˜x^ the^ steepest descent method
is indeed
linearly convergent
The result generalizes to general nonlinear objective functions forwhich^ ∇f^ (
∗˜x) = 0 and
2 ∗ ∇f^ (˜x) is positive definite. We stated the result for
Newton’s method
which says that it is
locally^ quadratically convergent
Peter Blomgren,^ 〈
〉^ Line Search Methods: Step Length Selection
— (3/24)
Line Search MethodsStep Length Selection
RecapStep Length Selection
Quick Recap: Last Time^ Further,
Quasi-Newton methods
, where the search direction is
QN− ˜p=^ −B k^ 1 ∇f^ (˜x), exhibitk^ k
super-linear convergence
as long as
the matrix sequence
{B}^ converges to the Hessiank^
2 ∗ ∇f^ (˜x) in the
search direction
˜p:k^ ‖(Blim^ k→∞
(^2) − ∇f^ (˜xk ∗))˜p‖k^ = 0 ‖˜p‖ (^) k
Coordinate Descent Methods:
Slower than Steepest descent.
Useful of coordinates are decoupled and/or computation of thegradient is not possible or too expensive.^ Peter Blomgren,
〉^ Line Search Methods: Step Length Selection
— (4/24)
Line Search MethodsStep Length Selection
RecapStep Length Selection
Unconstrained Optimization — In the Line Search “Universe”
Global Optimization ProblemLocal StrategiesLine Search AlgorithmsSearch Direction^
Step Length Sufficient Descent ConditionsConvergence: GlobalConvergence: Local Rate Peter Blomgren,^ 〈
〉^ Line Search Methods: Step Length Selection
— (5/24)
Line Search MethodsStep Length Selection
RecapStep Length Selection
Lookahead: This Time — A Closer Look at Step Length^ We look at techniques for^ Best:^
Finding a minimizer to the 1D-function
Φ(α) =^ f^ (˜ x+^ α˜p)k^ k^
OK:^ Finding a step length
αwhich satisfy a “sufficient decreasek^ condition” such as the Wolfe conditions.We already have one such algorithm — Algorithm: Backtracking Line-search [1] Set α >^ 0,^ ρ^ ∈^
(0,^ 1),^ c^ ∈^
(0,^ 1), set^ α
=^ α
[2] While^ f (˜x+^ α˜pk^ k
)^ >^ f^ (˜x) + k^
T cα˜p∇f^ (k^ ˜x)k^
[3]^ α^ =^ ρα [4] End-While[5] Set^ αk^
=^ α Peter Blomgren,^ 〈[email protected]
〉^ Line Search Methods: Step Length Selection
— (6/24)
Line Search MethodsStep Length Selection
RecapStep Length Selection
Step Length Selection: Assumptions^ We must assume that
˜pis a descent direction,k^
i.e.^ that Φ
— thus all our steps will be in the positive direction.When the objective
f^ is quadratic
(^1) f (˜x) = ˜x 2 T^ T^ ˜Q˜x^ +^ b ˜x^ +^ c, the
optimal step can be found explicitly
∇f α= − k T^ (˜x)˜pk k T ˜pQ˜pkk
For general nonlinear
f^ we must use an
iterative scheme
to find
the step length
α.k^ How the line search is performed impacts the
robustness
and
efficiency^
of the overall optimization method. Peter Blomgren,^ 〈[email protected]
〉^ Line Search Methods: Step Length Selection
— (7/24)
Line Search MethodsStep Length Selection
RecapStep Length Selection
Step Length Selection: Classification^ It is natural to classify
line search methods
based on how many
derivatives they need:Methods based on 0
function values only
tend to be inef-
ficient, since they need to narrow the minimizer to a smallinterval.Gradient^ information 1
makes^ it
easier^ to
determine
if^ a
certain step is good —
i.e.^ it satisfies a sufficient reduction condition. >1 Methods requiring more than one derivate are quite rare;in order to compute the second derivative the full Hessian^2 ∇f^ (˜x) is needed, this is usually too high a cost.k^ Peter Blomgren,^ 〈[email protected]
〉^ Line Search Methods: Step Length Selection
— (8/24)
Line Search MethodsStep Length Selection
InterpolationThe Initial StepLS — Strong Wolfe Conditions
Step Length Selection: Interpolation
4 of 7
The next iterate (
α) is now the minimizer of Φ^2
(α) which lies inc
[0, α], it is given as one of the roots of the quadratic equation^1
′Φ(α) = 3 c^
(^2) aα+ 2bα
it is...
−b^ + α= (^2) √^2 b−^3 a
′Φ(0) 3 a
In the extremely rare cases that
αdoes not satisfy the Armijo^2 condition
Φ(α)^ ≤^ Φ(0) +^2
′ cαΦ(0) 12
we create a new cubic model interpolating
,^ Φ(α),^ and^1
Φ(α)^2
i.e.^ Φ(0), Φ
′(0) and the two most recent
α’s.
Peter Blomgren,^ 〈
〉^ Line Search Methods: Step Length Selection
— (13/24)
Line Search MethodsStep Length Selection
InterpolationThe Initial StepLS — Strong Wolfe Conditions
Step Length Selection: Interpolation
5 of 7
At this point we must introduce to following
safeguards
to
guarantee that we make sufficient progress:^ If^ |α
−^ α|^ k+1 k^ < ǫor^ |α^1 k
|^ < ǫ+1^2 then^ αk+
=^ α/^2 k^ The algorithm described
assumes^ that computing the derivative is
significantly more expensive than computing function values.However it is often, but not always, possible to compute thedirectional derivative (or a good estimate thereof) with minimalextra cost.In those cases we build the cubic interpolant so that it interpolates
′Φ(α), Φ(k α),^ Φ(αk^ k
),^ and^ Φ− 1 ′(α)k−^1
this is a^ Hermite Polynomial of degree 3
(see^ Math 541
Peter Blomgren,^ 〈
〉^ Line Search Methods: Step Length Selection
— (14/24)
Line Search MethodsStep Length Selection
InterpolationThe Initial StepLS — Strong Wolfe Conditions
Step Length Selection: Interpolation
6 of 7
The cubic Hermite polynomial satisfying^ H
(α) = Φ( 3 k−^1
α),^ Hk−^1
′(α) = Φk−^13
′(α)k−^1
H(α) = Φ(^3 k^
α),^ k^
′H(α) = Φk^3 ′(α).k^
can be written explicitly as^ H(^3
α)^ =
[α−α^ 1 + 2^
] [^ α−k− 1 k^ α−αk k− 1
]^2 α^ Φ(αk α−αk k− 1
] [α−αk (^) α−αk k− 1 ]^2 α−αk−^1 α−αk^ k−^1 Φ(α)k^
+^ (α^ −^ α
[^ α−k^ )k− 1 ]^2 α′^ Φ(αk α−αk k− 1
+^ (α^ −^ α
[^ α−αk−^1 )k α−αk^ k− ]^2 ′^ Φ(α)k^1
(Straight from
Math 541)... Peter Blomgren,^ 〈
〉^ Line Search Methods: Step Length Selection
— (15/24)
Line Search MethodsStep Length Selection
InterpolationThe Initial StepLS — Strong Wolfe Conditions
Step Length Selection: Interpolation
7 of 7
The minimizer of
H(α) in [α^3
, α] is either at one of the end points,k− 1 k^ or else in the interior (given setting
′ H(α) = 0). 3
The interior point is given by^ αk
=^ α−^ (+1 k^ α−^ α)k^ k−^1
[^ ′Φ(αk^
) +^ d−^ d^2 1 ′′ Φ(α) − Φ(α) + 2k k−^1
] d 2
where^ d^1
′= Φ(α
′) + Φ(αk− 1 [^ Φ(α) − (^3) k )^ −^ Φ(αk− 1 )k α−^ αk−^1 k
]
√ d=^ d 2 2 ′−^ Φ(αk−^11
′)Φ(α)k^
Either^ αk+
is accepted as the step length, or the search process continues...Cubic interpolation gives
quadratic convergence
in the step length
selection algorithm.^ Peter Blomgren,
〉^ Line Search Methods: Step Length Selection
— (16/24)
Line Search MethodsStep Length Selection
InterpolationThe Initial StepLS — Strong Wolfe Conditions
Step Length Selection: The Initial Step
1 of 2
For Newton and quasi-Newton methods, the search vector
˜pcontains ank^
intrinsic sense of
scale^ (being formed from the local descent, and curvature information), hence the initial trial step length should alwaysbe^ α= 1, otherwise we break the quadratic respective super-linear^0 convergence properties.For other search directions, such as
steepest descent
and^ conjugate
gradient^ (to be described later) directions which do not have a sense ofscale, other method must be used to select a good first trial step: Strategy #1:
Assume that the rate of change in the current iterationwill be the same as in the previous iteration, select
α:^0
[k][k− α=^ α 0
T˜p∇f^ (˜x1] k−^1
)k− 1 .T ˜p∇f (˜x) (^) k (^) k
Peter Blomgren,^ 〈
〉^ Line Search Methods: Step Length Selection
— (17/24)
Line Search MethodsStep Length Selection
InterpolationThe Initial StepLS — Strong Wolfe Conditions
Step Length Selection: The Initial Step
2 of 2
Strategy #2:
Use the minimizer of the quadratic interpolant to^ f^ (˜x),k−^1
f^ (˜x), andk^
′ φ(0) =^ ˜p T∇f^ (˜xk−k−^1
) as the 1
initial^ α:
2[f^ ([k] α= 0 ˜x)^ −^ f^ (˜xk^ k
T ˜p∇f^ (˜xkk−^1
If this strategy is used with a quadratically or super-linearlyconvergent algorithm, the choice of
αmust be modified slightly^0
to preserve the convergence properties:
[k] α= min(1 0 ,new^
[k], 1. 01 α) 0
this ensures that the step length
α= 1 will eventually always be^0
tried.^ Peter Blomgren,
〉^ Line Search Methods: Step Length Selection
— (18/24)
Line Search MethodsStep Length Selection
InterpolationThe Initial StepLS — Strong Wolfe Conditions
Line Search for the Strong Wolfe Conditions
1 of 6
Algorithm: LS/Strong Wolfe Conditions 01.^ Set^ α= 0, choose^0
α>^ 0,^ αmax^1
,^ c, and^ c,^ i^12 = 1
02.^ while( TRUE ) 03.^ Compute Φ(
α)i^
04.^ if (Φ(
α)^ >^ Φ(0) +i^
′ cαΦ(0)) 1 i or (Φ(α)^ ≥^ Φ(i^
α) and^ i^ >i−^1
05.^ α∗^
=^ zoom(αi−^1
, α), and^ terminate searchi^
06.^ Compute Φ
′(α)i^ ′ 07. if |Φ (α)| ≤ −cΦi^2 ′(0)
08.^ α∗^
=^ α, and^ terminate searchi^ ′ 09. if Φ( α)^ ≥^0 i^
10.^ α∗^
=^ zoom(α, αi^
), and^ terminate searchi− 1
11.^ Choose
α∈^ [α, αi+1^ i^
]max
12.^ i^ =^ i^
〉^ Line Search Methods: Step Length Selection
— (19/24)
Line Search MethodsStep Length Selection
InterpolationThe Initial StepLS — Strong Wolfe Conditions
Line Search for the Strong Wolfe Conditions
2 of 6
In the^ first stage
of the algorithm, either an acceptable step length, or a range [α, αi^
] containing an acceptable step length is identified — nonei+ of the conditions
04, 07, 09
are satisfied so the step length is increased
second stage
invokes a
function^ zoom
which will identify an acceptable step from the interval. Notes:^04 establishes that
αis too long a step, thusi^
αmust be in the∗^
range [αi−^1 , α].i^ If^07 holds, then both the strong Wolfe conditions hold (since
not(04)
must also hold.Finally, if^09
holds then the step is too large (since we are going uphill at this point.)^ Peter Blomgren,
〉^ Line Search Methods: Step Length Selection
— (20/24)