# C5W3L05 Error Analysis of Beam Search | Summary and Q&A

9.0K views
February 5, 2018
by
DeepLearningAI
C5W3L05 Error Analysis of Beam Search

## TL;DR

Learn how to use error analysis to determine if the issues with machine translation lie in the beam search algorithm or the RNN model.

## Key Insights

• 👨‍🔬 Beam search is an approximate search algorithm used in machine translation.
• 😁 Error analysis helps determine whether the issues lie in the beam search algorithm or the RNN model.
• 😁 Comparing probabilities of correct translation and beam search output can attribute errors to specific components.
• 🎰 Error analysis enables efficient allocation of resources and improvements to machine translation.
• 😁 Increasing the beam width may not always improve translation performance.
• ❓ More training data and different network architecture can address RNN model issues.
• 😁 Error analysis with beam search allows for a targeted approach in improving translation quality.

## Transcript

in the third cause of this sequence of five causes you saw how error analysis can help you focus your time on doing the most useful work for your project now beam search is an approximate search algorithm also called a heuristic search algorithm and so it doesn't always output the most likely sentence as only keeping track of B equals 3 or 10 or 10... Read More

## Questions & Answers

### Q: What is beam search?

Beam search is an approximate search algorithm used in machine translation to find the most likely translation by keeping track of a limited number of top possibilities.

### Q: How can error analysis help improve machine translation?

Error analysis with beam search helps identify whether the issues are caused by the algorithm or the RNN model, allowing for targeted improvements in the translation process.

### Q: How can the error be attributed to either beam search or the RNN model?

By comparing the probabilities of the correct translation (Y*) and the beam search output (Y^), it can be determined which component is responsible for the error. If Y* has a higher probability, beam search is at fault. If Y* has a lower probability, the RNN model is at fault.

### Q: What is the importance of error analysis in machine translation?

Error analysis enables developers to allocate their time and resources effectively by identifying the component that needs improvement, be it the beam search algorithm or the RNN model.

## Summary & Key Takeaways

• Beam search is an approximate search algorithm used in machine translation to find the most likely translation of a sentence.

• Error analysis with beam search helps identify whether the issues in machine translation are caused by the beam search algorithm or the RNN model.

• By comparing the probabilities of the correct translation (Y*) and the beam search output (Y^), it can be determined which component is responsible for the error.