💬Beam Search
Also known as Beam Decoding, Beam Width
Keeping a few good word paths at once, then taking the best one.
Think of it like
It is like a hiker who keeps the three best paths in mind.
Example
With a beam width of 3, a translation model keeps three draft sentences alive. At the end, it gives back the one with the best total score.
Why it matters
It finds better whole sentences than greedy picking, at the cost of more work.
Definition
Common mistake
Key takeaways
- 1Several drafts. Kept at once.
- 2Beam width. How many drafts survive.
- 3Best total. Chosen at the end.