uiz Space

May 2025 term · Deep Learning for Computer Vision · BSDA5006

Deep Learning for Computer Vision End Term: 31 August 2025, Set QIA3 (May 2025 term)

The IIT Madras BS Deep Learning for Computer Vision (Deep Learning for Computer Vision) End Term paper sat on 31 Aug 2025, in the May 2025 term, set QIA3: 49 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
49
Marks
72
Duration
180 min
MCQ
14
MSQ
6
Numerical
29

Updated

Official paper: IIT M IMPROVEMENT AN EXAM QIA3 31 Aug 2025 · No negative marking.

Question 1

+2 marksOne correct option

Why does DETR typically exhibit poor performance in detecting small objects compared to larger ones? Choose the best answer in your opinion.

  1. A

    The CNN backbone used in DETR has a fixed receptive field that’s too large for small objects.

  2. B

    The global self-attention mechanism in DETR tends to dilute the signal from small objects across all image locations.

  3. C

    DETR’s loss function actively discards all detections smaller than 50 × 50 pixels.

  4. D

    The object queries in DETR are programmed to ignore any object smaller than 10% of the image size.

  5. E

    DETR’s encoder-decoder architecture was specifically designed to only detect objects larger than a cat.

Show answer

Correct answer

  • B

    The global self-attention mechanism in DETR tends to dilute the signal from small objects across all image locations.

Question 2

+2 marksOne correct option

Consider the following Pytorch code:
1. x = torch.tensor([[-3.,2.,3.],[4.,-5.,7.],[20.,3.,2.]])
2. print(torch.mean(x,dim=0,keepdim=True))
The output of the code is:

  1. A

    tensor([ 7., 0., 4.])

  2. B

    tensor([[ -7., 10., -4.]])

  3. C

    tensor([[ -7.],[7.],[4.]])

  4. D

    tensor([ -7., 7., 3.])

  5. E

    tensor([[7., 0., 4.]])

  6. F

    tensor([[ 0.],[7.],[4.]])

Show answer

Correct answer

  • E

    tensor([[7., 0., 4.]])

Question 3

+2 marksOne correct option

Which one of the following statements is false?

  1. A

    Linear contrast stretching is a point operation.

  2. B

    Moving average is an example of a local operation.

  3. C

    Convolution in the spatial domain cannot be obtained through addition in the frequency domain.

  4. D

    All of these.

Show answer

Correct answer

  • D

    All of these.

Question 4

+2 marksOne correct option

What is the correct order of operations for processing an image through a Vision Transformer (ViT)?

  1. A

    Image patching → Positional embedding → Linear projection of flattened patches → Transformer encoder→ Classification head

  2. B

    Image patching → Linear projection of flattened patches → Positional embedding → Transformer encoder→ Classification head

  3. C

    Positional embedding → Image patching → Linear projection of flattened patches → Transformer encoder→ Classification head

  4. D

    Linear projection of Images → Image patching → Positional embedding → Transformer encoder → Classification head

  5. E

    Linear projection of Images → Image patching → Positional embedding → Transformer encoder → Transformer decoder→ Classification head

Show answer

Correct answer

  • B

    Image patching → Linear projection of flattened patches → Positional embedding → Transformer encoder→ Classification head

Question 5

+2 marksOne correct option

Vector Quantized Variational Autoencoder (VQ-VAE) utilizes a discrete latent representation as opposed to continuous latent spaces used in traditional VAEs. One of the key components of a VQ- VAE is the codebook, which consists of a set of learnable vectors. What is the primary role of the codebook in VQ-VAE?

  1. A

    It performs the non-linear transformation of the input data to a higher dimensional space.

  2. B

    It regularizes the encoder by penalizing complex encodings.

  3. C

    It provides a finite set of vectors which the encoder’s outputs are mapped to, effectively quantizing the latent space.

  4. D

    It decodes the quantized vectors back into the reconstructed input space.

Show answer

Correct answer

  • C

    It provides a finite set of vectors which the encoder’s outputs are mapped to, effectively quantizing the latent space.

Question 6

+2 marksOne correct option

Given two normalized embeddings from CLIP, I = [0.2, 0.5, 0.3, 0.4] for an image and T = [0.1, 0.6, 0.3, 0.7] for a text description, compute the CLIPScore(I,T).

  1. A

    − 69%

  2. B

    0%

  3. C

    69%

  4. D

    50%

