Two Numbers for Input Two

BackpropagationMedium+20 XP+20

Two Numbers for Input Two

A hidden layer in the middle of a network has three inputs x1,x2,x3x_1, x_2, x_3x1​,x2​,x3​ (the outputs of the layer below) and two neurons, AAA and BBB. On one training example the inputs are

x1=2,x2=0,x3=−1x_1 = 2, \qquad x_2 = 0, \qquad x_3 = -1x1​=2,x2​=0,x3​=−1

and the layer's weights are

neuronweight on x1x_1x1​weight on x2x_2x2​weight on x3x_3x3​
AAA111444−2-2−2
BBB0.50.50.5−1-1−1333

Each neuron computes a weighted sum z=w1x1+w2x2+w3x3+bz = w_1x_1 + w_2x_2 + w_3x_3 + bz=w1​x1​+w2​x2​+w3​x3​+b and passes it through its activation. Write wA2w_{A2}wA2​ for the weight connecting x2x_2x2​ to neuron AAA.

The backward pass has already worked its way back to this layer. Taking each neuron's activation into account, it has found the slope of the loss with respect to each neuron's weighted sum:

∂L∂zA=3,∂L∂zB=−0.5\frac{\partial L}{\partial z_A} = 3, \qquad \frac{\partial L}{\partial z_B} = -0.5∂zA​∂L​=3,∂zB​∂L​=−0.5

The layer now has two jobs. It gives each of its six weights a gradient, and it hands a share of the blame back to each of its three inputs, so that the layer below can carry the backward pass on. The blame handed to an input is the slope of the loss with respect to that input.

For input x2x_2x2​: what is the gradient of wA2w_{A2}wA2​, and how much blame does this layer hand back to x2x_2x2​?

Hints

Solve it to unlock the solution

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

Select all that apply.