Question 1
A neural network is being trained for a regression problem in which the target is in the interval (−1, 1). Which of the following is NOT a good choice for the activation function at the output layer?
ReLU
Linear (identity)
Tanh

The IIT Madras BS Deep Learning (Deep Learning) End Term paper sat on 13 Apr 2025, in the January 2025 term: 31 questions for 50 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
A neural network is being trained for a regression problem in which the target is in the interval (−1, 1). Which of the following is NOT a good choice for the activation function at the output layer?
ReLU
Linear (identity)
Tanh
Correct answer
ReLU
In the transformer architecture, which of the following are true regarding cross attention in the decoder?
The query vectors come from the decoder stack, while the key and value vectors come from the encoder stack.
The query and value vectors come from the decoder stack, while the key vectors come from the encoder stack.
The query, key and value vectors come from the decoder stack.
The query, key and value vectors come from the encoder stack.
Correct answer
The query vectors come from the decoder stack, while the key and value vectors come from the encoder stack.
Consider applying dropout to a hidden layer with p = 0.5. Which of the following are true?
During training, a randomly chosen set of neurons in the layer are dropped out. The neurons to be dropped are determined dynamically during each iteration.
During inference (testing), no neurons are dropped out. Instead, the activation of each neuron in the layer is scaled by 0.5.
During training, a fixed set of neurons in the layer are dropped out. This set remains the same in every iteration and the neurons to be dropped are determined before the training begins.
During inference (testing), a randomly chosen set of neurons in the layer are dropped out.
Correct answers
During training, a randomly chosen set of neurons in the layer are dropped out. The neurons to be dropped are determined dynamically during each iteration.
During inference (testing), no neurons are dropped out. Instead, the activation of each neuron in the layer is scaled by 0.5.
Consider the following plot of error versus model complexity. Models of varying complexity are evaluated on the same training and test datasets. Model complexity increases from left to right:
Select all true options.
(1) corresponds to the test error.
(2) corresponds to the training error.
(3) corresponds to a model with high bias and low variance.
(1) corresponds to the training error.
(2) corresponds to the test error.
(3) corresponds to a model with low bias and high variance.
Correct answers
(1) corresponds to the test error.
(2) corresponds to the training error.
(3) corresponds to a model with high bias and low variance.
Consider the following tasks which can be solved using an encoder-decoder architecture. Which of these tasks has a decoder where an RNN is not necessary?
Video classification: outputs a single class label
Sentiment analysis: outputs a single class label
Document summarization: outputs a sequence of text
Machine translation: outputs a sequence of text
Video captioning: outputs a sequence of text
Correct answers
Video classification: outputs a single class label
Sentiment analysis: outputs a single class label
The input volume to a convolutional layer is 100×100×5. If ten kernels, each of size 9 × 9, with unit stride are applied over this volume, what should be the padding so that the output volume has dimensions 100 × 100 × 10? Note that you should enter the value of P as per the convention we have been following.
Correct answer: 4
Based on the above data, answer the given subquestions.
Find the value of x at which the tower attains its maximum value.
Correct answer: 0
Based on the above data, answer the given subquestions.
Find the maximum value that the tower attains.
Correct answer: 0.6
Consider the multi-head self-attention mechanism in the encoder of a transformer with 8 heads. The word embedding dimension is 32. In a given head, the query, key and value vectors have the same dimension and each of them is 4. The sequence length is 5.
Based on the above data, answer the given subquestions.
In any given head, what is the dimension of the WQ matrix?
32 × 4
32 × 32
4 × 4
32 × 8
5 × 5
Correct answer
32 × 4
Consider the multi-head self-attention mechanism in the encoder of a transformer with 8 heads. The word embedding dimension is 32. In a given head, the query, key and value vectors have the same dimension and each of them is 4. The sequence length is 5.
Based on the above data, answer the given subquestions.
In any given head, what is the dimension of the query-key product matrix?
5 × 5
4 × 4
8 × 8
32 × 32
Correct answer
5 × 5
Consider the multi-head self-attention mechanism in the encoder of a transformer with 8 heads. The word embedding dimension is 32. In a given head, the query, key and value vectors have the same dimension and each of them is 4. The sequence length is 5.
Based on the above data, answer the given subquestions.
Correct answer: 32
Based on the above data, answer the given subquestions.
Find the value y at the end of the forward pass.
Correct answer: 9
Based on the above data, answer the given subquestions.
Correct answer: 0
Based on the above data, answer the given subquestions.
Correct answer: 6
Based on the above data, answer the given subquestions.
Correct answer
Based on the above data, answer the given subquestions.
Correct answer
Based on the above data, answer the given subquestions.
Which of the following is true?
The mask matrix is added to the query-key product matrix before applying softmax.
The mask matrix is added to the query-key product matrix after applying softmax.
The mask matrix could be added either before or after the softmax.
Correct answer
The mask matrix is added to the query-key product matrix before applying softmax.
Based on the above data, answer the given subquestions.
Find a.
Correct answer: -0.67 (accepted within ±0.03)
Based on the above data, answer the given subquestions.
Find b.
Correct answer: 0.67 (accepted within ±0.03)
Based on the above data, answer the given subquestions.
Find c.
Correct answer: 0.33 (accepted within ±0.03)
Consider the CBOW model for learning word embeddings with embedding dimension two. The window size is one, that is, we only use the previous word as the context to predict the current word. The vocabulary is made up of the words {“one”, “two”, “three”, “four”}. At some point during training, the word and context matrices are given below. The first column in each matrix corresponds to the embedding for “one”, the second column is for “two” and so on:
The sample that has come up now during training is “two three”. Note that “three” is to be considered as the true label here. Enter your answer correct to two places after the decimal for both sub-questions.
Based on the above data, answer the given subquestions.
Find the probability of predicting “three” given “two” as context.
Correct answer: 0.25 (accepted within ±0.05)
Consider the CBOW model for learning word embeddings with embedding dimension two. The window size is one, that is, we only use the previous word as the context to predict the current word. The vocabulary is made up of the words {“one”, “two”, “three”, “four”}. At some point during training, the word and context matrices are given below. The first column in each matrix corresponds to the embedding for “one”, the second column is for “two” and so on:
The sample that has come up now during training is “two three”. Note that “three” is to be considered as the true label here. Enter your answer correct to two places after the decimal for both sub-questions.
Based on the above data, answer the given subquestions.
Correct answer: 0.25 (accepted within ±0.05)
For a multi-class classification problem with five classes, consider the following CNN architecture:
| Layer | Specs | Volume |
|---|---|---|
| Input | NA | |
| Convolution-1 | ||
| MaxPooling-1 | ||
| Convolution-2 | ||
| MaxPooling-2 | ||
| Convolution-3 | ||
| FC-1 | 20 | NA |
| Output | 5 | NA |
Note that is flattened before it is passed on to “FC-1”. Output layer is also considered as an FC layer with a softmax activation function.
Based on the above data, answer the given subquestions.
Find the number of parameters associated with the layer “Convolution-2” that are required to transform V2 to V3. Ignore biases.
Correct answer: 648
For a multi-class classification problem with five classes, consider the following CNN architecture:
| Layer | Specs | Volume |
|---|---|---|
| Input | NA | |
| Convolution-1 | ||
| MaxPooling-1 | ||
| Convolution-2 | ||
| MaxPooling-2 | ||
| Convolution-3 | ||
| FC-1 | 20 | NA |
| Output | 5 | NA |
Note that is flattened before it is passed on to “FC-1”. Output layer is also considered as an FC layer with a softmax activation function.
Based on the above data, answer the given subquestions.
Which of the following corresponds to V4, the activation volume output by the layer “MaxPooling- 2”?
16 × 16 × 12
8 × 8 × 12
32 × 32 × 8
16 × 16 × 6
Correct answer
16 × 16 × 12
For a multi-class classification problem with five classes, consider the following CNN architecture:
| Layer | Specs | Volume |
|---|---|---|
| Input | NA | |
| Convolution-1 | ||
| MaxPooling-1 | ||
| Convolution-2 | ||
| MaxPooling-2 | ||
| Convolution-3 | ||
| FC-1 | 20 | NA |
| Output | 5 | NA |
Note that is flattened before it is passed on to “FC-1”. Output layer is also considered as an FC layer with a softmax activation function.
Based on the above data, answer the given subquestions.
The parameters associated with the fully connected layers, namely “FC- 1” and “Output”, represent what percentage of the total number of parameters in the network? The answer should be rounded off to the nearest integer. Ignore biases.
98%
85%
50%
10%
Correct answer
98%
Based on the above data, answer the given subquestions.
With a total of 7 time steps (T = 7), what is the total count of parameters (including bias) within the network?
Correct answer: 33
Based on the above data, answer the given subquestions.
Correct answer
Based on the above data, answer the given subquestions.
If all the parameters (including bias) in the network are initialized to zero, what will be the total loss after 10 time steps (assume that indices start with 1) for the input ? The ground truth for each time step is given by the following sequence . Assume the loss to be cross-entropy at each time step. (Use natural log and write the answer correct up to two decimal places.) Each is one-hot vector (i.e means , means and so on).
Correct answer: 16.1 (accepted within ±0.1)
Based on the above data, answer the given subquestions.
Which of these is the correct ordering among the learning rates?
Correct answer
Based on the above data, answer the given subquestions.
0.5
0.9
0.1
1
Correct answer
0.5
Based on the above data, answer the given subquestions.
Correct answer: 0.59 (accepted within ±0.05)