Quiz Space

January 2024 term · Deep Learning for Computer Vision · BSDA5006

Deep Learning for Computer Vision End Term: 28 April 2024 (January 2024 term)

The IIT Madras BS Deep Learning for Computer Vision (Deep Learning for Computer Vision) End Term paper sat on 28 Apr 2024, in the January 2024 term: 44 questions for 72 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
44
Marks
72
Duration
180 min
MCQ
25
MSQ
1
Numerical
15
Written
3

Updated

Official paper: IIT M DEGREE AN EXAM QDB3 28 Apr 2024 · No negative marking.

Question 1

+2 marksOne correct option

Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):

Word1=[100],Word2=[010]\text{Word}_1 = \begin{bmatrix} 1 & 0 & 0 \end{bmatrix}, \quad \text{Word}_2 = \begin{bmatrix} 0 & 1 & 0 \end{bmatrix}

WQ=[202200212],WK=[222021011],WV=[110011000]W_Q = \begin{bmatrix} 2 & 0 & 2 \\ 2 & 0 & 0 \\ 2 & 1 & 2 \end{bmatrix}, \quad W_K = \begin{bmatrix} 2 & 2 & 2 \\ 0 & 2 & 1 \\ 0 & 1 & 1 \end{bmatrix}, \quad W_V = \begin{bmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \end{bmatrix}

Calculate the query, key and value vectors for each word?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 2

+2 marksOne correct option

What is the role of the Gaussian blur in the Canny edge detection algorithm, and how does the choice of the standard deviation parameter affect the performance of edge detection? Which option do you think best describes the role of the Gaussian blur and its relationship with the standard deviation parameter in the Canny edge detection algorithm?

  1. A

    The Gaussian blur helps to reduce noise in the image and smooth out pixel intensity variations. The standard deviation parameter controls the amount of blurring applied, with higher values resulting in more aggressive smoothing, which may lead to loss of edge detail.

  2. B

    The Gaussian blur enhances edge contrast in the image and amplifies pixel intensity gradients. The standard deviation parameter determines the width of the blur kernel, with larger values resulting in sharper edges and finer details preserved.

  3. C

    The Gaussian blur serves to highlight high-frequency components in the image and accentuate edge boundaries. The standard deviation parameter dictates the level of detail preserved, with smaller values preserving finer details but potentially amplifying noise.

  4. D

    The Gaussian blur functions to dilate edge regions in the image and expand the edge boundaries. The standard deviation parameter controls the extent of dilation, with higher values resulting in broader edge regions but also increasing the risk of false edge detections.

Show answer

Correct answer

  • A

    The Gaussian blur helps to reduce noise in the image and smooth out pixel intensity variations. The standard deviation parameter controls the amount of blurring applied, with higher values resulting in more aggressive smoothing, which may lead to loss of edge detail.

Question 3

+2 marksOne correct option

Which property of the SIFT descriptor is primarily responsible for its resilience to changes in scale, viewpoint, and illumination?

  1. A

    Scale space representation

  2. B

    Histogram of gradients

  3. C

    Keypoint detection

  4. D

    Orientation assignment

Show answer

Correct answer

  • A

    Scale space representation

Question 4

+2 marksOne correct option

In the Maximally Stable External Regions (MSER) algorithm, how does the tree structure contribute to the efficiency of region stability analysis?

  1. A

    By enabling quick access to all regions in constant time.

  2. B

    By allowing for parallel computation of stability measures across regions.

  3. C

    By organizing regions hierarchically based on stability, facilitating efficient stability analysis.

  4. D

    By providing a compact representation of pixel intensities within each region, reducing computational overhead.

Show answer

Correct answer

  • C

    By organizing regions hierarchically based on stability, facilitating efficient stability analysis.

Question 5

+2 marksOne correct option

In which scenarios is the Random Sample Consensus (RANSAC) algorithm more suitable compared to least squares?

  1. A

    When the dataset contains a high percentage of outliers or erroneous data points.

  2. B

    When the dataset consists of noise-free and well-behaved data with minimal outliers.

  3. C

    When the computational resources are limited, and quick solutions are required.

  4. D

    When the dataset is small, and exact solutions are necessary without considering outliers.

Show answer

Correct answer

  • A

    When the dataset contains a high percentage of outliers or erroneous data points.

Question 6

+2 marksOne correct option

In what way does VLAD (Vector of Locally Aggregated Descriptors) differ from Bag of Words (BoW) in representing visual features in images?

  1. A

    VLAD captures spatial relationships between local descriptors, while BoW does not.

  2. B

    BoW captures spatial relationships between local descriptors, while VLAD does not.

  3. C

    VLAD and BoW both capture spatial relationships between local descriptors.

  4. D

    Neither VLAD nor BoW capture spatial relationships between local descriptors.

Show answer

Correct answer

  • A

    VLAD captures spatial relationships between local descriptors, while BoW does not.

Question 7

+2 marksOne correct option

How does pyramid matching differ from Speeded-Up Robust Features (SURF) in image matching?

  1. A

    Pyramid matching matches images at multiple resolutions using multi- resolution representations, while SURF focuses on detecting and describing local features invariant to scale and rotation.

  2. B

    SURF relies on gradient-based descriptors for feature matching, whereas pyramid matching utilizes histogram-based representations.

  3. C

    Pyramid matching is computationally more efficient compared to SURF, which requires extensive feature extraction and matching procedures.

  4. D

    SURF is more suitable for matching images with complex patterns and cluttered backgrounds, while pyramid matching excels in scenarios where multi-scale matching is critical, such as image registration across different resolutions.

Show answer

Correct answer

  • A

    Pyramid matching matches images at multiple resolutions using multi- resolution representations, while SURF focuses on detecting and describing local features invariant to scale and rotation.

Question 8

+2 marksOne correct option

In the context of Convolutional Neural Networks (CNNs), what is the primary challenge associated with backpropagation compared to traditional feedforward neural networks?

  1. A

    The increased number of parameters and layers in CNNs make
    backpropagation computationally intensive and prone to overfitting.

  2. B

    The presence of convolutional and pooling layers in CNNs requires the development of specialized backpropagation algorithms for efficient gradient computation.

  3. C

    The non-linear activation functions used in CNNs introduce discontinuities in the error surface, making it difficult to find the global minimum during backpropagation.

  4. D

    The spatial structure of CNNs results in weight sharing and local connectivity, requiring careful consideration of the error propagation process during backpropagation.

Show answer

Correct answer

  • D

    The spatial structure of CNNs results in weight sharing and local connectivity, requiring careful consideration of the error propagation process during backpropagation.

Question 9

+2 marksOne correct option

What is the primary advantage of Depthwise Separable Convolutions compared to standard Convolutional Neural Network (CNN) convolutions?

  1. A

    Depthwise Separable Convolutions reduce computational complexity and memory footprint by separating the spatial and channel-wise convolutions.

  2. B

    Depthwise Separable Convolutions introduce additional parameters to capture complex spatial relationships within feature maps.

  3. C

    Depthwise Separable Convolutions increase model capacity by performing convolutions across multiple layers of the network.

  4. D

    Depthwise Separable Convolutions enhance feature representation by incorporating multiscale convolutions within the same layer.

Show answer

Correct answer

  • A

    Depthwise Separable Convolutions reduce computational complexity and memory footprint by separating the spatial and channel-wise convolutions.

Question 10

+2 marksOne correct option

Which of the following strategies can help mitigate the risk of overfitting when fine-tuning pretrained models on a small dataset?

  1. A

    Increasing the depth and width of the neural network architecture to capture more complex patterns in the data.

  2. B

    Applying dropout regularization to randomly deactivate neurons during training to prevent co-adaptation of features.

  3. C

    Decreasing the learning rate during fine-tuning to ensure more stable convergence and smoother optimization.

  4. D

    Increasing the batch size during fine-tuning to improve the stability of gradient estimation and accelerate convergence.

Show answer

Correct answer

  • B

    Applying dropout regularization to randomly deactivate neurons during training to prevent co-adaptation of features.

Question 11

+2 marksOne correct option

What is the primary advantage of visualizing patches of maximally activating neurons in neural network interpretation?

  1. A

    It helps identify the specific input features that contribute most strongly to the model’s predictions.

  2. B

    It provides insights into the architectural design choices made in the neural network.

  3. C

    It quantifies the uncertainty associated with the model’s predictions.

  4. D

    It measures the computational resources required to activate the neurons.

Show answer

Correct answer

  • A

    It helps identify the specific input features that contribute most strongly to the model’s predictions.

Question 12

+2 marksOne correct option

Which layer of the neural network does Grad-CAM typically operate on?

  1. A

    The input layer.

  2. B

    The output layer.

  3. C

    The convolutional layers.

  4. D

    The fully connected layers.

Show answer

Correct answer

  • C

    The convolutional layers.

Question 13

+2 marksOne correct option

Which component of Grad-CAM is responsible for weighting the importance of each feature map?

  1. A

    The class activation map (CAM).

  2. B

    The global average pooling layer.

  3. C

    The guided backpropagation algorithm.

  4. D

    The gradient of the target class score with respect to the feature maps.

Show answer

Correct answer

  • B

    The global average pooling layer.

Question 14

+2 marksOne correct option

What is the primary role of the Gram matrix in neural style transfer?

  1. A

    To compute the style loss by measuring the similarity between feature maps from the content and style images.

  2. B

    To generate high-resolution images by applying a series of convolutions and upsampling operations.

  3. C

    To regularize the optimization process by penalizing large gradients in the feature space.

  4. D

    To visualize the internal representations learned by the neural network during training.

Show answer

Correct answer

  • A

    To compute the style loss by measuring the similarity between feature maps from the content and style images.

Question 15

+2 marksOne correct option

What is a potential limitation of non-maximum suppression (NMS) algorithms in object detection?

  1. A

    They are computationally expensive and can significantly increase inference time.

  2. B

    They may fail to suppress redundant bounding boxes in cluttered scenes with multiple overlapping objects.

  3. C

    They require extensive hyperparameter tuning to achieve optimal performance across different datasets.

  4. D

    They are highly sensitive to variations in lighting conditions and viewpoints in the input images.

Show answer

Correct answer

  • B

    They may fail to suppress redundant bounding boxes in cluttered scenes with multiple overlapping objects.

Question 16

+2 marksOne correct option

What is a key feature of focal loss that distinguishes it from traditional loss functions in object detection?

  1. A

    Focal loss introduces additional regularization terms to penalize large weights in the neural network.

  2. B

    Focal loss dynamically adjusts the loss weights based on the difficulty of each training example.

  3. C

    Focal loss computes the loss based on the Euclidean distance between predicted and groundtruth bounding boxes.

  4. D

    Focal loss prioritizes minimizing the overall loss across all classes equally.

Show answer

Correct answer

  • B

    Focal loss dynamically adjusts the loss weights based on the difficulty of each training example.

Question 17

+2 marksOne correct option

What is a unique challenge faced by Siamese networks in comparison to traditional neural networks?

  1. A

    Siamese networks require significantly larger datasets for training due to their complex architecture.

  2. B

    Siamese networks need to learn a similarity metric between pairs of input samples, which requires specialized loss functions and training procedures.

  3. C

    Siamese networks are computationally more intensive, making them less scalable for real-time applications.

  4. D

    Siamese networks tend to suffer from overfitting more frequently than traditional neural networks due to their increased model complexity.

Show answer

Correct answer

  • B

    Siamese networks need to learn a similarity metric between pairs of input samples, which requires specialized loss functions and training procedures.

Question 18

+2 marksOne correct option

Consider the following assertion and reason, and state which of them is true.
Assertion: ProgressiveGAN uses Minibatch Standard Deviation.
Reason: This value will be different if the generated images do not have the same diversity as the actual images, and the discriminator will penalize it as a result.

  1. A

    Both Assertion and Reason are True; Reason is a correct explanation of the Assertion

  2. B

    Both Assertion and Reason are True; but Reason is not a correct explanation of the Assertion

  3. C

    Assertion is True; Reason is False

  4. D

    Assertion is False by itself

Show answer

Correct answer

  • A

    Both Assertion and Reason are True; Reason is a correct explanation of the Assertion

Question 19

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

Correct answer

  • B

Question 20

+2 marksOne correct option

Which of the following statements is false?

  1. A

    Reparametrization trick is used in training VAEs to overcome the problem of non-differentiability of the objective function across a sampling step.

  2. B

    In denoising autoencoder, reconstructed output is compared against noise- free ground truth data point.

  3. C

    While training a GAN, Generator and Discriminator weights are not updated concurrently but updated sequentially.

  4. D

    When a GAN is completely trained, Discriminator D outputs very high probability (approximately 1) for images from Generator G, that is, D(G(z)) ≈ 1

Show answer

Correct answer

  • D

    When a GAN is completely trained, Discriminator D outputs very high probability (approximately 1) for images from Generator G, that is, D(G(z)) ≈ 1

Question 21

+2 marksOne correct option

Match the following:

1)VAEi) z=μ+σ⊙ϵ; ϵ∼N(0,1)z = \mu + \sigma \odot \epsilon;\ \epsilon \sim \mathcal{N}(0, 1)
2)GANii)Maximum Likelihood Estimation (MLE)
3)Reparametrizationiii)min⁡KL(Q(z∣X),p(z))\min \text{KL}(Q(z \mid X), p(z))
4)Generative modelsiv)D(G(z))=12D(G(z)) = \frac{1}{2}
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 22

