uiz Space

January 2024 term · Deep Learning · BSCS3004

Deep Learning Quiz 2: 24 March 2024 (January 2024 term)

The IIT Madras BS Deep Learning (Deep Learning) Quiz 2 paper sat on 24 Mar 2024, in the January 2024 term: 16 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
16
Marks
50
Duration
120 min
MCQ
7
MSQ
4
Numerical
5

Updated

Official paper: IIT M DEGREE AN EXAM QDB2 24 Mar 2024 · No negative marking.

Question 1

+2 marksOne correct option

What are the possible outcomes if we don’t do bias correction in ADAM?

  1. A

    The Algorithm will not converge to a local or global minima.

  2. B

    It would lead to initial updates that are much smaller.

  3. C

    It would lead to initial updates which are much larger.

Show answer

Correct answer

  • C

    It would lead to initial updates which are much larger.

Question 2

+3 marksOne correct option

Consider the assertion and the corresponding reason,
Assertion (A): The RMSProp Algorithm starts oscillating around the minima.
Reason (R): RMSProp is sensitive to initial learning rate value.

  1. A

    A is true but R is not the correct reason

  2. B

    A is True and R is the correct reason

  3. C

    A is False and therefore R

Show answer

Correct answer

  • A

    A is true but R is not the correct reason

Question 3

+3 marksOne correct option

Suppose you have a deep neural network trained on a dataset with a small amount of labeled examples. After applying L2 regularization during training with a fixed value of regularization parameter, the following observations are made:
• The empirical error decreases significantly.
• The true error remains high.
• The variance of the error on different subsets of the training data is relatively low.
• When tested on a diverse set of unseen data, the model’s performance is inconsistent. Which of the following statements provides a plausible explanation for this scenario?

  1. A

    The model is underfitting due to excessive regularization.

  2. B

    L2 regularization effectively reduces both overfitting and underfitting.

  3. C

    The inconsistency in performance on unseen data is expected due to the limited labeled examples in the training set.

  4. D

    The model is still overfitting to the training data, and the regularization parameter needs adjustment.

Show answer

Correct answer

  • D

    The model is still overfitting to the training data, and the regularization parameter needs adjustment.

Question 4

+3 marksOne correct option

What are the maximum and minimum possible values of the derivative of sigmoid function?

  1. A

    1, 0

  2. B

    0.5, 0

  3. C

    0.5, 0.25

  4. D

    0.25, 0

Show answer

Correct answer

  • D

    0.25, 0

Question 5

+3 marksOne correct option

Consider a feed-forward neural network containing three inputs and one output. It contains 50 hidden layers, each containing two neurons. The activation function used in all the hidden layers is ReLU, the output layer uses the Sigmoid activation function for binary classification. The network is trained with a binary cross-entropy loss function.
Assume all weights are initialized to 1 and all biases to 0. For an input of [-10, 5, -20], what will be the output of the neural network?

  1. A

    0

  2. B

    1

  3. C

    0.5

  4. D

    0.25

  5. E

    -25

  6. F

    Insufficient information

Show answer

Correct answer

  • C

    0.5

Question 6

+3 marksOne correct option

Suppose we have a neural network with two hidden layers, each containing two neurons. The network contains two inputs and one output.
Weights: wij = 1 for all weights
Biases: bi = 0 for all biases
Input: x = [10, -1].
We consider the following two scenarios:
Scenario 1: We use Maxout activation for the hidden layers with k = 2 linear functions. Scenario 2: We use ReLU activation with dropout with a dropout probability of 0.5
Which of the following is true concerning the outputs in each scenario?

  1. A

    The outputs of both scenarios will be the same.

  2. B

    The output of Scenario 1 is expected to be greater than that of Scenario 2.

  3. C

    The output of Scenario 1 is expected to be lesser than that of Scenario 2.

Show answer

Correct answer

  • B

    The output of Scenario 1 is expected to be greater than that of Scenario 2.

Question 7

+4 marksOne correct option

Consider a neural network with one hidden layer containing two neurons. The input layer contains 2 neurons and the output layer contains one neuron. ReLU activation is used for the hidden layers and sigmoid is used for the output layer.
Considering weights wij = 0.5 for all weights and biases bi = 0 for all biases. Assuming a dropout probability of 0.5, if an input vector x = [1, -2] is fed to this network, which of the following seems to be the expected output?

  1. A

    0

  2. B

    0.5

  3. C

    0.25

  4. D

    1

Show answer

Correct answer

  • B

    0.5

Question 8

+3 marksOne or more correct options

Which of the following statements are true w.r.t. AdaDelta Algorithm?

