IAE Academy

GATE 2025 DA Q.42: solution and answer

GATE 2025 · DAQ.42 · 2 marks · MCQ

Consider the neural network shown in the figure with

inputs:
weights:
output:

denotes the ReLU function, .

Given , ,
,

which one of the following is correct?

GATE 2025 DA question 42: Feed-forward network.Tap to open full size
Figure from the GATE 2025 DA paper. It is part of the question.
Figure description

Feed-forward network. Two input nodes u (top) and v (bottom). Two hidden ReLU nodes R: top and bottom. Arrows: u to top R labelled a; v to top R labelled b; u to bottom R labelled c; v to bottom R labelled d (a and d are horizontal, b and c cross). Both hidden R nodes feed a single output ReLU node R: top hidden to output labelled e, bottom hidden to output labelled f. The output node emits y.

  1. (A)

    ∂y/∂a = 8, ∂y/∂f = 0

  2. (B)

    ∂y/∂a = 1, ∂y/∂f = 0

  3. (C)

    ∂y/∂a = 1, ∂y/∂f = −1

  4. (D)

    ∂y/∂a = 2, ∂y/∂f = −1

Answer and solution

ANSWER

Option (A): and .

Official answer: ASource: Official answer key, GATE 2025 DA (IIT Roorkee)

  1. Read the figure: joins to the top ReLU unit, joins to the top unit, joins to the bottom unit, and joins to the bottom unit. The top and bottom units feed the output ReLU through and respectively. So , , , , and .

  2. Top hidden unit: , so .

  3. Bottom hidden unit: , so .

  4. Output unit: , so . The output ReLU is active, with .

  5. The derivative of ReLU is for and for . The top unit has , so .

  6. Chain rule for :

  7. Chain rule for : The bottom unit is inactive, so and has no effect on at this input.

  8. So and , which is option (A).

KEY IDEA

Run the forward pass to see which ReLUs are active. Then apply the chain rule through the active path only. A ReLU with a negative pre-activation has slope 0 and outputs 0, so it blocks the gradient and contributes nothing to the next layer.

WATCH OUT FOR

Forgetting the ReLU slopes and taking or (the weight's value) instead of the bottom unit's output, which is . Another slip is to give or by leaving out the factor from the downstream weight.

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