Quiz Space

Introduction to Deep Learning and Generative AI · Quiz 2 · 23 Nov 2025 · September 2025 term

Question 16: Consider that the following paragraph is used as the inp…

Question 16

+3 marksNumerical answer

Consider that the following paragraph is used as the input to train a sequence language model:

"this is a great sunny day the advantage of being a sunny day is that we can indulge in many outdoor sports and activities i am not wrong when i say that it is a great sunny morning"

(Ignore the double quotes in the vocab)

  • No smoothing is applied.
  • Tokenization is done by splitting on spaces.
  • If a context does not appear, its conditional probability is zero.

What is the probability the model generates the following sequence ?

"a great sunny morning"

(Answer upto 3 decimals)

Show answer

Correct answer: 0.025 (accepted within ±0.005)

Question 16 of 25 in the IIT Madras BS Introduction to Deep Learning and Generative AI (Deep Learning and GenAI) Quiz 2 paper sat on 23 Nov 2025, in the September 2025 term (IIT M DIPLOMA AN EXAM QDD2 23 Nov 2025 NEW). It carries 3 marks.

More questions from this paper

  1. Q1You have a tensor x = torch.tensor([1, 2, 3, 4]). You perform And What will be the shapes of stacked_x_dim0 and stacked…
  2. Q2You have a PyTorch tensor residing on the GPU. You then attempt to convert it directly to a NumPy array using What will…
  3. Q3The Huber Loss function is introduced as a robust alternative to Mean Squared Error (MSE) and Mean Absolute Error (MAE)…
  4. Q4A deep learning model contains a stack of three consecutive 3x3 convolutional layers, each with a stride of 1and suffic…
  5. Q5Figure question
  6. Q6The Momentum optimizer helps overcome which limitation of vanilla Gradient Descent?
  7. Q7Consider the RMSProp optimizer update rule: v_t = \beta v_{t-1} + (1 - \beta)(\nabla w_t)^2 The algorithm runs for 10 i…
  8. Q8You are given two loss functions. Your task is to identify their nature using the second derivative test. Function A: A…
  9. Q9What happens if the latent space in a GAN has too few dimensions for the task complexity?
  10. Q10At Nash Equilibrium in a perfectly trained GAN, what is the expected output of the discriminator D(G(z)) for a generate…
  11. Q11A student is trying to write the Generator training loop and is confused about the order of operations. Their code is: …
  12. Q12You've been training your GAN for 100 epochs. You notice two things: The Generator loss (g_loss) is very low and stable…
  13. Q13Figure question
  14. Q14Figure question
  15. Q15Figure question
  16. Q17Figure question
  17. Q18You are performing Beam Search with K=2 to generate a sequence. Step 1: The model predicts probabilities for the first …
  18. Q19Figure question
  19. Q20Figure question
  20. Q21Given the update rule for Adagrad \begin{aligned} v_t &= v_{t-1} + (\nabla w_t)^2 \ w_{t+1} &= w_t - \frac{\eta}{\sqrt{…
  21. Q22In an LSTM (Long Short-Term Memory) network, which pair of components correctly represents the short-term and long-term…
  22. Q23The LSTM (Long Short-Term Memory) network uses several gates to control information flow. Here are the key equations wi…
  23. Q24You are training an RNN-based text classification model with the following three sequences: Under which training scenar…
  24. Q25Consider the following modified implementation of an RNN. What will be the percentage reduction in the rnn parameters d…