arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.14409cs.CLcs.AI
收藏

在大语言模型中定位与缓解性别偏见

Locating and Mitigating Gender Bias in Large Language Models

University of Science and Technology of China(中国科学技术大学);State Key Laboratory of Cognitive Intelligence(认知智能国家重点实验室)

Yuchen Cai, Ding Cao, Rongxi Guo, Yaqin Wen, Guiquan Liu, Enhong Chen

AI总结:

本研究提出统一框架,结合因果中介分析定位大语言模型中性别偏见的关键组件,并提出基于知识编辑的LSDM方法,在保留模型整体能力的同时有效缓解职业代词中的性别偏见。

摘要:

大语言模型(LLM)在广泛语料库上进行预训练,以学习包含人类偏好的事实与人类认知。然而,这一过程可能无意中导致模型获取社会中普遍存在的偏见与刻板印象。先前研究通常从单一维度处理偏见问题,仅集中于定位或缓解。这种有限的视角阻碍了偏见研究之间的协同互补与渐进式发展。在本研究中,我们将定位与缓解偏见的过程整合于一个统一框架内。首先,我们使用因果中介分析追踪大语言模型内部不同组件激活的因果效应。在此基础上,我们提出LSDM(Least Square Debias Method),这是一种基于知识编辑的方法,用于缓解职业代词中的性别偏见,并在三个性别偏见数据集和七个知识能力测试数据集上将其与两个基线进行对比。实验结果表明,性别偏见的主要来源是作用于职业代词最后一个词的底层MLP模块,以及作用于句子最后一个词的顶层注意力模块。此外,LSDM比其他基线更有效地缓解了模型中的性别偏见,同时在所有其他方面完全保留了模型的能力。

英文摘要:

Large language models(LLM) are pre-trained on extensive corpora to learn facts and human cognition which contain human preferences. However, this process can inadvertently lead to these models acquiring biases and stereotypes prevalent in society. Prior research has typically tackled the issue of bias through a one-dimensional perspective, concentrating either on locating or mitigating it. This limited perspective has created obstacles in facilitating research on bias to synergistically complement and progressively build upon one another. In this study, we integrate the processes of locating and mitigating bias within a unified framework. Initially, we use causal mediation analysis to trace the causal effects of different components' activation within a large language model. Building on this, we propose the LSDM (Least Square Debias Method), a knowledge-editing based method for mitigating gender bias in occupational pronouns, and compare it against two baselines on three gender bias datasets and seven knowledge competency test datasets. The experimental results indicate that the primary contributors to gender bias are the bottom MLP modules acting on the last token of occupational pronouns and the top attention module acting on the final word in the sentence. Furthermore, LSDM mitigates gender bias in the model more effectively than the other baselines, while fully preserving the model's capabilities in all other aspects.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