Recall & Review
beginner
What is beam search decoding in NLP?
Beam search decoding is a method to find the most likely sequence of words by exploring multiple options at each step, keeping only the best few sequences (called beams) instead of just one.
Click to reveal answer
beginner
Why is beam search better than greedy search?
Beam search keeps multiple candidate sequences at each step, so it can avoid early mistakes that greedy search makes by choosing only the single best option at each step.
Click to reveal answer
intermediate
What does the beam width control in beam search decoding?
Beam width controls how many candidate sequences are kept at each step. A larger beam width means more sequences are considered, which can improve results but takes more time.
Click to reveal answer
intermediate
How does beam search handle sequence probabilities during decoding?
Beam search multiplies or adds the log probabilities of words in a sequence to score each candidate. It keeps the top sequences with the highest total scores at each step.
Click to reveal answer
intermediate
What is a common drawback of beam search decoding?
Beam search can still miss the best sequence if the beam width is too small, and it can be slower than greedy search because it keeps multiple candidates.
Click to reveal answer
What does beam search keep track of during decoding?
✗ Incorrect
Beam search keeps multiple best candidate sequences (beams) at each step to explore more options.
What happens if you increase the beam width in beam search?
✗ Incorrect
Increasing beam width means more candidate sequences are kept, which can improve results but requires more computation.
Which of these is a key difference between greedy search and beam search?
✗ Incorrect
Greedy search keeps only the single best sequence at each step, while beam search keeps multiple candidates.
How does beam search score candidate sequences?
✗ Incorrect
Beam search scores sequences by combining the probabilities of each word, often using log probabilities for numerical stability.
What is a potential downside of using a very small beam width?
✗ Incorrect
A small beam width limits the search and can cause the method to miss better sequences, similar to greedy search.
Explain how beam search decoding works and why it is used instead of greedy search.
Think about how exploring more options helps find better sentences.
You got /4 concepts.
Describe the trade-offs involved in choosing the beam width for beam search decoding.
Consider speed versus quality of results.
You got /4 concepts.