Concept

Beam Search Strategy in Sequence-to-Sequence Models

Beam search is a sequence decoding strategy that strikes a compromise between the computational efficiency of greedy search and the optimality of exhaustive search. Instead of greedily picking the single most likely token or exploring all possible paths, beam search evaluates and retains a predetermined number of the most promising candidate sequences at each step of the generation process.

Image 0

0

1

Updated 2026-05-14

Tags

Data Science

Foundations of Large Language Models Course

Computing Sciences

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

D2L

Dive into Deep Learning @ D2L

Related
Learn After