+2 marksOne correct option
  1. A

    Continual learning

  2. B

    Zero-shot learning

  3. C

    Few-shot learning

  4. D

    Unsupervised learning

Show answer

Correct answer

  • C

    Few-shot learning

Question 23

+2 marksOne correct option
  1. A

    [1.1, 2.06, 1.08]

  2. B

    [0.25, 0.34, 0.18]

  3. C

    [0.2, 0.3, 0.1]

  4. D

    [1.2, 2.3, 1.1]

Show answer

Correct answer

  • B

    [0.25, 0.34, 0.18]

Question 24

+2 marksOne correct option

What is the advantage of the progressive training methodology proposed in the Progressive GAN paper?

  1. A

    It allows for generating high-resolution images with unlimited variation.

  2. B

    It eliminates the need for using mini-batches during training.

  3. C

    It enables the discovery of large-scale structures before finer-scale details.

  4. D

    It ensures all layers in the networks remain fixed throughout the training process.

Show answer

Correct answer

  • C

    It enables the discovery of large-scale structures before finer-scale details.

Question 25

+2 marksOne correct option

Contrastive Language Image Pre-training (CLIP) Can be used as a zero-shot classifier.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 26

+2 marksOne or more correct options

Select all that apply.

  1. A

    Maximum likelihood estimate

  2. B

    Minimum likelihood estimate

  3. C

    Maximizing mean square error

  4. D

    Minimizing mean square error

  5. E

    Maximizing negative log likelihood

  6. F

    Minimizing negative log likelihood