Show answer

Correct answer

  • C

    69%

Question 7

+2 marksOne correct option

Which one of the following statements regarding hyperparameter tuning is false?

  1. A

    Validation set is the best choice for tuning hyperparameters

  2. B

    Picking hyperparameters that perform the best on the training set leads to overfitting

  3. C

    Tuning hyperparameters on the test set is an acceptable approach to find the most powerful model for generalization performance

  4. D

    Test set performance, with hyperparameters tuned on the validation set, would be a realistic measure of how the model will generalize to new data.

Show answer

Correct answer

  • C

    Tuning hyperparameters on the test set is an acceptable approach to find the most powerful model for generalization performance

Question 8

+2 marksOne correct option

Which one of the following statements is false? (Pick the most appropriate one.)

  1. A

    Attention mechanisms can be applied to the bidirectional RNN model

  2. B

    An image captioning network can be trained end-to-end even though we are using 2 different modalities to train the network

  3. C

    One of the key components in the vanilla transformer is the recurrent connection that help them to deal with variable input length.

  4. D

    All of these.

Show answer

Correct answer

  • C

    One of the key components in the vanilla transformer is the recurrent connection that help them to deal with variable input length.

Question 9

+2 marksOne correct option

You are designing an edge detection pipeline for noisy grayscale images. For each of the following goals, choose the most appropriate filter or method:
1. Smooth out noise before any edge detection step
2. Detect edges by finding zero-crossings in the second derivative
3. Highlight regions with a strong intensity gradient
4. Perform basic edge detection with a simple directional gradient filter

  1. A

    1 → Gaussian filter, 2 → Laplacian of Gaussian, 3 → First derivative of Gaussian, 4 → Sobel operator

  2. B

    1 → Sobel operator, 2 → Gaussian filter, 3 → Laplacian of Gaussian, 4 → First derivative of Gaussian

  3. C

    1 → First derivative of Gaussian, 2 → Sobel operator, 3 → Gaussian filter, 4 → Laplacian of Gaussian

  4. D

    1→Laplacian of Gaussian, 2→First derivative of Gaussian, 3→Sobel operator, 4→Gaussian filter

Show answer

Correct answer

  • A

    1 → Gaussian filter, 2 → Laplacian of Gaussian, 3 → First derivative of Gaussian, 4 → Sobel operator

Question 10

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

Correct answer

  • A

Question 11

+2 marksOne correct option
  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • D

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

Question 12

+2 marksOne correct option
  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • A

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

Question 13

+2 marksOne correct option

In which one of the following applications would you use a many- to-one RNN architecture? Choose the most appropriate answer.

  1. A

    Input is a review of a movie and output is the sentiment of the given review

  2. B

    Input is an image and output is the textual description of the given image

  3. C

    Input is an image and output is the class to which the given image belongs

  4. D

    Input is a sentence in English language and output is the same sentence translated to Hindi language

Show answer

Correct answer

  • A

    Input is a review of a movie and output is the sentiment of the given review

Question 14

+2 marksOne correct option

Why might Segment Anything (SAM) be particularly useful in data annotation tasks compared to traditional segmentation models?

  1. A

    It produces perfect segmentation masks.

  2. B

    It can adapt to segment any object, even those not seen during training

  3. C

    It requires less computational resources

  4. D

    It automatically labels all objects in an image without user input

Show answer

Correct answer

  • B

    It can adapt to segment any object, even those not seen during training

Question 15

+2 marksOne or more correct options

Which of the following statements are true? (Select all possible correct options)

Select all that apply.

  1. A

    Variational AutoEncoders (VAE) generate sharper images compared to Generative adversarial networks (GANs)

  2. B

    GAN is an example of an implicit density estimation model

  3. C

    Fully connected layers in mapping network of Style-GAN change the dimension of its input

  4. D

    In a GAN, the generator and discriminator are trained in an alternating fashion, each using the other’s output to improve.

Show answer

Correct answers

  • B

    GAN is an example of an implicit density estimation model

  • D

    In a GAN, the generator and discriminator are trained in an alternating fashion, each using the other’s output to improve.

