1
$\begingroup$

Suppose I have a deep neural network using the ReLU activation function, that is $\sigma(x) = max(x, 0)$. Suppose some weight $w_i$ becomes exactly $0$ at some point. Am I getting something wrong here, or is it the case that the gradient w.r.t. $w_i$ will be zero at all times and hence $w_i$ won't get any further updates? I feel like I am missing something here.

$\endgroup$

1 Answer 1

1
$\begingroup$

The derivative (of a loss function) with respect to $w_i$ can be any value, independent of the value of $w_i$. (E.g. $f(x)=x$ has derivative 1 everywhere, even at $x=0$.)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.