uiz Space

January 2025 term · Deep Learning · BSCS3004

Deep Learning Quiz 1: 23 February 2025 (January 2025 term)

The IIT Madras BS Deep Learning (Deep Learning) Quiz 1 paper sat on 23 Feb 2025, in the January 2025 term: 21 questions for 40 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
21
Marks
40
Duration
120 min
MCQ
3
MSQ
3
Numerical
15

Updated

Official paper: IIT M DEGREE AN EXAM QDB2 23 Feb 2025 · No negative marking.

Question 1

+3 marksOne correct option

Which of the following statements correctly distinguishes between Momentum Optimizer and Nesterov Accelerated Momentum (NAG) Optimizer?

  1. A

    Momentum uses the current gradient to update the velocity, while NAG uses a lookahead gradient based on a tentative future position.

  2. B

    Momentum is computationally faster than NAG because it skips calculating the gradient at a lookahead position.

  3. C

    NAG is a variant of momentum that adjusts the step size dynamically during training.

  4. D

    Momentum uses an adaptive learning rate, whereas NAG uses a fixed learning rate.

Show answer

Correct answer

  • A

    Momentum uses the current gradient to update the velocity, while NAG uses a lookahead gradient based on a tentative future position.

Question 2

+3 marksOne correct option

Which of the functions given below has the steepest slope at the point x = 1?

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

Correct answer

  • D

Question 3

+3 marksOne or more correct options

Select all that apply.

  1. A

    The weight update is tiny at a gentle loss surface.

  2. B

    The weight update is tiny at a steep loss surface.

  3. C

    The weight update is large at a steep loss surface.

  4. D

    The weight update is large at a gentle loss surface.

Show answer

Correct answers

  • A

    The weight update is tiny at a gentle loss surface.

  • C

    The weight update is large at a steep loss surface.

Question 4

+3 marksNumerical answer

Consider a network trained on a dataset of 5000 data-points using mini-batch gradient descent with a batch size of 50. If the network is trained for 100 epochs, how many times does each parameter in the network get updated?

Show answer

Correct answer: 10000

Question 5

+2 marksNumerical answer

Consider a perceptron for a binary classification task. There are four features each of which is binary. The dataset has 16 data-points. The feature vector for no two data-points is the same. The weight vector is w = (1, 1,−1,−1). Ignore the bias.

If the number of misclassifications is zero on this dataset, answer the given subquestions.

Find the number of data-points in the dataset that have true label 1.

Show answer

Correct answer: 11

Question 6

+2 marksNumerical answer

Consider a perceptron for a binary classification task. There are four features each of which is binary. The dataset has 16 data-points. The feature vector for no two data-points is the same. The weight vector is w = (1, 1,−1,−1). Ignore the bias.

If the number of misclassifications is zero on this dataset, answer the given subquestions.

Find the number of data-points in the dataset that have true label 0.

Show answer

Correct answer: 5

Question 7

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    (−0.8, 0.8)

  2. B

    (0.08,−0.08)

  3. C

    (−0.08, 0.08)

  4. D

    (1,−1)

Show answer

Correct answer

  • A

    (−0.8, 0.8)

Question 8

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 180

Question 9

+2 marksOne or more correct options

Consider a dataset for a binary classification problem in which the labels are in {0,1}\{0,1\}:

x1x_1x2x_2yy
111
−1-111
1−1-10

A perceptron is trained on this dataset using the perceptron learning algorithm starting with the initial weight vector as (0,0)(0,0). Ignore the bias. The data-points are processed in the order in which they appear in the table, from top to bottom. If w\mathbf{w} is the weight vector, use the following rule for prediction:

