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
A neuron takes an input vector
, weight vector
, and bias
. The neuron uses Parametric ReLU activation function parameterized by
:

Calculate the exact activation output
for this neuron. Enter the answer correct to one decimal place.
A neuron takes an input vector
Calculate the exact activation output
Solution
Inscript
A satellite image of size
is given as input to a convolutional layer. Suppose the layer uses
kernels, each of size
, and produces an output of size
. Assume zero padding (
). What is the value of the stride
?
A satellite image of size
Solution
Comprehension Passage
Suppose we want to minimize the following function:

Let the initial point
.
Based on the above data, answer the given subquestions.
Let the initial point
Based on the above data, answer the given subquestions.
Inscript
Using vanilla gradient descent with
, compute the iterate
after one update, and enter your answer as
. Enter the answer correct to one decimal place.
Using vanilla gradient descent with
Solution
Comprehension Passage
Suppose we want to minimize the following function:

Let the initial point
.
Based on the above data, answer the given subquestions.
Let the initial point
Based on the above data, answer the given subquestions.
Along which coordinate does gradient descent with
fail to converge?
Solution
Comprehension Passage
Suppose we want to minimize the following function:

Let the initial point
.
Based on the above data, answer the given subquestions.
Let the initial point
Based on the above data, answer the given subquestions.
Inscript

Solution
Comprehension Passage
Suppose we want to minimize the following function:

Let the initial point
.
Based on the above data, answer the given subquestions.
Let the initial point
Based on the above data, answer the given subquestions.
How does AdaGrad address the behavior observed with vanilla gradient descent?
Solution
Consider a feedforward neural network with
hidden layers. The pre-activation at layer
is
and the activation is
, where
is the activation function. Suppose every hidden-layer activation is the identity function
, and the output activation is linear. Which of the following statements are correct?
Solution
Inscript
A multi-head attention block uses
,
heads, and
. Counting only the weight matrices
(each of dimension
) for every head, plus the output projection
(dimension
), and ignoring all biases, compute the total number of parameters in this multi-head attention block.
A multi-head attention block uses
Solution
Comprehension Passage
In a self-attention mechanism, each input vector has dimension
. The queries, keys, and values are computed using separate linear transformations, each mapping from
. Suppose there are
input vectors.
Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
How many learnable parameters (including both weights and biases) are used to compute the
queries, keys, and values?
queries, keys, and values?
Solution
Comprehension Passage
In a self-attention mechanism, each input vector has dimension
. The queries, keys, and values are computed using separate linear transformations, each mapping from
. Suppose there are
input vectors.
Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Inscript
How many attention weights
are computed in total if we have
and
?
How many attention weights
Solution
Comprehension Passage
In a self-attention mechanism, each input vector has dimension
. The queries, keys, and values are computed using separate linear transformations, each mapping from
. Suppose there are
input vectors.
Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
How many learnable parameters (including both weights and biases) are there in a fully connected shallow network that maps all
inputs to all
outputs?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Inscript
Which token receives the lowest dot-product score
from query
? Enter the token index (1,
2, or 3).
Which token receives the lowest dot-product score
2, or 3).
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Inscript
Compute the attention weight
(the weight that query
places on token 3). Enter the answer correct to three decimal places.
Compute the attention weight
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Inscript

Solution
In a vanilla (non-attention) encoder-decoder model, the encoder compresses the entire input sequence into a single fixed-dimensional vector
, such as
, where
is the final hidden state of an RNN encoder. The decoder uses this same vector to generate every output token. In practice, the translation quality of such a model tends to degrade as the length of the source sentence increases. Which of the following best explains this degradation? Select all that apply
Solution
Comprehension Passage
Consider a Skip-gram model with negative sampling. For a positive word-context pair
, suppose the loss for one training example is

where
is a logistic function. Suppose the initial vectors are

The word vector w is updated using the gradient descent algorithm using a learning rate of

Based on the above data, answer the given subquestions.
where
The word vector w is updated using the gradient descent algorithm using a learning rate of
Based on the above data, answer the given subquestions.
Inscript
Calculate the loss
for the given positive word-context pair
and negative sample. Give your answer correct to three decimal places.
Calculate the loss
Solution
Comprehension Passage
Consider a Skip-gram model with negative sampling. For a positive word-context pair
, suppose the loss for one training example is

where
is a logistic function. Suppose the initial vectors are

The word vector w is updated using the gradient descent algorithm using a learning rate of

Based on the above data, answer the given subquestions.
where
The word vector w is updated using the gradient descent algorithm using a learning rate of
Based on the above data, answer the given subquestions.
Inscript
The word vector w is updated using the gradient descent algorithm. Using gradient descent, obtain the updated word vector
, and calculate the cosine similarity between
and
. Enter the answer correct to three decimal places.
The word vector w is updated using the gradient descent algorithm. Using gradient descent, obtain the updated word vector
Solution
Comprehension Passage
Consider a corpus containing
total words. Based on this, answer the given
Inscript
A word
occurs
times, a context
occurs
times, and the pair
co-occurs
times. Compute
. Use natural log and enter the answer correct to two decimal places.
A word
Solution
Comprehension Passage
Consider a corpus containing
total words. Based on this, answer the given
Inscript
A second pair
has

Suppose its PMI is
. Under the PPMI (positive PMI) transformation, what value is stored for this pair?
A second pair
Suppose its PMI is
Solution
A neural network is trained using mini-batch gradient descent. Suppose the mini-batch size is increased from
to
, while the learning rate and training dataset remain unchanged. Which of the following statements is correct?
Solution
Shape
Thickness [ / ]
3
All colors