Debiasing In-Context Learning by Instructing LLMs How to Follow Demonstrations
Lvxue Li, Jiaqi Chen, Xinyu Lu, Yaojie Lu, Hongyu Lin, Shuheng Zhou, Huijia Zhu, Weiqiang Wang
Abstract
In-context learning(ICL) has gained considerable attention due to its data efficiency and task adaptability. Unfortunately, ICL suffers from the demonstration bias, i.e., its performance and robustness are severely affected by the selection and ordering of demonstrations. In this paper, we identify that such demonstration bias may primarily stem from the semantic ambiguity induced by demonstrations, i.e., a demonstration may indicate multiple input-to-label mappings and its mapping can be interpreted differently in different contexts by LLMs. Such semantic ambiguity disrupts task comprehension during ICL and results in performance fluctuations. To resolve the semantic ambiguity problem, this paper further proposes two de-biasing strategies to mitigate demonstration bias in in-context learning. Experiments on six datasets show that our methods can effectively alleviate demonstration bias and significantly improve task performance.
BibTeX
@inproceedings{li-etal-2024-debiasing,
title = "Debiasing In-Context Learning by Instructing {LLM}s How to Follow Demonstrations",
author = "Li, Lvxue and
Chen, Jiaqi and
Lu, Xinyu and
Lu, Yaojie and
Lin, Hongyu and
Zhou, Shuheng and
Zhu, Huijia and
Wang, Weiqiang and
Liu, Zhongyi and
Han, Xianpei and
Sun, Le",
editor = "Ku, Lun-Wei and
Martins, Andre and
Srikumar, Vivek",
booktitle = "Findings of the Association for Computational Linguistics: ACL 2024",
month = aug,
year = "2024",
address = "Bangkok, Thailand",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.findings-acl.430/",
doi = "10.18653/v1/2024.findings-acl.430",
pages = "7203--7215"
}