Formula

Formula for the Candidate Set in Beam Search

In the expansion step of beam search, a set of candidate sequences for step i, denoted YiY_i, is formed. This set consists of the K new hypotheses generated by extending the previous step's sequences. It is formally defined as the collection of the top K candidate sequences: Yi={ytop1,,ytopK}Y_i = \{\mathbf{y}^{\text{top1}}, \dots, \mathbf{y}^{\text{topK}}\} where each ytop k\mathbf{y}^{\text{top k}} is a newly formed sequence.

Image 0

0

1

Updated 2026-05-02

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