Model and Evaluation: Towards Fairness in Multilingual Text Classification

Nankai Lin, Junheng He, Zhenghang Tang, Dong Zhou, Aimin YangarXiv 2023 · arXiv

TL;DR

This paper introduces a novel contrastive learning framework to tackle social bias in multilingual text classification without relying on external language-specific resources. Beyond the model itself, the authors propose a multi-dimensional evaluation framework that measures fairness not just within individual languages, but across them, ensuring that debiasing one attribute doesn't inadvertently "destroy" the model's fairness on others.

What Problem Does This Paper Address?

While fairness in AI has become a major research focus, most work is siloed into monolingual (primarily English) contexts. Multilingual models present unique challenges: they often learn higher-quality representations for some languages over others, and the "mutual influence" between languages can create complex, cross-lingual biases.

Existing debiasing methods often rely on external dictionaries or are designed for single-language tasks. Furthermore, current evaluation metrics are often too narrow—they might show a model is "fair" in English, but ignore whether it performs equitably across Spanish and Polish, or whether fixing gender bias has made racial bias worse. The authors aim to bridge this gap with a more holistic approach to both model design and evaluation.

Methods

The authors propose a debiasing framework consisting of four integrated modules:

  1. Multilingual Representation Module: Uses a pre-trained mBERT model to map different languages into a shared semantic space.
  2. Language Fusion Module: This is a key innovation. It uses contrastive learning to pull together the representations of samples that share the same target label but are in different languages. This forces the model to focus on shared semantics rather than language-specific quirks.
  3. Text Debiasing Module: Also powered by contrastive learning, this module aims to "confuse" the model regarding sensitive attributes (like gender or race). It minimizes the distance between samples that have the same label but different sensitive attribute values, making it harder for the model to use those attributes as shortcuts for classification.
  4. Text Classification Module: A standard feed-forward layer that performs the final task (e.g., hate speech detection).

The overall architecture is visualized in Figure 1: The multilingual text debiasing framework.

Figure 1: The multilingual text debiasing framework.

The "Language Fusion" effect, which aims to increase the overlap of semantic spaces across languages, is conceptually shown in Figure 2: Example of language fusion module effect.

Figure 2: Example of language fusion module effect.

Datasets

The study utilizes a multilingual hate speech dataset (Huang et al., 2020) containing tweets in English, Italian, Polish, Portuguese, and Spanish. The authors focus on four sensitive attributes: age, country, ethnicity, and gender. This dataset is particularly challenging because the distribution of hate speech labels and user demographics varies significantly across the five languages.

Key Insights and Ideas

  • Fairness is Multi-Dimensional: The authors argue that a "fair" multilingual model must satisfy four criteria:
  • MED (Monolingual Equality Difference): Fairness within each individual language.
  • MUED (Multilingual Equality Difference): Fairness across the entire combined multilingual test set.
  • MEPD (Multilingual Equality Performance Difference): Consistency in raw performance (e.g., F1-score) across different languages.
  • SD (Strategy Destructiveness): Ensuring that debiasing for one attribute (e.g., gender) doesn't increase bias for another (e.g., race).
  • The "False Fairness" Trap: The authors note that some baselines (like SentBias) achieve high fairness scores by "under-fitting"—essentially predicting the majority class for everyone. This highlights the importance of balancing fairness with actual classification performance.
  • Semantic Alignment as a Debiasing Tool: By forcing different languages into a consistent semantic space (Language Fusion), the model becomes more robust and less likely to rely on language-specific biases.

Key Results

The proposed method was compared against several baselines, including individual language training, merged training, and adversarial methods like FGM and PGD.

  • Comprehensive Performance: While the proposed method wasn't always the top performer in every single metric, it was the most stable and comprehensive. It consistently reduced bias across all four dimensions (MED, MUED, MEPD, and SD) while maintaining competitive classification accuracy.
  • Superior Multilingual Fairness: In gender attribute debiasing, the proposed method reduced the MUED (Multilingual Equality Difference) from 0.0126 (standard merged BERT) to 0.0028, a significant improvement over adversarial baselines.
  • Low Destructiveness: The framework showed lower "Strategy Destructiveness" than most baselines, meaning it is safer to use when multiple sensitive attributes are present in a dataset.

Limitations and Future Work

The authors acknowledge that joint training (training one model on all languages) often results in a slight performance dip compared to training individual models for each language. This "negative gain" is a common trade-off in multilingual NLP.

Future work could explore more sophisticated ways to mitigate this performance gap while maintaining the fairness benefits of the shared semantic space. Additionally, extending this framework to more diverse tasks beyond text classification (like NER or translation) remains an open and promising direction.

Summary updated

Abstract

Recently, more and more research has focused on addressing bias in text classification models. However, existing research mainly focuses on the fairness of monolingual text classification models, and research on fairness for multilingual text classification is still very limited. In this paper, we focus on the task of multilingual text classification and propose a debiasing framework for multilingual text classification based on contrastive learning. Our proposed method does not rely on any external language resources and can be extended to any other languages. The model contains four modules: multilingual text representation module, language fusion module, text debiasing module, and text classification module. The multilingual text representation module uses a multilingual pre-trained language model to represent the text, the language fusion module makes the semantic spaces of different languages tend to be consistent through contrastive learning, and the text debiasing module uses contrastive learning to make the model unable to identify sensitive attributes' information. The text classification module completes the basic tasks of multilingual text classification. In addition, the existing research on the fairness of multilingual text classification is relatively simple in the evaluation mode. The evaluation method of fairness is the same as the monolingual equality difference evaluation method, that is, the evaluation is performed on a single language. We propose a multi-dimensional fairness evaluation framework for multilingual text classification, which evaluates the model's monolingual equality difference, multilingual equality difference, multilingual equality performance difference, and destructiveness of the fairness strategy. We hope that our work can provide a more general debiasing method and a more comprehensive evaluation framework for multilingual text fairness tasks.
BibTeX
@misc{lin2023model,
  author = {Nankai Lin and Junheng He and Zhenghang Tang and Dong Zhou and Aimin Yang},
  title = {{Model and Evaluation: Towards Fairness in Multilingual Text Classification}},
  year = {2023},
  eprint = {2303.15697},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.15697},
}
Figure