Beam search

Keeping several candidate continuations alive at once and expanding the most promising, instead of committing to one token at a time. It helps where there is a single right answer, such as translation, and produces bland text on open-ended writing.

A definition is not an understanding. This is taught properly in Sampling settings for real tasks, part of Sampling & decoding.

Learn this properly