Common token bias makes a language model favor frequent, more probable tokens or labels over rare ones. In few-shot classification, this can skew predictions toward labels the model encountered more often during training. section 6.2.1
Emotion classification
When extracting sadness, happiness, fear, anger, surprise, and disgust, a model trained on more happiness and fear may overproduce those labels, even when another emotion fits better. section 6.2.1
Reduce the skew by:
- Overrepresenting less common labels in the few-shot examples, while recognizing that training-data frequencies are usually unknown. section 6.2.1
- Documenting and versioning prompt experiments before scaling with a database of relevant examples. section 6.2.1
Figure 6.3 Example of a few-shot prompt for sentiment analysis
Use the few-shot sentiment-analysis prompt example to inspect how label selection and example balance shape model outputs. section 6.2.1
