Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/wino bias #762

Merged
merged 27 commits into from
Sep 13, 2023
Merged

Feature/wino bias #762

merged 27 commits into from
Sep 13, 2023

Conversation

ArshaanNazir
Copy link
Collaborator

@ArshaanNazir ArshaanNazir commented Sep 13, 2023

Description

This PR is designed to assess gender-based occupational stereotypes within a new set of tests called the wino-bias category, specifically designed for Hugging Face fill-mask models like BERT, RoBERTa-base, and similar models. Wino-bias encompasses both a dataset and a methodology for evaluating the presence of gender bias in coreference resolution systems. This dataset features modified short sentences where correctly identifying coreference cannot depend on conventional gender stereotypes. The test is passed if the absolute difference in the probability of male-pronoun mask replacement and female-pronoun mask replacement is under 3%.

Fixes : #730

Tutorial Notebook Wino-Bias

Usage

harness = Harness(task="wino-bias", model={"model" : "bert-base-uncased", "hub":"huggingface" } , data = {"data_source":"Wino-test"}, config="wino_config.yml")

Screenshot

image

@ArshaanNazir ArshaanNazir linked an issue Sep 13, 2023 that may be closed by this pull request
@ArshaanNazir ArshaanNazir self-assigned this Sep 13, 2023
Copy link
Collaborator

@chakravarthik27 chakravarthik27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 😄

@ArshaanNazir ArshaanNazir merged commit 47b2309 into release/1.5.0 Sep 13, 2023
3 checks passed
@ArshaanNazir ArshaanNazir mentioned this pull request Sep 19, 2023
@ArshaanNazir ArshaanNazir deleted the feature/wino-bias branch September 21, 2023 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore WinoBias
2 participants