Quiz Space

January 2023 term · Deep Learning · BSCS3004

Deep Learning End Term: 30 April 2023 (January 2023 term)

The IIT Madras BS Deep Learning (Deep Learning) End Term paper sat on 30 Apr 2023, in the January 2023 term: 16 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
16
Marks
50
Duration
180 min
MCQ
4
Numerical
8
MSQ
4

Updated

Official paper: IIT M DEGREE ET1 EXAM QPE2 S1 30 Apr 2023 · No negative marking.

Question 1

+3 marksOne correct option

Suppose that we implement a three input Boolean function using the Mc-Culloch Pitts (MP) neuron. The graph below shows the Number of Correctly Classified (NCC) data points for various values of threshold θ. The threshold θ is incremented by 1 from 0 to 5. Assume that the neuron does not have any inhibitory input. This graph represents which of the following Boolean functions?

Suppose that we implement a three input Boolean function using the Mc-Culloch Pitts (MP) neuron. The graph below shows the Number of Correctly Classified (NCC) data points for various values of threshold θ. The threshold θ is incremented by 1 from 0 to 5. Assume that the neuron does not have any inhibitory input. This graph represents which of the following Boolean functions?

  1. A

    NOR

  2. B

    AND

  3. C

    OR

  4. D

    NAND

  5. E

    None of these

Show answer

Correct answer

  • C

    OR

Question 2

+3 marksOne correct option

Consider the following two sentences
• A man was sitting at the bank of the river and gazing at stars in the sky • A man went to the bank to check his current balance
Suppose we get the word representation for the word bank in both sentences using CBOW model which was trained as shown in the image below. The model was trained by building a vocabulary that contains unique words in the sentences. Then the statement that the word representation for the word bank will be different based on its context is

Consider the following two sentences
• A man was sitting at the bank of the river and gazing at stars in the sky • A man went to the bank to check his current balance
Suppose we get the word representation for the word bank in both sentences using CBOW model which was trained as shown in the image below. The model was trained by building a vocabulary that contains unique words in the sentences. Then the statement that the word representation for the word bank will be different based on its context is

  1. A

    TRUE

  2. B

    FALSE

  3. C

    Insufficient information

Show answer

Correct answer

  • B

    FALSE

Question 3

+3 marksNumerical answer
Show answer

Correct answer: 0.7 (accepted within ±0.02)

Question 4

+3 marksNumerical answer
Show answer

Correct answer: 15320

Question 5

+3 marksNumerical answer

Consider a skip-gram model shown below. Each word in the vocabulary is represented as one-hot vector of size 100×1. The embedding dimension h is 5×1. Enter the number of parameters (exclude bias) in the entire network

Consider a skip-gram model shown below. Each word in the vocabulary is represented as one-hot vector of size 100×1. The embedding dimension h is 5×1. Enter the number of parameters (exclude bias) in the entire network

Show answer

Correct answer: 2500

Question 6

+3 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 9670

Question 7

+3 marksNumerical answer

Based on the above data, answer the given subquestions.

Suppose that all the elements in the input vector are zero and the corresponding true label is also 0. Further, suppose that all the parameters are initialized to zero. What is the loss value if cross entropy loss is used? Use natural logarithm ln.

Show answer

Correct answer: 3 (accepted within ±0.1)

Question 8

+3 marksOne correct option

Based on the above data, answer the given subquestions.

Assume that we use backpropagation to compute the gradient of the loss w.r.t. all the parameters. Then the statement that the gradients w.r.t. all the parameters are zero is

  1. A

    TRUE

  2. B

    FALSE

  3. C

    Need more information to validate the statement

Show answer

Correct answer

  • B

    FALSE

Question 9

+3 marksOne or more correct options

The plot below shows contours of a function f(w, b). Choose the correct statements

The plot below shows contours of a function f(w, b). Choose the correct statements

Select all that apply.

  1. A

    There might be two flat minima

  2. B

    There might be two flat maxima

  3. C

    There is one flat maxima

  4. D

    There is one flat minima

Show answer

Correct answers

  • A

    There might be two flat minima

  • C

    There is one flat maxima

Question 10

+3 marksOne or more correct options

Suppose that a model produces zero training error without using any regularization technique. What happens if we use L2 regularization and retrain the model, in general?

Select all that apply.

  1. A

    This might increase training error

  2. B

    This might decrease test error

  3. C

    Reduce the complexity of the model by driving less important weights to close to zero

  4. D

    This might decrease training error

Show answer

Correct answers

  • A

    This might increase training error

  • B

    This might decrease test error

  • C

    Reduce the complexity of the model by driving less important weights to close to zero

Question 11

+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 12

+2 marksNumerical answer

A text corpus contained the following two sentences.
• In science if you know what you are doing you should not be doing it • In engineering if you do not know what you are doing you should not be doing it
Based on the above data, answer the given subquestions.

Show answer

Correct answer: 14

Question 13

+3 marksOne or more correct options

A text corpus contained the following two sentences.
• In science if you know what you are doing you should not be doing it • In engineering if you do not know what you are doing you should not be doing it
Based on the above data, answer the given subquestions.

Suppose we build a co-occurrence matrix of size m × n, where each row corresponds to a word in the vocabulary and the columns corresponds to the context of the word. Which of the following could be a valid size of the co-occurrence matrix (select all correct answers)?

Select all that apply.

  1. A

    32 × 32

  2. B

    32 × 14

  3. C

    14 × 32

  4. D

    14 × 14

  5. E

    14 × 13

  6. F

    13 × 14

  7. G

    14 × 7

  8. H

    7 × 14

Show answer

Correct answers

  • D

    14 × 14

  • E

    14 × 13

  • G

    14 × 7

Question 14

+5 marksNumerical answer

Consider a simple RNN for a binary sequence classification problem.

Consider a simple RNN for a binary sequence classification problem.
Based on the above data, answer the given subquestions.

What is the loss value? Use cross entropy loss with natural logarithm.

Show answer

Correct answer: 2.05 (accepted within ±0.05)

Question 15

+5 marksNumerical answer

Consider a simple RNN for a binary sequence classification problem.

Consider a simple RNN for a binary sequence classification problem.
Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.86 (accepted within ±0.06)

Question 16

+2 marksOne correct option

Consider the statement “the attention coefficients in RNN based Encoder- Decoder architecture are computed for each time step of the decoder”. The statement is

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE