uiz Space

January 2024 term · Deep Learning for Computer Vision · BSDA5006

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

The IIT Madras BS Deep Learning for Computer Vision (Deep Learning for Computer Vision) Quiz 2 paper sat on 24 Mar 2024, in the January 2024 term: 28 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
28
Marks
50
Duration
120 min
MSQ
6
Numerical
10
MCQ
11
Written
1

Updated

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

Question 1

+2 marksOne or more correct options

Which of the following statements are true?

Select all that apply.

  1. A

    Tanh activation function can be represented as below in terms of sigmoid activation function:
    tanh(x) = 2σ(2x) − 1, where σ = sigmoid activation function

  2. B

    The derivative of the Sigmoid activation function is symmetric around the origin.

  3. C

    Gradient of sigmoid neuron at saturation explodes

  4. D

    sigmoid activation is centered around 0.5 whereas tanh activation is centered around 0.

Show answer

Correct answers

  • A

    Tanh activation function can be represented as below in terms of sigmoid activation function:
    tanh(x) = 2σ(2x) − 1, where σ = sigmoid activation function

  • D

    sigmoid activation is centered around 0.5 whereas tanh activation is centered around 0.

Question 2

+2 marksOne or more correct options

Which of the below properties are not exhibited by the gradient-based explanation generation method, Grad-CAM? (Select all that apply)

Select all that apply.

  1. A

    Grad-CAM saliency map only computes gradients for important pixels while calculating weights, so pixels that contribute more to a specific class are considered

  2. B

    Grad-CAM can’t generate explanation directly from the given CNN and needs additional retraining

  3. C

    Grad-CAM is very reliable at identifying multiple instances of objects with occlusions

  4. D

    Grad-CAM can help localize objects without positional supervision

Show answer

Correct answer

  • A

    Grad-CAM saliency map only computes gradients for important pixels while calculating weights, so pixels that contribute more to a specific class are considered

Question 3

+2 marksOne or more correct options

Which of the following statements accurately describes the visualization techniques used in Convolutional Neural Networks (CNNs)? (Select all that apply)

Select all that apply.

  1. A

    Activation maximization methods identify input image region that maximally activates specific neurons in the network.

  2. B

    Filter visualization techniques display the learned weights of convolutional filters in the network.

  3. C

    Kernel visualization involves directly observing the values of convolutional filters during network training.

  4. D

    Principal Component Analysis (PCA) is commonly employed to reduce the dimensionality of feature maps for visualization purposes.

Show answer

Correct answers

  • A

    Activation maximization methods identify input image region that maximally activates specific neurons in the network.

  • B

    Filter visualization techniques display the learned weights of convolutional filters in the network.

Question 4

+2 marksOne or more correct options

Which of the following is true regarding Hard Attention and Soft Attention?

Select all that apply.

  1. A

    Soft Attention is smooth and differentiable

  2. B

    Variance reduction techniques are used to train Hard Attention models

  3. C

    Soft Attention is computationally cheaper than Hard Attention when the source input is large

  4. D

    The inference (test time) overhead is low in Hard Attention when compared to Soft Attention models

Show answer

Correct answers

  • A

    Soft Attention is smooth and differentiable

  • B

    Variance reduction techniques are used to train Hard Attention models

  • D

    The inference (test time) overhead is low in Hard Attention when compared to Soft Attention models

Question 5

+2 marksOne or more correct options

Frechet Inception Distance (FID) is used for measuring the feature distance between real and generated images to evaluate the goodness of image generation in deep generative models such as GANs. Select the limitations of FID from the given below options:
(Select all possible correct options)

Select all that apply.

  1. A

    May not capture all features

  2. B

    Needs small sample size

  3. C

    Slow to run

  4. D

    None of these

Show answer

Correct answers

  • A

    May not capture all features

  • C

    Slow to run

Question 6

+2 marksOne or more correct options

If x is an input feature vector and y is the corresponding output/label, which distributions are modeled in a vanilla Generative Adversarial Network (GAN)?
(Select all possible correct options)

