One Step Downhill

Correlation & RegressionHard+30 XP+30

One Step Downhill

Gradient descent is run on the mean-squared-error loss

J(b0,b1)=1n∑i=1n(b0+b1xi−yi)2J(b_0, b_1) = \frac{1}{n}\sum_{i=1}^{n} (b_0 + b_1 x_i - y_i)^2J(b0​,b1​)=n1​∑i=1n​(b0​+b1​xi​−yi​)2

with the update rules

b0:=b0−η2n∑(y^i−yi),b1:=b1−η2n∑(y^i−yi) xib_0 := b_0 - \eta \frac{2}{n} \sum (\hat{y}_i - y_i), \qquad b_1 := b_1 - \eta \frac{2}{n} \sum (\hat{y}_i - y_i)\,x_ib0​:=b0​−ηn2​∑(y^​i​−yi​),b1​:=b1​−ηn2​∑(y^​i​−yi​)xi​

The data are the four points

(1, 3),(2, 5),(3, 4),(4, 8)(1,\,3),\quad (2,\,5),\quad (3,\,4),\quad (4,\,8)(1,3),(2,5),(3,4),(4,8)

Training starts at b0=1b_0 = 1b0​=1 and b1=1b_1 = 1b1​=1 with learning rate η=0.1\eta = 0.1η=0.1. Both parameters are updated simultaneously, each using the predictions from the starting values.

What are b0b_0b0​ and b1b_1b1​ after exactly one step?

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.

Select all that apply.