Formula

Formula for the Candidate Set in Top-K Decoding

In top-KK decoding strategies like beam search, the set of all candidate sequences at step ii is denoted by YiY_i. This set is composed of the KK new sequences that were formed by appending each of the top-KK next tokens to the shared preceding sequence. The formal definition of this set is:

Yi={ytop1,,ytopK}Y_i = \{\mathbf{y}^{\text{top}1}, \dots, \mathbf{y}^{\text{top}K}\}

Image 0

0

1

Updated 2026-06-27

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