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

MCQ · 2 marks · Problem ML-XVAL-0022

Consider the neural network shown in the figure withinputs: \(u, v\)weights: \(a, b, c, d, e, f\)output: \(y\)\(R\) denotes the ReLU function, \(R(x) = \max(0, x)\).
Diagram
Given \(u = 2, v = 3\),\(a = 1, b = 1, c = 1, d = -1, e = 4, f = -1\),which one of the following is correct?
  1. A
    \(\frac{\partial y}{\partial a} = 8, \frac{\partial y}{\partial f} = 0\)
  2. B
    \(\frac{\partial y}{\partial a} = 1, \frac{\partial y}{\partial f} = 0\)
  3. C
    \(\frac{\partial y}{\partial a} = 1, \frac{\partial y}{\partial f} = -1\)
  4. D
    \(\frac{\partial y}{\partial a} = 2, \frac{\partial y}{\partial f} = -1\)

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

Show the worked solutionFrom the figure, the top hidden unit receives \(au+bv\), the bottom one \(cu+dv\), and the output is\[\boxed{y=R\big(e\,R(au+bv)+f\,R(cu+dv)\big)}\]Top: \(1(2)+1(3)=5>0\), output \(5\). Bottom: \(1(2)+(-1)(3)=-1<0\), output \(0\).Output pre-activation: \(4(5)+(-1)(0)=20>0\), so the output ReLU passes gradients.\[\frac{\partial y}{\partial a}=e\cdot1\cdot u=4\cdot2=8,\qquad \frac{\partial y}{\partial f}=R(cu+dv)=0.\]Answer: A

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