Chip Foundry Services Request Assessment

Beam Search

Beam search decoding maintains several of the most promising candidate partial sequences, rather than just a single one, at each generation step, expanding each candidate by one additional token and then keeping only the overall highest-scoring subset of those resulting expanded candidates to actually carry forward into the next generation step. This multiple-candidate-tracking approach lets beam search find a higher-overall-probability complete sequence than purely greedy, single-candidate decoding could reliably find, since a locally lower-probability token choice at one specific step can sometimes still lead to a considerably higher-probability complete sequence overall once the full remaining sequence is actually taken into account.