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
Consider a two-dimensional image of size
and a square filter of size
. How much padding would you need on each side to keep the output height and width equal to the input height and width? Assume a stride of 1.
Solution
Consider a vanilla Recurrent Neural Network (RNN) and an LSTM network with the same input dimension, hidden dimension, and output dimension.
Statement 1: The number of trainable parameters in a vanilla RNN is higher than that in an LSTM network.
Statement 2: An LSTM has a higher number of parameters because it contains multiple gates (input gate, forget gate, output gate, and candidate state), each having separate weight matrices
and biases.
Choose the correct option from the following.
Statement 1: The number of trainable parameters in a vanilla RNN is higher than that in an LSTM network.
Statement 2: An LSTM has a higher number of parameters because it contains multiple gates (input gate, forget gate, output gate, and candidate state), each having separate weight matrices
and biases.
Choose the correct option from the following.
Solution
Which of the functions given below has the steepest slope at the point
?
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:

Can this network correctly classify XOR using a threshold at
?
- 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:
Can this network correctly classify XOR using a threshold at
Solution
Match the attention mechanism in Column I with the correct description in Column II.

Solution
Comprehension Passage
Consider a neural network with the following architecture:
- Input:
, Output:
.
-
hidden layers with sigmoid(logistic) as the activation function, where each hidden layer has
neurons. One neuron in the output layer with sigmoid as the activation function.
- All the weights are initialized as zero. Ignore the biases.
Based on the above data, answer the given subquestions.
- Input:
-
- All the weights are initialized as zero. Ignore the biases.
Based on the above data, answer the given subquestions.
Inscript
What will be the output
?
Enter the answer correct to one decimal place.
What will be the output
Enter the answer correct to one decimal place.
Solution
Comprehension Passage
Consider a neural network with the following architecture:
- Input:
, Output:
.
-
hidden layers with sigmoid(logistic) as the activation function, where each hidden layer has
neurons. One neuron in the output layer with sigmoid as the activation function.
- All the weights are initialized as zero. Ignore the biases.
Based on the above data, answer the given subquestions.
- Input:
-
- All the weights are initialized as zero. Ignore the biases.
Based on the above data, answer the given subquestions.
Inscript
What will be the output
if we change the activation function in the outer layer to linear?
What will be the output
Solution
Comprehension Passage
Consider a neural network with the following architecture:
- Input:
, Output:
.
-
hidden layers with sigmoid(logistic) as the activation function, where each hidden layer has
neurons. One neuron in the output layer with sigmoid as the activation function.
- All the weights are initialized as zero. Ignore the biases.
Based on the above data, answer the given subquestions.
- Input:
-
- All the weights are initialized as zero. Ignore the biases.
Based on the above data, answer the given subquestions.
Suppose you perform the backpropagation using the original configuration of the network and update the parameters of the network using stochastic gradient descent. Let
be the weight associated with the first hidden layer to input. Then, which among the following will be true for
?
Solution
Comprehension Passage
For a binary classification task, consider an image
of size
passed through a toy convolutional network that has the following architecture:
- ConvLayer: filter size =
, and number of filter/channels = 1, with stride 1 and no padding.
- Convolved output is passed through a ReLU activation function.
- Max-Pool Layer: filter size =
, with stride 2 and padding not applied.
- Output of Max-pool layer is taken as
.
- Ignore the bias.
Following are the image and the kernel matrix
:

Based on the above data, answer the given subquestions.
- ConvLayer: filter size =
- Convolved output is passed through a ReLU activation function.
- Max-Pool Layer: filter size =
- Output of Max-pool layer is taken as
- Ignore the bias.
Following are the image and the kernel matrix
Based on the above data, answer the given subquestions.
Inscript
Find the total number of parameters in the network.
Find the total number of parameters in the network.
Solution
Comprehension Passage
For a binary classification task, consider an image
of size
passed through a toy convolutional network that has the following architecture:
- ConvLayer: filter size =
, and number of filter/channels = 1, with stride 1 and no padding.
- Convolved output is passed through a ReLU activation function.
- Max-Pool Layer: filter size =
, with stride 2 and padding not applied.
- Output of Max-pool layer is taken as
.
- Ignore the bias.
Following are the image and the kernel matrix
:

Based on the above data, answer the given subquestions.
- ConvLayer: filter size =
- Convolved output is passed through a ReLU activation function.
- Max-Pool Layer: filter size =
- Output of Max-pool layer is taken as
- Ignore the bias.
Following are the image and the kernel matrix
Based on the above data, answer the given subquestions.
Inscript
The loss is defined as
. If
then compute
.
The loss is defined as
Solution
After training a neural network, the training error is observed to be 10%. It gives the test error to be 56%. Which of the following methods can be used to reduce the test error?
Solution
Consider a transformer model using scaled dot-product attention:

