Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : MATHEMATICAL FOUNDATIONS
OF 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)
OF 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
Inscript
An agent receives rewards
over an episode (
) with the discount factor equal to 0.5. Compute the full discounted return
for the trajectory
. Enter your answer correct to three decimal places.
An agent receives rewards
Solution
Solution
In Proximal Policy Optimization (PPO), the clipped surrogate objective for a single state-action pair is:

Which of the following statements are correct?
Which of the following statements are correct?
Solution
In multi-head self-attention with
heads, the queries, keys, and values for each head have
dimension
where
is the model dimension. Which of the following correctly explain why this choice makes the implementation efficient?
dimension
Solution
Inscript

Solution
What is the role of layer normalization in a transformer block?
Solution
Which among the following is true for a VAE and a diffusion model?
Solution
Which of the following statements about Denoising Diffusion Implicit Models (DDIMs) are correct? Select all that apply.
Solution
Consider two DDPMs at the same timestep
. For Model A,
, while for Model B,
. Recall that

Which of the following statements are correct?
Which of the following statements are correct?
Solution
Which of the following statements correctly describe the forward diffusion process in a DDPM?
Solution
You are training a GAN with generator
,
, to generate handwritten digit images spanning all 10 digit classes. After training, you suspect that
has not converged to
and that the generator is suffering from mode collapse. Which of the following could be indicators of this problem? Select all that apply.
Solution
Solution
Comprehension Passage
A transformer processes a sequence of
tokens with model dimension
using
attention heads, each with
.
The input embedding matrix is:

Head 1 uses projections:

Head 2 uses projections:

Use
for scaling. All biases are zero.
Based on the above data, answer the given subquestions.
The input embedding matrix is:
Head 1 uses projections:
Head 2 uses projections:
Use
Based on the above data, answer the given subquestions.
Inscript
Compute
,
,
for Head 1 and the scaled score matrix
, and enter the value of the
entry of
. Enter the answer correct to two decimal places.
Compute
Solution
Comprehension Passage
A transformer processes a sequence of
tokens with model dimension
using
attention heads, each with
.
The input embedding matrix is:

Head 1 uses projections:

Head 2 uses projections:

Use
for scaling. All biases are zero.
Based on the above data, answer the given subquestions.
The input embedding matrix is:
Head 1 uses projections:
Head 2 uses projections:
Use
Based on the above data, answer the given subquestions.
Inscript
Causal masking is applied on
. Compute the attention weights for the third query and enter the value of the largest weight among the three, correct to two decimal places.
Causal masking is applied on
Solution
Comprehension Passage
A transformer processes a sequence of
tokens with model dimension
using
attention heads, each with
.
The input embedding matrix is:

Head 1 uses projections:

Head 2 uses projections:

Use
for scaling. All biases are zero.
Based on the above data, answer the given subquestions.
The input embedding matrix is:
Head 1 uses projections:
Head 2 uses projections:
Use
Based on the above data, answer the given subquestions.
Inscript
Using causal masking, compute the attention outputs for the third token from both heads and concatenate them as

Enter the fourth entry of the third row of
. Enter the answer correct to two decimal places.
Using causal masking, compute the attention outputs for the third token from both heads and concatenate them as
Enter the fourth entry of the third row of
Solution
Comprehension Passage
In classifier-free guidance, a single diffusion model is jointly trained for both conditional and unconditional generation. During training, the conditioning information
is randomly replaced with a null token
with probability
. During sampling at timestep
, the model produces two noise predictions:
1. Conditional prediction:
(model receives conditioning
)
2. Unconditional prediction:
(model receives null token)
The classifier-free guided noise prediction is defined as :

where
is the guidance scale. This follows from the guided score formulation:

The predicted clean data point is recovered via
.
Following are the values given:

Based on the above data, answer the given subquestions.
1. Conditional prediction:
2. Unconditional prediction:
The classifier-free guided noise prediction is defined as :
where
The predicted clean data point is recovered via
Following are the values given:
Based on the above data, answer the given subquestions.
Inscript
Compute the predicted clean data point
. Enter the answer correct to one decimal place.
Compute the predicted clean data point
Solution
Comprehension Passage
In classifier-free guidance, a single diffusion model is jointly trained for both conditional and unconditional generation. During training, the conditioning information
is randomly replaced with a null token
with probability
. During sampling at timestep
, the model produces two noise predictions:
1. Conditional prediction:
(model receives conditioning
)
2. Unconditional prediction:
(model receives null token)
The classifier-free guided noise prediction is defined as :

where
is the guidance scale. This follows from the guided score formulation:

The predicted clean data point is recovered via
.
Following are the values given:

Based on the above data, answer the given subquestions.
1. Conditional prediction:
2. Unconditional prediction:
The classifier-free guided noise prediction is defined as :
where
The predicted clean data point is recovered via
Following are the values given:
Based on the above data, answer the given subquestions.
If the guidance scale is set to
, which of the following correctly describes the effect on
and
?
Solution
Inscript
Consider a 1-dimensional VAE with:
1. Encoder:
,
, 
2. Decoder:
, with fixed decoder variance 
Use the reparameterization trick to express the latent sample
. The
reconstruction loss
for a single sample is given by
.
Following are the values given:
, input
, sampled noise
. Compute
. Enter the answer correct to three
decimal places.
Consider a 1-dimensional VAE with:
1. Encoder:
2. Decoder:
Use the reparameterization trick to express the latent sample
reconstruction loss
Following are the values given:
decimal places.
Solution
Inference in DDPM is much slower as compared to GAN or VAE.
Solution
Shape
Thickness [ / ]
3
All colors