Quiz Space

May 2023 term · Deep Learning · BSCS3004

Deep Learning End Term: 3 September 2023, Set QPE1-S2 (May 2023 term)

The IIT Madras BS Deep Learning (Deep Learning) End Term paper sat on 3 Sept 2023, in the May 2023 term, set QPE1-S2: 17 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
17
Marks
50
Duration
180 min
MCQ
5
MSQ
4
Numerical
8

Updated

Official paper: IIT M DEGREE ET1 EXAM QPE1 S2 03 Sep · No negative marking.

Question 1

+2 marksOne correct option
  1. A

    0

  2. B

    1

  3. C

    9

  4. D

    10

Show answer

Correct answer

  • A

    0

Question 2

+2 marksOne correct option

Consider the statement “the attention mechanism in RNN based Encoder- Decoder architecture helps the decoder to understand the context of words in a given sentence”. The statement is

  1. A

    True

  2. B

    False

Show answer

Correct answer

  • A

    True

Question 3

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • D

Question 4

+3 marksOne or more correct options

Select all that apply.

  1. A

    The model has a low bias and low variance at t = 1 than at t = 8

  2. B

    The model has a high bias and low variance at t = 1 than at t = 8

  3. C

    The model has low bias and high variance at t = 8

  4. D

    The model has high bias and high variance at t = 8

Show answer

Correct answers

  • B

    The model has a high bias and low variance at t = 1 than at t = 8

  • C

    The model has low bias and high variance at t = 8

Question 5

+3 marksOne or more correct options

Suppose that we have a deep Feed Forward Fully Connected Neural Network. The network is observed to have a high variance. Then, which of the following techniques regularize the parameter of the network to reduce the high variance?

Select all that apply.

  1. A

    Adding L2 norm of weights to the loss function

  2. B

    Adding a noise to the input samples

  3. C

    Adding a noise to the output prediction

  4. D

    Adding more samples to the dataset by augmenting existing samples using some augmentation techniques

  5. E

    Dropping hidden layers in a neural network randomly during training

Show answer

Correct answers

  • A

    Adding L2 norm of weights to the loss function

  • B

    Adding a noise to the input samples

  • C

    Adding a noise to the output prediction

  • D

    Adding more samples to the dataset by augmenting existing samples using some augmentation techniques

Question 6

+3 marksNumerical answer

The logistic sigmoid function is defined as follows,

f(x)=11+exp(−(wx+b))f(x) = \frac{1}{1 + exp(-(wx + b))}

The parameters are initialized to w=0.5w = 0.5 b=0.5b = 0.5. Suppose the loss in defined as

L=12(f(x)−y)2L = \frac{1}{2}(f(x) - y)^2

where yy is the true value. Compute the gradient of ww for the following sample x=1,y=1x = 1, y = 1.

Show answer

Correct answer: -0.055 (accepted within ±0.01)

Question 7

+3 marksNumerical answer
Show answer

Correct answer: 0.015 (accepted within ±0.005)

Question 8

+3 marksNumerical answer
Show answer

Correct answer: 9176

Question 9

+3 marksNumerical answer

Consider a simple RNN for a binary sequence classification problem.

Show answer

Correct answer: 2.05 (accepted within ±0.1)

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 produce an output.

Show answer

Correct answer: 163

Question 11

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

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

Show answer

Correct answer: 6693

Question 12

+1 markOne correct option

Based on the above data, answer the given subquestions.

The statement that, in general, the activation function of neurons in the network are not necessarily be the same across the network is

  1. A

    True

  2. B

    False

Show answer

Correct answer

  • A

    True

Question 13

+2 marksNumerical answer

Consider a sentence inside the quote “I may be wrong, and you may be right, and by an effort, we may get nearer to the truth”
Based on the above data, answer the given subquestions.

Show answer

Correct answer: 16

Question 14

+3 marksNumerical answer

Consider a sentence inside the quote “I may be wrong, and you may be right, and by an effort, we may get nearer to the truth”
Based on the above data, answer the given subquestions.

Suppose all words in the vocabulary are represented using one-hot-encoded vector of size ∣V∣|V|. Then compute the ordered pair-wise (that is, Cartesian product of V×VV \times V) cosine similarity between two word representations and enter their sum.

Show answer

Correct answer: 16

Question 15

+5 marksOne correct option

The update rule for the ADAM (Adaptive Moments) optimization algorithm is given below,

mt=β1mt−1+(1−β1)∇wtvt=β2vt−1+(1−β2)(∇wt)2wt+1=wt−ηv^t+ϵm^t\begin{aligned} m_t &= \beta_1 m_{t-1} + (1 - \beta_1)\nabla w_t \\ v_t &= \beta_2 v_{t-1} + (1 - \beta_2)(\nabla w_t)^2 \\ w_{t+1} &= w_t - \frac{\eta}{\sqrt{\hat{v}_t + \epsilon}}\hat{m}_t \end{aligned}

Here, 0≤β1<10 \le \beta_1 < 1 and 0≤β2<10 \le \beta_2 < 1 and tt starts from zero (that is, t=0,1,2,⋯t = 0, 1, 2, \cdots). Both mtm_t and vtv_t are initialized to zero. However, the update rule uses the bias corrected version of mtm_t and vtv_t. Which of the following is the bias corrected version of mtm_t?

Helper:

mt=(1−β1)∑τ=0tβ1t−τ∇wτm_t = (1 - \beta_1)\sum_{\tau=0}^{t} \beta_1^{t-\tau} \nabla w_\tau

and assume that E[∇wτ]=E[∇w]∀τE[\nabla w_\tau] = E[\nabla w] \quad \forall \tau, if required.

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

Correct answer

  • B

Question 16

+5 marksOne correct option

Based on the above data, answer the given subquestions.

Suppose the input is xx (one hot representation of context word) and the corresponding label is yy (one hot representation of target word). The quantities h,uc,y^h, u_c, \hat{y} are computed as follows,

h=uc=Wcontext x,z=Wword uch = u_c = W_{context}\, x, \quad z = W_{word}\, u_c

y^=softmax(z)\hat{y} = softmax(z)

Choose the expression that the model has to minimize using cross entropy loss (Assume natural logarithm where required).

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

Correct answer

  • A

Question 17

+5 marksOne or more correct options

Based on the above data, answer the given subquestions.

Select all that apply.

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

Correct answers

  • A
  • B
  • C
  • D