Show answer

Correct answers

  • B

    Minimum likelihood estimate

  • C

    Maximizing mean square error

  • D

    Minimizing mean square error

  • E

    Maximizing negative log likelihood

Question 27

+2 marksNumerical answer

The cornerness score of the center pixel for the image represented by the matrix below is __________.

10001
01010
00100
01010
10001

NOTE: Enter your answer in two decimal places.

Show answer

Correct answer: 6.56

Question 28

+2 marksNumerical answer

Consider a 3×33 \times 3 grayscale image in terms of pixel intensities as shown in matrix form below.

916
332
353

Assume that each pixel takes values from 1 to 9 (inclusive). After performing histogram equalization, the number of pixels with intensity value 6 are __________?

Show answer

Correct answer: 4

Question 29

+2 marksNumerical answer
Show answer

Correct answer: 4

Question 30

+2 marksNumerical answer

Consider a Faster R-CNN object detection framework, which is being trained with a mini-batch size of 2. The RPN produces 512 proposals, out of which 10 and 12 of them are foreground proposals, corresponding to each image in the mini-batch. For a single mini-batch update, the bounding box regression loss will be computed _____________ times.

Show answer

Correct answer: 22

Question 31

+2 marksWritten answer

Transformer encoder requires a sequence of __________ as input.

