IAE Academy

GATE 2025 DA Q.48: solution and answer

GATE 2025 · DAQ.48 · 2 marks · MSQ

Which of the following statements is/are correct about the rectified linear unit (ReLU) activation function defined as , where ?

  1. (A)

    ReLU is continuous everywhere

  2. (B)

    ReLU is differentiable everywhere

  3. (C)

    ReLU is not differentiable at

  4. (D)

    , for all

See the question in the paper

Answer and solution

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)

  1. Write ReLU piecewise: for and for .

  2. 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.

  3. Differentiability at : the left derivative is . The right derivative is . They differ, so the derivative does not exist at (a corner).

  4. Hence (B) is false, since ReLU is not differentiable at , and (C) is true.

  5. 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 .

  6. 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

More Neural networks questions