Correct answer: YES
The new
Let's understand why.
We have:
Hidden layer activation = Sigmoid
Output layer activation = Softmax
Bias = 0
The update rule is:
Here:
For
The gradient is:
But the gradient reaching the hidden layer depends on the output weights
Since all output weights are initialized to zero:
Therefore:
And consequently:
W₁ does not change
This is an example of the zero gradient problem caused by zero initialization of output weights.
Remember:
Gradient of
Exam trick: If output layer weights are initialized to zero, the first backward pass cannot propagate a gradient to the hidden layer weights.
Correct answer: NO
This is the opposite of the previous question. Let's understand why.
Hidden activation = Sigmoid
Output activation = Softmax
Bias = 0
For
Using the chain rule:
The important point is:
Here,
Since:
And
Therefore:
Generally, the gradient is non-zero.
Therefore:
| Weight | Initial value | Gradient | Changes? |
|---|---|---|---|
| Random | Zero | No | |
| Zero | Generally non-zero | Yes |
Remember this exam trick:
Zero initialization of weights does NOT mean those weights can never update.