Bird
0
0

If a beam search decoder with beam width 3 outputs sequences with scores [0.7, 0.5, 0.3], what will happen if the beam width is reduced to 1?

medium📝 Predict Output Q5 of 15
NLP - Text Generation
If a beam search decoder with beam width 3 outputs sequences with scores [0.7, 0.5, 0.3], what will happen if the beam width is reduced to 1?
AOnly the sequence with score 0.7 will be kept
BAll sequences will be kept but with lower scores
CThe sequence with score 0.3 will be kept
DThe decoder will output all sequences regardless of beam width
Step-by-Step Solution
Solution:
  1. Step 1: Understand beam width effect

    Beam width 1 means only the best scoring sequence is kept at each step.
  2. Step 2: Identify highest score

    The highest score is 0.7, so only that sequence remains.
  3. Final Answer:

    Only the sequence with score 0.7 will be kept -> Option A
  4. Quick Check:

    Beam width 1 = keep best sequence only [OK]
Quick Trick: Beam width 1 means greedy search, keep best only [OK]
Common Mistakes:
MISTAKES
  • Thinking all sequences remain
  • Keeping lowest scoring sequence
  • Ignoring beam width effect

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NLP Quizzes