Four Layers, Two Neurons Each

Neural Network Building BlocksHard+30 XP+30

Four Layers, Two Neurons Each

A network reads a single number xxx between 000 and 111. It has four hidden layers of two ReLU neurons each, a left neuron and a right neuron in every layer (eight hidden neurons in all), and one output neuron with no activation. Every weight and bias is fixed:

neuronreadsweightsbiasactivation
hidden 1, leftxxx111000ReLU
hidden 1, rightxxx111−0.5-0.5−0.5ReLU
hidden 2, 3 and 4, leftleft and right of the layer below222 on left, −4-4−4 on right000ReLU
hidden 2, 3 and 4, rightleft and right of the layer below222 on left, −4-4−4 on right−0.5-0.5−0.5ReLU
outputleft and right of hidden 4222 on left, −4-4−4 on right−0.5-0.5−0.5none

For example, the right neuron of hidden layer 3 outputs ReLU(2⋅left−4⋅right−0.5)\text{ReLU}(2 \cdot \text{left} - 4 \cdot \text{right} - 0.5)ReLU(2⋅left−4⋅right−0.5), where left and right are the two outputs of hidden layer 2.

The network labels xxx positive when its output z>0z > 0z>0 and negative otherwise. As xxx sweeps from 000 to 111, the positive labels come in separate stretches, each cut off from the next by values of xxx labelled negative.

Now picture a wide network with the same budget. It has eight ReLU neurons in a single hidden layer, each reading xxx directly, and they feed one output neuron of the same kind. Its weights and biases can be anything you like.

Which statement is correct?

Hints

Solve it to unlock the solution

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

Select all that apply.