Select all that apply.

  1. A

    p(x)

  2. B

    p(x|y)

  3. C

    p(y|x)

  4. D

    p(x, y)

Show answer

Correct answers

  • A

    p(x)

  • D

    p(x, y)

Question 7

+2 marksNumerical answer

What is the size of the feature map after applying two successive convolution operations with given parameters? Image size = 64 x 64, Kernel size = 6 x 6, Padding = 1 and Stride = 2. (In calculation, take floor(x) whenever x is non-integer. If the answer is FxF, write F in the answer).

Show answer

Correct answer: 14

Question 8

+2 marksNumerical answer
Show answer

Correct answer: 1152

Question 9

+2 marksOne correct option
  1. A

    1→ vi, 2→ iii, 3→ v, 4 → i

  2. B

    1→ i, 2→ iv, 3 → iii, 4→ ii

  3. C

    1→ i, 2→ v, 3 → iii, 4→ iv

  4. D

    1→ iv, 2→ iii, 3→ ii, 4 → i

Show answer

Correct answer

  • D

    1→ iv, 2→ iii, 3→ ii, 4 → i

Question 10

+2 marksOne correct option

Which method is commonly used to explain Convolutional Neural Networks (CNNs) through visualization?

  1. A

    Feature Concatenation

  2. B

    Dimension Reduction

  3. C

    Gradient-weighted Class Activation Mapping (Grad-CAM)

  4. D

    Random Initialization

Show answer

Correct answer

  • C

    Gradient-weighted Class Activation Mapping (Grad-CAM)

Question 11

+2 marksOne correct option
  1. A

    1→ iv, 2→ iii, 3→ ii, 4 → i

  2. B

    1→ ii, 2→ iii, 3 → i, 4 →iv

  3. C

    1→ iv, 2→ iii, 3→ i, 4 → ii

  4. D

    1→ ii, 2→ iv, 3 → iii, 4→ i

Show answer

Correct answer

  • C

    1→ iv, 2→ iii, 3→ i, 4 → ii

Question 12

+2 marksOne correct option

Consider two 10×10 bounding boxes (one on the upper left and one of the lower right) in an image with an overlapping region of 7×7. The Intersection over Union (IoU) score between the two boxes is (choose the closest value):

  1. A

    21%

  2. B

    25%

  3. C

    33%

  4. D

    37%

Show answer

Correct answer

  • C

    33%

Question 13

+2 marksOne correct option

Which one of the following statements is true?

  1. A

    The goal of triplet loss is to ensure that the distance between the anchor and the negative sample is at least ’margin’ less than the distance between anchor and positive sample.

  2. B

    Face identification is a multi-class classification problem whereas face verification is a binary classification problem

  3. C

    Both the goal of triplet loss is to ensure that the distance between the anchor and the negative sample is at least ’margin’ less than the distance between anchor and positive sample & Face identification is a multi-class classification problem whereas face verification is a binary classification problem

  4. D

    None of these

Show answer

Correct answer

  • B

    Face identification is a multi-class classification problem whereas face verification is a binary classification problem

Question 14

+2 marksOne correct option

What are Haar-like features primarily used for in computer vision?

  1. A

    Object detection

  2. B

    Image segmentation

  3. C

    Texture analysis

  4. D

    Image denoising

Show answer

Correct answer

  • A

    Object detection

Question 15

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

Correct answer

  • A

Question 16

+2 marksOne correct option
  1. A

    Sigmoid of alignment scores

  2. B

    Softmax of alignment scores

  3. C

    ReLU of alignment scores

  4. D

    None of these

Show answer

Correct answer

  • B

    Softmax of alignment scores

Question 17

+2 marksOne correct option

Which of the following is not a component of a Transformer network?

  1. A

    Encoder

  2. B

    Decoder

  3. C

    Positional Encoding

  4. D

    Recurrent Connections

Show answer

Correct answer

  • D

    Recurrent Connections

Question 18

+2 marksOne correct option

