Correct answer: YES

The new W1 will be the same as the previous W1 after one iteration of gradient descent.

Let's understand why.

1. Understand the network

We have:

Input→Hidden Layer→Output Layer

2. How does gradient descent update weights?

The update rule is:

W1new=W1old−η∂L∂W1

Here:

For W1 to change, its gradient must be non-zero.

3. Apply the chain rule

The gradient is:

∂L∂W1=∂L∂h⋅∂h∂W1

But the gradient reaching the hidden layer depends on the output weights W2:

∂L∂h=W2T∂L∂z

Since all output weights are initialized to zero:

W2=0

Therefore:

∂L∂h=0

And consequently:

∂L∂W1=0

4. Apply gradient descent

W1new=W1old−η(0)

W1new=W1old

W₁ does not change

5. Important concept for exams

This is an example of the zero gradient problem caused by zero initialization of output weights.

Remember:

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.

1. Given information

2. Gradient descent update rule

W2new=W2old−η∂L∂W2

For W2 to change, its gradient must be non-zero.

3. Calculate the gradient

Using the chain rule:

∂L∂W2=∂L∂y^⋅∂y^∂z⋅∂z∂W2

The important point is:

∂z∂W2=h

Here, h is the hidden layer output.

Since:

h=sigmoid⁡(W1x)

And W1 is randomly initialized, the hidden layer produces non-zero values.

Therefore:

∂L∂W2≠0

Generally, the gradient is non-zero.

4. Apply gradient descent

W2new=W2old−η(non-zero gradient)

Therefore:

W2new≠W2old

5. Compare both questions

WeightInitial valueGradientChanges?
W1RandomZeroNo
W2ZeroGenerally non-zeroYes

Remember this exam trick:

Zero initialization of weights does NOT mean those weights can never update.