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
Which among the following is true for the EM algorithm?
Solution
Comprehension Passage
Let
iid
, where
is a 2-component Gaussian mixture distribution with density

where
, and
is known.
Based on the above data, answer the given subquestions.
where
Based on the above data, answer the given subquestions.
Inscript
Find the number of parameters to be estimated in the model.
Find the number of parameters to be estimated in the model.
Solution
Comprehension Passage
Let
iid
, where
is a 2-component Gaussian mixture distribution with density

where
, and
is known.
Based on the above data, answer the given subquestions.
where
Based on the above data, answer the given subquestions.
Inscript
Suppose in the M-step of the EM algorithm, we have the following responsibilities for data points
and
:


where
Calculate the updated mean
for the second component. Enter the answer correct to two decimal places.
Suppose in the M-step of the EM algorithm, we have the following responsibilities for data points
where
Solution
Inscript
For a latent variable model, the Evidence Lower Bound (ELBO) is given by:

Given a data point
, an approximate posterior
, and the log- joint distribution values
and
, what is the value of the ELBO? Enter the answer correct to two decimal places. Use
for the calculation.
For a latent variable model, the Evidence Lower Bound (ELBO) is given by:
Given a data point
Solution
Inscript
The DDPM forward process is defined by
, where
and
. For timestep
,
. Given a normalized data point
and a noise sample
, what is the value of
? Enter the answer correct to two decimal places.
The DDPM forward process is defined by
Solution
Comprehension Passage
A factory uses a Variational Autoencoder (VAE) to automate the inspection of high-precision ceramic tiles. The model is trained to identify defects by learning the distribution of ''normal" tiles. For each input image
(resized to
pixels), the encoder
maps the image to a
dimensional latent space, while the decoder
attempts to reconstruct the original pixels. The training objective to maximize the Evidence Lower Bound (ELBO), defined as:

Assume the prior
is a standard normal distribution
.

Assume the prior
Solution
Comprehension Passage
A factory uses a Variational Autoencoder (VAE) to automate the inspection of high-precision ceramic tiles. The model is trained to identify defects by learning the distribution of ''normal" tiles. For each input image
(resized to
pixels), the encoder
maps the image to a
dimensional latent space, while the decoder
attempts to reconstruct the original pixels. The training objective to maximize the Evidence Lower Bound (ELBO), defined as:

Assume the prior
is a standard normal distribution
.

Assume the prior
Inscript
Compute the latent regularization contribution
for this tile. Enter the answer correct to two decimal places.
Compute the latent regularization contribution
Solution
Comprehension Passage
A factory uses a Variational Autoencoder (VAE) to automate the inspection of high-precision ceramic tiles. The model is trained to identify defects by learning the distribution of ''normal" tiles. For each input image
(resized to
pixels), the encoder
maps the image to a
dimensional latent space, while the decoder
attempts to reconstruct the original pixels. The training objective to maximize the Evidence Lower Bound (ELBO), defined as:

Assume the prior
is a standard normal distribution
.

Assume the prior
Inscript
The total reconstruction mismatch ( negative log-likelihood ) for the training sample is found to be
. Calculate the ELBO objective value
for this sample. Round your answer to the nearest integer.
The total reconstruction mismatch ( negative log-likelihood ) for the training sample is found to be
Solution
Comprehension Passage
A factory uses a Variational Autoencoder (VAE) to automate the inspection of high-precision ceramic tiles. The model is trained to identify defects by learning the distribution of ''normal" tiles. For each input image
(resized to
pixels), the encoder
maps the image to a
dimensional latent space, while the decoder
attempts to reconstruct the original pixels. The training objective to maximize the Evidence Lower Bound (ELBO), defined as:

Assume the prior
is a standard normal distribution
.

Assume the prior
Inscript
During a testing phase, the engineers employ a
-VAE variant with
. For a suspicious tile, the reconstruction mismatch is
and the
contribution is
. Compute the
-VAE objective value
for this sample.
During a testing phase, the engineers employ a
Solution
Comprehension Passage
A factory uses a Variational Autoencoder (VAE) to automate the inspection of high-precision ceramic tiles. The model is trained to identify defects by learning the distribution of ''normal" tiles. For each input image
(resized to
pixels), the encoder
maps the image to a
dimensional latent space, while the decoder
attempts to reconstruct the original pixels. The training objective to maximize the Evidence Lower Bound (ELBO), defined as:

Assume the prior
is a standard normal distribution
.

Assume the prior
The factory deployment uses an anomaly score
defined as:

If
, the tile is flagged. Determine the anomaly score for the suspicious tile (reconstruction mismatch:
,
) and state whether it is flagged or not.
If
Solution
A VQ-VAE uses a codebook with
vectors, each of dimension
. The encoder output
is a tensor of shape
. What is the total size (in bits) of the discrete latent representation (the indices sent to the decoder) for a single input?
Solution
In a PyTorch DDPM sampling loop, you have a tensor
of shape
representing the noisy image at step 't'. The model
returns a predicted noise tensor of the same shape. The timestep 't' is a single integer. When passing 't' to the model, it is typically converted to a
tensor. What must be the shape of this timestep tensor 't' so that it can be correctly processed by the model for a single image?
tensor. What must be the shape of this timestep tensor 't' so that it can be correctly processed by the model for a single image?
Solution
Inscript
In a PyTorch implementation of a VAE encoder for
images, the input is first flattened and then passed through a linear layer 'nn.Linear(3072, 400)'. This is followed by a ReLU activation and then two parallel linear layers to produce
and
, both mapping from 400 features to a latent dimension of 20. What is the total number of trainable weight and bias parameters in the layer that produces the mean vector
?
In a PyTorch implementation of a VAE encoder for
Solution
Inscript
During the inference phase of a DDPM, a trained U-Net
is used to predict the noise added to a sample. Once the noise is predicted, the original data point can be estimated using the formula:

At timestep
, given
and a noisy latent
, the U-Net predicts the noise
. Calculate the estimated clean data point
.
During the inference phase of a DDPM, a trained U-Net
At timestep
Solution
In a trained Denoising Diffusion Probabilistic Model (DDPM), which of the following statements correctly describes the inference (sampling) process to generate a new data point
?
Solution
Solution
Shape
Thickness [ / ]
3
All colors