Abstract
Ethnic bias in Large Language Models (LLMs) like BERT is not a universal constant; it varies significantly based on the language and cultural context of the training data. This paper introduces the Categorical Bias (CB) score to quantify these multi-class ethnic biases and evaluates two mitigation strategies: leveraging multilingual models and cross-lingual embedding alignment. Our findings demonstrate that while English BERT often exhibits the lowest bias due to data diversity, other languages reflect specific historical and geopolitical tensions. We show that these biases can be significantly reduced without compromising downstream task performance.
Introduction
While gender and racial biases in AI have been extensively studied, ethnic and national biases remain under-explored. Unlike gender bias, which often follows similar patterns globally, ethnic bias is deeply rooted in specific historical and geopolitical contexts. For example, a model trained on German text may associate different nationalities with negative attributes compared to a model trained on Korean text. This "language-dependent" nature makes ethnic bias a moving target for global AI deployment. This research aims to understand these manifestations across languages and develop methods to neutralize them.
Measuring Bias: The Categorical Bias (CB) Score
To quantify ethnic bias, we introduce the Categorical Bias (CB) score, a novel multi-class metric. Traditional metrics like Cohen's d often focus on binary comparisons. In contrast, the CB score measures the variance in how a model predicts a set of "target" words (e.g., nationalities) when prompted with a specific "attribute" (e.g., "enemy" or "pirate").
In an unbiased model, the probability of any nationality appearing should be roughly proportional to its general frequency in the training data. A high variance—represented by a "peaky" distribution—indicates a strong stereotypical bias toward specific groups.
Mitigation Strategies
We propose two primary methods for bias mitigation:
- Multilingual BERT (M-BERT): We hypothesize that training on multiple languages simultaneously allows conflicting cultural biases to "cancel each other out" within a shared embedding space.
- Contextual Word Alignment: For languages where M-BERT underperforms (typically low-resource languages), we align the monolingual model's embedding space to English BERT. English serves as a global lingua franca with diverse training data that typically exhibits lower ethnic bias. We use Procrustes alignment to map the target language to the English space and fine-tune the model to stabilize results.
Analysis of Language-Dependent Bias
Our evaluation using manually crafted templates (e.g., "A person from [MASK] is an [attribute]") across 30 ethnicities and 70 attributes reveals that bias is a mirror of history.
As shown in the figure above, Korean BERT (KO) exhibits a massive bias associating "Japan" with negative attributes, reflecting historical occupations. Conversely, English (EN) and German (DE) models show higher associations between Middle Eastern countries and negative attributes, reflecting Western political climates. English BERT consistently shows the lowest bias, likely because its data draws from a vast array of global viewpoints that dilute specific nationalistic stereotypes.
Key Results
The proposed mitigation strategies proved highly effective:
- Bias Reduction: In German (DE), the CB score dropped from 5.84 in the monolingual model to 0.89 using M-BERT.
- Alignment Success: For Korean (KO), where M-BERT actually increased bias, the alignment method reduced the CB score from 15.29 to 5.616.
- Utility Preservation: Crucially, debiasing via alignment did not significantly degrade performance on downstream tasks like Named-Entity Recognition (NER).
Conclusion and Limitations
This work highlights the necessity of language-specific approaches to AI ethics. While our methods effectively reduce stereotypical "peaks" in probability distributions, limitations remain. The study focuses on nation-level ethnicity and relies on fixed templates. Future work should address more granular sub-national identities and more complex linguistic structures to ensure that debiasing does not simply shift stereotypes from one group to another.
Summary updated