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
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
A discriminative model and a generative model are trained on the same cat/dog dataset. Which statement is correct?
Solution
In RAG, a user asks a question using words that are very different from those used in the relevant document, but the underlying meaning is similar. Why can embedding-based retrieval still identify the relevant chunk?
Solution
What will be the output of the given code?

Solution
A CNN contains the following two layers with the kernel sizes shown below:
- Conv1: 3x3, stride 1
- MaxPool: 2x2, stride 2
Find the receptive field of a neuron after pooling.
- Conv1: 3x3, stride 1
- MaxPool: 2x2, stride 2
Find the receptive field of a neuron after pooling.
Solution
What is the output of the given code?

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 the two code snippets?
Code A
Code B
where:
-
-
-
-
Which of the following correctly identifies the two code snippets?
Solution
Two students implement masked self-attention as follows.
Student A

Student B

Whose implementation is correct?
Student A
Student B
Whose implementation is correct?
Solution
Which of the following correctly indicates the attention mechanisms used in the encoder and decoder of a Transformer?
Solution
The VAE loss has two terms:
.
What is the role of the second (KL) term?
(Here, x is the input, x̂ is the reconstructed output, z is the latent variable, q(z|x) is the encoder's approximate posterior distribution over the latent space, and p(z) is the prior distribution over the latent space (typically a standard normal).)
What is the role of the second (KL) term?
(Here, x is the input, x̂ is the reconstructed output, z is the latent variable, q(z|x) is the encoder's approximate posterior distribution over the latent space, and p(z) is the prior distribution over the latent space (typically a standard normal).)
Solution
Suppose the scaling step below is removed entirely, so
is used directly as computed by the dot product, with no division by
:

What is the most likely consequence during training, especially as
(the dimensionality of the Key/Query/Value projections for a single attention head) increases?
What is the most likely consequence during training, especially as
Solution
Consider the following token sequence:

Which of the following correctly creates x (input tokens) and y (target tokens) for next-token prediction?
Which of the following correctly creates x (input tokens) and y (target tokens) for next-token prediction?
Solution
Consider a transformer with an embedding dimension of 20 and 2 attention heads. For a sequence containing 8 tokens, what are the correct dimensions of
,
, and the attention score matrix for a single attention head?
Solution
Suppose the sequence length of input passed to a transformer is doubled from 128 to 256 while keeping all other hyperparameters fixed.
Approximately how does the computational cost of self-attention change?
Approximately how does the computational cost of self-attention change?
Solution
Consider the following PyTorch code:

Which of the following should be the correct sequence of learning rates printed by the program?
Which of the following should be the correct sequence of learning rates printed by the program?
Solution
Which of the following options is/are correct regarding activation functions?
Solution
Which of the following statements about transfer learning is/are correct?
Solution
Which of the following will increase the trainable parameters in a transformer?
Solution
Which of the following is/are associated with the 'BERT' model?
Solution
Solution
A ViT processes colourful (RGB) images of resolution 96 x 96 pixels per channel. The image is split into non-overlapping 8 x 8 patches, and each flattened patch is projected by a single shared linear layer to a 128-dimensional embedding. Ignoring biases, select all the correct statement(s).
Solution
Inscript
The Inception Score is
.
For a badly-trained model, every generated image's conditional label distribution
is exactly equal to the marginal
. What is the resulting IS?
The Inception Score is
For a badly-trained model, every generated image's conditional label distribution
Solution
Inscript
An LLM uses trainable positional embeddings.
The positional embedding matrix contains 1000 parameters.
The vocabulary size is 64 and the context length is 20.
Find the number of parameters in the word embedding matrix for the given model.
An LLM uses trainable positional embeddings.
The positional embedding matrix contains 1000 parameters.
The vocabulary size is 64 and the context length is 20.
Find the number of parameters in the word embedding matrix for the given model.
Solution
Shape
Thickness [ / ]
3
All colors