Short Answer

Describe the limitation of using beam search to optimize a scoring function during inference.

Question: Describe the core limitation of beam search when it is applied to find an output S that maximizes Score_A(S).

Sample answer: The core limitation of beam search is that it is an approximate search algorithm that only keeps the top K candidates during the search process. Consequently, it is not guaranteed to find the value of S that maximizes Score_A(S).

Key points:

  • Beam search keeps only the top K candidates during the search process.
  • As an approximate search algorithm, it is not guaranteed to find the output that maximizes the score.

Rubric: The answer should describe that beam search is approximate and only keeps the top K candidates, meaning it is not guaranteed to find the output maximizing the score.

0

1

Updated 2026-05-26

Contributors are:

Who are from:

Tags

Machine Learning

Deep Learning

Supervised Learning

Dive into Deep Learning @ D2L

Data Science

Machine Learning Strategy