Select all that apply.

  1. A

    In a surface with steep curvature, both vt and ut decrease which stops learning rate from reducing aggressively.

  2. B

    At low curvature regions vt starts decreasing and learning rate starts increasing.

  3. C

    AdaDelta allows numerator to increase or decrease based on current gradients only.

  4. D

    AdaDelta converges quicker than RMSProp Algorithm.

Show answer

Correct answers

  • B

    At low curvature regions vt starts decreasing and learning rate starts increasing.

  • D

    AdaDelta converges quicker than RMSProp Algorithm.

Question 9

+3 marksOne or more correct options

After training a neural network using vanilla gradient descent, you notice that it performs exceptionally well on the training set (99% accuracy) but poorly on the test set (50% accuracy). Which of the following techniques could be employed to address this overfitting issue and improve generalization performance?

Select all that apply.

  1. A

    RMSprop optimizer

  2. B

    Dropout

  3. C

    Data augmentation

  4. D

    Decaying learning rate

Show answer

Correct answers

  • B

    Dropout

  • C

    Data augmentation

Question 10

+4 marksOne or more correct options

Which of the following optimization algorithms encounter problem of oscillating around the minima?

Select all that apply.

  1. A

    AdaGrad

  2. B

    RMSProp

  3. C

    Nesterov Accelerated Gradient Descent

  4. D

    ADAM

  5. E

    Momentum Based Gradient Descent

Show answer

Correct answers

  • B

    RMSProp

  • C

    Nesterov Accelerated Gradient Descent

  • D

    ADAM

  • E

    Momentum Based Gradient Descent

Question 11

+4 marksOne or more correct options

Consider a network where sigmoid activation is used at all hidden layers. Which of the following will be true?

Select all that apply.

  1. A

    Initializing the weights to very low values causes the gradients to vanish.

  2. B

    Initializing the weights to very high values causes the gradients to vanish.

  3. C

    The weight updates are possible only in the direction of the first or third quadrant.

  4. D

    The weight updates are possible only in the direction of the second or fourth quadrant.

Show answer

Correct answers

  • B

    Initializing the weights to very high values causes the gradients to vanish.

  • C

    The weight updates are possible only in the direction of the first or third quadrant.

Question 12

+3 marksNumerical answer

Consider an Input matrix X of shape 4×4 and the kernel (filter) of shape 3×3 with a bias b = 1. Assume, stride equals 1 and no padding.

Note: In all your calculations, truncate the result to 2 decimal points, that is, if the intermediate result is 2.34434, then take it as 2.34 for the next step.
Based on the above data answer the given subquestions.

Compute the convolution sum by sliding the kernel over the input block.

where, denotes the convolution operation. Enter the sum of elements in A. Enter your answer correct to two decimal points.

Show answer

Correct answer: 1

Question 13

+3 marksNumerical answer

Consider an Input matrix X of shape 4×4 and the kernel (filter) of shape 3×3 with a bias b = 1. Assume, stride equals 1 and no padding.

Note: In all your calculations, truncate the result to 2 decimal points, that is, if the intermediate result is 2.34434, then take it as 2.34 for the next step.
Based on the above data answer the given subquestions.

The feature map A is then passed through a max pooling layer with the kernel size of 2 × 2. The result is then passed as an input to the sigmoid (logistic) function.

What is the output value y? Enter your answer to two decimal places.

Show answer

Correct answer: 0.88 (accepted within ±0.02)

Question 14

+4 marksNumerical answer

Consider an Input matrix X of shape 4×4 and the kernel (filter) of shape 3×3 with a bias b = 1. Assume, stride equals 1 and no padding.

Note: In all your calculations, truncate the result to 2 decimal points, that is, if the intermediate result is 2.34434, then take it as 2.34 for the next step.
Based on the above data answer the given subquestions.

Suppose the gradient of the loss with respect to yy is -1 (that is, ∂L∂y=−1\frac{\partial L}{\partial y} = -1). What will be the value of ∂L∂w00\frac{\partial L}{\partial w_{00}}, where w00w_{00} is the element of kernel at the (0,0)(0, 0) position.

Show answer

Correct answer: 0

Question 15

+2 marksNumerical answer

An MRI image of size 500 × 500 × 10 is feed as an input to a convolutional layer. Suppose that we want to produce an output of size 241 × 241 × 5 using a set of kernels. Suppose the kernel size is 20 × 20 × 10.
Answer the given subquestions

What is the value of stride s?. Assume zero padding (p = 0)

Show answer

Correct answer: 2

Question 16

+3 marksNumerical answer

An MRI image of size 500 × 500 × 10 is feed as an input to a convolutional layer. Suppose that we want to produce an output of size 241 × 241 × 5 using a set of kernels. Suppose the kernel size is 20 × 20 × 10.
Answer the given subquestions

How many parameters (excluding bias) are there in the convolutional layer?

Show answer

Correct answer: 20000