Abstract
In natural language processing, word embeddings often reflect human social biases. However, in languages with grammatical gender, such as Spanish or German, these measurements are frequently confounded by the syntactic gender of inanimate nouns. This paper presents an iterative post-processing framework designed to disentangle grammatical gender signals from semantic representations. By stripping away these syntactic signals, we demonstrate that underlying social biases are more pronounced than previously estimated, while the overall semantic quality of the embeddings is preserved or even enhanced.
Introduction
Word embeddings serve as the backbone of many modern NLP systems, yet they are known to inherit and amplify societal prejudices. While bias detection methods like the Word Embedding Association Test (WEAT) are well-established for English, their application to "gendered" languages—where nouns for inanimate objects carry masculine or feminine markers—is problematic. In these languages, the grammatical gender of a word (e.g., the Spanish fuerza for "strength" being feminine) can interfere with the measurement of semantic associations (e.g., the stereotype of strength as masculine). This study addresses the necessity of isolating grammatical signals to accurately quantify social bias.
The Challenge of Grammatical Interference
The core issue identified is that grammatical gender acts as a "loud" signal in the vector space, often masking the subtle semantic signals associated with social stereotypes. For instance, if a language's grammar assigns feminine markers to science-related terms, a standard bias test might incorrectly conclude that the model lacks a male-science bias. To address this, the researchers propose a method to "clean" embeddings, ensuring that the gender signal detected relates to social identity rather than syntactic category.
Methodology: Iterative Disentanglement
The authors developed a multi-stage framework to remove grammatical gender noise:
- Identification: A Linear Support Vector Classifier (SVC) was trained to predict the grammatical gender of inanimate nouns. The initial accuracy was approximately 96%, confirming that embeddings strongly encode grammatical gender.
- Iterative Projection: The researchers identified the "grammatical gender hyperplane"—the specific direction in the vector space representing grammar—and projected it out of the embeddings. This process was repeated iteratively until the SVC could no longer distinguish gender better than random chance (50% accuracy).
- GG-WEAT: A new metric, the Grammatical Gender Word Embedding Association Test (GG-WEAT), was introduced to quantify the remaining strength of the grammatical signal.
- Validation: The processed embeddings were evaluated using standard WEAT for social bias, analogy tasks for semantic integrity, and ValNorm for alignment with human sentiment.
Experimental Setup
The study analyzed five languages across three Indo-European branches:
- Germanic: English, German
- Romance: French, Italian, Spanish
- Slavic: Polish
The researchers utilized pre-trained FastText embeddings and the Universal Dependencies (UD) dataset for grammatical labeling. Crucially, they filtered out animate nouns (words referring to people or animals) to ensure the disentanglement process targeted only grammatical, not semantic, gender. Results were validated against human data from Project Implicit.
Key Findings
The disentanglement process yielded several significant insights:
- Revealing Hidden Biases: Once grammatical noise was removed, social biases (such as the association of men with careers and women with family) became significantly more apparent. The average effect size ($d$) across languages increased by 0.24.
- Semantic Quality Preservation: Removing grammatical signals did not degrade the models. In languages like Polish, German, and Italian, the embeddings actually showed improved performance in analogy tasks and human valence representation. This suggests that grammatical gender often acts as semantic interference.
- Arbitrariness of Grammar: The study highlights that because the same concept (e.g., "moon") can have different genders across languages (Mond in German vs. luna in Spanish), the signal is primarily syntactic and should be treated as noise in the context of social bias measurement.
Conclusion and Limitations
This research demonstrates that accurate bias measurement in gendered languages requires the isolation of grammatical signals. While the iterative method successfully reduced the SVC's detection ability to random chance, some limitations remain. The study focused on binary gender, leaving the impact of "neuter" classes in languages like German and Polish for future exploration. Additionally, certain languages like Polish and Spanish proved more resistant to disentanglement, possibly due to complex syntax or training data imbalances. Future work will aim to incorporate non-binary identities and investigate the role of word frequency in gender signal acquisition.
Summary updated