Show answer

Correct answer: vectors

Question 32

+0.7 marksNumerical answer

Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):

Calculate the query, key, and value to calculate z1. Consider only the first word for calculating the scores; remember that attention output is calculated by a weighted sum of all value vectors. Also, the key vector dimension dk = 3
Based on the above data, answer the given subquestions.

Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):

First element of attention vector is __________________

Show answer

Correct answer: 0.969 (accepted within ±0.02)

Question 33

+0.7 marksNumerical answer

Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):

Calculate the query, key, and value to calculate z1. Consider only the first word for calculating the scores; remember that attention output is calculated by a weighted sum of all value vectors. Also, the key vector dimension dk = 3
Based on the above data, answer the given subquestions.

Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):

Second element of attention vector is _____________

Show answer

Correct answer: 1 (accepted within ±0.02)

Question 34

+0.6 marksNumerical answer

Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):

Calculate the query, key, and value to calculate z1. Consider only the first word for calculating the scores; remember that attention output is calculated by a weighted sum of all value vectors. Also, the key vector dimension dk = 3
Based on the above data, answer the given subquestions.

Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):

Third element of attention vector is _________________

Show answer

Correct answer: 0.03 (accepted within ±0.02)

Question 35

+0.7 marksNumerical answer

Based on the above data, answer the given subquestions.

