公平中介:中和刻板印象关联以缓解大语言模型中的偏见
Fairness Mediator: Neutralize Stereotype Associations to Mitigate Bias in Large Language Models
AI总结:
本文提出FairMed框架,通过探测并干预大语言模型MLP层中的刻板印象键值关联来中和社会偏见,在九个受保护属性上显著超越现有方法且效率更高。
摘要:
大语言模型(LLMs)在各类应用中展现出卓越性能,但它们会无意中从训练数据中吸收虚假相关性,从而导致有偏概念与特定社会群体之间形成刻板印象关联。这些关联延续甚至放大了有害的社会偏见,引发了严重的公平性问题。为缓解此类偏见,已有研究尝试在推理阶段将模型嵌入投影到无偏空间中。然而,由于这些方法与下游社会偏见的对齐较弱,其效果有限。受以下观察启发:大语言模型中的概念认知主要通过线性联想记忆机制表示,其中键值映射发生在MLP层中,我们假设有偏概念和社会群体同样被编码为实体(键)与信息(值)对,并且可以通过操纵这些键值对来促进更公平的关联。为此,我们提出了Fairness Mediator(FairMed),一个中和刻板印象关联的偏见缓解框架。该框架包含两个主要组件:刻板印象关联探测器和对抗性去偏中和器。探测器通过使用以有偏概念为中心的提示来检测社会群体的发射概率,从而捕获编码在MLP层激活中的刻板印象关联。随后,对抗性去偏中和器在推理过程中干预MLP激活,以均衡不同社会群体之间的关联概率。在九个受保护属性上的大量实验表明,FairMed在有效性上显著优于最先进方法。与最有效的基线相比,FairMed通过将缓解开销减少数百分钟而展现出具有竞争力的效率。FairMed还在不损害整体性能的情况下保持了大语言模型的语言理解能力。
英文摘要:
LLMs have demonstrated remarkable performance across diverse applications, yet they inadvertently absorb spurious correlations from training data, leading to stereotype associations between biased concepts and specific social groups. These associations perpetuate and even amplify harmful social biases, raising significant fairness concerns. To mitigate such biases, prior studies have attempted to project model embeddings into unbiased spaces during inference. However, these approaches have shown limited effectiveness due to their weak alignment with downstream social biases. Inspired by the observation that concept cognition in LLMs is primarily represented through a linear associative memory mechanism, where key-value mapping occurs in the MLP layers, we posited that biased concepts and social groups are similarly encoded as entity (key) and information (value) pairs, which can be manipulated to promote fairer associations. To this end, we propose Fairness Mediator (FairMed), a bias mitigation framework that neutralizes stereotype associations. Our framework comprises two main components: a stereotype association prober and an adversarial debiasing neutralizer. The prober captures stereotype associations encoded within MLP layer activations by employing prompts centered around biased concepts to detect the emission probabilities for social groups. Subsequently, the adversarial debiasing neutralizer intervenes in MLP activations during inference to equalize the association probabilities among different social groups. Extensive experiments across nine protected attributes show that FairMed significantly outperforms SOTA methods in effectiveness. Compared to the most effective baseline, FairMed presents competitive efficiency by cutting mitigation overhead by hundreds of minutes. FairMed also maintains the LLM's language understanding capabilities without compromising overall performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。