advanced31 min studyLesson 292 in Mathematics

Descent directions and Wolfe line search

Use decrease and curvature tests together to reject steps that are either wasteful or dangerously short.

On this page

What you’ll understand

  • Derive sufficient decrease from a descent direction.
  • Check weak and strong Wolfe conditions on a numerical trial.
  • State the assumptions behind a stationarity conclusion from line search.

Choosing a direction and choosing a distance solve different problems. A negative directional derivative guarantees improvement for sufficiently small positive movements, but it does not specify a useful scale. An algorithm can make endlessly tiny improvements while remaining far from stationarity. Wolfe line search counters that failure by combining a value decrease test with a slope test. The goal is a defensible accepted step, not exact minimization along the ray, and the derivative information is assumed to be sufficiently accurate for the tests.

A direction is a local promise

At a point with nonzero gradient g, a vector p is a descent direction when its inner product with g is strictly negative. Differentiability then makes the objective decrease for all sufficiently small positive step lengths. A positive-definite scaling matrix B gives the useful choice p solving Bp=−g: multiplying by p shows that the directional derivative is minus a positive quadratic form. An indefinite Newton Hessian need not have that property and must be checked or modified.

Write the objective along the ray as a scalar function phi. Armijo sufficient decrease asks the actual value to beat a fixed fraction of the tangent prediction. This excludes long trials whose improvement is inadequate, but arbitrarily small trials usually satisfy it too. Pure acceptance by decrease therefore does not address short-step stagnation. The additional curvature test asks whether the downhill slope has relaxed enough to justify stopping the search along this direction.

ϕ(α)=f(x+αp),ϕ′(0)=gTp<0,ϕ(α)≤ϕ(0)+c1αϕ′(0)\phi(\alpha)=f(x+\alpha p),\quad \phi'(0)=g^{\mathsf T}p<0,\qquad \phi(\alpha)\leq\phi(0)+c_1\alpha\phi'(0)
Armijo uses 0<c₁<1. Its right-hand side lies below the current value because the initial directional derivative is negative.↔ Scroll wide equations horizontally.

Curvature guards the other end

The weak Wolfe curvature condition requires the new directional derivative to be at least a fraction of the initial negative derivative. A slope that remains almost as negative as before indicates that the step was too short. Strong Wolfe instead bounds the absolute new slope, also rejecting a trial that overshoots into a very steep uphill region. Choose constants strictly ordered between zero and one. Search algorithms generally bracket and refine a step interval; simply shrinking forever cannot guarantee the curvature requirement.

For a continuously differentiable function bounded below along the entire search ray, with a genuine descent direction and admissible constants, Wolfe steps exist. This existence result concerns an ideal search and an unbounded positive ray, not a fixed finite list of trials or a bounded feasible segment. In constrained problems one must respect admissible step lengths, and in noisy simulations a derivative comparison may be dominated by evaluation error. Those changes require safeguards beyond the deterministic statement.

ϕ′(α)≥c2ϕ′(0)(weak Wolfe),∣ϕ′(α)∣≤c2∣ϕ′(0)∣(strong Wolfe),0<c1<c2<1\phi'(\alpha)\geq c_2\phi'(0)\quad\text{(weak Wolfe)},\qquad |\phi'(\alpha)|\leq c_2|\phi'(0)|\quad\text{(strong Wolfe)},\quad 0<c_1<c_2<1
Either curvature condition is paired with Armijo. Strong Wolfe implies weak Wolfe for an initially negative derivative; the converse is false after a large uphill overshoot.↔ Scroll wide equations horizontally.

From one accepted trial to a sequence

A standard Zoutendijk argument assumes the objective is bounded below, the gradient is Lipschitz on a neighborhood containing the relevant level set and search segments, every direction is descending, and Wolfe steps are accepted. Summing decrease bounds controls the sum of squared gradient norms weighted by the squared cosine of the angle to negative gradient. If those angles stay uniformly away from ninety degrees, the gradient norms tend to zero. Direction quality is part of the theorem, not a side effect of the line search.

