Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : DEEP LEARNING (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)
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
Consider the input matrix
and filter
given below:

Suppose
is convolved with
using a padding of 1 and a stride of 2 to produce an output

What will be the value of
?
Consider the input matrix
Suppose
What will be the value of
Solution
Comprehension Passage
Consider the optimization problem of minimizing the function

We compare gradient descent and an Adam optimizer starting from an arbitrary point
.
Based on the above data, answer the given subquestions.
We compare gradient descent and an Adam optimizer starting from an arbitrary point
Based on the above data, answer the given subquestions.
Inscript
Starting at
, run two steps of gradient descent with learning rate
. The iterates follow:

If
, find
correct to two decimal places.
Starting at
If
Solution
Comprehension Passage
Consider the optimization problem of minimizing the function

We compare gradient descent and an Adam optimizer starting from an arbitrary point
.
Based on the above data, answer the given subquestions.
We compare gradient descent and an Adam optimizer starting from an arbitrary point
Based on the above data, answer the given subquestions.
Inscript
Starting at
, we now turn to Adagrad. The update rule is defined as follows:


Assume
,
and
. If
, determine whether such a constant
exists. If yes, enter
correct to two decimal places; otherwise enter
.
Starting at
Assume
Solution
Comprehension Passage
Consider a neural network with the following architecture with one hidden layer and one output layer. Hidden layer has three neurons with ReLU as an activation function while the output layer has one neuron with sigmoid as the activation function. The input
is the true output, and
is the predicted output.

The loss function used is squared loss
. Following are the weights of the network.

Assume the bias to be zero.
Based on the above data, answer the given subquestions.
The loss function used is squared loss
Assume the bias to be zero.
Based on the above data, answer the given subquestions.
Inscript
Perform one forward pass and compute the loss for the input
.
Enter the answer correct to three decimal places.
Perform one forward pass and compute the loss for the input
Enter the answer correct to three decimal places.
Solution
Comprehension Passage
Consider a neural network with the following architecture with one hidden layer and one output layer. Hidden layer has three neurons with ReLU as an activation function while the output layer has one neuron with sigmoid as the activation function. The input
is the true output, and
is the predicted output.

The loss function used is squared loss
. Following are the weights of the network.

Assume the bias to be zero.
Based on the above data, answer the given subquestions.
The loss function used is squared loss
Assume the bias to be zero.
Based on the above data, answer the given subquestions.
Inscript
Perform backpropagation using the optimizer stochastic gradient descent and find the number of weights that will get updated in
.
Perform backpropagation using the optimizer stochastic gradient descent and find the number of weights that will get updated in
Solution
Comprehension Passage
Consider a neural network with the following architecture with one hidden layer and one output layer. Hidden layer has three neurons with ReLU as an activation function while the output layer has one neuron with sigmoid as the activation function. The input
is the true output, and
is the predicted output.

The loss function used is squared loss
. Following are the weights of the network.

Assume the bias to be zero.
Based on the above data, answer the given subquestions.
The loss function used is squared loss
Assume the bias to be zero.
Based on the above data, answer the given subquestions.
Will there be any change in the answer to the previous question if we change the hidden layer activation to sigmoid (logistic)?
Solution
Consider a 2D convolutional network where the input image has three channels. The first convolution layer is computed using a kernel size of
and has four channels. The second convolution layer is computed using a kernel size of
and has ten channels. Then, which among the following are correct?
Solution
Which of the following techniques prevent the model from overfitting?
Solution
Consider a XOR function for input
, where the points
belong to one class and
belong to another class. It is not possible to separate these two classes by using a linear decision boundary. We consider a neural network with:
- Input
- One hidden layer with 2 neurons and ReLU activation
- Output layer: one neuron with linear activation

The network is defined as:

Consider the weight matrices:

