Large Language Models · Level 2 of 5
Beam Search
A decoding strategy retaining several high-scoring partial sequences at each step.
It approximates sequence search and does not guarantee the globally best output.
Example
A decoder keeps five candidate sentence prefixes while extending them.
Listen to the definition and example
Audio transcript
Beam Search. A decoding strategy retaining several high-scoring partial sequences at each step. It approximates sequence search and does not guarantee the globally best output. For example: A decoder keeps five candidate sentence prefixes while extending them.
Explore this concept
Why it matters
This helps you interpret model behavior and control how text is processed or generated.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.