Quiz Space

September 2023 term · Deep Learning · BSCS3004

Deep Learning End Term: 24 December 2023, Set ADB3 (September 2023 term)

The IIT Madras BS Deep Learning (Deep Learning) End Term paper sat on 24 Dec 2023, in the September 2023 term, set ADB3: 18 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
18
Marks
50
Duration
180 min
MCQ
3
MSQ
7
Numerical
8

Updated

Official paper: IIT M DEGREE FN EXAM FDB1 24 Dec 2023 · No negative marking.

Question 1

+3 marksOne correct option
  1. A

    reduces

  2. B

    remains 90^(o)

  3. C

    increases

  4. D

    insufficient information

Show answer

Correct answer

  • B

    remains 90^(o)

Question 2

+1 markOne correct option
  1. A

    200

  2. B

    100

  3. C

    301

  4. D

    201

  5. E

    300

Show answer

Correct answer

  • D

    201

Question 3

+3 marksOne or more correct options

Select all that apply.

  1. A

    Increasing the value of b shifts the sigmoid function to the left (i.e., towards negative infinity)

  2. B

    Increasing the value of b shifts the sigmoid function to the right (i.e., towards positive infinity)

  3. C

    Increasing the value of w increases the steepness of the sigmoid function

  4. D

    Increasing the value of w decreases the steepness of the sigmoid function

Show answer

Correct answers

  • B

    Increasing the value of b shifts the sigmoid function to the right (i.e., towards positive infinity)

  • D

    Increasing the value of w decreases the steepness of the sigmoid function

Question 4

+3 marksOne or more correct options

Suppose that a neural network has millions of parameters (weights and biases). A team decides to use an optimization algorithm with a learning rate scheme that is local to each parameter in the network. Moreover, the learning rate changes in each iteration such that it should decrease on the steep surface and increase on the gentle surface. Which of the following optimization algorithms satisfy the team’s requirements?

Select all that apply.

  1. A

    GD with an exponentially decaying learning rate scheduler

  2. B

    AdaGrad

  3. C

    AdaM

  4. D

    NADAM

  5. E

    RMSProp

  6. F

    SGD with line search

Show answer

Correct answers

  • C

    AdaM

  • D

    NADAM

  • E

    RMSProp

Question 5

+3 marksOne or more correct options

Suppose we divide the available training samples into mini batches of size 32 to train a model with mini-batch gradient descent. Assume that we have 33 different machines to train the model. One out of 33 machines acts as a master machine. The actual weight update happens in the master machine. The master machine can send one sample for the rest of the machines along with a copy of the model in its current state to compute the gradients. We call this entire set-up parallelization. Which of the following deep learning architectures can be trained in parallel then?

Select all that apply.

  1. A

    Fully connected Feed forword neural network

  2. B

    Convolutional Neural network

  3. C

    Reccurent Neural Network

  4. D

    Transformers

Show answer

Correct answers

  • A

    Fully connected Feed forword neural network

  • B

    Convolutional Neural network

  • C

    Reccurent Neural Network

  • D

    Transformers

Question 6

+2 marksOne or more correct options

Select all correct statements about the bias and variance of deep learning models.

Select all that apply.

  1. A

    A model with high bias produces high training error and high validation error

  2. B

    A model with high variance produces high training error and low validation error

  3. C

    A model with high variance produces low training error and high validation error

  4. D

    Bias and variance can be both made zero if the underlying distribution of the samples are known and also the samples are not corrupted by noise

Show answer

Correct answers

  • A

    A model with high bias produces high training error and high validation error

  • C

    A model with high variance produces low training error and high validation error

  • D

    Bias and variance can be both made zero if the underlying distribution of the samples are known and also the samples are not corrupted by noise

Question 7

+2 marksOne or more correct options

Select all that apply.

  1. A

    Dropout reduces (removes) 25 percent of weights from the model during training and inference

  2. B

    For each iteration, 75% of neurons are dropped randomly from the model

  3. C

    For each iteration, 25% of neurons are dropped randomly from the model

  4. D

    Each weight gets multiplied by a factor p during inference.

  5. E

    Each weight gets multiplied by a factor 1 − p during inference.

Show answer

Correct answers

  • C

    For each iteration, 25% of neurons are dropped randomly from the model

  • D

    Each weight gets multiplied by a factor p during inference.

Question 8

+5 marksOne or more correct options

Select all that apply.

  1. A

    The loss surface is convex (with a global minimum)

  2. B

    The loss value oscillates over iterations

  3. C

    The loss value decreases consistently over iterations

  4. D

    The loss value increases consistently

Show answer

Correct answers

  • A

    The loss surface is convex (with a global minimum)

  • C

    The loss value decreases consistently over iterations

Question 9

+5 marksOne or more correct options

Select all that apply.

  1. A

    definitely, the loss value at the end of the training is zero

  2. B

    The neuron in the hidden layer might be experiencing a vanishing gradient problem

  3. C

    The loss could have converged to the local minimum after a finite number of iterations

  4. D

    The loss value at the end of the training may not necessarily be zero

