Backward Through Two Layers

The Multivariate Chain RuleMedium+20 XP+20

Backward Through Two Layers

A tiny two-layer network is trained on a single example. Its computational graph is

NodeDefinition
hhhw1x+b1w_1 x + b_1w1​x+b1​
ooow2h+b2w_2 h + b_2w2​h+b2​
rrro−yo - yo−y
LLLr2r^2r2

with values

x=3,w1=2,b1=−1,w2=4,b2=2,y=20x = 3, \quad w_1 = 2, \quad b_1 = -1, \quad w_2 = 4, \quad b_2 = 2, \quad y = 20x=3,w1​=2,b1​=−1,w2​=4,b2​=2,y=20

Run a forward pass, then a backward pass.

What is ∂L∂w1\dfrac{\partial L}{\partial w_1}∂w1​∂L​?

Hints

Solve it to unlock the solution

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

Select all that apply.