Starting from w0=3, perform two steps of gradient descent on f(w)=2(w−1)2+5 with learning rate η=0.4. Does the iterate overshoot the minimum, and do the iterates still converge?

Linear algebra and optimisation, Gradient methods
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can compute gradient-descent iterates by hand and distinguish damped oscillation (overshooting that still converges) from divergence.

Key idea

With f′(w)=4(w−1), the update multiplies the error wt−1 by 1−4η=−0.6 at each step. A negative factor between −1 and 0 flips the sign—overshooting the minimum w∗=1 on every step—yet shrinks the error by 40% each time, so it converges.

Steps

  1. Find the derivative and minimum: f′(w)=4(w−1) and f′′(w)=4. Setting f′(w)=0 gives the minimum w∗=1, with f(1)=5.
  2. Step 1 from w0=3: f′(3)=4(3−1)=8, so w1=w0−ηf′(w0)=3−0.4×8=−0.2. Notice w1=−0.2<1, so it jumped across the minimum w∗=1.
  3. Step 2 from w1=−0.2: f′(−0.2)=4(−0.2−1)=−4.8, so w2=−0.2−0.4×(−4.8)=1.72. The objective drops from f(3)=13 to f(−0.2)=7.88 to f(1.72)=6.0368.
  4. Check convergence: wt+1−1=(wt−1)−4η(wt−1)=(1−4η)(wt−1)=−0.6(wt−1). Since ∣−0.6∣<1, the distance ∣wt−1∣=0.6t⋅2→0, so the iterates oscillate across w∗=1 and converge.

Common mistakes

How long your answer should be

Half a page; 3 minutes.

Read this

Previous in Linear algebra and optimisation: Geometrically, why must the gradient of the objective be parallel to the gradient of the constraint at a smooth optimum of min⁡xf(x) subject to g(x)=0?
Next in Linear algebra and optimisation: Minimise f(w)=12w2 starting from w0=4 with initial velocity v0=0, learning rate η=0.25 and momentum β=0.5. Compute w1 and w2 using (a) heavy-ball momentum (vt+1=βvt−η∇f(wt), wt+1=wt+vt+1) and (b) Nesterov accelerated gradient (vt+1=βvt−η∇f(wt+βvt), wt+1=wt+vt+1). How do the two updates differ?