Question 1
XOR
AND
OR
NAND
None of these

The IIT Madras BS Deep Learning (Deep Learning) End Term paper sat on 31 Aug 2025, in the May 2025 term, set QIC1: 19 questions for 40 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.
XOR
AND
OR
NAND
None of these
Correct answer
OR
Based on the two statements provided choose the correct option?
Statement 1: Optimization’s primary goal is to reduce the training error.
Statement 2: Regularization helps to prevent overfitting, which in turn reduces the training error.
Both Statement 1 and Statement 2 are false.
Statement 1 is true, but Statement 2 is false.
Statement 1 is false, but Statement 2 is true.
Both Statement 1 and Statement 2 are true.
Correct answer
Statement 1 is true, but Statement 2 is false.
Correct answer
Consider a feedforward neural network with one hidden layer trained using backpropagation for a binary classification task. The network has the following architecture:
Assume that:
Let represent the weight connecting the th neuron of the hidden layer to the output neuron. Identify the correct weight update rule for each type of gradient descent: Vanilla Gradient Descent (GD) ,mini-Batch Gradient Descent (BGD), and Stochastic Gradient Descent (SGD). (Recall: with BCE + sigmoid, the gradient w.r.t. the pre-activation simplifies to .
Correct answers
Scaled Dot-Product Attention
You are given a simple transformer attention setup with the following configuration:
Scaled Dot-Product Attention:
Based on the above data, answer the given subquestions.
Correct answer: 10
Scaled Dot-Product Attention
You are given a simple transformer attention setup with the following configuration:
Scaled Dot-Product Attention:
Based on the above data, answer the given subquestions.
Correct answer: 1.56 (accepted within ±0.04)
Scaled Dot-Product Attention
You are given a simple transformer attention setup with the following configuration:
Scaled Dot-Product Attention:
Based on the above data, answer the given subquestions.
Compute the final attention output:
What is the sum of the values in the first row of the Scaled Dot-Product Attention output?
(Answer up to 2 decimal places.)
Correct answer: 3.99 (accepted within ±0.04)
Consider an image of size , and a true label . The image is passed through a convolutional neural network with a single filter followed by a ReLU and a max-pooling operation.
Parameters:
Based on the above data, answer the given subquestions.
What is the output of the convolution layer after applying ReLU?
Correct answer
Consider an image of size , and a true label . The image is passed through a convolutional neural network with a single filter followed by a ReLU and a max-pooling operation.
Parameters:
Based on the above data, answer the given subquestions.
Correct answer: 6
Consider an image of size , and a true label . The image is passed through a convolutional neural network with a single filter followed by a ReLU and a max-pooling operation.
Parameters:
Based on the above data, answer the given subquestions.
Correct answer: 6
Consider a CBOW model for learning word embeddings. The vocabulary is made up of three words, {good, bad, ugly}. and are the matrices that contain the word and context embeddings respectively. The columns in each matrix correspond to the embeddings. Both matrices are of shape :
The context window is 1, meaning, the next word is predicted using just the current word as context. Recall that we use softmax to make predictions at the output.
Based on the above data, answer the given subquestions.
Correct answer: 36.31 (accepted within ±35.69)
Consider a CBOW model for learning word embeddings. The vocabulary is made up of three words, {good, bad, ugly}. and are the matrices that contain the word and context embeddings respectively. The columns in each matrix correspond to the embeddings. Both matrices are of shape :
The context window is 1, meaning, the next word is predicted using just the current word as context. Recall that we use softmax to make predictions at the output.
Based on the above data, answer the given subquestions.
The CBOW model is now used to generate a “sentence” or a string of words. First we pass the word “good” and retain the word with highest probability as the output, say word1, which is in turn passed as input to the model. If the model is run this way for exactly three time steps, what is the sentence that it outputs? Note that the sentence here is “word1 word2 word3”.
bad ugly good
good bad ugly
bad bad bad
good good good
bad ugly bad
Correct answer
bad ugly good
Consider a CBOW model for learning word embeddings. The vocabulary is made up of three words, {good, bad, ugly}. and are the matrices that contain the word and context embeddings respectively. The columns in each matrix correspond to the embeddings. Both matrices are of shape :
The context window is 1, meaning, the next word is predicted using just the current word as context. Recall that we use softmax to make predictions at the output.
Based on the above data, answer the given subquestions.
Now consider updating the word embeddings using the sample “good good”. The first “good” in the string is used as context and the second “good” as the true label. Use cross entropy as the loss function and run one iteration of gradient descent with η = 1 starting with the existing values for the embeddings.
Find the updated word embedding for “good” and choose the most appropriate option from below. Note that you have to compute the updated word embedding for “good” and not its context embedding.
(1.76, -0.24)
(1.24, -0.76)
(1.76, 1.76)
(1.76, -1.76)
(1.24, -1.24)
Correct answer
(1.76, -0.24)
Based on the above data, answer the given subquestions.
Find s1.
Correct answer: 0.25
Based on the above data, answer the given subquestions.
Find s2.
Correct answer: 0.5
Based on the above data, answer the given subquestions.
Correct answer: 1
Based on the above data, answer the given subquestions.
Correct answer: 0.125
Based on the above data, answer the given subquestions.
Correct answer: 2
Based on the above data, answer the given subquestions.
Correct answer: 1