Formula

Formula for Label Selection via Probability Maximization

In classification tasks where the goal is to select a single label word, such as filling in a blank, the chosen label is the one that maximizes the conditional probability given the input context x\mathbf{x}. This selection process is formalized by the equation: label=argmaxyYPr(yx)\text{label} = \underset{y \in Y}{\arg\max} \, \text{Pr}(y|\mathbf{x}) In this formula, yy represents a candidate label word, and YY is the predefined set of all possible label words. For example, in a polarity classification task, the set of labels could be Y={positive, negative, neutral}Y = \{\text{positive, negative, neutral}\}.

Image 0

0

1

Updated 2026-04-29

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences