Abstract
Discriminatory gender biases have been found in Pre-trained Language Models (PLMs) for multiple languages. In Natural Language Inference (NLI), existing bias evaluation methods have focused on the prediction results of a specific label out of three labels, such as neutral. However, such evaluation methods can be inaccurate since unique biased inferences are associated with unique prediction labels. Addressing this limitation, we propose a bias evaluation method for PLMs that considers all the three labels of NLI task. We create three evaluation data groups that represent different types of biases. Then, we define a bias measure based on the corresponding label output of each data group. In the experiments, we introduce a meta-evaluation technique for NLI bias measures and use it to confirm that our bias measure can distinguish biased, incorrect inferences from non-biased incorrect inferences better than the baseline, resulting in a more accurate bias evaluation. As we create the datasets in English, Japanese, and Chinese, we also validate the compatibility of our bias measure across multiple languages. Lastly, we observe the bias tendencies in PLMs of each language. To our knowledge, we are the first to construct evaluation datasets and measure PLMs' bias from NLI in Japanese and Chinese.
Introduction
Pre-trained Language Models (PLMs) often inherit societal biases from their training data. In the context of Natural Language Inference (NLI)—where a model determines if a "premise" sentence entails, contradicts, or is neutral toward a "hypothesis"—bias usually manifests as stereotypical reasoning.
For example, given the premise "The driver owns a truck" and the hypothesis "The man owns a truck," an unbiased model should ideally predict neutral. Previous metrics considered any non-neutral prediction as "bias." However, this is too simplistic. Predicting entailment here is a clear sign of male-centric bias, but predicting contradiction is likely just a random error. By lumping all incorrect predictions together, previous metrics failed to accurately quantify the specific nature of biased reasoning.
The NLI-CoAL Framework
To address these inaccuracies, we propose NLI-CoAL (Considering All Labels), a framework that evaluates bias across all three NLI labels—entailment, contradiction, and neutral. This allows for a better distinction between genuine biased reasoning and simple model errors.
The NLI-CoAL score is calculated by averaging the proportions of specific biased outputs across three distinct groups based on gender stereotypes:
- Pro-Stereotypical (PS): Pairs where the hypothesis aligns with a stereotype (e.g., Nurse $\rightarrow$ Woman). Here, a biased model is expected to predict entailment.
- Anti-Stereotypical (AS): Pairs where the hypothesis goes against a stereotype (e.g., Nurse $\rightarrow$ Man). Here, a biased model is expected to predict contradiction.
- Non-Stereotypical (NS): Pairs involving gender-neutral occupations. Here, any non-neutral prediction suggests a general tendency toward biased reasoning.
Multi-lingual Dataset Construction
The study utilizes human-written sentences from image captioning datasets to create more natural evaluation pairs than traditional template-based methods. We developed datasets for English (MSCOCO), Japanese (YJ Captions), and Chinese (Flickr8K-CN).
We used a list of 271 occupation words, categorized as male-stereotypical, female-stereotypical, or neutral based on established social science scores, and translated them across the three languages to ensure cross-lingual compatibility.
Experimental Results and Insights
Our meta-evaluation confirmed that NLI-CoAL is significantly more robust than existing metrics. By intentionally "poisoning" models with varying levels of controlled bias, we found that NLI-CoAL achieved a near-perfect Pearson correlation (0.997 to 1.000) with known bias levels, whereas the baseline "Fraction Neutral" (FN) score often showed negative or no correlation.
Key findings include:
- Cross-Lingual Compatibility: The metric proved effective across all three languages, suggesting that the logic of NLI-based bias is language-agnostic.
- The Chinese Anomaly: Chinese PLMs showed a high rate of "non-biased incorrect inferences," frequently predicting contradiction regardless of gender, suggesting they haven't learned gender-related reasoning well from existing Chinese NLI training sets.
- Tokenization Impacts: In Japanese, character-level vs. word-level tokenization significantly changed bias scores, indicating that a model's "view" of text affects its stereotypical associations.
- Model Rankings: In English, DistilBERT showed the highest bias. In Japanese, models trained on the Common Crawl exhibited more bias than those trained on Wikipedia, likely reflecting the more "filtered" nature of Wikipedia text.
Conclusion and Future Directions
NLI-CoAL provides a more accurate lens for measuring gender bias in PLMs by considering the full spectrum of NLI labels. While currently limited to a binary gender framework and static stereotypes from 2016, this work lays the foundation for cross-lingual bias evaluation. Future research will explore non-binary identities, other social biases (such as race or religion), and more complex, naturalistic reasoning chains beyond single-word variations.
Summary updated