Skip to main navigation Skip to search Skip to main content

The Silent Amplifier: In-Context Examples Fuel Bias in Large Language Models

  • Xinwei GUO
  • , Jiashi GAO
  • , Junlei ZHOU
  • , Jiaxin ZHANG
  • , Quanying LIU
  • , Haiyan WU
  • , Xin YAO
  • , Xuetao WEI*
  • *Corresponding author for this work

Research output: Book Chapters | Papers in Conference Proceedings › Conference paper (refereed) › Referred Conference Paper › peer-review

Abstract

In-context learning (ICL) has proven to be adept at adapting large language models (LLMs) to downstream tasks without parameter updates, based on a few demonstration examples. Prior work has found that the ICL performance is susceptible to the selection of examples in prompt and made efforts to stabilize it. However, existing example selection studies ignore the ethical risks behind the examples selected, such as gender and race bias. In this work, we conduct extensive experiments and discover that (1) example selection with high accuracy does not mean low bias; (2) example selection for ICL may amplify the biases of LLMs; (3) example selection contributes to spurious correlations of LLMs. Based on the above observations, we propose the Remind with Bias-aware Embedding (ReBE), which removes the spurious correlations through contrastive learning and obtains bias-aware embedding for LLMs based on prompt tuning. Finally, we demonstrate that ReBE effectively mitigates biases of LLMs without significantly compromising accuracy and is highly compatible with existing example selection methods.

Original languageEnglish
Title of host publicationProceedings of the AAAI Conference on Artificial Intelligence
EditorsSven KOENIG, Chad JENKINS, Matthew E. TAYLOR
PublisherAssociation for the Advancement of Artificial Intelligence
Pages35464-35472
Number of pages9
ISBN (Print)9781577359067
DOIs
Publication statusPublished - 14 Mar 2026
Event40th AAAI Conference on Artificial Intelligence, AAAI 2026 - Singapore, Singapore
Duration: 20 Jan 2026 → 27 Jan 2026

Publication series

NameProceedings of the AAAI Conference on Artificial Intelligence
PublisherAssociation for the Advancement of Artificial Intelligence
Number42
Volume40
ISSN (Print)2159-5399
ISSN (Electronic)2374-3468

Conference

Conference40th AAAI Conference on Artificial Intelligence, AAAI 2026
Country/TerritorySingapore
CitySingapore
Period20/01/26 → 27/01/26

Bibliographical note

Publisher Copyright:
© 2026, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

Funding

This work was supported in part by Major Program of Guangdong Province under Grant 2021QN02X166, and in part by the National Natural Science Foundation of China (Project No. 72031003).

Fingerprint

Dive into the research topics of 'The Silent Amplifier: In-Context Examples Fuel Bias in Large Language Models'. Together they form a unique fingerprint.

Cite this