English

Estimating Grammatical Gender Directions in Contextual Embeddings under Controlled and Natural Contexts

Computation and Language 2026-06-29 v1 Artificial Intelligence

Abstract

Contextual language models conflate grammatical gender and social semantic bias in gendered languages such as Spanish. Existing gender debiasing approaches only operate on static word embeddings leaving contextual representations unexplored for this two dimensional gender disentanglement. To address the this issue, we make the first attempt to disentangle grammatical gender from semantic contamination for contextual embeddings. We construct both controlled templates and natural Wikipedia contexts to build balanced datasets of inanimate nouns, and design a framework equipped with centroid, Support Vector Machine (SVM) and Linear Discriminant Analysis (LDA) gender direction estimators as well as contamination-aware weighting strategies. A set of dual-objective evaluation metrics is proposed to balance the suppression of grammatical gender leakage on inanimate nouns and the preservation of semantic gender distinctions for occupation terms. The results reveal that unweighted controlled contexts yield the purest grammatical gender direction, and the centroid estimator achieves better performance than discriminative baselines.

Keywords

Cite

@article{arxiv.2606.30152,
  title  = {Estimating Grammatical Gender Directions in Contextual Embeddings under Controlled and Natural Contexts},
  author = {Huanping Xiao and Yingji Li},
  journal= {arXiv preprint arXiv:2606.30152},
  year   = {2026}
}

Comments

18 pages, 1 figure