Investigating Gender Bias in Turkish Language Models

Orhun Caglidil, Malte Ostendorff, Georg RehmarXiv 2024 · DOI

Introduction

Most research into algorithmic bias focuses on English, a language with gendered pronouns. Turkish, however, is grammatically gender-neutral; the single pronoun “o” can mean he, she, or it. While this might seem like a safeguard against bias, it often masks it. For example, translating the neutral Turkish sentence “O bir doktor” into English frequently yields “He is a doctor,” while “O bir hemşire” becomes “She is a nurse.”

Researchers from DFKI have developed the first comprehensive framework to evaluate gender and ethnic bias in Turkish language models. They investigate whether Turkish Language Models (LMs) inherit societal stereotypes from their training data, specifically looking at gender stereotypes (career vs. family) and ethnic bias (Turkish vs. Kurdish names).

Methodology

The study employs two primary statistical frameworks adapted for the Turkish language: the Word Embedding Association Test (WEAT), which measures cosine similarity between word vectors, and the Sentence Encoder Association Test (SEAT), which extends this to contextualized models using full sentences. Additionally, the researchers introduced Double Bind (DB) Tests to evaluate if models associate competence with men more than women in professional scenarios.

Examples of WEAT, SEAT, and Double Bind tests translated and adapted for Turkish.

The authors created a new benchmark containing ~2,900 data entries and 19,300 words, including versions of tests using traditional/religious names versus modern names to see if naming conventions triggered stronger biases. This dataset has been made publicly available to address the lack of evaluation tools for Turkish NLP.

Key Insights and Results

The evaluation revealed that gender-neutrality in grammar is no shield against algorithmic bias. Models consistently associated male names with "Career" and "Science" and female names with "Family" and "Art."

Heatmap showing p-values for various bias tests across different Turkish language models. Darker blue indicates higher statistical significance.

Several critical patterns emerged from the results:

  • Model Size and Casing: Larger models (e.g., BERTurk-large) often showed higher statistical significance and larger effect sizes in bias tests than their "base" counterparts. Furthermore, uncased models were significantly more prone to bias than cased models, which is notable given that Turkish accent markers carry heavy semantic weight.
  • The Multilingual Flip: Monolingual models (BERTurk) showed stronger bias when tested with specific given names, whereas multilingual models (mBERT, mT5) exhibited more bias with group terms (e.g., "men," "girls").
  • Religious Names: Using traditional or religious names resulted in higher gender-biased scores than using modern names, suggesting that models associate older naming conventions with more traditional gender roles.
  • Ethnic Bias: While most models showed little difference between Turkish and Kurdish names, mT5 showed a significant association between Kurdish names and unpleasant attributes. This is likely due to the mC4 training corpus, which contains higher levels of toxic Web content compared to Wikipedia-based datasets.

Limitations and Future Work

Turkish is an agglutinative language where complex meanings are built by adding suffixes to roots. Current bias tests, which often rely on single-word lookups, may struggle to capture this linguistic complexity. Additionally, the study was limited to binary gender due to source dataset constraints. Future work should aim to include non-binary identities, regional dialects, and minority languages to provide a more holistic view of bias in the Turkish linguistic landscape.

Summary updated

Abstract

Language models are trained mostly on Web data, which often contains social stereotypes and biases that the models can inherit. This has potentially negative consequences, as models can amplify these biases in downstream tasks or applications. However, prior research has primarily focused on the English language, especially in the context of gender bias. In particular, grammatically gender-neutral languages such as Turkish are underexplored despite representing different linguistic properties to language models with possibly different effects on biases. In this paper, we fill this research gap and investigate the significance of gender bias in Turkish language models. We build upon existing bias evaluation frameworks and extend them to the Turkish language by translating existing English tests and creating new ones designed to measure gender bias in the context of Türkiye. Specifically, we also evaluate Turkish language models for their embedded ethnic bias toward Kurdish people. Based on the experimental results, we attribute possible biases to different model characteristics such as the model size, their multilingualism, and the training corpora. We make the Turkish gender bias dataset publicly available.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Double Bind (DB), competent controlBERTurk (base, uncased)effect size0.74split: test · model=BERTurk base uncased · control=competent · test-variant=bleached sentence-level
Source quote
L358: The bleached sentence-level test has a marginal significance with p-value at 0.1 and an effect size of 0.74 for the uncased BERTurk base model.
Double Bind (DB), competent controlBERTurk (large, uncased)effect size1.05split: test · model=BERTurk large uncased · control=competent · test-variant=bleached sentence-level
Source quote
L359: For the larger model, the statistical significance increased to (p-value < 0.01) and the effect size to 1.05. The effect size increased from 0.78 to 1.02 for the religous version of the same test.
Double Bind (DB), competent controlBERTurk (base, uncased)effect size0.78split: test · model=BERTurk base uncased · control=competent · test-variant=bleached sentence-level · name-variation=religious/traditional Turkish names
Source quote
L359: For the larger model, the statistical significance increased to (p-value < 0.01) and the effect size to 1.05. The effect size increased from 0.78 to 1.02 for the religous version of the same test.
Double Bind (DB), competent controlBERTurk (large, uncased)effect size1.02split: test · model=BERTurk large uncased · control=competent · test-variant=bleached sentence-level · name-variation=religious/traditional Turkish names
Source quote
L359: For the larger model, the statistical significance increased to (p-value < 0.01) and the effect size to 1.05. The effect size increased from 0.78 to 1.02 for the religous version of the same test.
Double Bind (DB), competent controlBERTurk (large)effect size0.42split: test · model=BERTurk large · control=competent · test-variant=unbleached sentence-level
Source quote
L360: Moreover, the unbleached sentence-level test did not deliver any significant results for the smaller models and the larger BERTurk model had an effect size of 0.42 (significant at 0.05), and the religous version had an even bigger difference with an effect size of 0.50 (significant at 0.01), suggesting BERTurk picks up this bias at a higher significance level for tests with religious names.
Turkish/Kurdish-name Pleasant/Unpleasant test (WEAT/SEAT 4)mT5 (base)effect size0.35split: test · model=mT5 base · test-variant=Turkish/Kurdish names, pleasant/unpleasant
Source quote
L312: Among all the models tested, mT5 is the only model that picked up this bias with a p-value at 0.01 and an effect size of 0.35, while all the other models demonstrated a very low statistical significance on this test. \autoref{fig:pvalues} illustrates the low p-value for mT5 (indicator for high statistical significance) and the contrasting very high p-values for other models. This could be explained by the different pretraining corpus of mT5.
BibTeX
@misc{caglidil2024investigating,
  author = {Orhun Caglidil and Malte Ostendorff and Georg Rehm},
  title = {{Investigating Gender Bias in Turkish Language Models}},
  year = {2024},
  eprint = {2404.11726},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.11726},
}
Figure