One Mini-Batch Step on a Linear Model

Variants of Gradient DescentMedium+20 XP+20

One Mini-Batch Step on a Linear Model

A one-parameter linear model predicts y^=wx\hat{y} = wxy^​=wx. The loss on a single example is ℓi=(wxi−yi)2\ell_i = (wx_i - y_i)^2ℓi​=(wxi​−yi​)2, and the loss on a mini-batch BBB is the average over that mini-batch:

LB(w)=1∣B∣∑i∈B(wxi−yi)2L_B(w) = \frac{1}{|B|}\sum_{i \in B} (wx_i - y_i)^2LB​(w)=∣B∣1​∑i∈B​(wxi​−yi​)2

The full training set is:

examplexix_ixi​yiy_iyi​
1111333
2222222
3333444
4444999

Starting from w=1w = 1w=1, one mini-batch step is taken with learning rate α=0.1\alpha = 0.1α=0.1 on the mini-batch B={example 1, example 2}B = \{\text{example }1,\ \text{example }2\}B={example 1, example 2}.

What is www after that single update?

Hints

Solve it to unlock the solution

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

Select all that apply.