Formula

Formula for the Candidate Set in Greedy Search

In a greedy search decoding algorithm, the set of candidate sequences at step ii, denoted YiY_i, is reduced to a singleton set containing only the single most optimal sequence generated up to that point. This sequence is constructed by appending the most probable next token to the previous prefix: ytop1=y1...yi1yitop1\mathbf{y}^{\mathrm{top}1} = y_1...y_{i-1} y_i^{\mathrm{top}1}. The candidate set is formally expressed as Yi={ytop1}Y_i = \{\mathbf{y}^{\mathrm{top}1}\}.

Image 0

0

1

Updated 2026-05-03

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

Related