魔鬼藏在神经元中:解释与缓解预训练语言模型中的社会偏见
The Devil is in the Neurons: Interpreting and Mitigating Social Biases in Pre-trained Language Models
AI总结:
本文提出 Social Bias Neurons 概念,利用 IG² 定位 PLM 中导致社会偏见的神经元,并通过 BNS 抑制这些神经元,以低成本在保持语言建模能力的同时提升公平性。
摘要:
预训练语言模型(PLM)已被公认为包含社会偏见等有害信息,这些信息可能造成负面社会影响,甚至在应用中带来灾难性后果。以往关于该问题的研究主要采用探测等黑盒方法,通过观察模型输出来检测和量化 PLM 中的社会偏见。因此,以往的去偏方法主要是在新构建的反刻板印象数据集上微调甚至重新预训练语言模型,成本高昂。在本研究中,我们试图通过引入“社会偏见神经元”(Social Bias Neurons)概念,揭开语言模型内部社会偏见的神秘面纱。具体而言,我们提出 Integrated Gap Gradients(IG²),用于精确定位语言模型中可归因于社会偏见等不良行为的单元(即神经元)。通过将不良行为形式化为语言的一种分布属性,我们使用带有情感倾向的提示来引出与这些情感相关的敏感词类别(人口统计属性)。因此,我们的 IG² 将不同人口统计群体之间的不均匀分布归因于特定的社会偏见神经元,这些神经元追踪 PLM 单元内部不良行为的轨迹,从而实现可解释性。此外,基于这一可解释技术,我们进一步提出 Bias Neuron Suppression(BNS,偏见神经元抑制)以缓解社会偏见。通过研究 BERT、RoBERTa 以及它们与已去偏的 FairBERTa 之间可归因的差异,IG² 使我们能够定位并抑制已识别的神经元,进而缓解不良行为。根据 StereoSet 中已有指标的测量,我们的模型以较低成本实现了更高程度的公平性,同时保持了语言建模能力。
英文摘要:
Pre-trained Language models (PLMs) have been acknowledged to contain harmful information, such as social biases, which may cause negative social impacts or even bring catastrophic results in application. Previous works on this problem mainly focused on using black-box methods such as probing to detect and quantify social biases in PLMs by observing model outputs. As a result, previous debiasing methods mainly finetune or even pre-train language models on newly constructed anti-stereotypical datasets, which are high-cost. In this work, we try to unveil the mystery of social bias inside language models by introducing the concept of {\sc Social Bias Neurons}. Specifically, we propose {\sc Integrated Gap Gradients (IG$^2$)} to accurately pinpoint units (i.e., neurons) in a language model that can be attributed to undesirable behavior, such as social bias. By formalizing undesirable behavior as a distributional property of language, we employ sentiment-bearing prompts to elicit classes of sensitive words (demographics) correlated with such sentiments. Our IG$^2$ thus attributes the uneven distribution for different demographics to specific Social Bias Neurons, which track the trail of unwanted behavior inside PLM units to achieve interoperability. Moreover, derived from our interpretable technique, {\sc Bias Neuron Suppression (BNS)} is further proposed to mitigate social biases. By studying BERT, RoBERTa, and their attributable differences from debiased FairBERTa, IG$^2$ allows us to locate and suppress identified neurons, and further mitigate undesired behaviors. As measured by prior metrics from StereoSet, our model achieves a higher degree of fairness while maintaining language modeling ability with low cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。