Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DIPLOMA LEVEL : INTRODUCTION TO DEEP
LEARNING AND GENERATIVE AI (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
LEARNING AND GENERATIVE AI (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Assume that the shape of the input image is 32 x 32 x 100. A 1x1 convolution with 50 filters is applied. How many learnable weights will be present (excluding biases)?
Solution
Consider the following statements about the Transformer architecture.
1. The encoder uses self-attention.
2. The encoder uses masked self-attention.
3. The decoder uses masked self-attention.
4. The decoder uses cross-attention.
5. The encoder uses cross-attention.
Which of the following is correct?
1. The encoder uses self-attention.
2. The encoder uses masked self-attention.
3. The decoder uses masked self-attention.
4. The decoder uses cross-attention.
5. The encoder uses cross-attention.
Which of the following is correct?
Solution
Which model is described as producing blurry images because its loss averages out fine details, but has high diversity and stable training?
Solution
What is the output of the given code?

Solution
In a GAN trained using the original minimax (saturating) generator objective, suppose the discriminator becomes nearly perfect very early in training. What will be the most likely consequence of this?
Solution
Consider the following two code snippets executed during the training of a sequence-to-sequence model.
Code A

Code B

where:
-
represents the decoder's output scores (logits) for all words in the vocabulary.
-
returns the predicted word (i.e., the word with the highest score).
-
is the actual (ground-truth) target word at time step
.
-
is the word fed as input to the decoder at the next time step.
Which of the following correctly identifies Code A and Code B?
Code A
Code B
where:
-
-
-
-
Which of the following correctly identifies Code A and Code B?
Solution
A GAN suddenly starts producing almost the same single image regardless of the input noise z, even though the discriminator is fooled. This failure is called:
Solution
Three students implement masked self-attention as follows.
Student A

Student B

Student C

Which of the following students has correctly implemented masked self-attention?
Student A
Student B
Student C
Which of the following students has correctly implemented masked self-attention?
Solution
Suppose the residual connections in the transformer block are removed, so the forward pass becomes:

What is the most likely consequence of this change as more transformer blocks (
) are stacked?
What is the most likely consequence of this change as more transformer blocks (
Solution
Which of the following is done by the given pytorch code?

Solution
Consider a Transformer with an embedding dimension of 24 and 4 attention heads. For a sequence containing 10 tokens, what are the correct dimensions of query, key, and the attention score matrix for a single attention head?
Solution
Consider the following PyTorch code:

Which of the following will be the sequence of learning rates printed by the program?
Which of the following will be the sequence of learning rates printed by the program?
Solution
Which of the following statements is/are correct with respect to RAG and fine-tuning?
Solution
Consider the following attention score matrix for a sequence of 4 tokens:

A causal mask is applied before softmax. Which of the following row(s) will have exactly one non- zero attention probability after softmax?
A causal mask is applied before softmax. Which of the following row(s) will have exactly one non- zero attention probability after softmax?
Solution
Select all sets that are convex.
Solution
Consider the following code snippet:

Which of the following statements regarding the code snippet given above is correct?
Which of the following statements regarding the code snippet given above is correct?
Solution
Which of the following are false for a transformer?
Solution
Select all the correct statements regarding the 'GPT' model:
Solution
A ViT processes grayscale images of resolution 128 x 128 pixels, split into non-overlapping 16 x 16 patches. Each flattened patch is projected by a single shared linear layer to a 256-dimensional embedding, and a learnable [CLS] token is prepended before the Transformer encoder. Ignoring biases, select all correct statements.
Solution
Inscript
We create a RNN as follows:

What is the output of the print statement of the code?
We create a RNN as follows:
What is the output of the print statement of the code?
Solution
Inscript
Using the FID formula, the real and generated covariances are
and
, and the means are equal. Compute the FID. (Answer to 2 decimal points)
Using the FID formula, the real and generated covariances are
Solution
Inscript
Consider a single layer transformer with the following specifications:
Vocabulary Size=6400
Number of heads= 4
Dimension for each head= 16
Hidden layer size for the feed forward block = 200
The feed forward block only contains one hidden layer.
Calculate the total trainable weights between the input layer and hidden layer of the feed forward block. (Ignore bias)
Consider a single layer transformer with the following specifications:
Vocabulary Size=6400
Number of heads= 4
Dimension for each head= 16
Hidden layer size for the feed forward block = 200
The feed forward block only contains one hidden layer.
Calculate the total trainable weights between the input layer and hidden layer of the feed forward block. (Ignore bias)
Solution
Inscript
Consider two activation functions
and
. Let
, what will be the value of
? (Round to 3 decimals)
Consider two activation functions
Solution
Shape
Thickness [ / ]
3
All colors