Formula

Construction of the Optimal Sequence in Greedy Search

In a greedy search algorithm, the single most optimal sequence at step i, denoted ytop1\mathbf{y}^{\text{top1}}, is constructed by taking the sequence generated up to the previous step, y1...yi1y_1...y_{i-1}, and appending the single most probable next token, yitop1y_i^{\text{top1}}. The formal representation of this construction is: ytop1=y1...yi1yitop1\mathbf{y}^{\text{top1}} = y_1...y_{i-1}y_i^{\text{top1}}

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

Related