Suppose we scale the second layer weights as
. Find the range of
for which the network correctly classifies all four points using threshold
.
- Input
- One hidden layer with 2 neurons and ReLU activation
- Output layer: one neuron with linear activation
The network is defined as:
Consider the weight matrices:
Suppose we scale the second layer weights as
Solution
Consider the motivation for using Transformers instead of RNN-based sequence models. Which of the following option is correct?
Statement I: Transformers allow parallel computation across tokens in a sequence during training, whereas RNNs process tokens sequentially across time steps.
Statement II: Transformer reduces training time significantly for long sequences compared to RNN-based models.
Statement I: Transformers allow parallel computation across tokens in a sequence during training, whereas RNNs process tokens sequentially across time steps.
Statement II: Transformer reduces training time significantly for long sequences compared to RNN-based models.
Solution
Consider the role of Multi-Head Attention in the Transformer architecture. Which of the following options correctly identifies the truth values of the two statements below?
Statement I: Multi-Head Attention allows different heads to learn different contextual relationships or representation subspaces among tokens in the same sequence.
Statement II: Multi-Head Attention is used mainly to reduce the sequence length before passing the output to the feed-forward layer.
Statement I: Multi-Head Attention allows different heads to learn different contextual relationships or representation subspaces among tokens in the same sequence.
Statement II: Multi-Head Attention is used mainly to reduce the sequence length before passing the output to the feed-forward layer.
Solution
Comprehension Passage
A text corpus contains the following two sentences.
- Machine learning models learn patterns from data and improve with experience.
- Deep learning models learn complex patterns from large data.
Based on the above data, answer the given subquestions.
- Machine learning models learn patterns from data and improve with experience.
- Deep learning models learn complex patterns from large data.
Based on the above data, answer the given subquestions.
Inscript
Build a vocabulary
and enter its size
.
Build a vocabulary
Solution
Comprehension Passage
A text corpus contains the following two sentences.
- Machine learning models learn patterns from data and improve with experience.
- Deep learning models learn complex patterns from large data.
Based on the above data, answer the given subquestions.
- Machine learning models learn patterns from data and improve with experience.
- Deep learning models learn complex patterns from large data.
Based on the above data, answer the given subquestions.
Suppose we build a co-occurrence matrix of size
, where each row corresponds to a word in the vocabulary and the columns correspond to the context of the word. Which of the following could be a valid size of the co-occurrence matrix? (select all correct answers)
Solution
Comprehension Passage
A character-level RNN is trained to generate passwords using 8 possible characters, each represented as a one-hot encoded vector of length 8. The RNN uses the following equations at time step
:

Here,
is the hidden activation function and
is the softmax function.
Assume that

Further assume that the special end-of-sequence (EOS) token is not generated.
Based on the above data, answer the given subquestions.
Here,
Assume that
Further assume that the special end-of-sequence (EOS) token is not generated.
Based on the above data, answer the given subquestions.
Inscript
What is the total number of trainable parameters in the network (including bias terms)?
What is the total number of trainable parameters in the network (including bias terms)?
Solution
Comprehension Passage
A character-level RNN is trained to generate passwords using 8 possible characters, each represented as a one-hot encoded vector of length 8. The RNN uses the following equations at time step
:

Here,
is the hidden activation function and
is the softmax function.
Assume that

Further assume that the special end-of-sequence (EOS) token is not generated.
Based on the above data, answer the given subquestions.
Here,
Assume that
Further assume that the special end-of-sequence (EOS) token is not generated.
Based on the above data, answer the given subquestions.
Inscript
If the network generates a password of length 5 during inference, how many times is the hidden state vector
computed?
If the network generates a password of length 5 during inference, how many times is the hidden state vector
Solution
Which of the following tasks are appropriate examples of sequence learning problems typically solved using Recurrent Neural Networks (RNNs)? Choose all correct options.
Solution
Comprehension Passage
A sentence contains
words, and each word embedding has dimension
. For a single-head self- attention layer:

Let
be the input embedding matrix. The query, key and value matrices are defined as:

Based on the above data, answer the given subquestions.
Let
Based on the above data, answer the given subquestions.
What is the dimension of the input embedding matrix
?
Solution
Comprehension Passage
A sentence contains
words, and each word embedding has dimension
. For a single-head self- attention layer:

Let
be the input embedding matrix. The query, key and value matrices are defined as:

Based on the above data, answer the given subquestions.
Let
Based on the above data, answer the given subquestions.
What are the dimensions of
,
, and
?
Solution
Inscript
Suppose you are training a skip-gram model to learn bigram embeddings, i.e., the input tokens are bigrams, and the context tokens are still unigrams. Suppose we have the vocabulary size
, number of unique bigrams
, and the embedding dimension
. How many parameters are learned in this model?
Suppose you are training a skip-gram model to learn bigram embeddings, i.e., the input tokens are bigrams, and the context tokens are still unigrams. Suppose we have the vocabulary size
Solution
Shape
Thickness [ / ]
3
All colors