Two Outputs, Three Hidden Neurons

BackpropagationMedium+20 XP+20

Two Outputs, Three Hidden Neurons

A network reads two numbers, x1=1x_1 = 1x1​=1 and x2=2x_2 = 2x2​=2. It has three hidden neurons with ReLU and two output neurons with no activation. Every neuron first forms its weighted sum zzz: each input times its weight, plus the bias.

Input → hidden

hidden neuronweight from x1x_1x1​weight from x2x_2x2​bias
1111−0.5-0.5−0.5222
2333−3-3−3111
3222000−0.5-0.5−0.5

Hidden → output

output neuronweight from hidden 1weight from hidden 2weight from hidden 3bias
1222−1-1−1000−3-3−3
2222333−1-1−1222

The targets are 333 for output 1 and 3.53.53.5 for output 2. The loss is the MSE over the two outputs:

L=12[(output1−3)2+(output2−3.5)2]L = \frac{1}{2}\Big[(\text{output}_1 - 3)^2 + (\text{output}_2 - 3.5)^2\Big]L=21​[(output1​−3)2+(output2​−3.5)2]

The backward pass has to carry this error from the outputs into the hidden layer. What each hidden neuron needs is its error signal

∂L∂z\frac{\partial L}{\partial z}∂z∂L​

which says how fast the loss changes as that neuron's weighted sum is nudged. The gradients of every weight and bias feeding the neuron are built from this one number.

What error signals reach hidden neurons 1, 2 and 3?

Hints

Solve it to unlock the solution

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

Select all that apply.