2023 · 27 citations · 27 references
ComputingComputer ScienceComputational LinguisticsMachine LearningNatural Language ProcessingBiasLanguage ModelingLanguage ModelsAutomated Text ClassificationBias In Language ModelsBiasesIn-context LearningLanguage Model CalibrationLanguage Model PretrainingText Classification
In-context learning design choices, such as example selection and ordering, can bias model predictions, yet systematic studies of these biases are scarce. This work introduces a typology of three label biases in text‑classification ICL—vanilla, context, and the newly defined domain bias—and aims to mitigate them. The authors estimate each model’s label bias by sampling random in‑domain words from the task corpus and use this estimate to calibrate predictions during inference. The proposed domain‑context calibration raises ICL performance of GPT‑J and GPT‑3, achieving up to 37 % macro‑F1 gains on tasks with strong domain bias and demonstrating the method’s effectiveness across models, scales, and instruction designs.
Various design settings for in-context learning (ICL), such as the choice and order of the in-context examples, can bias the model’s predictions. 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.
27
Mining and summarizing customer reviews
Minqing Hu, Bing Liu · 2004 · 7.7K citations
Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank
Richard Socher, Alex Perelygin, Jean Y. Wu et al. · 2013 · 6.8K citations · Full text
Training language models to follow instructions with human feedback
Long Ouyang, Jeff Wu, Xu Jiang et al. · arXiv (Cornell University) · 2022 · 4.3K citations · Full text