What is in a name? Mitigating Name Bias in Text Embeddings via Anonymization

Sahil Manchanda, Pannaga Shivaswamy
2/5/2025
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Text-embedding models often exhibit biases arising from the data on which they are trained. In this paper, we examine a hitherto unexplored bias in text-embeddings: bias arising from the presence of $\textit{names}$ such as persons, locations, organizations etc. in the text. Our study shows how the presence of $\textit{name-bias}$ in text-embedding models can potentially lead to erroneous conclusions in assessment of thematic similarity.Text-embeddings can mistakenly indicate similarity between texts based on names in the text, even when their actual semantic content has no similarity or indicate dissimilarity simply because of the names in the text even when the texts match semantically. We first demonstrate the presence of name bias in different text-embedding models and then propose $\textit{text-anonymization}$ during inference which involves removing references to names, while preserving the core theme of the text. The efficacy of the anonymization approach is demonstrated on two downstream NLP tasks, achieving significant performance gains. Our simple and training-optimization-free approach offers a practical and easily implementable solution to mitigate name bias.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{manchanda2025what,
  title  = {What is in a name? Mitigating Name Bias in Text Embeddings via Anonymization},
  author = {Sahil Manchanda and Pannaga Shivaswamy},
  year   = {2025},
  eprint = {2502.02903},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.02903v1}
}

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/2502.02903.svg)](https://codeofpaper.com/paper/2502.02903)

Discussion