追踪预训练转换器中的刻板印象:从偏见神经元到更公平的模型
Tracing Stereotypes in Pre-trained Transformers: From Biased Neurons to Fairer Models
AI总结:
本文通过追踪预训练转换器中的偏见神经元,提出了一种在BERT模型中抑制偏见的方法,从而减少模型中的偏见并提升公平性。
摘要:
Transformer-based语言模型的出现改变了AI系统处理和生成文本的方式。在软件工程(SE)中,这些模型现在支持多样化的活动,加速了自动化和决策过程。然而,证据表明这些模型可以复制或放大社会偏见,引发公平性问题。最近关于神经元编辑的工作显示,预训练转换器的内部激活可以被追踪并修改以改变模型行为。基于知识神经元的概念,即编码事实信息的神经元,我们假设存在偏见神经元,它们在预训练转换器中捕捉刻板印象关联。为了测试这一假设,我们构建了一个包含偏见关系的数据集,即编码跨九种偏见类型的三元组,并采用神经元归因策略来追踪和抑制BERT模型中的偏见神经元。然后我们评估了抑制对SE任务的影响。我们的发现显示偏见知识被局部化在小神经元子集中,抑制它们显著减少偏见,同时对性能影响很小。这表明转换器中的偏见可以被追踪并在神经元层面缓解,为SE中的公平性提供了一种可解释的方法。
英文摘要:
The advent of transformer-based language models has reshaped how AI systems process and generate text. In software engineering (SE), these models now support diverse activities, accelerating automation and decision-making. Yet, evidence shows that these models can reproduce or amplify social biases, raising fairness concerns. Recent work on neuron editing has shown that internal activations in pre-trained transformers can be traced and modified to alter model behavior. Building on the concept of knowledge neurons, neurons that encode factual information, we hypothesize the existence of biased neurons that capture stereotypical associations within pre-trained transformers. To test this hypothesis, we build a dataset of biased relations, i.e., triplets encoding stereotypes across nine bias types, and adapt neuron attribution strategies to trace and suppress biased neurons in BERT models. We then assess the impact of suppression on SE tasks. Our findings show that biased knowledge is localized within small neuron subsets, and suppressing them substantially reduces bias with minimal performance loss. This demonstrates that bias in transformers can be traced and mitigated at the neuron level, offering an interpretable approach to fairness in SE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。