Learn Before
Diagnose the beam search failure in a translation system.
Case context: A machine translation team built a system with an RNN encoder-decoder producing ScoreA(S) and a beam search that outputs the sentence Sout. For a batch of mistranslated sentences, they computed ScoreA(S*) for the human-generated reference and ScoreA(Sout) for the system's output. In the majority of these error cases, ScoreA(S*) turned out to be greater than ScoreA(Sout).
Question: Given this pattern across the error cases, what should the team conclude, and what should they try next to address the errors?
Sample answer: Since ScoreA(S*) is greater than ScoreA(Sout) in most of the error cases, this indicates a search algorithm problem: the scoring function is correctly ranking the human translation higher, but beam search is failing to find the value of S that maximizes ScoreA(S). The team should focus their efforts on improving the search algorithm rather than the scoring function, for example by increasing the beam width used in beam search.
Key points:
- Pattern of ScoreA(S*) > ScoreA(Sout) indicates a search algorithm problem
- The scoring function is functioning correctly in this scenario
- Effort should be focused on the search algorithm, not the scorer
- Increasing beam width is a concrete suggested fix
Rubric: Full credit: correctly identifies the pattern as a search algorithm problem and recommends improving search (e.g., wider beam width), not the scorer. Partial credit: identifies the correct diagnosis but omits the recommended action, or vice versa. No credit: misdiagnoses the issue as an objective/scoring function problem.
0
1
References
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Tags
Machine Learning
Deep Learning
Supervised Learning
Dive into Deep Learning @ D2L
Data Science
Machine Learning Strategy
Machine Learning Yearning @ DeepLearning.AI
Related
When ScoreA(S*) > ScoreA(Sout) but the algorithm outputs Sout, what is the diagnosis?
True or False: Increasing beam width is a reasonable fix for a search algorithm problem.
A search algorithm problem occurs when the scoring function ranks the correct output higher, but the _____ still selects the wrong output.
Match each score comparison outcome to its diagnostic conclusion. for Search Algorithm Problem in Inference
Order the steps of diagnosing a search algorithm problem using the Optimization Verification test.
Explain why a higher scoring function value for S* does not guarantee the system will output S*.
Diagnose the beam search failure in a translation system.
Why does correctly ranking S* above Sout still result in an error output?
Which component is targeted for improvement when a search algorithm problem is diagnosed?
True or False: A search algorithm problem means the scoring function assigned Sout a higher score than S*.