Learn Before
Diagnosing search limitations when beam search outputs a sub-optimal candidate.
Case context: A machine learning engineer is deploying a model and using beam search as an approximate search algorithm to optimize a scoring function, Score_A(S). The algorithm is configured to keep only the top K candidates during the search process. During evaluation, the engineer observes that the system sometimes outputs a candidate that fails to maximize the scoring function.
Question: Based on the properties of approximate search algorithms, explain why the output candidate did not maximize the score, and identify the specific parameter in this search configuration that limits the candidates considered.
Sample answer: The output candidate did not maximize Score_A(S) because beam search is an approximate search algorithm, and such algorithms are not guaranteed to find the value of S that maximizes the scoring function. The parameter limiting the candidates is K, as the algorithm only keeps the top K candidates during the search process, potentially discarding the path to the optimal candidate.
Key points:
- Approximate search algorithms like beam search are not guaranteed to find the output that maximizes Score_A(S).
- Beam search limits the search space by keeping only the top K candidates during the search process.
Rubric: The student must state: 1) Beam search is an approximate search algorithm and is not guaranteed to find the output that maximizes the scoring function. 2) The algorithm limits its search by keeping only the top K candidates.
0
1
Tags
Machine Learning
Deep Learning
Supervised Learning
Dive into Deep Learning @ D2L
Data Science
Machine Learning Strategy
Related
What does beam search retain at each step of the search process when optimizing a scoring function?
True or False: Beam search is guaranteed to find the output that maximizes the scoring function.
Beam search is an example of an _____ search algorithm that keeps only the top K candidates during the search process.
During beam search, which candidates are retained at each step of the search process?
Beam search is guaranteed to find the output S that maximizes Score_A(S).
Beam search keeps only the top _____ candidates during the search process.
Match each beam search term to its correct description.
Arrange the steps of applying approximate search in a scored inference pipeline.
Why is beam search classified as an 'approximate' search algorithm rather than an exact one?
Beam search is one example of an approximate search algorithm used to optimize a scoring function during inference.
Because beam search is approximate, it is not guaranteed to find the output that _____ Score_A(S).
Match each property of beam search to the consequence it produces.
Order the reasoning steps that explain why beam search may fail to return the globally optimal output.
Explain the relationship between beam search approximations and scoring function optimization during inference.
Diagnosing search limitations when beam search outputs a sub-optimal candidate.
Describe the limitation of using beam search to optimize a scoring function during inference.