Abstract
In this paper, we explore how the demographic distribution of occupations along gender dimensions is reflected in pre-trained language models. We provide a descriptive assessment of occupational distributions and investigate the extent to which these are reflected in four Norwegian and two multilingual models. Using a set of simple bias probes, we perform five tasks combining gendered pronouns, first names, and occupations from the Norwegian Statistics Bureau. Our results show that language-specific models are more accurate and closer to real-world distributions for gendered occupations. However, no models correctly represent occupations that are demographically balanced. We also discuss the impact of training data and the fragility of template-based probes.
Introduction
Most research on gender bias in Natural Language Processing (NLP) is motivated by a normative vision: the idea that models should treat genders equally regardless of real-world disparities. However, this paper argues for a descriptive assessment. Societal constructs lead to real-world gender imbalances in certain fields (e.g., in Norway, the vast majority of nurses are female). Understanding whether models reflect these demographics or amplify them into harmful stereotypes is crucial for downstream applications like resume filtering. This study examines how well local (Norwegian) and global (multilingual) models capture the specific demographic reality of the Norwegian workforce.
Methodology
The researchers employed template-based bias probes using Masked Language Modeling (MLM). Five tasks were designed to test associations between gendered pronouns, first names, and occupations:
- Task 1 & 2: Masking the pronoun in
[MASK] is a/an [occupation]and[MASK] works as a/an [occupation]. - Task 3 & 4: Masking the occupation in
[name] is a/an [MASK]and[name] works as a/an [MASK]. - Task 5: Masking the occupation in a possessive structure:
the [MASK] [name].
The models' probability distributions were compared against "gold standard" demographic data from the Norwegian Statistics Bureau (SSB), which includes 418 occupations and their gender distributions.
Six models were tested: Norwegian-specific (NorBERT, NorBERT2, NB-BERT, NB-BERT_Large) and multilingual (mBERT, XLM-RoBERTa).
Key Results and Insights
The study revealed several critical findings regarding model performance and bias:
Language Specificity and Performance
Norwegian-specific models significantly outperformed multilingual models. The NB-BERT_Large model was a top performer across tasks, while multilingual models like mBERT generally failed to capture local occupational demographics, often performing worse than even the smallest Norwegian-specific models.
The "Male Default" and Skewed Accuracy
Models consistently showed a bias toward male associations, even for demographically balanced occupations like doctors or architects. While models achieved high F1 scores for male-dominated occupations, they were significantly less accurate for female-dominated ones. This suggests that internal representations of female-dominated fields are less certain or more biased toward the male default.
Template Fragility
A significant finding was the sensitivity of models to minor syntactic changes. For instance, changing the verb from "is" to "works as" (Task 1 vs. Task 2) led to notable shifts in model behavior. This indicates that template-based probes can be brittle and highly dependent on specific phrasing, suggesting that LMs are sensitive to syntactic structure when expressing bias.
Conclusion
While language-specific models better reflect local demographics, they still struggle with gender-balanced occupations and exhibit a persistent male bias. The fragility of template-based probes highlights the need for more robust, non-template-based evaluation methods. Future work will explore whether this "local model advantage" persists across other cultures and languages.
Summary updated