Show answer

Correct answers

  • B

    The neuron in the hidden layer might be experiencing a vanishing gradient problem

  • C

    The loss could have converged to the local minimum after a finite number of iterations

  • D

    The loss value at the end of the training may not necessarily be zero

Question 10

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

How many neurons are there in the network? Every neuron in the network has bias associated with it?
Note: A neuron is a computation unit that takes in some inputs and produces an output.

Show answer

Correct answer: 263

Question 11

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

How many parameters (including bias) does the network have to learn? Assume dropout regularization is applied.

Show answer

Correct answer: 19293

Question 12

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

What is the size of the vocabulary |V |?

Show answer

Correct answer: 9

Question 13

+2 marksOne correct option

Based on the above data, answer the given subquestions.

Suppose we consider the three words (wood,woodchuck, much). Assume we use one-hot encoded vector representation for all these words. The statement that,“The cosine similarity between the pair (wood,woodchuck) is greater than the pair (wood,much)” is

  1. A

    True

  2. B

    False

Show answer

Correct answer

  • B

    False

Question 14

+2 marksNumerical answer

Suppose that we need to develop an RNN model for sentiment classification tasks. The input to the model is a sentence composed of 10 words and the output is the sentiment (positive or negative). Assume that each word is represented as a vector of length 100×1100 \times 1 and the output labels are one-hot encoded. Further, the state vector sts_t and the prediction y^t\hat{y}_t are computed as follows

st=σ(Uxt+Wst−1+b)s_t = \sigma(Ux_t + Ws_{t-1} + b)

y^t=O(Vst+c)\hat{y}_t = \mathcal{O}(Vs_t + c)

The state vector sts_t is initialized with all zeros of size 50×150 \times 1.

Based on the above data, answer the given subquestions.

How many parameters (including bias) are there in the network?

Show answer

Correct answer: 7652

Question 15

+2 marksNumerical answer

Suppose that we need to develop an RNN model for sentiment classification tasks. The input to the model is a sentence composed of 10 words and the output is the sentiment (positive or negative). Assume that each word is represented as a vector of length 100×1100 \times 1 and the output labels are one-hot encoded. Further, the state vector sts_t and the prediction y^t\hat{y}_t are computed as follows

st=σ(Uxt+Wst−1+b)s_t = \sigma(Ux_t + Ws_{t-1} + b)

y^t=O(Vst+c)\hat{y}_t = \mathcal{O}(Vs_t + c)

The state vector sts_t is initialized with all zeros of size 50×150 \times 1.

Based on the above data, answer the given subquestions.

For the given input sentence containing 10 words, how many sequential time steps does RNN take to make a final prediction?

Show answer

Correct answer: 10

Question 16

+3 marksNumerical answer

Suppose that we need to develop an RNN model for sentiment classification tasks. The input to the model is a sentence composed of 10 words and the output is the sentiment (positive or negative). Assume that each word is represented as a vector of length 100×1100 \times 1 and the output labels are one-hot encoded. Further, the state vector sts_t and the prediction y^t\hat{y}_t are computed as follows

st=σ(Uxt+Wst−1+b)s_t = \sigma(Ux_t + Ws_{t-1} + b)

y^t=O(Vst+c)\hat{y}_t = \mathcal{O}(Vs_t + c)

The state vector sts_t is initialized with all zeros of size 50×150 \times 1.

Based on the above data, answer the given subquestions.

Suppose we train the model using the BPTT algorithm for 200 iterations. In each iteration, we feed the input sentence and make a prediction, compute the loss, back-propagate through time and update the parameter. How many times does the parameter matrix W get updated over 200 iterations?

Show answer

Correct answer: 200

Question 17

+3 marksNumerical answer
Show answer

Correct answer: 2500

Question 18

+5 marksNumerical answer

Consider an intermediate feature map HH obtained after applying convolution operation on the input XX using kernel FF.

H=[1200−113021301100101−112004003−21]H = \begin{bmatrix} 1 & 2 & 0 & 0 & -1 & 1 \\ 3 & 0 & 2 & 1 & 3 & 0 \\ 1 & 1 & 0 & 0 & 1 & 0 \\ 1 & -1 & 1 & 2 & 0 & 0 \\ 4 & 0 & 0 & 3 & -2 & 1 \end{bmatrix}

Apply the max-pooling operation with stride s=2s = 2 and no padding (p=0p = 0) and store the resultant output in matrix HmH_m. The prediction y^\hat{y} is simply the sum of elements in HmH_m. Suppose ∂L∂y^=1.5\frac{\partial L}{\partial \hat{y}} = 1.5 (that is, the gradient of loss with respect to the prediction). What is the gradient ∂L∂H10\frac{\partial L}{\partial H_{10}} where H10H_{10} is the element at the 1-st row and 0-th column? If you think the given info is insufficient, enter -1 as the answer.

Show answer

Correct answer: 1.5