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)
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
What is the primary advantage of word embeddings compared to one-hot encoding?
Solution
What is the primary advantage of Transformer encoders over RNN encoders for long sequences?
Solution
Suppose that we implement an OR function with two boolean inputs using the McCulloch Pitts (MP) neuron. Assume that the neuron does not have any inhibitory input. Which of the following option(s) represents correct
and the Number of Correctly Classified (NCC) data points for various values of threshold
.

Solution
Which of the following optimizers use momentum (or momentum-like mechanisms) in updating gradients?
Solution
Which of the following statements are true for the saturated neurons problem? Select all that apply.
Solution
You are training a deep feedforward neural network (100 layers) for binary classification with a sigmoid output with tanh activation in some hidden layers and ReLU activations in some hidden layers. You notice that gradients in some layers vanish early, preventing those weights from updating, even though the network hasn’t converged.
Which of the following fixes could help?
Which of the following fixes could help?
Solution
A transformer with a single self-attention layer has batch size
, context length (sequence length)
, and number of heads
. How many attention scores are computed in total across two heads and all sequences for one forward pass?
Solution
Solution
Given the input matrix
and kernel
:

- Perform convolution of
over
with stride
and no padding to obtain matrix
.
- Apply average pooling over
of size
with stride
and no padding to obtain
.
- Apply the ReLU activation on
to obtain the final output
.
Given that

compute

where
is the center element of the kernel.
Submit your answer correct to two decimal places.
- Perform convolution of
- Apply average pooling over
- Apply the ReLU activation on
Given that
compute
where
Submit your answer correct to two decimal places.
Solution
Comprehension Passage
You are designing a Skip-Gram model to learn word embeddings. In this iteration, the model focuses on a specific center word and attempts to predict the surrounding context words within a window size of
.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
) is a column vector of size
.

The model's weight matrices are given below:
Input/Center Weight Matrix (
):

(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
):

For the center word
, the hidden layer representation is given by:

(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
for all words in the vocabulary is calculated as:

Based on the above data, answer the given subquestions.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
The model's weight matrices are given below:
Input/Center Weight Matrix (
(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
For the center word
(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
Based on the above data, answer the given subquestions.
In the Skip-gram model with a window size of
(on each side), how many unique input and output pairs will be generated for the following sentence. The sentence is: deep neural networks learn complex data patterns.
Solution
Comprehension Passage
You are designing a Skip-Gram model to learn word embeddings. In this iteration, the model focuses on a specific center word and attempts to predict the surrounding context words within a window size of
.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
) is a column vector of size
.

The model's weight matrices are given below:
Input/Center Weight Matrix (
):

(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
):

For the center word
, the hidden layer representation is given by:

(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
for all words in the vocabulary is calculated as:

Based on the above data, answer the given subquestions.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
The model's weight matrices are given below:
Input/Center Weight Matrix (
(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
For the center word
(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
Based on the above data, answer the given subquestions.
Calculate the hidden layer representation vector
for the center word "networks".
Solution
Comprehension Passage
You are designing a Skip-Gram model to learn word embeddings. In this iteration, the model focuses on a specific center word and attempts to predict the surrounding context words within a window size of
.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
) is a column vector of size
.

The model's weight matrices are given below:
Input/Center Weight Matrix (
):

(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
):

For the center word
, the hidden layer representation is given by:

(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
for all words in the vocabulary is calculated as:

Based on the above data, answer the given subquestions.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
The model's weight matrices are given below:
Input/Center Weight Matrix (
(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
For the center word
(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
Based on the above data, answer the given subquestions.
We want to predict the immediate next word to the word "networks" in the sentence, which is "learn". Calculate the unnormalized score (
) for this specific target word.
Solution
Comprehension Passage
You are designing a Skip-Gram model to learn word embeddings. In this iteration, the model focuses on a specific center word and attempts to predict the surrounding context words within a window size of
.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
) is a column vector of size
.

The model's weight matrices are given below:
Input/Center Weight Matrix (
):

(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
):

For the center word
, the hidden layer representation is given by:

(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
for all words in the vocabulary is calculated as:

Based on the above data, answer the given subquestions.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
The model's weight matrices are given below:
Input/Center Weight Matrix (
(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
For the center word
(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
Based on the above data, answer the given subquestions.
Identify the word in the vocabulary that has the highest probability of being predicted as a context word given the center word 'networks'. Provide the corresponding integer index (key) from the vocabulary list as your answer.
Solution
Comprehension Passage
You are designing a Skip-Gram model to learn word embeddings. In this iteration, the model focuses on a specific center word and attempts to predict the surrounding context words within a window size of
.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
) is a column vector of size
.

The model's weight matrices are given below:
Input/Center Weight Matrix (
):

(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
):

For the center word
, the hidden layer representation is given by:

(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
for all words in the vocabulary is calculated as:

Based on the above data, answer the given subquestions.
The sentence is: Deep neural networks learn complex data patterns.
We are currently processing the center word: networks.
Vocabulary = {0: complex, 1: data, 2: deep, 3: learn, 4: models, 5: networks, 6: neural, 7: patterns } The one-hot vector for the center word (
The model's weight matrices are given below:
Input/Center Weight Matrix (
(Note: Row 5 corresponds to word index 5 `networks')
Output/Context Weight Matrix (
For the center word
(Or simply selecting the row corresponding to the center word).
The unnormalized score vector
Based on the above data, answer the given subquestions.
How many total weights from Win and Wout combined will be updated?
Solution
Comprehension Passage
Suppose you are given three encoder hidden states at time
:

The previous decoder hidden state is:

Given the attention score function:

where the hyperbolic tangent function is defined as:

and

Based on the above data, answer the given subquestions.
The previous decoder hidden state is:
Given the attention score function:
where the hyperbolic tangent function is defined as:
and
Based on the above data, answer the given subquestions.
Compute the attention score for hidden state
using the given function. Submit the final answer correct to two decimal places.
Solution
Comprehension Passage
Suppose you are given three encoder hidden states at time
:

The previous decoder hidden state is:

Given the attention score function:

where the hyperbolic tangent function is defined as:

and

Based on the above data, answer the given subquestions.
The previous decoder hidden state is:
Given the attention score function:
where the hyperbolic tangent function is defined as:
and
Based on the above data, answer the given subquestions.
Normalize the attention scores using the softmax function to obtain the attention weights
. Submit
(i.e., first element of the
vector). Submit the final answer correct to two decimal places.

Solution
Comprehension Passage
Suppose you are given three encoder hidden states at time
:

The previous decoder hidden state is:

Given the attention score function:

where the hyperbolic tangent function is defined as:

and

Based on the above data, answer the given subquestions.
The previous decoder hidden state is:
Given the attention score function:
where the hyperbolic tangent function is defined as:
and
Based on the above data, answer the given subquestions.
Calculate the context vector
:

Provide the sum of all the elements of
. Submit the final answer correct to two decimal places.
Provide the sum of all the elements of
Solution
Shape
Thickness [ / ]
3
All colors