uiz Space

September 2024 term · Deep Learning · BSCS3004

Deep Learning Quiz 2: 1 December 2024 (September 2024 term)

The IIT Madras BS Deep Learning (Deep Learning) Quiz 2 paper sat on 1 Dec 2024, in the September 2024 term: 23 questions for 40 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
23
Marks
40
Duration
120 min
Numerical
12
MSQ
4
MCQ
7

Updated

Official paper: IIT M DEGREE AN EXAM QDB2 01 Dec 2024 · No negative marking.

Question 1

+1 markNumerical answer

Given a quadratic loss function L(w)=w2L(w) = w^2, where ww represents the model parameter, you are using the AdaGrad optimizer with Stochastic Gradient Descent to minimize this loss. The learning rate η\eta is set to 1, and at the initial iteration (t=0t=0), the parameter ww has a starting value of w=2w=2.

AdaGrad Update Rule:

vt=vt−1+(∇wt)2v_t = v_{t-1} + (\nabla w_t)^2

wt+1=wt−ηvt+ϵ∗∇wtw_{t+1} = w_t - \frac{\eta}{\sqrt{v_t + \epsilon}} * \nabla w_t

v−1=0v_{-1} = 0

use ϵ=0\text{use } \epsilon = 0

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 1

Question 2

+1 markNumerical answer

Given a quadratic loss function L(w)=w2L(w) = w^2, where ww represents the model parameter, you are using the AdaGrad optimizer with Stochastic Gradient Descent to minimize this loss. The learning rate η\eta is set to 1, and at the initial iteration (t=0t=0), the parameter ww has a starting value of w=2w=2.

AdaGrad Update Rule:

vt=vt−1+(∇wt)2v_t = v_{t-1} + (\nabla w_t)^2

wt+1=wt−ηvt+ϵ∗∇wtw_{t+1} = w_t - \frac{\eta}{\sqrt{v_t + \epsilon}} * \nabla w_t

v−1=0v_{-1} = 0

use ϵ=0\text{use } \epsilon = 0

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 20

Question 3

+1 markNumerical answer

Given a quadratic loss function L(w)=w2L(w) = w^2, where ww represents the model parameter, you are using the AdaGrad optimizer with Stochastic Gradient Descent to minimize this loss. The learning rate η\eta is set to 1, and at the initial iteration (t=0t=0), the parameter ww has a starting value of w=2w=2.

AdaGrad Update Rule:

vt=vt−1+(∇wt)2v_t = v_{t-1} + (\nabla w_t)^2

wt+1=wt−ηvt+ϵ∗∇wtw_{t+1} = w_t - \frac{\eta}{\sqrt{v_t + \epsilon}} * \nabla w_t

v−1=0v_{-1} = 0

use ϵ=0\text{use } \epsilon = 0

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.5525 (accepted within ±0.0035)

Question 4

+3 marksOne or more correct options

Which of the following optimization algorithms adapts the learning rate based on the current gradient and the history of gradients?

Select all that apply.

  1. A

    Gradient Descent with exponentially decaying learning rate

  2. B

    RMSProp

  3. C

    Nesterov Accelerated Gradient Descent with step decay

  4. D

    ADAM

  5. E

    Ada-Delta

Show answer

Correct answers

  • B

    RMSProp

  • D

    ADAM

  • E

    Ada-Delta

Question 5

+3 marksOne or more correct options

Which of the following are regularization technique(S)?

Select all that apply.

  1. A

    Dataset augmentation

  2. B

    Activation Functions

  3. C

    L2 regularization

  4. D

    Adding Noise to the inputs or outputs

  5. E

    Optimization techniques

  6. F

    All of these

Show answer

Correct answers

  • A

    Dataset augmentation

  • C

    L2 regularization

  • D

    Adding Noise to the inputs or outputs

Question 6

+3 marksOne or more correct options

Which of the following activation function(s) is (are) prone to vanishing gradient problem?

Select all that apply.

  1. A

    Logistic Sigmoid

  2. B

    Tanh

  3. C

    ReLU

  4. D

    Leaky ReLu

  5. E

    GELU

  6. F

    MaxOut

Show answer

Correct answers

  • A

    Logistic Sigmoid

  • B

    Tanh

  • C

    ReLU

Question 7

+2 marksOne correct option

