Computer Science > Computation and Language
arXiv:2311.10395 (cs)
[Submitted on 17 Nov 2023 (v1), last revised 16 Jun 2024 (this version, v2)]
Title:Bias A-head? Analyzing Bias in Transformer-Based Language Model Attention Heads
View a PDF of the paper titled Bias A-head? Analyzing Bias in Transformer-Based Language Model Attention Heads, by Yi Yang and 4 other authors
View PDFHTML (experimental)Abstract:Transformer-based pretrained large language models (PLM) such as BERT and GPT have achieved remarkable success in NLP tasks. However, PLMs are prone to encoding stereotypical biases. Although a burgeoning literature has emerged on stereotypical bias mitigation in PLMs, such as work on debiasing gender and racial stereotyping, how such biases manifest and behave internally within PLMs remains largely unknown. Understanding the internal stereotyping mechanisms may allow better assessment of model fairness and guide the development of effective mitigation strategies. In this work, we focus on attention heads, a major component of the Transformer architecture, and propose a bias analysis framework to explore and identify a small set of biased heads that are found to contribute to a PLM's stereotypical bias. We conduct extensive experiments to validate the existence of these biased heads and to better understand how they behave. We investigate gender and racial bias in the English language in two types of Transformer-based PLMs: the encoder-based BERT model and the decoder-based autoregressive GPT model. Overall, the results shed light on understanding the bias behavior in pretrained language models.
Comments: | 14 pages, 7 figures, 3 tables including references and appendices |
Subjects: | Computation and Language (cs.CL) |
Cite as: | arXiv:2311.10395 [cs.CL] |
(orarXiv:2311.10395v2 [cs.CL] for this version) | |
https://doi.org/10.48550/arXiv.2311.10395 arXiv-issued DOI via DataCite |
Submission history
From: Hanyu Duan [view email][v1] Fri, 17 Nov 2023 08:56:13 UTC (9,602 KB)
[v2] Sun, 16 Jun 2024 03:33:03 UTC (9,720 KB)
Full-text links:
Access Paper:
- View PDF
- HTML (experimental)
- TeX Source
- Other Formats
View a PDF of the paper titled Bias A-head? Analyzing Bias in Transformer-Based Language Model Attention Heads, by Yi Yang and 4 other authors
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer(What is the Explorer?)
Connected Papers(What is Connected Papers?)
Litmaps(What is Litmaps?)
scite Smart Citations(What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv(What is alphaXiv?)
CatalyzeX Code Finder for Papers(What is CatalyzeX?)
DagsHub(What is DagsHub?)
Gotit.pub(What is GotitPub?)
Hugging Face(What is Huggingface?)
Papers with Code(What is Papers with Code?)
ScienceCast(What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower(What are Influence Flowers?)
CORE Recommender(What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community?Learn more about arXivLabs.