Quiz Space

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

Question 18: You are performing Beam Search with K=2 to generate a se…

Question 18

+3 marksOne correct option

You are performing Beam Search with K=2 to generate a sequence.

Step 1: The model predicts probabilities for the first word:

text
"A": 0.5
"The": 0.4
"It": 0.1

Step 2: You expand the K=2 hypotheses ("A" and "The").

Given "A", P(next word): {"dog": 0.6, "cat": 0.3, ...}

Given "The", P(next word): {"dog": 0.5, "cat": 0.4, ...}

After Step 2, what are the sequences (beams) that you will keep for Step 3?

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

Correct answer

  • C

Question 18 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. Q16Consider that the following paragraph is used as the input to train a sequence language model: "this is a great sunny d…
  17. Q17Figure question
  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…