Which optimization algorithm combines the advantages of RM-Sprop and momentum?

  1. A

    Nesterov Accelerated Gradient Descent

  2. B

    Adam

  3. C

    Adagrad

  4. D

    Adadelta

Show answer

Correct answer

  • B

    Adam

Question 8

+2 marksOne correct option

What is the key reason for the development of adaptive optimization algorithms like RMSprop and Adam?

  1. A

    To increase the model size

  2. B

    To adapt the learning rate for each parameter dynamically

  3. C

    To reduce the number of layers in deep networks

  4. D

    To decay the initial learning rate

Show answer

Correct answer

  • B

    To adapt the learning rate for each parameter dynamically

Question 9

+2 marksOne correct option

What is the derivative of the Leaky ReLU activation function with respect to its input?

  1. A

    0 for negative inputs, 1 for positive inputs.

  2. B

    1 for negative inputs, 0 for positive inputs.

  3. C

    0.01 for negative inputs, 1 for positive inputs.

  4. D

    0.05 for negative inputs, 1 for positive inputs.

  5. E

    1 for all inputs.

Show answer

Correct answer

  • C

    0.01 for negative inputs, 1 for positive inputs.

Question 10

+3 marksOne correct option

Which of the following options represents the correct ordering in terms of the bias of the models illustrated in the images below?

  1. A

    A > B > C

  2. B

    B > C > A

  3. C

    C > B > A

  4. D

    A > C > B

Show answer

Correct answer

  • D

    A > C > B

Question 11

+3 marksOne correct option

Which of the following is a common form of regularization that involves adding a penalty proportional to the square of the weights?

  1. A

    Dropout

  2. B

    L1 Regularization

  3. C

    L2 Regularization

  4. D

    Batch Normalization

Show answer

Correct answer

  • C

    L2 Regularization

Question 12

+4 marksOne correct option
  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • D

Question 13

+1 markOne correct option

Consider an input image of shape 10×10 with 3 channels of R-G-B, is processed using one of the following neural architectures:
• Fully-connected layer (FC) with 2 neurons (Note: The input volume is “flattened” into a column vector before being fed into the layer.)
• Convolutional layer (CONV) with three filters of size 2 × 2, a stride of 2 is used, and no padding is applied.
Based on the above data answer the given subquestions.

Which architecture has fewer parameters (CONV or FC)?

  1. A

    CONV Layer

  2. B

    FC

Show answer

Correct answer

  • A

    CONV Layer

Question 14

+1 markNumerical answer

Consider an input image of shape 10×10 with 3 channels of R-G-B, is processed using one of the following neural architectures:
• Fully-connected layer (FC) with 2 neurons (Note: The input volume is “flattened” into a column vector before being fed into the layer.)
• Convolutional layer (CONV) with three filters of size 2 × 2, a stride of 2 is used, and no padding is applied.
Based on the above data answer the given subquestions.

What is the difference in the number of trainable parameters between these two neural architectures?

Show answer

Correct answer: 564

Question 15

+2 marksOne or more correct options

Consider an input image of shape 10×10 with 3 channels of R-G-B, is processed using one of the following neural architectures:
• Fully-connected layer (FC) with 2 neurons (Note: The input volume is “flattened” into a column vector before being fed into the layer.)
• Convolutional layer (CONV) with three filters of size 2 × 2, a stride of 2 is used, and no padding is applied.
Based on the above data answer the given subquestions.

Which of the following statements is/are true about a CONV layer?

Select all that apply.

  1. A

    The total number of parameters depends on the depth of the input.

  2. B

    The total number of parameters depends on the padding.

  3. C

    The total number of parameters depends on the number of filters (kernel).

  4. D

    The total number of parameters depends on the stride.

Show answer

Correct answers

  • A

    The total number of parameters depends on the depth of the input.

  • C

    The total number of parameters depends on the number of filters (kernel).

Question 16

+1 markNumerical answer

Consider the below deep neural architecture, being applied on an image of size 128 × 128 with 3 channels of R-G-B.

Assume
i For convolution layers, a stride of 1 is used, and no padding is applied.
ii There is no bias associated in any layer just as we did in our course
iii Each time we slide the filter we get one value in the output. The resulting output is called a feature map
iv Suppose Width, Height and Depth (number of channels) are denoted by W,H,D respectively, then the “Feature map volume” of the tensor (3-D array) = W × H × D (multiplication of W,H,D). Based on the above data answer the given subquestions.

