Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Mitigating Label Biases for In-context Learning

About

Various design settings for in-context learning (ICL), such as the choice and order of the in-context examples, can bias a model toward a particular prediction without being reflective of an understanding of the task. While many studies discuss these design choices, there have been few systematic investigations into categorizing them and mitigating their impact. In this work, we define a typology for three types of label biases in ICL for text classification: vanilla-label bias, context-label bias, and domain-label bias (which we conceptualize and detect for the first time). Our analysis demonstrates that prior label bias calibration methods fall short of addressing all three types of biases. Specifically, domain-label bias restricts LLMs to random-level performance on many tasks regardless of the choice of in-context examples. To mitigate the effect of these biases, we propose a simple bias calibration method that estimates a language model's label bias using random in-domain words from the task corpus. After controlling for this estimated bias when making predictions, our novel domain-context calibration significantly improves the ICL performance of GPT-J and GPT-3 on a wide range of tasks. The gain is substantial on tasks with large domain-label bias (up to 37% in Macro-F1). Furthermore, our results generalize to models with different scales, pretraining methods, and manually-designed task instructions, showing the prevalence of label biases in ICL.

Yu Fei, Yifan Hou, Zeming Chen, Antoine Bosselut• 2023

Related benchmarks

TaskDatasetResultRank
Multi-task Language UnderstandingMMLU
Accuracy51.81
842
Natural Language UnderstandingGLUE (test)--
416
Natural Language InferenceRTE
Accuracy66.21
367
Text ClassificationAG News (test)--
210
Question ClassificationTREC
Accuracy80.5
205
Topic ClassificationAG-News
Accuracy89.34
173
Question AnsweringARC
Accuracy64.88
154
Sentiment AnalysisMR
Accuracy0.93
142
Sentiment AnalysisCR
Accuracy92.61
123
Topic ClassificationAG News (test)--
98
Showing 10 of 63 rows

Other info

Code

Follow for update