arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.21058cs.CLcs.AI
收藏

理解语言模型中规模、数据与偏见的相互作用:以 BERT 为例的案例研究

Understanding the Interplay of Scale, Data, and Bias in Language Models: A Case Study with BERT

Institute for Experiential AI, Northeastern University(东北大学体验式人工智能研究所);Oracle Labs(甲骨文实验室)

Muhammad Ali, Swetasudha Panda, Qinlan Shen, Michael Wick, Ari Kobren

AI总结:

本文以 BERT 为案例,研究模型规模与预训练数据如何共同影响语言模型的社会偏见,发现上游偏见受数据来源显著影响,而下游偏见随规模增大普遍减少。

摘要:

在当前语言模型研究格局中,更大的模型、更大的数据集和更多的算力似乎仍是迈向智能的唯一路径。尽管已有大量关于缩放定律和模型缩放行为的研究,但规模对模型社会偏见和刻板印象倾向的影响却较少受到关注。本研究探讨模型规模和预训练数据对其所学社会偏见的影响。我们聚焦于 BERT——一种极为流行的语言模型——并考察偏见在语言建模阶段(上游)以及微调后的分类应用阶段(下游)中的表现。我们在四种不同架构规模的 BERT 上进行的实验表明,预训练数据显著影响上游偏见随模型规模演变的方式。随着规模增大,在 Common Crawl 等大规模互联网抓取数据上预训练的模型表现出更高的毒性,而在 Wikipedia 等经过审核的数据源上预训练的模型则表现出更强的性别刻板印象。然而,下游偏见通常随模型规模增大而减少,且与预训练数据无关。我们的结果凸显了预训练数据在语言模型偏见行为中的定性作用,而这一方面在规模研究中常被忽视。通过对 BERT 的详细案例研究,我们揭示了数据与模型规模之间复杂的相互作用,并考察其如何转化为具体偏见。

英文摘要:

In the current landscape of language model research, larger models, larger datasets and more compute seems to be the only way to advance towards intelligence. While there have been extensive studies of scaling laws and models' scaling behaviors, the effect of scale on a model's social biases and stereotyping tendencies has received less attention. In this study, we explore the influence of model scale and pre-training data on its learnt social biases. We focus on BERT -- an extremely popular language model -- and investigate biases as they show up during language modeling (upstream), as well as during classification applications after fine-tuning (downstream). Our experiments on four architecture sizes of BERT demonstrate that pre-training data substantially influences how upstream biases evolve with model scale. With increasing scale, models pre-trained on large internet scrapes like Common Crawl exhibit higher toxicity, whereas models pre-trained on moderated data sources like Wikipedia show greater gender stereotypes. However, downstream biases generally decrease with increasing model scale, irrespective of the pre-training data. Our results highlight the qualitative role of pre-training data in the biased behavior of language models, an often overlooked aspect in the study of scale. Through a detailed case study of BERT, we shed light on the complex interplay of data and model scale, and investigate how it translates to concrete biases.

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

↑