Skip to content

AI Fundamentals

Beam Search

A decoding algorithm that maintains multiple candidate sequences simultaneously and selects the highest-probability complete output. Beam search is used in batch code generation tasks where quality matters more than speed.