Which of the following statements is/are correct about the rectified linear unit (ReLU) activation function defined as , where ?
- (A)
ReLU is continuous everywhere
- (B)
ReLU is differentiable everywhere
- (C)
ReLU is not differentiable at
- (D)
, for all
Which of the following statements is/are correct about the rectified linear unit (ReLU) activation function defined as , where ?
ReLU is continuous everywhere
ReLU is differentiable everywhere
ReLU is not differentiable at
, for all
ANSWER
The correct statements are (A) and (C): ReLU is continuous everywhere but not differentiable at .
Official answer: A, CSource: Official answer key, GATE 2025 DA (IIT Roorkee)
Write ReLU piecewise: for and for .
Continuity: both pieces are linear, so the only point to check is . The left limit is , the right limit is , and . So ReLU is continuous everywhere, and (A) is correct.
Differentiability at : the left derivative is . The right derivative is . They differ, so the derivative does not exist at (a corner).
Hence (B) is false, since ReLU is not differentiable at , and (C) is true.
Test (D) with a negative scale: take and . Then but , so the equality fails and (D) is false. It holds only for (positive homogeneity), not for every real .
Correct options: (A) and (C).
KEY IDEA
ReLU is continuous everywhere, but it has a corner at where the left slope is and the right slope is , so it is not differentiable there. It is positively homogeneous, so only for .
WATCH OUT FOR
Treating ReLU as differentiable everywhere because it is piecewise linear, or assuming for every real . Negative flips the sign of the input and changes the output.
From the GATE 2025 DA paper. Every question of this paper · Download the full paper · All 5 Neural networks questions, with notes