y^={1,wTx⩾00,wTx<0\hat{y} = \begin{cases} 1, & \mathbf{w}^T\mathbf{x} \geqslant 0 \\ 0, & \mathbf{w}^T\mathbf{x} < 0 \end{cases}

The perceptron converges to w∗=(w1∗,w2∗)\mathbf{w}^* = (w_1^*, w_2^*) after kk updates to the weight vector. Note that the number of iterations of the training loop is not the same as the number of updates to the weight vector.

Based on the above data, answer the given subquestions.

Select all that apply.

  1. A

    (0, 0)

  2. B

    (0, 1)

  3. C

    (−1, 1)

  4. D

    (1, 1)

Show answer

Correct answer

  • C

    (−1, 1)

Question 10

+2 marksNumerical answer

Consider a dataset for a binary classification problem in which the labels are in {0,1}\{0,1\}:

x1x_1x2x_2yy
111
−1-111
1−1-10

A perceptron is trained on this dataset using the perceptron learning algorithm starting with the initial weight vector as (0,0)(0,0). Ignore the bias. The data-points are processed in the order in which they appear in the table, from top to bottom. If w\mathbf{w} is the weight vector, use the following rule for prediction:

y^={1,wTx⩾00,wTx<0\hat{y} = \begin{cases} 1, & \mathbf{w}^T\mathbf{x} \geqslant 0 \\ 0, & \mathbf{w}^T\mathbf{x} < 0 \end{cases}

The perceptron converges to w∗=(w1∗,w2∗)\mathbf{w}^* = (w_1^*, w_2^*) after kk updates to the weight vector. Note that the number of iterations of the training loop is not the same as the number of updates to the weight vector.

Based on the above data, answer the given subquestions.

What is the value of k?

Show answer

Correct answer: 1

Question 11

+2 marksOne or more correct options

Consider a dataset for a binary classification problem in which the labels are in {0,1}\{0,1\}:

x1x_1x2x_2yy
111
−1-111
1−1-10

A perceptron is trained on this dataset using the perceptron learning algorithm starting with the initial weight vector as (0,0)(0,0). Ignore the bias. The data-points are processed in the order in which they appear in the table, from top to bottom. If w\mathbf{w} is the weight vector, use the following rule for prediction:

y^={1,wTx⩾00,wTx<0\hat{y} = \begin{cases} 1, & \mathbf{w}^T\mathbf{x} \geqslant 0 \\ 0, & \mathbf{w}^T\mathbf{x} < 0 \end{cases}

The perceptron converges to w∗=(w1∗,w2∗)\mathbf{w}^* = (w_1^*, w_2^*) after kk updates to the weight vector. Note that the number of iterations of the training loop is not the same as the number of updates to the weight vector.

Based on the above data, answer the given subquestions.

Select all that apply.

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

Correct answers

  • A
  • B

Question 12

+1 markNumerical answer

Consider a sigmoid neuron that takes in an input vector x=[10.51]\mathbf{x} = \begin{bmatrix} 1 \\ 0.5 \\ 1 \end{bmatrix}. The weight vector w\mathbf{w} is initialized to [0.510.5]\begin{bmatrix} 0.5 \\ 1 \\ 0.5 \end{bmatrix} and b=1b = 1. The output of the sigmoid neuron is

z=wTx+bz = \mathbf{w}^T\mathbf{x} + b

y^=11+e−z\hat{y} = \frac{1}{1 + e^{-z}}

Suppose that we use the following loss function:

L=12(y−y^)2\mathcal{L} = \frac{1}{2}(y - \hat{y})^2

Based on the above data, answer the given subquestions.

Calculate the value of z (correct up to two decimal places).

Show answer

Correct answer: 2.5 (accepted within ±0.03)

Question 13

+1 markNumerical answer

Consider a sigmoid neuron that takes in an input vector x=[10.51]\mathbf{x} = \begin{bmatrix} 1 \\ 0.5 \\ 1 \end{bmatrix}. The weight vector w\mathbf{w} is initialized to [0.510.5]\begin{bmatrix} 0.5 \\ 1 \\ 0.5 \end{bmatrix} and b=1b = 1. The output of the sigmoid neuron is

z=wTx+bz = \mathbf{w}^T\mathbf{x} + b

y^=11+e−z\hat{y} = \frac{1}{1 + e^{-z}}

Suppose that we use the following loss function:

L=12(y−y^)2\mathcal{L} = \frac{1}{2}(y - \hat{y})^2

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.92 (accepted within ±0.03)

Question 14

+1 markNumerical answer

Consider a sigmoid neuron that takes in an input vector x=[10.51]\mathbf{x} = \begin{bmatrix} 1 \\ 0.5 \\ 1 \end{bmatrix}. The weight vector w\mathbf{w} is initialized to [0.510.5]\begin{bmatrix} 0.5 \\ 1 \\ 0.5 \end{bmatrix} and b=1b = 1. The output of the sigmoid neuron is

z=wTx+bz = \mathbf{w}^T\mathbf{x} + b

y^=11+e−z\hat{y} = \frac{1}{1 + e^{-z}}

Suppose that we use the following loss function:

L=12(y−y^)2\mathcal{L} = \frac{1}{2}(y - \hat{y})^2

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.42 (accepted within ±0.03)

Question 15

+3 marksNumerical answer

Consider a sigmoid neuron that takes in an input vector x=[10.51]\mathbf{x} = \begin{bmatrix} 1 \\ 0.5 \\ 1 \end{bmatrix}. The weight vector w\mathbf{w} is initialized to [0.510.5]\begin{bmatrix} 0.5 \\ 1 \\ 0.5 \end{bmatrix} and b=1b = 1. The output of the sigmoid neuron is

z=wTx+bz = \mathbf{w}^T\mathbf{x} + b

y^=11+e−z\hat{y} = \frac{1}{1 + e^{-z}}

Suppose that we use the following loss function:

L=12(y−y^)2\mathcal{L} = \frac{1}{2}(y - \hat{y})^2

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.39 (accepted within ±0.03)

Question 16

+1 markNumerical answer

Based on the above data, answer the given subquestions.

What is the value of the output of the first sigmoid neuron in the first hidden layer (i.e. h11). (Answer correct upto two digits after the decimal)

Show answer

Correct answer: 0.95 (accepted within ±0.04)

Question 17

+1 markNumerical answer

Based on the above data, answer the given subquestions.

What is the value of the output of the first sigmoid neuron in the second hidden layer (i.e. h21) (Answer correct upto two digits after the decimal)

Show answer

Correct answer: 0.67 (accepted within ±0.04)

Question 18

+1 markNumerical answer

Based on the above data, answer the given subquestions.

What is the value of the output of the first neuron in the third or output layer with the softmax activation function (i.e. h31) (Answer correct upto two digits after the decimal)

Show answer

Correct answer: 0.26 (accepted within ±0.04)

Question 19

+1 markNumerical answer

Based on the above data, answer the given subquestions.

What is the value of the cross entropy loss? (use natural log). (Answer correct upto two digits after the decimal)

Show answer

Correct answer: 1.33 (accepted within ±0.04)

Question 20

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: -0.5 (accepted within ±0.04)

Question 21

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.15 (accepted within ±0.04)