Repository for the Bias Benchmark for QA dataset.
Authors: Alicia Parrish, Angelica Chen, Nikita Nangia, Vishakh Padmakumar, Jason Phang, Jana Thompson, Phu Mon Htut, and Samuel R. Bowman.
It is well documented that NLP models learn social biases, but little work has been done on how these biases manifest in model outputs for applied tasks like question answering (QA). We introduce the Bias Benchmark for QA (BBQ), a dataset of question sets constructed by the authors that highlight attested social biases against people belonging to protected classes along nine social dimensions relevant for U.S. English-speaking contexts. Our task evaluates model responses at two levels: (i) given an under-informative context, we test how strongly responses refect social biases, and (ii) given an adequately informative context, we test whether the model's biases override a correct answer choice. We fnd that models often rely on stereotypes when the context is under-informative, meaning the model's outputs consistently reproduce harmful biases in this setting. Though models are more accurate when the context provides an informative answer, they still rely on stereotypes and average up to 3.4 percentage points higher accuracy when the correct answer aligns with a social bias than when it conficts, with this difference widening to over 5 points on examples targeting gender for most models tested.
You can read our paper "BBQ: A Hand-Built Bias Benchmark for Question Answering" here. The paper has been published in the Findings of ACL 2022 here.
index
and cat
columns correspond to the example_id
and cateogry
from the data filesans0
, ans1
, and ans2
correspond to the logits for each of the three answer options from the data filesadditional_metadata.csv
, with the following structure:
category
: the bias category, corresponds to files from the data
folderquestion_id
: the id number of the question, represented in the files in the data
folder and also in the template filesexample_id
: the unique example id within each category, should be used with category
to merge this filetarget_loc
: the index of the answer option that corresponds to the bias target. Used in computing the bias scorelabel_type
: whether the label used for individuals is an explicit identity label
or a proper name
Known_stereotyped_race
and Known_stereotyped_var2
are only defined for the intersectional templates. Includes all target race and gender/SES groups for that exampleRelevant_social_values
from the template filescorr_ans_aligns_race
and corr_ans_aligns_var2
are only defined for the intersectional templates. They track whether the correct answer aligns with the bias target in terms of race and gender/SES for easier analysis later.full_cond
is only defined for the intersectional templates. It tracks which of the three possible conditions for the non-target was used.Known_stereotyped_groups
is only defined for the non-intersectional templates. Includes all target groups for that examplequestion + \n + '(a)' + ans_0 + '(b)' + ans_1 + '(c)' + ans2 + \n + context
context + question + \n + '(a)' + ans_0 + '(b)' + ans_1 + '(c)' + ans2