A method where an AI keeps track of several possible sentence continuations at once and picks the overall most likely complete output at the end.
Technically: Beam search keeps B parallel candidate sequences (beams) at each step, extending each by one token and pruning back to the B highest cumulative log-probability paths. It finds globally more probable outputs than greedy decoding at higher compute cost. Favoring repetitive text, it is largely replaced by sampling for open-ended generation but stays standard in translation.
Category: Prompting & Inference