Analysis of a Model's Classification Decision
A language model is designed to classify the primary topic of a given sentence from a predefined set of labels. Analyze the following scenario and explain why the model produced its specific output, based on the principle of selecting the label that maximizes the conditional probability.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
A language model is tasked with classifying the sentiment of the input text: 'The plot was predictable, but the acting was superb.' The model is restricted to choosing a label from the set {positive, negative, neutral}. After processing the input, the model calculates the following conditional probabilities for each possible label:
- Pr(positive | input) = 0.45
- Pr(negative | input) = 0.20
- Pr(neutral | input) = 0.35
According to the principle of selecting the label that maximizes this probability, which label will the model output?
Analysis of a Model's Classification Decision
In a classification task, a model selects the most suitable label by using the formula:
label = argmax_{y ∈ Y} Pr(y|x). Match each component of this formula to its correct description.