You minimise f(x,y)=4x2+2y2+5 by gradient descent with a fixed learning rate η, starting from (x0,y0)=(−1,2). (a) What is the largest learning rate for which gradient descent converges? (b) What do the iterates do at that learning rate, and above it?

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

What's being asked

Whether you can write the gradient-descent update for a separable quadratic, find the stability condition ∣1−ηλ∣<1, and describe what happens at and beyond the limit with actual numbers.

Key idea

The gradient is (8x,4y), so each coordinate updates independently and is multiplied by a fixed factor every step: xt+1=(1−8η)xt and yt+1=(1−4η)yt. A sequence multiplied by q each step shrinks to 0 only when ∣q∣<1, so we need ∣1−8η∣<1 and ∣1−4η∣<1, giving 0<η<0.25.

Steps

  1. Find the gradient and minimum: ∇f(x,y)=(8x, 4y) (the second derivatives along x and y are 8 and 4). The minimum is at (0,0) with f∗=5; at the start, f(−1,2)=4+8+5=17.
  2. Write the update θt+1=θt−η∇f(θt) for each coordinate: xt+1=xt−8ηxt=(1−8η)xt, so xt=(1−8η)tx0. Likewise yt=(1−4η)ty0.
  3. Find when both multipliers are smaller than 1 in magnitude: ∣1−8η∣<1  ⟺  0<η<0.25, and ∣1−4η∣<1  ⟺  0<η<0.5. Both must hold, so gradient descent converges exactly when 0<η<0.25 (the steeper x-coordinate sets the limit).
  4. Check an example inside the range, η=0.1: the multipliers are 0.2 and 0.6, so (−1,2)→(−0.2,1.2)→(−0.04,0.72)→⋯→(0,0).
  5. At the boundary η=0.25: the multipliers are 1−2=−1 and 1−1=0, giving (−1,2)→(1,0)→(−1,0)→(1,0)→⋯. Here y reaches 0 in one step, while x jumps between −1 and 1 forever with f stuck at 9.
  6. Above the limit, e.g. η=0.3: the x-multiplier is 1−2.4=−1.4, so x goes −1→1.4→−1.96→2.744→⋯ with ∣xt∣=1.4t→∞ and f→∞ (even though the y-multiplier −0.2 still shrinks y).

Common mistakes

How long your answer should be

Half a page; 4–5 minutes. Show the update rule, the two inequalities, and a few iterates for each case.

Read this

Previous in Linear algebra and optimisation: Why is every covariance matrix symmetric positive semidefinite, and when is it singular?
Next in Linear algebra and optimisation: A 4×6 matrix A has a null space of dimension 3, and b∈R4 lies in the column space of A. What is the rank of A, how many free parameters does the solution to Ax=b have, and could Ax=c have a solution for every c∈R4?