Fair In-Context Learning via Latent Concept Variables

Karuna Bhaila, Minh-Hao Van, Kennedy Edemacu, Chen Zhao, Feng Chen +1 more
11/4/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: karuna-bhaila/fairicl (1 star, last commit 2025-05-18).

Abstract

The emerging in-context learning (ICL) ability of large language models (LLMs) has prompted their use for predictive tasks in various domains with different data types, including tabular data, facilitated by serialization methods. However, with increasing applications in high-stakes domains, it has been shown that LLMs can inherit social bias and discrimination from their pre-training data. In this work, we investigate inherent bias in LLMs during in-context learning with tabular data. We focus on an optimal demonstration selection approach that utilizes latent concept variables for resource-efficient task adaptation. We design data augmentation strategies that reduce the correlation between predictive outcomes and sensitive variables, helping promote fairness during latent concept learning. We utilize the learned concept to select demonstrations and obtain fair predictions. The latent concept variables are learned using a smaller internal LLM and generalized to larger external LLMs. We empirically verify that the fair latent variable approach improves fairness results on tabular datasets compared to multiple heuristic demonstration selection methods.

View on arXivView PDF

Code Implementations(1)

10PythonNov 4, 20241 years ago

Cite this paper

@article{bhaila2024fair,
  title  = {Fair In-Context Learning via Latent Concept Variables},
  author = {Karuna Bhaila and Minh-Hao Van and Kennedy Edemacu and Chen Zhao and Feng Chen and Xintao Wu},
  year   = {2024},
  eprint = {2411.02671},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.02671v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.02671.svg)](https://codeofpaper.com/paper/2411.02671)

Discussion