Backprop Through a Two-Layer Graph

Mixed: Chain Rule & BackpropagationMedium+20 XP+20

Backprop Through a Two-Layer Graph

A tiny network computes its output through this chain of operations:

z=w1x+b1,a=σ(z),y^=w2a,L=12(y^−y)2z = w_1 x + b_1, \qquad a = \sigma(z), \qquad \hat{y} = w_2 a, \qquad L = \tfrac{1}{2}(\hat{y} - y)^2z=w1​x+b1​,a=σ(z),y^​=w2​a,L=21​(y^​−y)2

where σ(z)=11+e−z\sigma(z) = \dfrac{1}{1 + e^{-z}}σ(z)=1+e−z1​ is the sigmoid.

The current values are

symbolxxxw1w_1w1​b1b_1b1​w2w_2w2​yyy
value2221.51.51.5−3-3−3444333

Run the forward pass, then backpropagate. What is ∂L∂w1\dfrac{\partial L}{\partial w_1}∂w1​∂L​ at these values?

Hints

Solve it to unlock the solution

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

Select all that apply.