Consider the following assertion and the reason for the assertion below :

  • Assertion: The images generated by VAEs exhibit a lack of sharpness or clarity.
  • Reason: The blurriness observed in the generated images of VAEs arises from the underlying assumptions and limitations of the model. VAEs aim to learn the data distribution by fitting it into a multivariate Gaussian. However, this assumption of conditional independence among samples given latent variables does not hold for many realistic distributions, such as natural images.

Now, pick one among the options below:

  1. A

    Both assertion and reason are true, and the reason is the correct explanation of assertion

  2. B

    Both assertion and reason are true, but the reason is not the correct explanation of assertion

  3. C

    Assertion is true, the reason is false

  4. D

    Both assertion and reason are false

Show answer

Correct answer

  • A

    Both assertion and reason are true, and the reason is the correct explanation of assertion

Question 19

+2 marksOne correct option
  1. A

    1→ iii, 2→ ii, 3 → vi, 4→ i

  2. B

    1→ v, 2→i, 3 → vi, 4→ iii

  3. C

    1→ ii, 2→ i, 3 → ii, 4 → iii

  4. D

    1→ i, 2 →ii, 3 → vi, 4→ iv

Show answer

Correct answer

  • B

    1→ v, 2→i, 3 → vi, 4→ iii

Question 20

+2 marksNumerical answer

A four-dimensional input x = [3, 4, 1, 2] is passed to a hidden layer with a single neuron and an activation function a(.) to obtain z. Assume that the corresponding weights (from input to hidden layer) are [0.3, 0,−0.4, 0.5] and bias is 0.2.
Consider the corresponding activation functions and give the corresponding value of z. Based on the above data, answer the given subquestions.

Linear______________

Show answer

Correct answer: 1.7

Question 21

+2 marksNumerical answer

A four-dimensional input x = [3, 4, 1, 2] is passed to a hidden layer with a single neuron and an activation function a(.) to obtain z. Assume that the corresponding weights (from input to hidden layer) are [0.3, 0,−0.4, 0.5] and bias is 0.2.
Consider the corresponding activation functions and give the corresponding value of z. Based on the above data, answer the given subquestions.

Indicator function____________

Show answer

Correct answer: 1

Question 22

+1 markNumerical answer

A four-dimensional input x = [3, 4, 1, 2] is passed to a hidden layer with a single neuron and an activation function a(.) to obtain z. Assume that the corresponding weights (from input to hidden layer) are [0.3, 0,−0.4, 0.5] and bias is 0.2.
Consider the corresponding activation functions and give the corresponding value of z. Based on the above data, answer the given subquestions.

Leaky-ReLU_____________

Show answer

Correct answer: 1.7

Question 23

+2 marksWritten answer

Fill in the blanks for the given sub questions.

KL divergence is not a distance metric because KL(P||Q) is___________ to KL(Q||P).
NOTE: Enter the exact answer without any extra space in the beginning or at the end.

Show answer

Correct answer: not equal

Question 24

+1 markNumerical answer

Fill in the blanks for the given sub questions.

Also KL divergence is always greater than equal to _____________

Show answer

Correct answer: 0

Question 25

+1 markNumerical answer

Fill in the blanks for the given sub questions.

Suppose P := Bernoulli(0.9) and Q := Bernoulli(0.1), then KL(P||Q) = c × log(d).
The value for c is_________

Show answer

Correct answer: 0.9

Question 26

+1 markNumerical answer

Fill in the blanks for the given sub questions.

Suppose P := Bernoulli(0.9) and Q := Bernoulli(0.1), then KL(P||Q) = c × log(d).
The value for d is_________

Show answer

Correct answer: 8

Question 27

+1 markNumerical answer

While training a Generative Adversarial Network, a generator network G(.) and a discriminative network D(.) plays a zero-sum adversarial game.
Based on the above data, answer the given subquestions

The values of D(G(z)) during the initial phase of training_____________

Show answer

Correct answer: 0

Question 28

+1 markNumerical answer

While training a Generative Adversarial Network, a generator network G(.) and a discriminative network D(.) plays a zero-sum adversarial game.
Based on the above data, answer the given subquestions

After successfully training the GAN__________

Show answer

Correct answer: 0.5