arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.06495cs.CLcs.CYcs.LG
收藏

对 BERT 与 DistilBERT 中导致性别偏见的结构的探究

An investigation of structures responsible for gender bias in BERT and DistilBERT

Université Jean Monnet Saint-Étienne(圣艾蒂安让·莫内大学);CNRS(法国国家科学研究中心);Laboratoire Hubert Curien UMR 5516(于贝尔·居里安实验室);Télécom Paris(巴黎电信学院);Institut Polytechnique de Paris(巴黎综合理工学院)

Thibaud Leteno, Antoine Gourru, Charlotte Laclau, Christophe Gravier

AI总结:

本文实证探究 BERT 与 DistilBERT 中性别偏见的神经机制,发现偏见并非集中在特定层,而是由各注意力头均匀编码,且蒸馏模型中的偏见分布更均匀。

摘要:

近年来,基于 Transformer 的大型预训练语言模型(PLM)在众多任务上不断刷新最先进性能的边界,改变了自然语言处理(NLP)的格局。然而,这种性能提升伴随着复杂度的增加,因此此类模型的规模(参数量可达数十亿)对其在嵌入式设备或短推理时间任务中的部署构成了限制。为应对这一情况,压缩模型应运而生(例如 DistilBERT),使其在越来越多影响我们日常生活的应用中得到普及。一个关键问题是 PLM 及其蒸馏版本所做预测的公平性。在本文中,我们通过形式化两个问题对该问题进行了实证探索:(1)能否识别 BERT(并由此扩展到 DistilBERT)中导致性别偏见的神经机制?(2)蒸馏是否倾向于加剧或减轻性别偏见(例如,DistilBERT 是否比其未压缩版本 BERT 更容易产生性别偏见)?我们的发现如下:(I)无法识别出产生偏见的特定层;(II)每个注意力头都均匀地编码偏见;但在敏感属性高度不平衡且代表性不足的类别情境中除外;(III)当我们重新微调网络时,这一注意力头子集会发生变化;(IV)在蒸馏模型中,偏见由各注意力头更均匀地产生。

英文摘要:

In recent years, large Transformer-based Pre-trained Language Models (PLM) have changed the Natural Language Processing (NLP) landscape, by pushing the performance boundaries of the state-of-the-art on a wide variety of tasks. However, this performance gain goes along with an increase in complexity, and as a result, the size of such models (up to billions of parameters) represents a constraint for their deployment on embedded devices or short-inference time tasks. To cope with this situation, compressed models emerged (e.g. DistilBERT), democratizing their usage in a growing number of applications that impact our daily lives. A crucial issue is the fairness of the predictions made by both PLMs and their distilled counterparts. In this paper, we propose an empirical exploration of this problem by formalizing two questions: (1) Can we identify the neural mechanism(s) responsible for gender bias in BERT (and by extension DistilBERT)? (2) Does distillation tend to accentuate or mitigate gender bias (e.g. is DistilBERT more prone to gender bias than its uncompressed version, BERT)? Our findings are the following: (I) one cannot identify a specific layer that produces bias; (II) every attention head uniformly encodes bias; except in the context of underrepresented classes with a high imbalance of the sensitive attribute; (III) this subset of heads is different as we re-fine tune the network; (IV) bias is more homogeneously produced by the heads in the distilled model.

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

↑