Question 16

+2 marksOne or more correct options

Classifier-free guidance is a technique used in diffusion models to improve sample quality without the explicit use of a classifier. This technique involves modifying the sampling process based on a control parameter. If the control parameter, denoted as γ, is set to zero, what effect does this have on the generation process?

Select all that apply.

  1. A

    It fails to generate realistic samples

  2. B

    It removes all guidance, effectively making the process equivalent to the unconditional generation.

  3. C

    It maximizes the influence of the classifier, leading to highly detailed generations.

  4. D

    It can lead to more diverse samples compared to higher values of γ, as the generation process is less constrained by the conditional information.

Show answer

Correct answers

  • B

    It removes all guidance, effectively making the process equivalent to the unconditional generation.

  • D

    It can lead to more diverse samples compared to higher values of γ, as the generation process is less constrained by the conditional information.

Question 17

+2 marksOne or more correct options

Which of the following statements are true? (Select all possible correct options)

Select all that apply.

  1. A

    Autoencoder are equivalent to Principal Component Analysis (PCA) provided we don’t use of non-linear activation functions

  2. B

    When using global attention on temporal data, alignment weights are learnt for encoder hidden representations for all time steps

  3. C

    Positional encoding is an important component of the trans- former architecture as it conveys information about order in a given sequence

  4. D

    It is not possible to generate different captions for the same image that have similar meaning but different tone/style

  5. E

    Autoencoders can not be used for data compression as its input and output dimensions are different

Show answer

Correct answers

  • A

    Autoencoder are equivalent to Principal Component Analysis (PCA) provided we don’t use of non-linear activation functions

  • B

    When using global attention on temporal data, alignment weights are learnt for encoder hidden representations for all time steps

  • C

    Positional encoding is an important component of the trans- former architecture as it conveys information about order in a given sequence

Question 18

+2 marksOne or more correct options

Which of the following statements about CLIP are TRUE? (Select ALL that apply)

Select all that apply.

  1. A

    CLIP uses a cross-entropy loss function to align text and image embeddings.

  2. B

    CLIP requires image labels for training.

  3. C

    CLIP is trained to maximize cosine similarity between embeddings of matching text-image pairs.

  4. D

    CLIP model is trained with pretext tasks such as rotation prediction and inpainting to learn effective feature representations.

  5. E

    To use the CLIP model for image classification, it is imperative to finetune it on downstream datasets.

Show answer

Correct answer

  • C

    CLIP is trained to maximize cosine similarity between embeddings of matching text-image pairs.

Question 19

+2 marksOne or more correct options

Which one of the following statements is true:

Select all that apply.

  1. A

    Weight change criterion is a method of ‘early stopping’ that checks whether or not the error is dropping over epochs to decide whether to continue training or stop.

  2. B

    L1 norm tends to create more sparse weights than L2 norm.

  3. C

    During the training phase, for each iteration, Dropout ignores a random fraction, p, of nodes, and accounts for it in the test phase by scaling down the activations by a factor of p.

  4. D

    A single McCulloch-Pitts neuron is capable of modeling AND, OR, XOR, NOR, and NAND functions.

Show answer

Correct answers

  • B

    L1 norm tends to create more sparse weights than L2 norm.

  • C

    During the training phase, for each iteration, Dropout ignores a random fraction, p, of nodes, and accounts for it in the test phase by scaling down the activations by a factor of p.

Question 20

+2 marksOne or more correct options

Which of the following are examples of a high-pass filter?

Select all that apply.

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

Correct answers

  • A
  • B
  • C

Question 21

+2 marksNumerical answer

Given is a 3×33 \times 3 8-bit grayscale image:

[1050200701001502080255]\begin{bmatrix} 10 & 50 & 200 \\ 70 & 100 & 150 \\ 20 & 80 & 255 \end{bmatrix}

What is the central element after applying linear contrast stretching (from the range [Imin⁡,Imax⁡][I_{\min}, I_{\max}] to [0,255][0, 255]) ?

Show answer

Correct answer: 93.5 (accepted within ±0.5)

Question 22

+2 marksNumerical answer
Show answer

Correct answer: 0.935 (accepted within ±0.005)

Question 23

+2 marksNumerical answer
Show answer

Correct answer: 43

