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
Consider the following code:

Why is
called inside the training loop?
Why is
Solution
Consider the following code:

What is the spatial size of the output after applying the given pooling code?
What is the spatial size of the output after applying the given pooling code?
Solution
Which of the following code snippets generates fake images from random noise for training a fully connected GAN network?
Solution
Consider the following code:

What will be the final output of the code (z_biased)?
What will be the final output of the code (z_biased)?
Solution
Consider the following architecture for a discriminator:

In which of the following lines would you suggest code changes to make the discriminator work as intended?
In which of the following lines would you suggest code changes to make the discriminator work as intended?
Solution
If Model A has cross-entropy loss = 2.0 and Model B has loss = 1.5, which model has lower perplexity?
Solution
You are debugging three RNN models that are all struggling to learn from sequences of length T=20. Each model uses tanh activation (average derivative ≈ 0.4 during backprop). You examine the eigenvalues of their recurrent weight matrices W_hh:
- Model A (Sentiment Analysis):
Eigenvalues of
: λ = [3.2, 2.8, -2.1, 1.5, 0.9, 0.6, 0.3]
- Model B (Language Modeling):
Eigenvalues of
: λ = [0.95, 0.88, 0.76, -0.65, 0.52, 0.41, 0.28]
- Model C (Time Series Prediction):
Eigenvalues of
: λ = [0.45, 0.38, -0.31, 0.22, 0.15, 0.09, 0.05]
Which gradient behavior will each model exhibit?
- Model A (Sentiment Analysis):
Eigenvalues of
- Model B (Language Modeling):
Eigenvalues of
- Model C (Time Series Prediction):
Eigenvalues of
Which gradient behavior will each model exhibit?
Solution
Consider the following code snippet:

What is the shape of
?
What is the shape of
Solution
Inscript

Solution
A
input image is processed by a
convolutional layer with a stride of
.
The framework is configured to use "same" padding.
What is the spatial height (or width) of the output feature map?
The framework is configured to use "same" padding.
What is the spatial height (or width) of the output feature map?
Solution
You are designing a simple RNN to process sentences of length 10 words for next-word prediction in a chat application.
Each word is represented using a vector of size 6.
The RNN has:
- Hidden layer size = 4 neurons
- Output layer size = 5 neurons
What is the total number of trainable parameters in this RNN including biases?
Each word is represented using a vector of size 6.
The RNN has:
- Hidden layer size = 4 neurons
- Output layer size = 5 neurons
What is the total number of trainable parameters in this RNN including biases?
Solution
Consider the following real-valued functions defined on their natural domains. Select all functions that are convex over their respective domains.
Solution
In a GAN training loop, the following function is used before each backward pass:

Suppose a GAN is trained and this function is used in every iteration with learning rate α = 0.01 :
During iteration 1:
The true discriminator gradient (∇θ_D L_D) = 0.6
The true generator gradient (∇θ_G L_G) = 0.5
During iteration 2:
The new discriminator gradient (∇θ_D L_D) = 0.4
The new generator gradient (∇θ_G L_G) = 0.2
What will be the effective parameter update after the second iteration (assume gradients accumulate linearly in PyTorch)?
Suppose a GAN is trained and this function is used in every iteration with learning rate α = 0.01 :
During iteration 1:
The true discriminator gradient (∇θ_D L_D) = 0.6
The true generator gradient (∇θ_G L_G) = 0.5
During iteration 2:
The new discriminator gradient (∇θ_D L_D) = 0.4
The new generator gradient (∇θ_G L_G) = 0.2
What will be the effective parameter update after the second iteration (assume gradients accumulate linearly in PyTorch)?
Solution
During GAN training, the following code is used to update the discriminator:

However the code doesnt work as intended. Identify the flaws which are preventing to make the code work as intended.
However the code doesnt work as intended. Identify the flaws which are preventing to make the code work as intended.
Solution
Consider the following statements related to optimization in deep learning. Select all statements that are correct.
Solution
Comprehension Passage
Consider the following reference sentence:
Reference:
machine learning is very fun

Answer the subquestions based on the given data.
Reference:
machine learning is very fun
Answer the subquestions based on the given data.
Prediction 1:
machine learning is fun fun
What is the BLEU-1 score for the given prediction?
machine learning is fun fun
What is the BLEU-1 score for the given prediction?
Solution
Comprehension Passage
Consider the following reference sentence:
Reference:
machine learning is very fun

Answer the subquestions based on the given data.
Reference:
machine learning is very fun
Answer the subquestions based on the given data.
Prediction 2:
machine learning is fun
What is the BLEU-1 score for the given prediction?
machine learning is fun
What is the BLEU-1 score for the given prediction?
Solution
Comprehension Passage
Consider the following PyTorch model:

Answer the subquestions based on the given data.
Answer the subquestions based on the given data.
What is the total number of trainable parameters in the GRU layer?
Solution
Comprehension Passage
Consider the following PyTorch model:

Answer the subquestions based on the given data.
Answer the subquestions based on the given data.
What is the shape of
in the forward pass if the shape of x is
?
Solution
Comprehension Passage
Consider a single artificial neuron with a sigmoid activation function. The neuron has two inputs (
= 1) and (
= 2). The initial weights are (
= 0.5) and (
= -0.5). No bias term is used.
The desired output is (y = 1). The learning rate for stochastic gradient descent (SGD) is (
= 0.1).
The neuron employs the sigmoid activation function

and the binary cross-entropy loss function.
Based on the above data, answer the given subquestions.
The desired output is (y = 1). The learning rate for stochastic gradient descent (SGD) is (
The neuron employs the sigmoid activation function
and the binary cross-entropy loss function.
Based on the above data, answer the given subquestions.
What are the gradients of the loss with respect to the weights
and
at the first iteration?
Solution
Comprehension Passage
Consider a single artificial neuron with a sigmoid activation function. The neuron has two inputs (
= 1) and (
= 2). The initial weights are (
= 0.5) and (
= -0.5). No bias term is used.
The desired output is (y = 1). The learning rate for stochastic gradient descent (SGD) is (
= 0.1).
The neuron employs the sigmoid activation function

and the binary cross-entropy loss function.
Based on the above data, answer the given subquestions.
The desired output is (y = 1). The learning rate for stochastic gradient descent (SGD) is (
The neuron employs the sigmoid activation function
and the binary cross-entropy loss function.
Based on the above data, answer the given subquestions.
What are the updated values of the weights after the first SGD step?
Solution
Shape
Thickness [ / ]
3
All colors