Measuring Bias in Contextualized Word Representations
Written for the Research library (claude-opus-5-5) from the paper text. Original — aclanthology.org/W19-3823.pdf
Summary
Static embeddings like word2vec and GloVe are known to absorb social stereotypes. However, the usual ways to detect this, such as analogies and the cosine-based WEAT, do not transfer well to contextual models like BERT, where a word's vector changes with its sentence. The authors instead probe BERT's masked language model directly. A short template such as "[TARGET] is a [ATTRIBUTE]" is filled with a target like he or she. The target's probability when the attribute is visible is normalized by its probability when the attribute is also masked, giving an increased log probability score. The difference between two targets' scores is the log probability bias score. On the WEAT stimuli, using uncased BERT BASE, WEAT applied to final-layer embeddings found no significant bias, while the new score found significant bias in all five tested categories. A case study on Gendered Pronoun Resolution and an analysis of jobs, traits and skills suggest these biases affect downstream behavior. This raises concerns for uses such as automated resume filtering.
Key points
- WEAT comparison (Table 3):
- The proposed score gave effect sizes of 0.85–1.13, all significant at p < 0.01.
- WEAT on BERT gave 0.50–1.00, with none significant.
- WEAT on GloVe was significant in 3 of 5 categories. The EA/AA names test failed partly because only 5 African American names were in BERT's vocabulary.
- GPR case study (Webster et al., 2018):
- The training data is gender-balanced, yet the model predicted that a female pronoun refers to no entity more often than a male one (average probability 13.9% vs 11.5%, against priors of 9.8% vs 10.3%; p = 0.007).
- The authors also scored sentence topics extracted with NMF (20 topics) and related them to this behavior.
- Employment attributes: BERT associated most attributes more strongly with he than with she:
- 88.5% of the top-1000 job titles from the Montgomery County salary data
- 80.0% of positive traits
- 78.9% of negative traits
- 84.0% of O*NET 23.2 technology skills (template "TARGET can do ATTRIBUTE")
- Code, data and extensions: Code and data are publicly released. The method is claimed to extend to multiclass biases such as race and religion.
Cited by
- Language (Technology) is Power: A Critical Survey of ``Bias'' in NLP
- On the Opportunities and Risks of Foundation Models
- RobBERT: a Dutch RoBERTa-based Language Model
- Toxicity in chatgpt: Analyzing persona-assigned language models
- From Pretraining Data to Language Models to Downstream Tasks: Tracking the Trails of Political Biases Leading to Unfair NLP Models
- Bias and Fairness in Large Language Models: A Survey
- Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- Social Biases in NLP Models as Barriers for Persons with Disabilities
- Towards Debiasing Sentence Representations
- Towards Understanding and Mitigating Social Biases in Language Models
- StereoSet: Measuring stereotypical bias in pretrained language models
- The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale
- Release Strategies and the Social Impacts of Language Models
- Galactica: A Large Language Model for Science
- LaMDA: Language Models for Dialog Applications
- Measuring and Reducing Gendered Correlations in Pre-trained Models
- Ethical and social risks of harm from Language Models
Cite
@inproceedings{kurita2019measuring,
title = {{Measuring Bias in Contextualized Word Representations}},
author = {Kurita, Keita and Vyas, Nidhi and Pareek, Ayush and Black, Alan W and Tsvetkov, Yulia},
booktitle = {Proceedings of the First Workshop on Gender Bias in Natural Language Processing},
year = {2019},
doi = {10.18653/v1/w19-3823},
eprint = {1906.07337},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/w19-3823}
}References
- Evelin Amorim, Marcia Cançado, and Adriano Veloso. 2018. Automated essay scoring in the presence of biased ratings. In Proc. of NAACL, pages 229–237. find
- Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013. Distributed representations of words and phrases and their compositionality. In Proc.of NIPS, pages 3111–3119. find
- Solon Barocas and Andrew D Selbst. 2016. Big data’s disparate impact. Calif. L. Rev., 104:671. find
- Christine Basta, Marta R Costa-jussà, and Noe Casas. 2019. Evaluating the underlying gender bias in contextualized word embeddings. arXiv preprint arXiv:1904.08783. find
- Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. GloVe: Global vectors for word representation. In Proce. of EMNLP, pages 1532– 1543. find
- Tolga Bolukbasi, Kai-Wei Chang, James Y Zou, Venkatesh Saligrama, and Adam T Kalai. 2016. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. In Proc. of NIPS, pages 4349–4357. find our card
- Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations. In Proc. of NAACL. find
- Rachel Rudinger, Jason Naradowsky, Brian Leonard, and Benjamin Van Durme. 2018. Gender bias in coreference resolution. In Proc. of NAACL. find our card
- Aylin Caliskan, Joanna J Bryson, and Arvind Narayanan. 2017. Semantics derived automatically from language corpora contain human-like biases. Science, 356(6334):183–186. find
- J Segal. 2014. Social media use in hiring: Assessing the risks. HR Magazine, 59(9). find
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proc. of NAACL. find
- Nathaniel Swinger, Maria De-Arteaga, Neil Heffernan IV, Mark Leiserson, and Adam Kalai. 2019. What are the biases in my word embedding? In Proc. of the AAAI/ACM Conference on Artificial Intelligence, Ethics, and Society (AIES). find
- Anjalie Field and Yulia Tsvetkov. 2019. Entity-centric contextual affective analysis. In Proc. of ACL. find