Introduction
Word embeddings, such as word2vec and GloVe, serve as the foundational layer for modern Natural Language Processing (NLP). By representing words as high-dimensional vectors, these models capture semantic relationships from massive text corpora. However, because these corpora (e.g., Reddit, Wikipedia) are human-generated, they inevitably inherit and amplify societal stereotypes. This paper addresses the critical challenge of detecting and mitigating multiclass social biases—such as race and religion—within these embeddings, moving beyond the traditional binary gender framework.
The Problem: Beyond Binary Bias
Previous research into algorithmic fairness in NLP focused heavily on binary gender bias (e.g., man vs. woman). While effective, these methods do not easily scale to demographic attributes like race or religion, which are inherently multiclass. You cannot simply subtract one vector from another to find a single "race dimension."
In raw embeddings, these biases manifest in harmful analogies, such as “Muslim is to terrorist as Christian is to civilians” or “Black is to criminal as Caucasian is to police.” This paper provides a mathematical framework to identify and remove bias subspaces across multiple categories simultaneously, ensuring that neutral words (like "doctor" or "nurse") do not carry implicit demographic associations.
Methodology: Multiclass Subspace Debiasing
The authors extend the "Hard" and "Soft" debiasing techniques originally proposed by Bolukbasi et al. (2016) to a multiclass setting:
- Identifying the Bias Subspace: Instead of simple vector subtraction, the authors use Principal Component Analysis (PCA) on "defining sets" of words (e.g., {Black, Caucasian, Asian} or {Christian, Muslim, Jewish}). By computing the principal components of the differences between these words and their set means, they identify a subspace that captures the bias direction across multiple groups.
- Hard Debiasing: This involves two steps: Neutralize, which removes bias components from words that should be neutral, and Equalize, which ensures neutral words are equidistant from all words in a defining set.
- Soft Debiasing: A linear transformation that preserves the original semantic structure of the embeddings while minimizing their projection onto the identified bias subspace.
- Mean Average Cosine Similarity (MAC): To quantify bias, the authors introduce the MAC metric. It measures the cosine distance between target words (e.g., "violent") and attribute sets (e.g., religions). A MAC score closer to 1.0 indicates that the target word is equally associated with all classes in the set, signifying lower bias.
Experimental Results
The methodology was tested using the Reddit L2 corpus (56 million sentences) and evaluated on downstream tasks using the CoNLL 2003 dataset.
Bias Reduction
MAC scores for gender, race, and religion improved significantly after debiasing. Hard debiasing proved particularly effective at shifting the metric toward 1.0. As shown in the visualization above, increasing the dimensionality of the bias subspace (k=2) allows for a more nuanced adjustment of word positions, reducing the tight clustering associated with specific demographic stereotypes.
Performance Stability
A key finding is the absence of a "fairness tax." In tasks like Named Entity Recognition (NER) and Part-of-Speech (POS) tagging, debiased embeddings performed as well as, or in some cases slightly better than, the original biased ones. For instance, Hard Gender Debiasing resulted in a +0.0045 increase in NER F1 score, suggesting that removing noise from social bias can actually clarify semantic signals.
Discussion and Limitations
While the multiclass subspace approach is robust, the authors identify several ongoing challenges:
- Residual Clustering: Even after removing primary bias components, biased words often remain "neighbors" in high-dimensional space, a phenomenon known as cluster bias.
- Linearity: The method assumes bias exists in a linear subspace. Complex, non-linear relationships between multiple classes may require more sophisticated projection techniques.
- Lexicon Subjectivity: The word lists used to define bias are based on US-centric sociological data, which may not capture the nuances of bias in other cultural or linguistic contexts.
Conclusion
This work demonstrates that multiclass social bias in word embeddings can be systematically detected and mitigated without sacrificing model utility. By generalizing debiasing to subspaces, the researchers provide a scalable path toward fairer NLP systems that respect the complexity of human identity.
Summary updated