This global convergence terminology means a stationarity guarantee under the stated assumptions without requiring an initial point already inside a local Newton neighborhood. It does not mean global minimization of a nonconvex function, nor does it guarantee that the iterates converge to a single point. Keep logs of trial evaluations, accepted step lengths, and gradient norms. A decreasing objective alone can conceal poor directions, derivative errors, or progress that has become negligible relative to the problem's scale.

A step can decrease and still be too short

For f(x)=x2/2f(x)=x^2/2, start at x=2 with direction p=−2. Use c1=0.1c_1=0.1 and c2=0.5c_2=0.5. Compare trials α=0.1 and α=0.75.

  1. Along the ray, ϕ(α)=2(1−α)2\phi(\alpha)=2(1-\alpha)^2 and ϕ′(α)=−4(1−α)\phi'(\alpha)=-4(1-\alpha). Initially the value is two and the slope is minus four. At α=0.1 the value is 1.62, below the Armijo bound 1.96.

  2. The same short trial has slope −3.6. Weak Wolfe needs a slope at least −2, so it fails; strong Wolfe also fails because 3.6 exceeds two. Sufficient decrease alone would have accepted this unnecessarily short movement.

  3. At α=0.75 the new point is 0.5, value 0.125, and slope −1. The Armijo bound is 1.7 and the strong curvature bound is two. Both tests pass, so this trial satisfies strong and weak Wolfe.

The result

The larger trial passes both tests without being an exact line minimizer. The smaller trial demonstrates the distinct purpose of the curvature condition.

Explore the model

Interactive lab

Interactive lab · optimization

Separate small movement from stationarity

Pause and Reset; set η=0.1 and x₀=2, then predict the first value and Step once. Repeat from Reset with both η=0.75 and x₀=2. Expect first points 1.8 and 0.5. This fixed-step quadratic instrument does not search or display Wolfe tests; evaluate those tests using the worked calculation.

Separate small movement from stationarityGradient descent on f(x) = x²/2: xₙ = (1 − η)ⁿx₀. Playback advances two discrete iterations per second. Values outside |x| ≤ 4 are explicitly reported. Current readings: Position x0: 2; Objective x²/2: 2; Iteration behavior: Stable step. All parameters are adjustable with the labeled controls below.−4−202402.174.356.528.7Parameter xf(x) = x²/2n = 0
ObjectiveDiscrete iterate
Position x0
2
Objective x²/2
2
Iteration behavior
Stable step
n = 0 · t = 0 s

Gradient descent on f(x) = x²/2: xₙ = (1 − η)ⁿx₀. Playback advances two discrete iterations per second. Values outside |x| ≤ 4 are explicitly reported. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forSmall accepted movements can leave a large gradient; a curvature test supplies information beyond objective decrease.

Check your understanding

Why can repeatedly halving an Armijo trial fail to produce a Wolfe step?

Try it yourself

In the same ray problem and with the same constants, check α=1.5. Give the new point, value, directional derivative, and both strong-Wolfe tests.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

The slope along the ray includes the direction p=−2; it is not just the scalar gradient at the new point.

Compare with the solution

The point is −1 and its value is 0.5. The ray derivative is (−1)(−2)=2(-1)(-2)=2. Armijo allows 2−0.1(1.5)(4)=1.42-0.1(1.5)(4)=1.4, so the value passes. Strong Wolfe allows absolute slope at most two, and the computed slope equals that bound. Thus α=1.5 passes both tests despite crossing the minimizer. Weak Wolfe also passes since two is at least minus two.

Take it with you

  • A descent direction ensures sufficiently short steps improve the value.
  • Armijo and Wolfe curvature tests control different failure modes.
  • Stationarity convergence also needs smoothness, lower bounds, and directions with useful angles.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.