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

Sahil Manchanda, Pannaga Shivaswamy


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 names such as persons, locations, organizations etc. in the text. Our study shows how the presence of name-bias in text-embedding models can potentially lead to erroneous conclusions in the 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 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 three downstream NLP tasks involving embedding similarities, achieving significant performance gains. Our simple and training-optimization-free approach offers a practical and easily implementable solution to mitigate name bias.
Anthology ID:
2025.findings-acl.914
Volume:
Findings of the Association for Computational Linguistics: ACL 2025
Month:
July
Year:
2025
Address:
Vienna, Austria
Editors:
Wanxiang Che, Joyce Nabende, Ekaterina Shutova, Mohammad Taher Pilehvar
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
17759–17781
Language:
URL:
https://preview.aclanthology.org/corrections-2025-08/2025.findings-acl.914/
DOI:
10.18653/v1/2025.findings-acl.914
Bibkey:
Cite (ACL):
Sahil Manchanda and Pannaga Shivaswamy. 2025. What is in a name? Mitigating Name Bias in Text Embedding Similarity via Anonymization. In Findings of the Association for Computational Linguistics: ACL 2025, pages 17759–17781, Vienna, Austria. Association for Computational Linguistics.
Cite (Informal):
What is in a name? Mitigating Name Bias in Text Embedding Similarity via Anonymization (Manchanda & Shivaswamy, Findings 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/corrections-2025-08/2025.findings-acl.914.pdf