What is the Armijo (sufficient decrease) condition in backtracking line search, why is simply requiring f(x+αd)<f(x) not enough to guarantee convergence, and what step size does backtracking choose on f(x)=x2 from x0=2 in direction d=−4 with initial α0=1, shrink factor β=0.5 and c1=0.25?

Linear algebra and optimisation, Line search
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can apply the Armijo sufficient-decrease check step by step and explain why plain decrease f(x+αd)<f(x) is too weak.

Key idea

Backtracking line search starts from a trial step α0 and multiplies α by β∈(0,1) until f(x+αd)≤f(x)+c1α∇f(x)⊤d, where c1∈(0,1). Requiring f to drop by at least a fraction c1 of the linear prediction stops steps from either jumping across a valley or stalling with tiny improvements.

Steps

  1. Write the Armijo condition for step size α>0 along a descent direction d (where the directional slope ∇f(x)⊤d<0): f(x+αd)≤f(x)+c1α∇f(x)⊤d, where c1∈(0,1) is the sufficient-decrease constant and β∈(0,1) is the shrink factor.
  2. Explain why plain f(x+αd)<f(x) is not enough: tiny shrinking steps (for example, xt=1+2−t on f(x)=x2) reduce f at every step yet stall at x=1 instead of reaching 0, and huge steps can jump across a valley to a point with almost no drop. Starting from a fixed α0>0 and requiring proportional drop c1α∇f(x)⊤d avoids both traps.
  3. Set up the example at x0=2: f(2)=4, ∇f(2)=4, and ∇f(2)⊤d=4(−4)=−16, so the Armijo threshold is 4+0.25α(−16)=4−4α.
  4. Try α=1: x0+αd=2−4=−2, so f(−2)=4. The threshold is 4−4(1)=0. Since 4≰0, reject α=1 and shrink α←0.5×1=0.5.
  5. Try α=0.5: x0+αd=2−2=0, so f(0)=0. The threshold is 4−4(0.5)=2. Since 0≤2, accept α=0.5 and update x1=0.

Common mistakes

How long your answer should be

Half a page; 4–5 minutes.

Read this

Previous in Linear algebra and optimisation: What are the first-order and second-order conditions for a twice-differentiable function f:Rd→R to be convex, and how do you prove that the second-order condition (∇2f(x)⪰0 everywhere) implies the first-order condition (f(y)≥f(x)+∇f(x)⊤(y−x))?
Next in Linear algebra and optimisation: What is a subgradient of a convex function at a non-differentiable point, and what is the subdifferential of f(w)=∣w∣ at w=0? Why can the subgradient method increase the objective on some steps, and why must its step size decay instead of staying constant?