AI Development
A decoding strategy that tracks several candidate sequences (beams) at once and returns the one with the highest overall probability.
A decoding strategy that tracks several candidate sequences (beams) at once and returns the one with the highest overall probability. Unlike greedy decoding, it can keep a sequence whose first tokens were less likely if it leads somewhere better. In Hugging Face Transformers you enable it by setting num_beams above 1. It suits input-grounded tasks like translation, captioning, or speech recognition more than open-ended chat, and costs more compute per output.
Primary source: huggingface.co
Example
Unlike greedy decoding, it can keep a sequence whose first tokens were less likely if it leads somewhere better.
Hands-on guides, comparisons, and tutorials that cover AI Development.
FAQ
A decoding strategy that tracks several candidate sequences (beams) at once and returns the one with the highest overall probability.
Beam Search sits in the AI Development part of the AI stack. Understanding it helps you make better decisions when building, debugging, and shipping AI features.
Developers Digest publishes tutorials and videos that cover AI Development topics including Beam Search. Check the blog and YouTube channel for hands-on walkthroughs.
Related
Software that compiles, bundles, or transforms source code into production-ready output.
The request parameter that sets a hard ceiling on how many tokens a model may generate in one response.
The finding from DeepMind's 2022 Chinchilla paper that, for a fixed compute budget, model size and training tokens should grow in equal proportion: double the parameters, double the data.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.