A Node That Feeds Two Places

The Multivariate Chain RuleMedium+20 XP+20

A Node That Feeds Two Places

A tiny model is written as a computational graph. Its inputs are the data value xxx and the parameters www and bbb:

NodeDefinition
uuuwxw xwx
vvvu+bu + bu+b
sssv2v^2v2
LLLs⋅us \cdot us⋅u

Look carefully at where uuu is used: it feeds the addition node and the final multiplication node. Two arrows leave it.

One forward pass is run with

x=4,w=3,b=−2x = 4, \qquad w = 3, \qquad b = -2x=4,w=3,b=−2

A backward pass then follows, starting from ∂L∂L=1\dfrac{\partial L}{\partial L} = 1∂L∂L​=1.

What value does the backward pass deliver for ∂L∂w\dfrac{\partial L}{\partial w}∂w∂L​? Give the exact value.

Hints

Solve it to unlock the solution

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