Abstract
Pre-trained language models have been known to perpetuate biases from the underlying datasets to downstream tasks. However, these findings are predominantly based on monolingual language models for English, whereas there are few investigative studies of biases encoded in language models for languages beyond English. In this paper, we fill this gap by analysing gender bias in West Slavic language models. We introduce the first template-based dataset in Czech, Polish, and Slovak for measuring gender bias towards male, female and non-binary subjects. We complete the sentences using both mono- and multilingual language models and assess their suitability for the masked language modelling objective. Next, we measure gender bias encoded in West Slavic language models by quantifying the toxicity and genderness of the generated words. We find that these language models produce hurtful completions that depend on the subject's gender. Perhaps surprisingly, Czech, Slovak, and Polish language models produce more hurtful completions with men as subjects, which, upon inspection, we find is due to completions being related to violence, death, and sickness.
Introduction
Most research into algorithmic bias focuses on high-resource, non-gendered languages like English. However, West Slavic languages (Czech, Polish, and Slovak) are highly gendered; nouns, adjectives, and even past-tense verbs change form based on gender. This linguistic complexity means that bias manifests differently than in English. Furthermore, existing bias benchmarks rarely look beyond the gender binary. This research addresses the lack of resources for West Slavic languages and the exclusion of non-binary identities in NLP bias research, providing a framework to see how these models "view" different gender groups.
Methodology and Datasets
The study employed a template-filling (cloze) task, providing language models with sentences containing a "masked" token (e.g., "The [gendered subject] is a [MASK]") and analyzing the resulting completions. To quantify bias, two primary metrics were used:
- HONEST Score: Utilizes the HurtLex lexicon to measure the toxicity of completions. Higher scores indicate more hurtful or stereotypical results.
- VAD Lexicon: Measures Valence (pleasantness), Arousal (intensity), and Dominance (degree of control) associated with the generated words.
The researchers introduced a new dataset of 923 sentence templates across Czech, Polish, and Slovak. This includes 750 templates adapted from Scandinavian studies and 173 manually created templates targeting West Slavic cultural stereotypes. Crucially, the dataset includes four gender categories: male, female, neutral, and non-binary.
The Failure of Multilingual Models
A significant finding was the poor performance of multilingual models like mBERT and XLM-RoBERTa on West Slavic sentence completion. These models frequently produced grammatically incorrect or nonsensical "gibberish" completions, rendering them unsuitable for nuanced bias analysis in these specific languages.
Key Insights: The "Violence Gap" and Regional Variation
In contrast to many English-centric studies where female subjects often receive more toxic completions, Czech and Slovak models showed a "Violence Gap": male subjects triggered more hurtful completions. This was primarily due to the models' tendency to associate men with themes of violence, death, and illness.
Regional differences also emerged. While Czech and Slovak models were more "toxic" toward men, the Polish model (PolBERT) produced more hurtful completions for women. Additionally, non-binary subjects in Slovak and Czech models had the lowest toxicity scores, likely because the models anchored on the neutral word "person" (osoba) rather than the "non-binary" descriptor.
Quantitative Results
West Slavic monolingual models (Czert, SlovakBERT, PolBERT) are significantly more "hurtful" than their Scandinavian counterparts, with HONEST scores up to twice as high as those reported for Danish or Norwegian models. Harmful completions occurred in up to 13.2% of cases.
Interestingly, VAD scores showed no substantial difference across genders, suggesting that bias in these models is primarily found in the semantic content (toxicity) rather than the emotional tone of the words.
Limitations and Future Work
The analysis is dependent on the quality of the lexicons used. For instance, the Czech version of HurtLex was found to contain errors in approximately 26% of its entries. Future work aims to expand the dataset to other Slavic languages and investigate additional dimensions of bias, such as race, religion, or age, while improving the underlying lexicons for more accurate measurement.
Summary updated