NOTE: Enter your answer in two decimal places.

Show answer

Correct answer: 3.01

Question 36

+0.7 marksNumerical answer

Based on the above data, answer the given subquestions.

NOTE: Enter your answer in two decimal places.

Show answer

Correct answer: 6.99

Question 37

+0.6 marksNumerical answer

Based on the above data, answer the given subquestions.

NOTE: Enter your answer in two decimal places.

Show answer

Correct answer: 5.01

Question 38

+0.7 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: -4

Question 39

+0.7 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: -4

Question 40

+0.6 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: -4

Question 41

+1 markNumerical answer

In vision transformers, if treat each pixel as a token for an image of size 64 × 64 × 3, the number of parameters required for the self-attention calculation are ________blank(a)________ . What will be the number of parameters if consider patches of size 8 × 8 × 3 ________blank(b)________. Based on the above data, answer the given subquestions.

Enter the correct answer for blank(a):

Show answer

Correct answer: 12288

Question 42

+1 markNumerical answer

In vision transformers, if treat each pixel as a token for an image of size 64 × 64 × 3, the number of parameters required for the self-attention calculation are ________blank(a)________ . What will be the number of parameters if consider patches of size 8 × 8 × 3 ________blank(b)________. Based on the above data, answer the given subquestions.

Enter the correct answer for blank(b):

Show answer

Correct answer: 64

Question 43

+1 markWritten answer

In a ViT, all blocks have same ________blank(a)________ and number of ________blank(b)________ Based on the above data, answer the given subquestions.

Enter the correct answer for blank(a):

Show answer

Correct answer: resolution

Question 44

+1 markWritten answer

In a ViT, all blocks have same ________blank(a)________ and number of ________blank(b)________ Based on the above data, answer the given subquestions.

Enter the correct answer for blank(b):

Show answer

Correct answer: channels