GATE DA 2025 · Multi-Layer Perceptron & Feed-Forward Neural Networks

MSQ · 2 marks · Problem ML-NNET-0010

Which of the following statements is/are correct about the Rectified Linear Unit (ReLU) activation function defined as \(\text{ReLU}(x) = \max(0, x)\)?
  1. A
    ReLU is continuous everywhere.
  2. B
    ReLU is differentiable everywhere.
  3. C
    ReLU is not differentiable at \(x = 0\).
  4. D
    \(\text{ReLU}(x) = \text{ReLU}(ax)\) for all \(a \in \mathbb{R}\).

Solve it on GATE DA practice →More Model Validation & Neural Networks problems

Show the worked solution\[\boxed{\text{ReLU}(x)=\max(0,x)=\begin{cases}x, & x\ge0\\ 0, & x<0\end{cases}}\](A) Correct. Both pieces are continuous, and at \(x=0\) the one-sided limits are both \(0=\text{ReLU}(0)\).(B) Incorrect. At \(x=0\) the left derivative is \(\lim_{h\to0^-}\dfrac{0-0}{h}=0\) and the right derivative is \(\lim_{h\to0^+}\dfrac{h-0}{h}=1\); they differ.(C) Correct. This is the corner found in (B).(D) Incorrect. For \(a=-1\), \(x=1\): \(\text{ReLU}(1)=1\) but \(\text{ReLU}(-1)=0\). (Even for \(a>0\) the true identity is \(\text{ReLU}(ax)=a\,\text{ReLU}(x)\), so \(\text{ReLU}(x)=\text{ReLU}(ax)\) for every \(x\) only when \(a=1\).)Answer: A, C

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com