Promoting Equality in Large Language Models: Identifying and Mitigating the Implicit Bias based on Bayesian Theory
Yongxin Deng, Xihe Qiu, Xiaoyu Tan, Jing Pan, Chen Jue, Zhijun Fang, Yinghui Xu, Wei Chu, Yuan Qi
TL;DR
The paper addresses implicit bias in large language models by formalizing the problem and proposing BTBR, a Bayesian-theory based bias removal framework. BTBR identifies bias-prone data using likelihood-ratio screening, estimates biased samples through a fine-tuned surrogate, and deletes bias by editing canonical triples with MEMIT in a black-box fashion, avoiding full retraining. Empirical results on Llama3-8B-Instruct show BTBR reduces implicit bias across diverse tasks while preserving performance, with ablations underscoring the importance of precise sample selection over brute force data removal. The approach advances fairness in LLMs by enabling targeted, data-driven bias elimination that leverages public datasets and model-editing techniques, offering practical guidance for deploying fairer LLMs in real-world settings.
Abstract
Large language models (LLMs) are trained on extensive text corpora, which inevitably include biased information. Although techniques such as Affective Alignment can mitigate some negative impacts of these biases, existing prompt-based attack methods can still extract these biases from the model's weights. Moreover, these biases frequently appear subtly when LLMs are prompted to perform identical tasks across different demographic groups, thereby camouflaging their presence. To address this issue, we have formally defined the implicit bias problem and developed an innovative framework for bias removal based on Bayesian theory, Bayesian-Theory based Bias Removal (BTBR). BTBR employs likelihood ratio screening to pinpoint data entries within publicly accessible biased datasets that represent biases inadvertently incorporated during the LLM training phase. It then automatically constructs relevant knowledge triples and expunges bias information from LLMs using model editing techniques. Through extensive experimentation, we have confirmed the presence of the implicit bias problem in LLMs and demonstrated the effectiveness of our BTBR approach.
