Two Steps Down a Squared Bracket

Gradient DescentEasy+10 XP+10

Two Steps Down a Squared Bracket

A one-parameter model is trained on the loss

f(x)=(2x−3)2+5f(x) = (2x - 3)^2 + 5f(x)=(2x−3)2+5

using the gradient descent update rule

x←x−α f′(x)x \leftarrow x - \alpha\, f'(x)x←x−αf′(x)

Training starts at x0=5x_0 = 5x0​=5 with learning rate α=0.05\alpha = 0.05α=0.05. Each step uses the slope measured at the position the algorithm is standing on at that moment.

Exactly two steps are taken. What is the value of xxx afterwards?

Round your answer to 2 decimal places.

Walking Downhill, One Step at a Time

Step size stays fixed at α = 0.30 here.
-8-4048
new x = old x − α × slope
5.950 = 7.000 − 0.30 × 3.500
Steps taken: 0 · Loss now: 14.250

The slope tells you which way is uphill, so you subtract it to head downhill. Near the edge the ground is steep and the steps are long. As the ground flattens the slope shrinks, so the steps shrink with it, and the walk eases into the bottom instead of shooting past it.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.