Quiz Space

Large Language Models · Quiz 1 · 26 Oct 2025 · September 2025 term

Question 9: For a vocabulary size of 10, how many beams will there be…

Question 9

+3 marksOne correct option

For a vocabulary size of 10, how many beams will there be in greedy search, beam search with beam size 3, and exhaustive search at step 1 and step 3, respectively?

  1. A

    Step 1:
    Greedy: 1, Beam: 1, Exhaustive: 1
    Step 3:
    Greedy: 1, Beam: 1, Exhaustive: 1

  2. B

    Step 1:
    Greedy: 1, Beam: 3, Exhaustive: 10
    Step 3:
    Greedy: 1, Beam: 3, Exhaustive: 10

  3. C

    Step 1:
    Greedy: 1, Beam: 3, Exhaustive: 1
    Step 3:
    Greedy: 1, Beam: 3, Exhaustive: 100

  4. D

    Step 1:
    Greedy: 1, Beam: 3, Exhaustive: 10
    Step 3:
    Greedy: 1, Beam: 3, Exhaustive: 1000

Show answer

Correct answer

  • D

    Step 1:
    Greedy: 1, Beam: 3, Exhaustive: 10
    Step 3:
    Greedy: 1, Beam: 3, Exhaustive: 1000

Question 9 of 20 in the IIT Madras BS Large Language Models (LLM) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term (IIT M DEGREE AN EXAM QDB2 26 Oct 2025). It carries 3 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2Which of the following is true regarding sinusoidal encoding?
  3. Q3We have a transformer model translating English to French. Suppose the target sequence is: Target (French): [‘je’, ‘sui…
  4. Q4Figure question
  5. Q5In the context of language model training, teacher forcing is a technique where:
  6. Q6Figure question
  7. Q7You have a mini-batch of 2 samples, each with 2 features: X = \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix} Rows represen…
  8. Q8Figure question
  9. Q10Which of the following decoding strategies is/are inherently non-deterministic?
  10. Q11Which of the following statements about multiple attention heads in a Transformer are true?
  11. Q12Which of the following statements about the Transformer architecture are true?
  12. Q13A transformer decoder uses a vocabulary of size 5. At step 1, the predicted token probabilities are: | Token | Probabil…
  13. Q14Figure question
  14. Q15A Transformer model processes a sequence of T = 1000 tokens. Within the self-attention layer, the attention scores are …
  15. Q16Figure question
  16. Q17How many next-token prediction targets are generated during training a full batch?
  17. Q18For one sequence, how many non-zero attention scores remain in the masked attention score matrix (per head)?
  18. Q19You are analyzing a GPT-style decoder-only Transformer trained as a causal language model with the following setup: Seq…
  19. Q20During autoregressive inference with GPT: