uiz Space

January 2025 term · Deep Learning · BSCS3004

Deep Learning End Term: 13 April 2025 (January 2025 term)

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.

Questions
31
Marks
50
Duration
180 min
MCQ
12
MSQ
3
Numerical
16

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD3 13 Apr 2025 · No negative marking.

Question 1

+1 markOne correct option

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?

  1. A

    ReLU

  2. B

    Linear (identity)

  3. C

    Tanh

Show answer

Correct answer

  • A

    ReLU

Question 2

+3 marksOne correct option

In the transformer architecture, which of the following are true regarding cross attention in the decoder?

  1. A

    The query vectors come from the decoder stack, while the key and value vectors come from the encoder stack.

  2. B

    The query and value vectors come from the decoder stack, while the key vectors come from the encoder stack.

  3. C

    The query, key and value vectors come from the decoder stack.

  4. D

    The query, key and value vectors come from the encoder stack.

Show answer

Correct answer

  • A

    The query vectors come from the decoder stack, while the key and value vectors come from the encoder stack.

Question 3

+2 marksOne or more correct options

Consider applying dropout to a hidden layer with p = 0.5. Which of the following are true?

Select all that apply.

  1. A

    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.

  2. B

    During inference (testing), no neurons are dropped out. Instead, the activation of each neuron in the layer is scaled by 0.5.

  3. C

    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.

  4. D

    During inference (testing), a randomly chosen set of neurons in the layer are dropped out.

Show answer

Correct answers

  • A

    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.

  • B

    During inference (testing), no neurons are dropped out. Instead, the activation of each neuron in the layer is scaled by 0.5.

Question 4

+3 marksOne or more correct options

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.

Select all that apply.

  1. A

    (1) corresponds to the test error.

  2. B

    (2) corresponds to the training error.

  3. C

    (3) corresponds to a model with high bias and low variance.

  4. D

    (1) corresponds to the training error.

  5. E

    (2) corresponds to the test error.

  6. F

    (3) corresponds to a model with low bias and high variance.

Show answer

Correct answers

  • A

    (1) corresponds to the test error.

  • B

    (2) corresponds to the training error.

  • C

    (3) corresponds to a model with high bias and low variance.

Question 5

+3 marksOne or more correct options

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?

Select all that apply.

  1. A

    Video classification: outputs a single class label

  2. B

    Sentiment analysis: outputs a single class label

  3. C

    Document summarization: outputs a sequence of text

  4. D

    Machine translation: outputs a sequence of text

  5. E

    Video captioning: outputs a sequence of text

Show answer

Correct answers

  • A

    Video classification: outputs a single class label

  • B

    Sentiment analysis: outputs a single class label

Question 6

+3 marksNumerical answer

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.

Show answer

Correct answer: 4

Question 7

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Find the value of x at which the tower attains its maximum value.

Show answer

Correct answer: 0

Question 8

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Find the maximum value that the tower attains.

Show answer

Correct answer: 0.6

Question 9

+1 markOne correct option

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?

  1. A

    32 × 4

  2. B

    32 × 32

  3. C

    4 × 4

  4. D

    32 × 8

  5. E

    5 × 5

Show answer

Correct answer

  • A

    32 × 4

Question 10

+1 markOne correct option

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?

  1. A

    5 × 5

  2. B

    4 × 4

  3. C

    8 × 8

  4. D

    32 × 32

Show answer

Correct answer

  • A

    5 × 5

Question 11

+1 markNumerical answer

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.

Show answer

Correct answer: 32

Question 12

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Find the value y at the end of the forward pass.

Show answer

Correct answer: 9

Question 13

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0

Question 14

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 6

Question 15

+1 markOne correct option

Based on the above data, answer the given subquestions.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 16

+1 markOne correct option

Based on the above data, answer the given subquestions.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 17

+1 markOne correct option

Based on the above data, answer the given subquestions.

Which of the following is true?

  1. A

    The mask matrix is added to the query-key product matrix before applying softmax.

  2. B

    The mask matrix is added to the query-key product matrix after applying softmax.

  3. C

    The mask matrix could be added either before or after the softmax.

Show answer

Correct answer

  • A

    The mask matrix is added to the query-key product matrix before applying softmax.

Question 18

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Find a.

Show answer

Correct answer: -0.67 (accepted within ±0.03)

Question 19

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Find b.

Show answer

Correct answer: 0.67 (accepted within ±0.03)

Question 20

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Find c.

Show answer

Correct answer: 0.33 (accepted within ±0.03)

Question 21

+2 marksNumerical answer

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:

Wword=[1111−112−2],Wcontext=[0101−1011]W_{\text{word}} = \begin{bmatrix} 1 & 1 & 1 & 1 \\ -1 & 1 & 2 & -2 \end{bmatrix}, \quad W_{\text{context}} = \begin{bmatrix} 0 & 1 & 0 & 1 \\ -1 & 0 & 1 & 1 \end{bmatrix}

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.

Show answer

Correct answer: 0.25 (accepted within ±0.05)

Question 22

+2 marksNumerical answer

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:

Wword=[1111−112−2],Wcontext=[0101−1011]W_{\text{word}} = \begin{bmatrix} 1 & 1 & 1 & 1 \\ -1 & 1 & 2 & -2 \end{bmatrix}, \quad W_{\text{context}} = \begin{bmatrix} 0 & 1 & 0 & 1 \\ -1 & 0 & 1 & 1 \end{bmatrix}

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.

Show answer

Correct answer: 0.25 (accepted within ±0.05)

Question 23

+1 markNumerical answer

For a multi-class classification problem with five classes, consider the following CNN architecture:

LayerSpecsVolume
InputNA64×64×364 \times 64 \times 3
Convolution-1F=3,S=1,P=1,K=6F = 3, S = 1, P = 1, K = 6V1V_1
MaxPooling-1F=2,S=2,P=0F = 2, S = 2, P = 0V2V_2
Convolution-2F=3,S=1,P=1,K=12F = 3, S = 1, P = 1, K = 12V3V_3
MaxPooling-2F=2,S=2,P=0F = 2, S = 2, P = 0V4V_4
Convolution-3F=1,S=1,P=0,K=8F = 1, S = 1, P = 0, K = 8V5V_5
FC-120NA
Output5NA
  • The first column is the type of layer.
  • The second column is the layer specification. If it is an FC layer, it is the number of neurons. If it is a convolution or pooling layer, it is the information pertaining to kernels. NA refers to “Not Applicable” wherever this information is not needed. In a convolutional/pooling layer, KK is the number of filters, FF is the spatial dimension of the filter, PP is the padding and SS is the stride.
  • The third column corresponds to the activation volumes output by the non-FC layers. For example, the input layer passes on a volume of size 64×64×364 \times 64 \times 3 to “Convolution-1”, which outputs a volume of size V1V_1. Each volume is of the type W×H×DW \times H \times D.

Note that V5V_5 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.

Show answer

Correct answer: 648

Question 24

+1 markOne correct option

For a multi-class classification problem with five classes, consider the following CNN architecture:

LayerSpecsVolume
InputNA64×64×364 \times 64 \times 3
Convolution-1F=3,S=1,P=1,K=6F = 3, S = 1, P = 1, K = 6V1V_1
MaxPooling-1F=2,S=2,P=0F = 2, S = 2, P = 0V2V_2
Convolution-2F=3,S=1,P=1,K=12F = 3, S = 1, P = 1, K = 12V3V_3
MaxPooling-2F=2,S=2,P=0F = 2, S = 2, P = 0V4V_4
Convolution-3F=1,S=1,P=0,K=8F = 1, S = 1, P = 0, K = 8V5V_5
FC-120NA
Output5NA
  • The first column is the type of layer.
  • The second column is the layer specification. If it is an FC layer, it is the number of neurons. If it is a convolution or pooling layer, it is the information pertaining to kernels. NA refers to “Not Applicable” wherever this information is not needed. In a convolutional/pooling layer, KK is the number of filters, FF is the spatial dimension of the filter, PP is the padding and SS is the stride.
  • The third column corresponds to the activation volumes output by the non-FC layers. For example, the input layer passes on a volume of size 64×64×364 \times 64 \times 3 to “Convolution-1”, which outputs a volume of size V1V_1. Each volume is of the type W×H×DW \times H \times D.

Note that V5V_5 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”?

  1. A

    16 × 16 × 12

  2. B

    8 × 8 × 12

  3. C

    32 × 32 × 8

  4. D

    16 × 16 × 6

Show answer

Correct answer

  • A

    16 × 16 × 12

Question 25

+2 marksOne correct option

For a multi-class classification problem with five classes, consider the following CNN architecture:

LayerSpecsVolume
InputNA64×64×364 \times 64 \times 3
Convolution-1F=3,S=1,P=1,K=6F = 3, S = 1, P = 1, K = 6V1V_1
MaxPooling-1F=2,S=2,P=0F = 2, S = 2, P = 0V2V_2
Convolution-2F=3,S=1,P=1,K=12F = 3, S = 1, P = 1, K = 12V3V_3
MaxPooling-2F=2,S=2,P=0F = 2, S = 2, P = 0V4V_4
Convolution-3F=1,S=1,P=0,K=8F = 1, S = 1, P = 0, K = 8V5V_5
FC-120NA
Output5NA
  • The first column is the type of layer.
  • The second column is the layer specification. If it is an FC layer, it is the number of neurons. If it is a convolution or pooling layer, it is the information pertaining to kernels. NA refers to “Not Applicable” wherever this information is not needed. In a convolutional/pooling layer, KK is the number of filters, FF is the spatial dimension of the filter, PP is the padding and SS is the stride.
  • The third column corresponds to the activation volumes output by the non-FC layers. For example, the input layer passes on a volume of size 64×64×364 \times 64 \times 3 to “Convolution-1”, which outputs a volume of size V1V_1. Each volume is of the type W×H×DW \times H \times D.

Note that V5V_5 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.

  1. A

    98%

  2. B

    85%

  3. C

    50%

  4. D

    10%

Show answer

Correct answer

  • A

    98%

Question 26

+2 marksNumerical answer

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?

Show answer

Correct answer: 33

Question 27

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 28

+2 marksNumerical 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 [0,0,1,0,0,0]T[0,0,1,0,0,0]^T? The ground truth (y∈R5)(y \in \mathbb{R}^5) for each time step is given by the following sequence [y0,y4,y1,y2,y3,y4,y4,y4,y2,y3][y_0, y_4, y_1, y_2, y_3, y_4, y_4, y_4, y_2, y_3]. 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 yy is one-hot vector (i.e y0y_0 means y=[1,0,0,0,0]Ty = [1,0,0,0,0]^T, y4y_4 means y=[0,0,0,0,1]Ty = [0,0,0,0,1]^T and so on).

Show answer

Correct answer: 16.1 (accepted within ±0.1)

Question 29

+2 marksOne correct option

Based on the above data, answer the given subquestions.

Which of these is the correct ordering among the learning rates?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 30

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    0.5

  2. B

    0.9

  3. C

    0.1

  4. D

    1

Show answer

Correct answer

  • A

    0.5

Question 31

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.59 (accepted within ±0.05)