Understanding the Interplay of Scale, Data, and Bias in Language Models: A Case Study with BERT
Muhammad Ali, Swetasudha Panda, Qinlan Shen, Michael Wick, Ari Kobren
TL;DR
This study interrogates how model scale interacts with pre-training data to shape social biases in BERT across upstream (pre-training) and downstream (fine-tuned) tasks. Using four BERT sizes trained on CC-100-EN, English Wikipedia, or a mix, the authors measure biases with upstream log-probability and sentiment metrics and downstream false-positive-rate disparities on toxicity classification, complemented by dataset-bias analyses. Key findings show upstream biases tend to increase with size for CC-100-EN and with size for Wikipedia in gender stereotypes, while downstream biases decrease with scale regardless of pre-training data; however, certain identity groups consistently exhibit higher toxicity associations. The work highlights the critical role of pre-training data composition for bias outcomes, suggests that mixing moderated data with large-scale corpora can attenuate some biases, and underscores the need for careful, domain-specific bias metrics when evaluating language models. $FPR_g$ and other bias measures should be interpreted within the broader socio-technical context to ensure responsible deployment.
Abstract
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.