Question 24

+2 marksNumerical answer
Show answer

Correct answer: 3.75

Question 25

+2 marksNumerical answer
Show answer

Correct answer: 2

Question 26

+2 marksNumerical answer

What is the size of the feature map after applying two successive convolution operations with given parameters? Image size = 72×72, Kernel size = 5×5, Padding = 2 and Stride = 3. (In calculation, take floor(x) whenever x is non-integer.If the answer is N × N, write just one value N in the blank) __________________ .

Show answer

Correct answer: 8

Question 27

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: -2

Question 28

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 5

Question 29

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Element 1:___________

Show answer

Correct answer: 0.49

Question 30

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Element 2:___________

Show answer

Correct answer: 0.55

Question 31

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Element 3:___________

Show answer

Correct answer: 0.10

Question 32

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Element 4:___________

Show answer

Correct answer: 0.50

Question 33

+1 markNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Self-Attention _______________

Show answer

Correct answer: 1

Question 34

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

BERT Text Encoder Bi Self Attention:__________________

Show answer

Correct answer: 5

Question 35

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Image-Text Matching Loss (LITM ):__________________

Show answer

Correct answer: 11

Question 36

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Image Grounded Text Encoder Bi Self Attention: ___________________

Show answer

Correct answer: 7

Question 37

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Show answer

Correct answer: 8

Question 38

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Image Grounded Text Encoder Cross Attention: _________________

Show answer

Correct answer: 4

Question 39

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Image-Text Contrastive Loss (LITC): ____________

Show answer

Correct answer: 10

Question 40

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Show answer

Correct answer: 9

Question 41

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Causal Self Attention: _____________

Show answer

Correct answer: 3

Question 42

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Show answer

Correct answer: 2

Question 43

+0.5 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below:

For each of the entities given, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.

Image Grounded Text Decoder Cross Attention: _____________

Show answer

Correct answer: 6

Question 44

+1 markNumerical answer

A four-dimensional input vector x=[4,−5,−7,10]x = [4, -5, -7, 10] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.02,0.8,0.01,2.5][0.02, 0.8, 0.01, 2.5] and bias is 5.0. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z))).

Upto 2 decimal places

Based on the above data, answer the given subquestions.

Sigmoid ______________

Show answer

Correct answer: 0.99

Question 45

+1 markNumerical answer

A four-dimensional input vector x=[4,−5,−7,10]x = [4, -5, -7, 10] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.02,0.8,0.01,2.5][0.02, 0.8, 0.01, 2.5] and bias is 5.0. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z))).

Upto 2 decimal places

Based on the above data, answer the given subquestions.

Linear ______________

Show answer

Correct answer: 26.01

Question 46

+1 markNumerical answer

A four-dimensional input vector x=[4,−5,−7,10]x = [4, -5, -7, 10] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.02,0.8,0.01,2.5][0.02, 0.8, 0.01, 2.5] and bias is 5.0. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z))).

Upto 2 decimal places

Based on the above data, answer the given subquestions.

Indicator Function ______________

Show answer

Correct answer: 1

Question 47

+1 markNumerical answer

A four-dimensional input vector x=[4,−5,−7,10]x = [4, -5, -7, 10] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.02,0.8,0.01,2.5][0.02, 0.8, 0.01, 2.5] and bias is 5.0. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z))).

Upto 2 decimal places

Based on the above data, answer the given subquestions.

Softplus _____________

Show answer

Correct answer: 26.01

Question 48

+1 markNumerical answer

A four-dimensional input vector x=[4,−5,−7,10]x = [4, -5, -7, 10] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.02,0.8,0.01,2.5][0.02, 0.8, 0.01, 2.5] and bias is 5.0. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z))).

Upto 2 decimal places

Based on the above data, answer the given subquestions.

ReLU _______________

Show answer

Correct answer: 26.01

Question 49

+1 markNumerical answer

A four-dimensional input vector x=[4,−5,−7,10]x = [4, -5, -7, 10] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.02,0.8,0.01,2.5][0.02, 0.8, 0.01, 2.5] and bias is 5.0. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z))).

Upto 2 decimal places

Based on the above data, answer the given subquestions.

Leaky-ReLU _____________

Show answer

Correct answer: 26.01