Abstract
Vast availability of text data has enabled widespread training and use of AI systems that not only learn and predict attributes from the text but also generate text automatically. However, these AI models also learn gender, racial and ethnic biases present in the training data. In this paper, we present the first system that discovers the possibility that a given text portrays a gender stereotype associated with an occupation. If the possibility exists, the system offers counter-evidences of opposite gender also being associated with the same occupation in the context of user-provided geography and timespan. The system thus enables text de-biasing by assisting a human-in-the-loop. The system can not only act as a text pre-processor before training any AI model but also help human story writers write stories free of occupation-level gender bias in the geographical and temporal context of their choice.
Introduction
AI models, particularly those utilized for Natural Language Generation, are inherently limited by the quality of their training data. Historical and creative texts, such as news and movie scripts, frequently contain gender, racial, and ethnic biases. A prominent example is the "nurse/doctor" translation paradox, where gender-neutral translations revert to stereotypical gender assignments when translated back to English. While automated "fixes" exist, bias is often subjective and context-dependent. This research addresses the need for a human-in-the-loop system that identifies occupational stereotypes and provides evidence-based clues to assist users in de-biasing their content.
Methodology
The proposed system employs a multi-stage pipeline to detect and challenge occupational bias. The process begins with Pronoun Chaining and SVO Tagging using the spaCy library to resolve co-references and associate specific individuals with occupations via Subject-Verb-Object tuples.
The pipeline continues with three specialized taggers:
- Occupation Tagging: Matches text against a curated dictionary of 996 occupations.
- Person Tagging: Identifies named entities.
- Gender Tagging: Maps names to genders using a corpus of over 12,000 names from NLTK and baby name records.
A Bias Checker then classifies occupations as gender-specific or gender-neutral. If a gender-neutral occupation (e.g., programmer) is linked to a specific gender, the system triggers a SPARQL query to DBpedia. This query retrieves real-world examples of individuals of the opposite gender who held that occupation within the user-defined geographic and temporal parameters.
Results and Discussion
The system's effectiveness was evaluated across various temporal and regional scenarios. In a modern US context (1980-2000), the input "John is a doctor" prompted the system to identify "doctor" as a gender-neutral role and provide a list of female doctors as counter-evidence.
Conversely, when the timeframe was shifted to 1700-1800 for the same region, the system flagged the text as "bias-free" due to a lack of recorded counter-evidence in DBpedia for that era. Similar sensitivity was observed when changing regions (e.g., US vs. Russia), highlighting that the system adapts to the cultural and historical context defined by the user.
Conclusion
This tool moves beyond black-box automation by acting as an evidence-based writing assistant. By providing real-world examples of individuals who break stereotypes, it empowers human writers to make informed decisions about their text. Future work will aim to expand the system's scope to include racial and ethnic biases and improve the fluency of automated de-biasing suggestions.
Summary updated