Two Knobs, Two Steps, One Loss

Gradient DescentHard+30 XP+30

Two Knobs, Two Steps, One Loss

A two-parameter model is trained on the loss

L(w1,w2)=(2w1+w2−7)2+3w2 2L(w_1, w_2) = (2w_1 + w_2 - 7)^2 + 3w_2^{\,2}L(w1​,w2​)=(2w1​+w2​−7)2+3w22​

The second term is a penalty that pushes w2w_2w2​ towards zero, so the two parameters are pulling against each other.

Both parameters are updated simultaneously. Within a single step, each partial derivative is evaluated at the parameter values held at the start of that step — before either parameter has moved:

w1←w1−α ∂L∂w1,w2←w2−α ∂L∂w2w_1 \leftarrow w_1 - \alpha\,\frac{\partial L}{\partial w_1}, \qquad w_2 \leftarrow w_2 - \alpha\,\frac{\partial L}{\partial w_2}w1​←w1​−α∂w1​∂L​,w2​←w2​−α∂w2​∂L​

quantityvalue
starting w1w_1w1​333
starting w2w_2w2​222
learning rate α\alphaα0.050.050.05
number of steps222

What is the value of the loss after the two steps?

Round your answer to 2 decimal places.

Hints

Solve it to unlock the solution

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