Show answer

Correct answer: 460800

Question 17

+1 markNumerical answer

Consider the below deep neural architecture, being applied on an image of size 128 × 128 with 3 channels of R-G-B.

Assume
i For convolution layers, a stride of 1 is used, and no padding is applied.
ii There is no bias associated in any layer just as we did in our course
iii Each time we slide the filter we get one value in the output. The resulting output is called a feature map
iv Suppose Width, Height and Depth (number of channels) are denoted by W,H,D respectively, then the “Feature map volume” of the tensor (3-D array) = W × H × D (multiplication of W,H,D). Based on the above data answer the given subquestions.

Show answer

Correct answer: 7776

Question 18

+1 markNumerical answer

Consider the below deep neural architecture, being applied on an image of size 128 × 128 with 3 channels of R-G-B.

Assume
i For convolution layers, a stride of 1 is used, and no padding is applied.
ii There is no bias associated in any layer just as we did in our course
iii Each time we slide the filter we get one value in the output. The resulting output is called a feature map
iv Suppose Width, Height and Depth (number of channels) are denoted by W,H,D respectively, then the “Feature map volume” of the tensor (3-D array) = W × H × D (multiplication of W,H,D). Based on the above data answer the given subquestions.

Show answer

Correct answer: 115200

Question 19

+1 markNumerical answer

Consider the below deep neural architecture, being applied on an image of size 128 × 128 with 3 channels of R-G-B.

Assume
i For convolution layers, a stride of 1 is used, and no padding is applied.
ii There is no bias associated in any layer just as we did in our course
iii Each time we slide the filter we get one value in the output. The resulting output is called a feature map
iv Suppose Width, Height and Depth (number of channels) are denoted by W,H,D respectively, then the “Feature map volume” of the tensor (3-D array) = W × H × D (multiplication of W,H,D). Based on the above data answer the given subquestions.

Show answer

Correct answer: 0

Question 20

+1 markNumerical answer

Consider the below deep neural architecture, being applied on an image of size 128 × 128 with 3 channels of R-G-B.

Assume
i For convolution layers, a stride of 1 is used, and no padding is applied.
ii There is no bias associated in any layer just as we did in our course
iii Each time we slide the filter we get one value in the output. The resulting output is called a feature map
iv Suppose Width, Height and Depth (number of channels) are denoted by W,H,D respectively, then the “Feature map volume” of the tensor (3-D array) = W × H × D (multiplication of W,H,D). Based on the above data answer the given subquestions.

Show answer

Correct answer: 200704

Question 21

+1 markNumerical answer

Consider the below deep neural architecture, being applied on an image of size 128 × 128 with 3 channels of R-G-B.

Assume
i For convolution layers, a stride of 1 is used, and no padding is applied.
ii There is no bias associated in any layer just as we did in our course
iii Each time we slide the filter we get one value in the output. The resulting output is called a feature map
iv Suppose Width, Height and Depth (number of channels) are denoted by W,H,D respectively, then the “Feature map volume” of the tensor (3-D array) = W × H × D (multiplication of W,H,D). Based on the above data answer the given subquestions.

Show answer

Correct answer: 51200

Question 22

+1 markNumerical answer

Consider the below deep neural architecture, being applied on an image of size 128 × 128 with 3 channels of R-G-B.

Assume
i For convolution layers, a stride of 1 is used, and no padding is applied.
ii There is no bias associated in any layer just as we did in our course
iii Each time we slide the filter we get one value in the output. The resulting output is called a feature map
iv Suppose Width, Height and Depth (number of channels) are denoted by W,H,D respectively, then the “Feature map volume” of the tensor (3-D array) = W × H × D (multiplication of W,H,D). Based on the above data answer the given subquestions.

Show answer

Correct answer: 50176

Question 23

+1 markNumerical answer

Consider the below deep neural architecture, being applied on an image of size 128 × 128 with 3 channels of R-G-B.

Assume
i For convolution layers, a stride of 1 is used, and no padding is applied.
ii There is no bias associated in any layer just as we did in our course
iii Each time we slide the filter we get one value in the output. The resulting output is called a feature map
iv Suppose Width, Height and Depth (number of channels) are denoted by W,H,D respectively, then the “Feature map volume” of the tensor (3-D array) = W × H × D (multiplication of W,H,D). Based on the above data answer the given subquestions.

Show answer

Correct answer: 150528