Activity (Process)

Ranking Stage in K-Best Selection

The ranking stage, labeled as step ② in the process, follows the expansion of candidate tokens. In this step, all generated candidates are sorted in descending order based on their probabilities. For example, the candidates 'cute' (Pr=0.34), 'on' (Pr=0.32), 'sick' (Pr=0.21), 'are' (Pr=0.12), and '.' (Pr=0.01) are ranked. This stage prepares for the final selection by identifying which candidates will be kept and which will be discarded or 'pruned'.

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