The Penalty on Day One

Training Deep NetworksMedium+20 XP+20

The Penalty on Day One

A digit classifier has 784 inputs, a hidden layer of 256 ReLU neurons, a second hidden layer of 128 ReLU neurons, and 10 output neurons feeding a softmax. It is trained with cross-entropy, and every layer is fully connected.

Initialization is He: every weight in a layer is drawn independently, with mean 000 and variance 2/n2/n2/n, where nnn is the number of inputs each neuron in that layer receives. Biases start at 000.

The loss includes an L2 penalty on the weights (not the biases):

penalty=0.01×(sum of the squares of every weight in the network)\text{penalty} = 0.01 \times (\text{sum of the squares of every weight in the network})penalty=0.01×(sum of the squares of every weight in the network)

On the very first mini-batch, before any update, the data part of the loss (the cross-entropy) comes out at 2.402.402.40.

At initialization, what is the expected value of the penalty, as a multiple of that data loss? In other words, find the expected penalty divided by 2.402.402.40.

Round your answer to 2 decimal places.

Hints

Solve it to unlock the solution

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