Abstract
While language embeddings have been shown to have stereotyping biases, how these biases affect downstream question answering (QA) models remains unexplored. We present UNQOVER, a general framework to probe and quantify biases through underspecified questions. We show that a naive use of model scores can lead to incorrect bias estimates due to two forms of reasoning errors: positional dependence and question independence. We design a formalism that isolates the aforementioned errors. As case studies, we use this metric to analyze four important classes of stereotypes: gender, nationality, ethnicity, and religion. We probe five transformer-based QA models trained on two QA datasets, along with their underlying language models. Our broad study reveals that (1) all these models, with and without fine-tuning, have notable stereotyping biases in these classes; (2) larger models often have higher bias; and (3) the effect of fine-tuning on bias varies strongly with the dataset and the model size.
Introduction
Large language models (LMs) like BERT and RoBERTa are known to inherit biases from their massive training data. However, quantifying how these biases manifest in downstream tasks like Question Answering (QA) is challenging. When a model associates a specific gender with an occupation in a neutral context, is it a genuine stereotype or a byproduct of "reasoning errors" like positional dependence? The UNQOVER framework addresses this by isolating true bias from surface-level model quirks.
The UNQOVER Framework
The framework uses "underspecified" questions—questions where the provided context does not contain a factual answer. For example, given the context "A woman and a man are in the room," the question "Who is the nurse?" is underspecified.
To ensure a clean signal, UNQOVER employs a symmetric probing method that accounts for two major confounding factors:
- Positional Independence: It swaps the order of subjects (e.g., Subject A first vs. Subject B first) to cancel out positional bias.
- Attribute Independence: It asks both the original question and its negation (e.g., "Who is a criminal?" vs. "Who can never be a criminal?") to ensure the model isn't simply favoring a specific name regardless of the attribute.
The resulting comparative bias score ((\gamma)) represents the model's internal preference for associating a specific group with a specific trait, effectively "peeling off" the noise of reasoning errors.
Experimental Setup
The authors constructed a massive evaluation suite across four bias classes: gender-occupation, nationality, ethnicity, and religion. The scale of the probe set is significant, including 1.4 million examples for gender-occupation and 1.2 million for nationality. They evaluated five transformer-based models (DistilBERT, BERT-Base/Large, RoBERTa-Base/Large) in three states: as raw language models (LM) and fine-tuned on SQuAD v1.1 or NewsQA.
Results and Discussion
Model Size and Bias Intensity
A consistent trend across categories is that larger models generally exhibit higher bias intensity. RoBERTa-Large frequently showed the highest levels of stereotyping compared to its "Base" or "Distilled" counterparts. Interestingly, DistilBERT emerged as the least biased model across most categories, suggesting that model compression might have a side benefit of "averaging out" extreme stereotypical associations.
The Impact of Fine-tuning
Fine-tuning acts as a double-edged sword. While fine-tuning on SQuAD tended to increase bias intensity, fine-tuning on NewsQA often decreased it. This suggests that the specific distribution and style of a QA dataset can either reinforce or help mitigate pre-existing biases learned during pre-training.
Case Studies: Gender and Nationality
In gender-occupation probes, models consistently associated certain roles with specific genders. For instance, "nurse," "dancer," and "babysitter" were frequently linked to female names, while "doctor," "politician," and "architect" were linked to male names.
Nationality and religion probes revealed a stark "Western vs. non-Western" divide. Nationalities from the Middle East and Africa were consistently associated with higher negative sentiment (e.g., "killing" or "violence") compared to Western nations. Similarly, "Muslim" was identified as the most negatively associated religious group across nearly all models tested.
Conclusion and Limitations
UNQOVER provides a robust method for quantifying bias in QA models by accounting for confounding reasoning errors. The study highlights that model scaling and fine-tuning significantly impact bias. However, the work is limited by a binary view of gender and a Western-centric focus in templates and attributes. While the paper focuses on measurement, the authors suggest that the UNQOVER metric could serve as a signal for future de-biasing techniques during model training.
Summary updated