Assume a fixed input size and embedding dimension
. The model may use either single-head or multi-head attention. Which of the following statements are correct?
Assume a fixed input size and embedding dimension
Solution
Comprehension Passage
A text corpus contains the following three sentences:
1. students read the books in library
2. teachers read the books after class
3. students and teachers discuss in library
After removing the stop words "the'', "in", and "and'', the vocabulary becomes:

Assume the context window size is
(one word to the left and one word to the right).
Based on the above data, answer the given subquestions.
1. students read the books in library
2. teachers read the books after class
3. students and teachers discuss in library
After removing the stop words "the'', "in", and "and'', the vocabulary becomes:
Assume the context window size is
Based on the above data, answer the given subquestions.
Inscript
Construct the co-occurrence matrix
, where rows represent target words and columns represent context words. Let
denote the element in the
-th row and
-th column. Enter the value of
.
Construct the co-occurrence matrix
Solution
Comprehension Passage
A text corpus contains the following three sentences:
1. students read the books in library
2. teachers read the books after class
3. students and teachers discuss in library
After removing the stop words "the'', "in", and "and'', the vocabulary becomes:

Assume the context window size is
(one word to the left and one word to the right).
Based on the above data, answer the given subquestions.
1. students read the books in library
2. teachers read the books after class
3. students and teachers discuss in library
After removing the stop words "the'', "in", and "and'', the vocabulary becomes:
Assume the context window size is
Based on the above data, answer the given subquestions.
Based on the co-occurrence matrix constructed previously, determine whether
is positive, zero, or negative. (Use natural log).
Solution
Comprehension Passage
A text corpus contains the following three sentences:
1. students read the books in library
2. teachers read the books after class
3. students and teachers discuss in library
After removing the stop words "the'', "in", and "and'', the vocabulary becomes:

Assume the context window size is
(one word to the left and one word to the right).
Based on the above data, answer the given subquestions.
1. students read the books in library
2. teachers read the books after class
3. students and teachers discuss in library
After removing the stop words "the'', "in", and "and'', the vocabulary becomes:
Assume the context window size is
Based on the above data, answer the given subquestions.
Which of the following problems of the co-occurrence matrix are addressed by applying Singular Value Decomposition (SVD)? Choose all the correct options.
Solution
Comprehension Passage
You are given a transformer attention setup with the following configuration:
- Sequence Length :
- Number of Heads :
- Embedding dimension :
- Input
-

-
-
-
-
Based on the above data, answer the given subquestions.
- Sequence Length :
- Number of Heads :
- Embedding dimension :
- Input
-
-
-
-
-
Based on the above data, answer the given subquestions.
Inscript
Suppose
,
,
and
. The scaled dot-product attention operation for a single head, given by:

Compute the total number of elements in the resulting attention output.
Suppose
Compute the total number of elements in the resulting attention output.
Solution
Comprehension Passage
You are given a transformer attention setup with the following configuration:
- Sequence Length :
- Number of Heads :
- Embedding dimension :
- Input
-

-
-
-
-
Based on the above data, answer the given subquestions.
- Sequence Length :
- Number of Heads :
- Embedding dimension :
- Input
-
-
-
-
-
Based on the above data, answer the given subquestions.
Inscript
Suppose
,
,
and
. What will be the number of parameters in the Multihead Attention ? (ignore the bias)
Suppose
Solution
Comprehension Passage
You are given a transformer attention setup with the following configuration:
- Sequence Length :
- Number of Heads :
- Embedding dimension :
- Input
-

-
-
-
-
Based on the above data, answer the given subquestions.
- Sequence Length :
- Number of Heads :
- Embedding dimension :
- Input
-
-
-
-
-
Based on the above data, answer the given subquestions.
Inscript
Assume a Feed-Forward Network (FFN) follows the Multi-Head Attention layer in the encoder. The FFN consists of two linear transformations:

Calculate the total number of parameters in the FFN layer (including bias terms), where
and
.
Assume a Feed-Forward Network (FFN) follows the Multi-Head Attention layer in the encoder. The FFN consists of two linear transformations:
Calculate the total number of parameters in the FFN layer (including bias terms), where
Solution
Inscript
Assume that your CBOW model outputs a probability distribution over a vocabulary of 20,000 words for a given context. If the correct target word is word number 150, and the model's predicted probability for this word is 0.2, calculate the cross-entropy loss for this prediction. Enter the answer correct to two decimal places. (use natural log)
Assume that your CBOW model outputs a probability distribution over a vocabulary of 20,000 words for a given context. If the correct target word is word number 150, and the model's predicted probability for this word is 0.2, calculate the cross-entropy loss for this prediction. Enter the answer correct to two decimal places. (use natural log)
Solution
Inscript
In the Skip-gram model with a window size of 2 (on each side), how many unique pairs of target and context words will be generated for the following sentence.
Note: Ignore punctuation in your calculation
'Learning from data helps build intelligent systems for society'
In the Skip-gram model with a window size of 2 (on each side), how many unique pairs of target and context words will be generated for the following sentence.
Note: Ignore punctuation in your calculation
'Learning from data helps build intelligent systems for society'
Solution
Shape
Thickness [ / ]
3
All colors