Tokenization Matters: Navigating Data-Scarce Tokenization for Gender Inclusive Language Technologies
Abstract: Gender-inclusive NLP research has documented the harmful limitations of gender binary-centric LLMs (LLM), such as the inability to correctly use gender-diverse English neopronouns (e.g., xe, zir, fae). While data scarcity is a known culprit, the precise mechanisms through which scarcity affects this behavior remain underexplored. We discover LLM misgendering is significantly influenced by Byte-Pair Encoding (BPE) tokenization, the tokenizer powering many popular LLMs. Unlike binary pronouns, BPE overfragments neopronouns, a direct consequence of data scarcity during tokenizer training. This disparate tokenization mirrors tokenizer limitations observed in multilingual and low-resource NLP, unlocking new misgendering mitigation strategies. We propose two techniques: (1) pronoun tokenization parity, a method to enforce consistent tokenization across gendered pronouns, and (2) utilizing pre-existing LLM pronoun knowledge to improve neopronoun proficiency. Our proposed methods outperform finetuning with standard BPE, improving neopronoun accuracy from 14.1% to 58.4%. Our paper is the first to link LLM misgendering to tokenization and deficient neopronoun grammar, indicating that LLMs unable to correctly treat neopronouns as pronouns are more prone to misgender.
- How effective is byte pair encoding for out-of-vocabulary words in neural machine translation? In Conference of the Association for Machine Translation in the Americas, 2022. URL https://api.semanticscholar.org/CorpusID:251468147.
- Bilingual lexicon induction through unsupervised machine translation. ArXiv, abs/1907.10761, 2019a. URL https://api.semanticscholar.org/CorpusID:196187034.
- On the cross-lingual transferability of monolingual representations. In Annual Meeting of the Association for Computational Linguistics, 2019b. URL https://api.semanticscholar.org/CorpusID:204901567.
- Transfer learning from pre-trained bert for pronoun resolution. In Proceedings of the first workshop on gender bias in natural language processing, pages 82–88, 2019.
- Pythia: A suite for analyzing large language models across training and scaling. ArXiv, abs/2304.01373, 2023. URL https://api.semanticscholar.org/CorpusID:257921893.
- Byte pair encoding is suboptimal for language model pretraining. In Findings, 2020. URL https://api.semanticscholar.org/CorpusID:215416175.
- Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.
- Quality of word vectors and its impact on named entity recognition in czech. European Journal of Business Science and Technology, 2020. URL https://api.semanticscholar.org/CorpusID:231686297.
- As good as new. how to successfully recycle english gpt-2 to make models for other languages. ArXiv, abs/2012.05628, 2020. URL https://api.semanticscholar.org/CorpusID:228083868.
- Harms of gender exclusivity and challenges in non-binary representation in language technologies. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 1968–1994, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.emnlp-main.150. URL https://aclanthology.org/2021.emnlp-main.150.
- How much does tokenization affect neural machine translation? In Conference on Intelligent Text Processing and Computational Linguistics, 2018. URL https://api.semanticscholar.org/CorpusID:56517054.
- Winoqueer: A community-in-the-loop benchmark for anti-lgbtq+ bias in large language models. ArXiv, abs/2306.15087, 2023. URL https://api.semanticscholar.org/CorpusID:259262064.
- M.D. Fortescue. Historical Linguistics 2003: Selected Papers from the 16th International Conference on Historical Linguistics, Copenhagen, 11-15 August 2003. Amsterdam Studies in the Theory and History of Linguistic Science: 4. J. Benjamins Pub., 2005. ISBN 978-1-58811-586-7.
- B.A. Garner. The Chicago Guide to Grammar, Usage, and Punctuation. Chicago Guides to Writing, Editing, and Publishing. University of Chicago Press, 2016. ISBN 978-0-226-19129-4.
- Gender Census. 2023 gender census, 2023. URL https://www.gendercensus.com/results/2023-worldwide/#pronouns. Accessed: September 14, 2023.
- From characters to words: the turning point of bpe merges. In Conference of the European Chapter of the Association for Computational Linguistics, 2021. URL https://api.semanticscholar.org/CorpusID:233189533.
- spaCy: Industrial-strength Natural Language Processing in Python. 2020. doi: 10.5281/zenodo.1212303.
- Misgendered: Limits of large language models in understanding pronouns. arXiv preprint arXiv:2306.03950, 2023.
- Better oov translation with bilingual terminology mining. In Annual Meeting of the Association for Computational Linguistics, 2019. URL https://api.semanticscholar.org/CorpusID:196193105.
- Welcome to the modern world of pronouns: Identity-inclusive natural language processing beyond gender. arXiv preprint arXiv:2202.11923, 2022.
- Man is to person as woman is to location: Measuring gender bias in named entity recognition. Proceedings of the 31st ACM Conference on Hypertext and Social Media, 2019. URL https://api.semanticscholar.org/CorpusID:204851964.
- Ehm Hjorth Miltersen. Nounself pronouns: 3rd person personal pronouns as identity expression. Journal of Language Works-Sprogvidenskabeligt Studentertidsskrift, 1(1):37–62, 2016.
- Measuring harmful sentence completion in language models for lgbtqia+ individuals. In Proceedings of the Second Workshop on Language Technology for Equality, Diversity and Inclusion. Association for Computational Linguistics, 2022.
- Bound by the bounty: Collaboratively shaping evaluation processes for queer ai harms. Proceedings of the 2023 AAAI/ACM Conference on AI, Ethics, and Society, 2023. URL https://api.semanticscholar.org/CorpusID:259991807.
- “i’m fully who i am”: Towards centering transgender and non-binary voices to measure biases in open language generation. In Proceedings of the 2023 ACM Conference on Fairness, Accountability, and Transparency, pages 1246–1266, 2023.
- Morphology matters: A multilingual language modeling analysis. Transactions of the Association for Computational Linguistics, 9:261–276, 2020. URL https://api.semanticscholar.org/CorpusID:228375396.
- Penny Eckert and Ivan A. Sag. Morphology, 2011. URL https://web.stanford.edu/class/linguist1/Slides/morph2-slides.pdf. Accessed: 2023.
- Mimicking word embeddings using subword rnns. ArXiv, abs/1707.06961, 2017. URL https://api.semanticscholar.org/CorpusID:10361075.
- Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
- Gender bias in coreference resolution. arXiv preprint arXiv:1804.09301, 2018.
- How good is your tokenizer? on the monolingual performance of multilingual language models. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 3118–3135, Online, August 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.acl-long.243. URL https://aclanthology.org/2021.acl-long.243.
- Improving neural machine translation models with monolingual data. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 86–96, Berlin, Germany, August 2016. Association for Computational Linguistics. doi: 10.18653/v1/P16-1009. URL https://aclanthology.org/P16-1009.
- A survey on gender bias in natural language processing. arXiv preprint arXiv:2112.14168, 2021.
- Evaluating gender bias in machine translation. arXiv preprint arXiv:1906.00591, 2019.
- Mitigating gender bias in natural language processing: Literature review. arXiv preprint arXiv:1906.08976, 2019.
- Back to the future: On potential histories in nlp. ArXiv, abs/2210.06245, 2022. URL https://api.semanticscholar.org/CorpusID:252846634.
- Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.
- Improving pre-trained multilingual model with vocabulary expansion. ArXiv, abs/1909.12440, 2019. URL https://api.semanticscholar.org/CorpusID:203586495.
- Miner: Improving out-of-vocabulary named entity recognition from an information theoretic perspective. In Annual Meeting of the Association for Computational Linguistics, 2022. URL https://api.semanticscholar.org/CorpusID:248085423.
- Hmm based part-of-speech tagger f or bahasa indonesia. 2010. URL https://api.semanticscholar.org/CorpusID:63251684.
- Incorporating context into subword vocabularies. In Conference of the European Chapter of the Association for Computational Linguistics, 2022. URL https://api.semanticscholar.org/CorpusID:252872957.
- Gender bias in coreference resolution: Evaluation and debiasing methods. In North American Chapter of the Association for Computational Linguistics, 2018. URL https://api.semanticscholar.org/CorpusID:4952494.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.