Gender Encoding Patterns in Pretrained Language Model Representations

Mahdi Zakizadeh, Mohammad Taher Pilehvar
3/9/2025
cs.CLcs.AI

No official code found. Best implementation: mzakizadeh/Gender-Encoding-Patterns (0 stars, last commit 2025-05-02).

Abstract

Gender bias in pretrained language models (PLMs) poses significant social and ethical challenges. Despite growing awareness, there is a lack of comprehensive investigation into how different models internally represent and propagate such biases. This study adopts an information-theoretic approach to analyze how gender biases are encoded within various encoder-based architectures. We focus on three key aspects: identifying how models encode gender information and biases, examining the impact of bias mitigation techniques and fine-tuning on the encoded biases and their effectiveness, and exploring how model design differences influence the encoding of biases. Through rigorous and systematic investigation, our findings reveal a consistent pattern of gender encoding across diverse models. Surprisingly, debiasing techniques often exhibit limited efficacy, sometimes inadvertently increasing the encoded bias in internal representations while reducing bias in model output distributions. This highlights a disconnect between mitigating bias in output distributions and addressing its internal representations. This work provides valuable guidance for advancing bias mitigation strategies and fostering the development of more equitable language models.

View on arXivView PDF

Code Implementations(1)

This repository provides replication code for analyzing gender bias encoding patterns within pretrained language models and evaluating the effectiveness of various bias mitigation techniques.

00Python, MakefileMar 9, 20251 years ago

Similar Papers

Cite this paper

@article{zakizadeh2025gender,
  title  = {Gender Encoding Patterns in Pretrained Language Model Representations},
  author = {Mahdi Zakizadeh and Mohammad Taher Pilehvar},
  year   = {2025},
  eprint = {2503.06734},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.06734v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.06734.svg)](https://codeofpaper.com/paper/2503.06734)

Discussion