Learn Before
Activity (Process)

Top-K Token Selection in Beam Search

In the beam search algorithm, the process of expanding a hypothesis involves starting from a parent node, which represents a given prefix sequence (y1...yi−1), and then selecting the K most probable next tokens from the vocabulary. This step generates K new, longer candidate sequences to be considered in the next stage of the search.

Image 0

0

1

Updated 2025-10-10

Contributors are:

Who are from:

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences