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
In Variational auto-encoder, the variational latent posterior
and the conditional data likelihood
is represented using
Solution
A Variational Autoencoder (VAE) has been trained on a dataset. Which of the following procedures correctly generates a new data sample from the trained model?
Solution
The variational (Fenchel) lower bound on an
-divergence is

where the function
is represented by a neural network
with parameters
. In practice,
is built as
, where
is an unconstrained neural network and
is an activation function specific to the chosen
-divergence. The full training objective is the saddle- point (min-max) problem

What is the purpose of the activation function
applied at the output of the critic network?
where the function
What is the purpose of the activation function
Solution
Suppose a black box generates samples from a normal distribution with mean
and variance
, i.e.
. Using the reparameterization trick from VAEs, which of the following expresses a sample
as a deterministic function of
?
Solution
In the EM algorithm for a GMM with
components, which choice of
in the
-step makes the ELBO equal to
?
Solution
Solution
A Variational-Auto Encoder (VAE) is trained by maximizing the Evidence Lower Bound (ELBO), which consists of a reconstruction term and a regularization term. Consider the reconstruction term of a VAE,

estimated with a single Monte Carlo sample
so that
. Encoder:
Decoder: 
If we sample
directly from
, which parameters among
can receive gradients from
? Select all that apply.
estimated with a single Monte Carlo sample
If we sample
Solution
The training objective of a Variational Autoencoder (VAE) consists of a reconstruction term and a Kullback-Leibler (KL) divergence term. In a
-VAE, the KL divergence term is multiplied by a hyperparameter
. Which of the following statements are correct?
Solution
A latent variable model defines
. Directly maximizing
is intractable, so training maximizes the Evidence Lower Bound (ELBO) instead. Which of the following are correct?
Solution
Which of the following statements correctly contrast DDPM sampling with a standard GAN/VAE?
Solution
Which of the following statements about the generator and discriminator in a standard GAN are correct?
Solution
Which among the following is true for a denoising diffusion probabilistic model (DDPM)?
Solution
Inscript
In a GAN inversion via latent regression, the term:
is added to the GAN objective, where
is a hyperparameter. If the inversion were perfect, what value would this penalty term take?
In a GAN inversion via latent regression, the term:
Solution
Inscript
In a VQ-VAE, the encoder output is replaced by its nearest vector from a learnable dictionary (codebook)
, each
. For an input with encoder output
, the quantization picks

A trained VQ-VAE has a dictionary of
vectors in
:

For a particular input, the encoder outputs
. Compute the squared distance
to each of the three codebook vectors, and state the index
of the vector to which
is quantized.
In a VQ-VAE, the encoder output is replaced by its nearest vector from a learnable dictionary (codebook)
A trained VQ-VAE has a dictionary of
For a particular input, the encoder outputs
Solution
Comprehension Passage
In a DDPM the denoising network is a U-Net that takes the noisy latent
together with an embedding of the timestep
, and outputs a tensor
of the same shape as
. The U-Net is trained by the denoising regression
. The U-Net's output feeds the reverse- step mean

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Inscript
For a 3-dimensional sample, the true clean sample is
, and the denoising network predicts
. Compute the loss
. Enter the answer correct to two decimal places.
For a 3-dimensional sample, the true clean sample is
Solution
Comprehension Passage
In a DDPM the denoising network is a U-Net that takes the noisy latent
together with an embedding of the timestep
, and outputs a tensor
of the same shape as
. The U-Net is trained by the denoising regression
. The U-Net's output feeds the reverse- step mean

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Inscript
At a particular time step
,

For a particular sample
, the network predicts

Compute the reverse-step mean. Enter your answer correct to two decimal places.
At a particular time step
For a particular sample
Compute the reverse-step mean. Enter your answer correct to two decimal places.
Solution
Comprehension Passage
A mixture of two Bernoulli components models binary image vectors
. Component
has pixel probabilities
(with
the probability that pixel
is
) and mixing weight
, and within a component the pixels are independent, so

The latent
is fitted by EM, whose E-step responsibility and M-step weight update are

Take
,
,
.
Based on the above data, answer the given subquestions.
The latent
Take
Based on the above data, answer the given subquestions.
Inscript
For the observed image
, carry out one E-step: compute the responsibility
of component 1 for this image. Give your answer to three decimal places.
For the observed image
Solution
Comprehension Passage
A mixture of two Bernoulli components models binary image vectors
. Component
has pixel probabilities
(with
the probability that pixel
is
) and mixing weight
, and within a component the pixels are independent, so

The latent
is fitted by EM, whose E-step responsibility and M-step weight update are

Take
,
,
.
Based on the above data, answer the given subquestions.
The latent
Take
Based on the above data, answer the given subquestions.
Inscript
A dataset of
images yields component-1 responsibilities

Compute the updated mixing weight
from the M-step. Enter the answer correct to two decimal places.
A dataset of
Compute the updated mixing weight
Solution
Shape
Thickness [ / ]
3
All colors